maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
[gnulib.git] / ChangeLog
1 2012-08-05  Jim Meyering  <meyering@redhat.com>
2
3         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
4         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
5         for /error ?([^,]*)/.  This avoids false-positives for strings like
6         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
7
8 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
9
10         gnumakefile: better interaction with Automake-NG
11         * modules/gnumakefile [Makefile.am]: The makefiles generated by
12         Automake-NG always contain a definition of VPATH, even in non-VPATH
13         builds (its value being simply '.' in that case).  So, in the
14         'clean-GNUmakefile' rule, to determine whether running under a
15         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
16         '$(VPATH)' expands to the empty string.
17
18 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
19
20         base64: Use extern C scope in header file, for C++.
21         * lib/base64.h: Add C++ namespace protection.
22
23 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
24
25         stat-time, timespec, u64: support naive out-of-dir builds
26         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
27         Use '#include "foo.h"', not '#include <foo.h>', when including
28         one's own interface.  This works better when configuring with
29         out-of-directory builds, since packages need not add an
30         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
31
32 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
33
34         utimens: use extern-inline
35         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
36         * lib/utimens.h: Add copyright notice, since this is now large enough
37         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
39         * modules/utimens (Depends-on): Add extern-inline.
40
41         u64: use extern-inline
42         * lib/u64.c: New file.
43         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
44         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
45         * modules/u64 (Files): Add lib/u64.c.
46         (Depends-on): Add extern-inline.
47         (configure.ac): No need to require AC_C_INLINE, since extern-inline
48         does that now.
49         (lib_SOURCES): Add u64.c.
50
51         timespec: use extern-inline
52         * lib/timespec.c: New file.
53         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
54         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
55         * modules/timespec (Files): Add lib/timespec.c.
56         (Depends-on): Add extern-inline.
57         (lib_SOURCES): Add timespec.c.
58
59         stat-time: use extern-inline
60         * lib/stat-time.c: New file.
61         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
62         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
63         * modules/stat-time (Files): Add lib/stat-time.c.
64         (Depends-on): Add extern-inline.
65         (lib_SOURCES): Add stat-time.c.
66
67         extern-inline: new module
68         * modules/extern-inline, m4/extern-inline.m4: New files.
69         This is for better support of 'extern inline' a la ISO C99,
70         with a portable alternative on compilers that do not support
71         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
72         of the Emacs executable, when compiled with debugging disabled,
73         which is a typical way that Emacs is built while developing.
74
75 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
76
77         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
78         * build-aux/do-release-commit-and-tag: Move variable definitions
79         together.
80         ($branch): Instead of defaulting to "master", default to the current
81         branch (as gnu-web-doc-update does).
82         (help): Display the current values of the option arguments.
83         * top/maint.mk (release-commit): New.
84         * top/README-release: Simplify the corresponding step.
85
86 2012-07-30  Eric Blake  <eblake@redhat.com>
87
88         passfd: fix comment on recvfd
89         * lib/passfd.c (recvfd): Fix comment.
90         Reported by Jann Horn <jannhorn@googlemail.com>.
91
92 2012-07-30  Jim Meyering  <meyering@redhat.com>
93
94         maint.mk: avoid a sub-shell
95         * top/maint.mk (release-prep): Remove unneeded sub-shell.
96
97 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
98
99         maint.mk: use silent-rules support from Automake
100         * top/maint.mk (news-check, vc-diff-check, announcement)
101         (no-submodule-changes, alpha beta stable, release-prep)
102         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
103
104 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
105
106         maint.mk: provide a web-manual-update target
107         * top/maint.mk: here.
108         * top/README-release: Use it to simplify the web manual update step.
109
110 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
111
112         README-release: shorten the circuit to post a news
113         * top/README-release: Point directly to the news submission form.
114
115 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
116
117         gnu-web-doc-update: fix --help
118         * build-aux/gnu-web-doc-update: The information "top level" was written
119         twice.
120
121 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
122
123         maint.mk: absolute VPATH issue
124         * top/maint.mk (release-prep): Help Git find .git/.
125         From Jim Meyering.
126
127 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
128
129         gitlog-to-changelog: fix previous change
130         * build-aux/gitlog-to-changelog: Fix condition.
131         Add missing ";".
132
133 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
134
135         gitlog-to-changelog: don't expect .git to be in $srcdir
136         Reported by Bruno Haible.
137         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
138         * build-aux/gitlog-to-changelog (&git_dir_option): New.
139         Use it.
140
141 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
142
143         maint.mk: absolute VPATH build fix
144         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
145         $(srcdir) is not a parent of $(builddir).
146
147 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
148
149         clean-temp: Fix memory leak.
150         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
151         'files' members of tmpdir.
152
153 2012-07-27  Jim Meyering  <meyering@redhat.com>
154
155         maint.mk: new rule: refresh-gnulib-patches
156         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
157         Use this rule to refresh them.
158         * top/maint.mk (refresh-gnulib-patches): New rule.
159
160 2012-07-24  Bruno Haible  <bruno@clisp.org>
161
162         gnulib-tool: Fix handling of inctests variable.
163         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
164         Reported by Nick Bowler <nbowler@elliptictech.com>.
165
166 2012-07-22  Bruno Haible  <bruno@clisp.org>
167
168         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
169         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
170         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
171         Remove exemption for getpass.h.
172         Suggested by Eric Blake.
173
174 2012-07-20  Eric Blake  <eblake@redhat.com>
175
176         verify: document conflict with -Wnested-externs
177         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
178
179         maint.mk: forbid exit(-1)
180         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
181
182 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
183
184         fsusage: port back to Solaris
185         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
186         error (fsd not declared) on Solaris 10.  Reported privately by
187         Andrew Borodin.
188
189 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
190
191         gnu-web-doc-update: fix error messages
192         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
193
194         gnu-web-doc-update: check the requirements.
195         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
196         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
197         * build-aux/bootstrap (find_tool): Comment change.
198
199 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
200
201         maint.mk: minor simplication.
202         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
203         for default values.
204
205 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
206
207         gitlog-to-changelog: VPATH build issues
208         If builddir is not a subdirectory of srcdir, running git from it will
209         fail.
210         * build-aux/gitlog-to-changelog (--srcdir): New option.
211
212 2012-07-15  Bruno Haible  <bruno@clisp.org>
213
214         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
215         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
216         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
217         Remove exemption for fpending.h.
218         Suggested by Eric Blake.
219
220 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
221
222         pthread_sigmask: fix bug on FreeBSD 9
223         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
224         Include string.h.
225         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
226         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
227         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
228         but pthread_sigmask (1729, NULL, NULL) returns zero.
229         See <http://bugs.gnu.org/11884>.
230         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
231         by inspecting whether the main call changed the old mask.
232
233 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
234
235         README-release: make it more legible
236         * top/README-release: Improve typography slightly.
237
238 2012-07-15  Jim Meyering  <meyering@redhat.com>
239
240         maint: require that each sc_... command start with "@"
241         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
242         "make sc_maint" helps us avoid this nit.
243
244 2012-07-15  Jim Meyering  <meyering@redhat.com>
245
246         maint.mk: add leading "@" to quiet new "make syntax-check" rule
247         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
248
249 2012-07-13  Eric Blake  <eblake@redhat.com>
250
251         maint.mk: new syntax check for HAVE_DECL checks
252         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
253         * cfg.mk
254         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
255         Exempt some false positives.
256         Based on a report by Karel Zak.
257
258         argp: make HAVE_DECL usage consistent
259         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
260         macros, not whether they are defined.
261         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
262         convention with other declaration checks.
263         Reported by Karel Zak, with suggestions from Paul Eggert.
264
265         stat-time: relax license to LGPLv2+
266         * modules/stat-time (License): Relax, with consent of all authors.
267
268         strndup: fix m4 usage error
269         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
270         defined, to either 0 or 1.
271         Reported by Karel Zak.
272
273 2012-07-11  Jim Meyering  <meyering@redhat.com>
274
275         maint: enable the sc_avoid_if_before_free syntax-check rule
276         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
277         (if_before_free_offenders_): Define.
278         (if_before_free_basename_re_): Define.
279         Exempt current files with useless if-before-free.
280
281 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
282
283         gettext: do not assume '#define ... defined ...' behavior
284         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
285         Do not use '#define FOO ... defined BAR ...', as the C standard says
286         it's not portable to expect that this works after macro expansion.
287         Problem reported for gzip by Steven M. Schweda in
288         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
289
290 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
291
292         getloadavg: clean out old Emacs and Autoconf cruft
293         See Glenn Morris in <http://bugs.gnu.org/11905>.
294         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
295         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
296         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
297         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
298
299 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
300
301         bootstrap: let warn be like tests/init.sh's warn_
302         Reported by Jim Meyering.
303         * build-aux/bootstrap (warn): Remove, replaced by...
304         (warnf_, warn_): these.
305         Adjust callers.
306         Shorten messages that no longer fit in 80 columns.
307
308 2012-07-09  Bruno Haible  <bruno@clisp.org>
309
310         getopt: Simplify after Emacs changed.
311         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
312         (gl_GETOPT_IFELSE): Remove macro.
313
314 2012-07-09  Jim Meyering  <meyering@redhat.com>
315
316         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
317         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
318
319         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
320         Bugs in both of those conspired to make the
321         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
322         _sc_search_regexp's handling of non-empty $in_files would filter
323         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
324         choice of in_files value meant there would be no match in most
325         projects, due to the presence of two or more Makefile.in files.
326         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
327         Fix a bug in how a non-empty $$in_files was processed:
328         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
329         in spite of the name, it's a regexp, not a list of file names.
330
331 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
332
333         getloadavg, getopt: fix commentary re configure.in
334         Autoconf is deprecating the name 'configure.in', so change it to
335         to the new name 'configure.ac' in a couple of places.
336         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
337         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
338         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
339         Emacs has renamed it to configure.ac, and it no longer refers
340         to these macros anyway.
341
342         timespec: mark functions with const attributes
343         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
344         Mark with _GL_ATTRIBUTE_CONST.
345
346 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
347
348         canonicalize[-lgpl]: handle "guessing" values when cross-building
349         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
350         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
351         matches "*yes" instead of just "yes".  Regression introduced in commit
352         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
353
354 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
355             Bruno Haible  <bruno@clisp.org>
356
357         canonicalize: make the right guess when cross-compiling to GNU
358         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
359         determine whether cross-compiling to glibc systems, so as to
360         include GNU/Hurd.
361
362 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
363
364         timespec-sub: avoid duplicate include
365         * lib/timespec-sub.c: Do not include <config.h> twice.
366         Reported by Juanma Barranquero.
367
368 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
369
370         bootstrap: use a more consistent error reporting scheme
371         * build-aux/bootstrap (warn, die): New.
372         Use them.
373
374 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
375
376         sys_time: allow too-wide tv_sec
377         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
378         timeval even if tv_sec is wider than time_t.  This allows
379         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
380         as without this patch gnulib replaces struct timeval
381         and OpenBSD futimes therefore has a type mismatch.
382         * doc/posix-headers/sys_time.texi: Mention this.
383
384         pthread: check for both pthread_create and pthread_join
385         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
386         alter the check so that it tests for both pthread_create and
387         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
388         Suggested by Bruno Haible and Richard Yao in
389         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
390
391         parse-datetime: doc tuneup
392         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
393         spacing issues.
394
395 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
396
397         do-release-commit-and-tag: fix the previous commit
398         * build-aux/do-release-commit-and-tag: Actually the test was right,
399         but the comment and the error message were misleading.
400         Fix comment, and improve error message.
401         Perform check first, so that NEWS is not modified uselessly.
402
403         do-release-commit-and-tag: fix typo
404         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
405         _not_ start with a stub.
406
407 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
408
409         pthread: check for pthread_create, not pthread_join
410         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
411         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
412         pthread_join in libc.  I hope this removes the need for all the
413         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
414         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
415
416 2012-07-04  Jim Meyering  <meyering@redhat.com>
417
418         parse-datetime: fix failure to diagnose invalid input
419         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
420         rather than diagnosing the invalid input.  Now it reports this:
421         date: invalid date '\260'
422         * lib/parse-datetime.y (to_uchar): Define.
423         (yylex): Don't sign-extend "other" bytes.
424         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
425         Thanks to Bruno Haible for the patch to this file.
426         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
427         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
428
429 2012-07-03  Jim Meyering  <meyering@redhat.com>
430
431         bootstrap: do not require now-removed build-aux/missing
432         Now that build-aux/missing is, er, missing, bootstrap would
433         silently fail.
434         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
435         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
436         no longer part of gnulib.
437         Diagnose the failure.
438
439 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
440
441         alloca: add support for HP NonStop TNS/E native
442         * lib/alloca.in.h (alloca): Support the new host.
443         From a suggestion by Joachim Schmitz in
444         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
445
446 2012-07-02  Pádraig Brady  <P@draigBrady.com>
447
448         fsusage: remove code not needed on non GNU/Linux systems.
449
450         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
451         Don't include headers no longer needed in this case.
452         * lib/fsusage.c [STAT_STATVFS &&
453         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
454         STAT_STATFS2_FRSIZE to exclude code not used in this case.
455
456 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
457
458         fsusage: include files needed for glibc 2.6 fallback
459         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
460         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
461         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
462         Problem reported by Ludovic Courtès in
463         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
464
465         fsusage: avoid needless check on GNU/Linux
466         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
467         on GNU/Linux systems, since it can't possibly work.
468
469 2012-07-01  Bruno Haible  <bruno@clisp.org>
470
471         log: Fix an autoconf >= 2.64 warning.
472         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
473         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
474
475 2012-06-28  Bruno Haible  <bruno@clisp.org>
476
477         log10f: Fix possible configuration problem.
478         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
479         $LOGF_LIBM.
480         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
481
482 2012-06-28  Bruno Haible  <bruno@clisp.org>
483
484         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
485         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
486         not gl_cv_func_unlink_works.
487         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
488
489 2012-06-27  Eric Blake  <eblake@redhat.com>
490
491         config: drop scripts that automake says are not independent
492         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
493         * build-aux/elisp-comp: Delete.
494         * build-aux/missing: Likewise.
495         * build-aux/ylwrap: Likewise.
496         * modules/elisp-comp: Likewise.
497         * MODULES.html.sh: Drop mention of elisp-comp.
498         * NEWS: Mention this.
499
500 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
501
502         root-uid: new module
503         This is for portability to Tandem's NonStop Kernel.
504         * lib/root-uid.h, modules/root-uid: New files.
505         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
506         * lib/write-any-file.c, tests/test-sethostname2.c:
507         Include "root-uid.h".
508         * lib/euidaccess.c (euidaccess):
509         * lib/pt_chown.c (main):
510         * lib/unlinkdir.c (cannot_unlink_dir):
511         * lib/write-any-file.c (can_write_any_file):
512         * m4/mknod.m4 (gl_FUNC_MKNOD):
513         * tests/test-sethostname2.c (geteuid, main):
514         Don't assume ROOT_UID == 0.
515         * modules/euidaccess (Depends-on):
516         * modules/pt_chown (Depends-on):
517         * modules/sethostname-tests (Depends-on):
518         * modules/unlinkdir (Depends-on):
519         * modules/write-any-file (Depends-on):
520         Add root-uid.
521
522         regex: use locale-independent comparison for codeset name
523         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
524         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
525         for codeset name.
526         * lib/regex_internal.h: Do not include <strings.h>, since we
527         no longer use strcasecmp.
528         * modules/regex (Depends-on): Remove strcase.
529
530 2012-06-23  Bruno Haible  <bruno@clisp.org>
531
532         getopt-posix: No longer guarantee that option processing is resettable.
533         * doc/posix-functions/getopt.texi: Drop description of problem with
534         internal state. Fix info about mingw and msvc9.
535         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
536         option processing by getopt(). Run three test programs instead of one.
537         Simplify cross-compilation guess.
538         * NEWS: Mention the change.
539         Reported by Rich Felker <dalias@aerifal.cx>.
540
541 2012-06-26  Bruno Haible  <bruno@clisp.org>
542
543         argp, regex: Ensure strcasecmp gets declared.
544         * lib/argp-help.c: Include <strings.h>.
545         * lib/regex_internal.h: Likewise.
546         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
547
548 2012-06-24  Bruno Haible  <bruno@clisp.org>
549
550         ptsname_r: Make it consistent with ptsname on AIX.
551         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
552         implementation as for OSF/1.
553         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
554         a pty master.
555
556         ptsname_r: Make it consistent with ptsname on OSF/1.
557         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
558         OSF/1.
559
560 2012-06-24  Bruno Haible  <bruno@clisp.org>
561
562         ttyname_r: Fix result on OSF/1, Solaris.
563         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
564
565 2012-06-24  Bruno Haible  <bruno@clisp.org>
566
567         ptsname_r: Add support for Solaris.
568         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
569         Solaris.
570
571         ptsname_r: Fix test failure on native Windows.
572         * modules/ptsname_r (Depends-on): Add isatty.
573
574         ptsname_r: Fix test failures on IRIX, Solaris.
575         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
576         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
577         accordingly.
578         * lib/ptsname_r.c: Include <fcntl.h>.
579         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
580         set errno if fd is invalid.
581         * tests/test-isatty.c (main): Update comments.
582
583 2012-06-24  Bruno Haible  <bruno@clisp.org>
584
585         ptsname test: Extend test.
586         * tests/test-ptsname.c: Include <errno.h>.
587         (main): Test behaviour with invalid file descriptor.
588
589 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
590
591         time: fix obsolete comment
592         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
593         reference to HAVE_STRUCT_TIMESPEC in comment.
594
595 2012-06-23  Bruno Haible  <bruno@clisp.org>
596
597         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
598         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
599         does not handle abbreviated long options with equivalent
600         disambiguations, set gl_replace_getopt to yes.
601         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
602
603 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
604
605         time_r: fix typo that always overrode localtime_r decl
606         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
607         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
608         not in a standard include.
609
610 2012-06-22  Bruno Haible  <bruno@clisp.org>
611
612         Write "Mac OS X" instead of "MacOS X".
613         * README: Write "Mac OS X" instead of "MacOS X".
614         * build-aux/bootstrap: Likewise.
615         * build-aux/install-reloc: Likewise.
616         * lib/acl-internal.h: Likewise.
617         * lib/acl_entries.c: Likewise.
618         * lib/argp-ba.c: Likewise.
619         * lib/argp-pv.c: Likewise.
620         * lib/config.charset: Likewise.
621         * lib/copy-acl.c: Likewise.
622         * lib/csharpexec.c: Likewise.
623         * lib/euidaccess.c: Likewise.
624         * lib/fbufmode.c: Likewise.
625         * lib/fflush.c: Likewise.
626         * lib/file-has-acl.c: Likewise.
627         * lib/filemode.h: Likewise.
628         * lib/fpurge.c: Likewise.
629         * lib/freadable.c: Likewise.
630         * lib/freadahead.c: Likewise.
631         * lib/freading.c: Likewise.
632         * lib/freadptr.c: Likewise.
633         * lib/freadseek.c: Likewise.
634         * lib/fseeko.c: Likewise.
635         * lib/fseterr.c: Likewise.
636         * lib/fsusage.c: Likewise.
637         * lib/fwritable.c: Likewise.
638         * lib/fwriting.c: Likewise.
639         * lib/get-rusage-as.c: Likewise.
640         * lib/get-rusage-data.c: Likewise.
641         * lib/getdomainname.c: Likewise.
642         * lib/idpriv-drop.c: Likewise.
643         * lib/idpriv-droptemp.c: Likewise.
644         * lib/localcharset.c: Likewise.
645         * lib/locale.in.h: Likewise.
646         * lib/localename.c: Likewise.
647         * lib/mbsrtowcs-state.c: Likewise.
648         * lib/nproc.c: Likewise.
649         * lib/passfd.c: Likewise.
650         * lib/posix_openpt.c: Likewise.
651         * lib/printf-parse.c: Likewise.
652         * lib/progreloc.c: Likewise.
653         * lib/safe-read.h: Likewise.
654         * lib/safe-write.h: Likewise.
655         * lib/sched.in.h: Likewise.
656         * lib/set-mode-acl.c: Likewise.
657         * lib/signal.in.h: Likewise.
658         * lib/stdint.in.h: Likewise.
659         * lib/stdio-impl.h: Likewise.
660         * lib/stdlib.in.h: Likewise.
661         * lib/strtod.c: Likewise.
662         * lib/sys_select.in.h: Likewise.
663         * lib/tcgetsid.c: Likewise.
664         * lib/unistd.in.h: Likewise.
665         * lib/unlockpt.c: Likewise.
666         * lib/vasnprintf.c: Likewise.
667         * lib/vma-iter.c: Likewise.
668         * lib/wcsrtombs-state.c: Likewise.
669         * m4/acl.m4: Likewise.
670         * m4/acosl.m4: Likewise.
671         * m4/asinl.m4: Likewise.
672         * m4/atanl.m4: Likewise.
673         * m4/c-stack.m4: Likewise.
674         * m4/cosl.m4: Likewise.
675         * m4/expl.m4: Likewise.
676         * m4/extensions.m4: Likewise.
677         * m4/fdatasync.m4: Likewise.
678         * m4/fmal.m4: Likewise.
679         * m4/frexp.m4: Likewise.
680         * m4/frexpf.m4: Likewise.
681         * m4/frexpl.m4: Likewise.
682         * m4/fsusage.m4: Likewise.
683         * m4/getdomainname.m4: Likewise.
684         * m4/getloadavg.m4: Likewise.
685         * m4/getopt.m4: Likewise.
686         * m4/gettext.m4: Likewise.
687         * m4/gnulib-common.m4: Likewise.
688         * m4/intdiv0.m4: Likewise.
689         * m4/intlmacosx.m4: Likewise.
690         * m4/largefile.m4: Likewise.
691         * m4/ldexpl.m4: Likewise.
692         * m4/link-follow.m4: Likewise.
693         * m4/locale-ar.m4: Likewise.
694         * m4/locale-fr.m4: Likewise.
695         * m4/locale-ja.m4: Likewise.
696         * m4/locale-tr.m4: Likewise.
697         * m4/locale-zh.m4: Likewise.
698         * m4/locale_h.m4: Likewise.
699         * m4/lock.m4: Likewise.
700         * m4/logl.m4: Likewise.
701         * m4/mathfunc.m4: Likewise.
702         * m4/minus-zero.m4: Likewise.
703         * m4/mktime.m4: Likewise.
704         * m4/mmap-anon.m4: Likewise.
705         * m4/multiarch.m4: Likewise.
706         * m4/nanosleep.m4: Likewise.
707         * m4/nocrash.m4: Likewise.
708         * m4/poll.m4: Likewise.
709         * m4/printf-frexpl.m4: Likewise.
710         * m4/printf.m4: Likewise.
711         * m4/signbit.m4: Likewise.
712         * m4/sinl.m4: Likewise.
713         * m4/sqrtl.m4: Likewise.
714         * m4/strerror_r.m4: Likewise.
715         * m4/tanl.m4: Likewise.
716         * m4/threadlib.m4: Likewise.
717         * m4/ttyname_r.m4: Likewise.
718         * m4/unlink.m4: Likewise.
719         * m4/visibility.m4: Likewise.
720         * m4/wcwidth.m4: Likewise.
721         * tests/minus-zero.h: Likewise.
722         * tests/test-alloca-opt.c: Likewise.
723         * tests/test-copy-acl.sh: Likewise.
724         * tests/test-copy-file.sh: Likewise.
725         * tests/test-fdatasync.c: Likewise.
726         * tests/test-file-has-acl.sh: Likewise.
727         * tests/test-flock.c: Likewise.
728         * tests/test-fsync.c: Likewise.
729         * tests/test-localename.c: Likewise.
730         * tests/test-malloca.c: Likewise.
731         * tests/test-nonblocking-pipe.h: Likewise.
732         * tests/test-nonblocking-socket.h: Likewise.
733         * tests/test-openpty.c: Likewise.
734         * tests/test-posix_openpt.c: Likewise.
735         * tests/test-ptsname.c: Likewise.
736         * tests/test-ptsname_r.c: Likewise.
737         * tests/test-sameacls.c: Likewise.
738         * tests/test-select.h: Likewise.
739         * tests/test-set-mode-acl.sh: Likewise.
740         * tests/test-snprintf-posix.h: Likewise.
741         * tests/test-sprintf-posix.h: Likewise.
742         * tests/test-strtod.c: Likewise.
743         * tests/test-time.c: Likewise.
744         * tests/test-vasnprintf-posix.c: Likewise.
745         * tests/test-vasprintf-posix.c: Likewise.
746         * doc/acl-resources.txt: Likewise.
747         * doc/**/*.texi: Likewise.
748         Reported by Max Horn <max@quendi.de>.
749
750 2012-06-22  Bruno Haible  <bruno@clisp.org>
751
752         grantpt: Relax requirement regarding invalid file descriptors.
753         * lib/grantpt.c: Don't include <fcntl.h>.
754         (grantpt): Don't verify the validity of the file descriptor.
755         * modules/grantpt (Depends-on): Remove fcntl-h.
756         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
757         file descriptors.
758         * doc/posix-functions/grantpt.texi: Document more platforms on which
759         grantpt succeeds for invalid file descriptors.
760         Reported by Rich Felker <dalias@aerifal.cx>.
761
762 2012-06-22  Bruno Haible  <bruno@clisp.org>
763
764         fbufmode test: Don't test unportable behaviour.
765         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
766         (main): Invoke it three times.
767         Reported by Szabolcs Nagy <nsz@port70.net>
768         and Rich Felker <dalias@aerifal.cx>.
769
770 2012-06-21  Bruno Haible  <bruno@clisp.org>
771
772         gnulib-tool: Refactor inctests variable.
773         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
774         (func_modules_transitive_closure,
775         func_modules_transitive_closure_separately,
776         func_import, func_create_testdir): Update.
777
778         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
779         * gnulib-tool: Accept option --without-tests.
780         (func_usage): Document --without-tests option. Rearrange.
781         (inctests): Normalize according to the mode.
782         * NEWS: Mention the change.
783         Suggested by Simon Josefsson.
784
785 2012-06-21  Bruce Korb  <bkorb@gnu.org>
786
787         parse-duration test: Avoid spurious output.
788         * tests/test-parse-duration.sh: Reindent with leading tabs.
789
790 2012-06-21  Jim Meyering  <meyering@redhat.com>
791
792         maint: disable the strncpy prohibition
793         * cfg.mk: Do not prohibit strncpy here.
794
795 2012-06-21  Bruno Haible  <bruno@clisp.org>
796
797         nonblocking: Avoid compilation error on mingw64.
798         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
799         fscanf.
800         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
801         * modules/vfscanf (configure.ac): Likewise.
802         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
803         definition only if stdio.h has prepared it.
804         Reported by Daniel P. Berrange <berrange@redhat.com>.
805
806 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
807
808         gnulib-tool: Use readlink if it is available.
809         * gnulib-tool (func_readlink): Choose function more appropriately.
810
811 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
812
813         posixtm-tests: port to buggy compiler
814         Problem reported by Simon Josefsson in
815         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
816         * modules/posixtm-tests (Depends-on): Add stdint.
817         * tests/test-posixtm.c (struct posixtm_test.t_expected):
818         Now of type int_least64_t, not int64_t, both because that's
819         what INT64_C returns and because int_least64_t works even
820         on 72-bit hosts.
821         (T): Use INT64_C on constants outside the traditional int range,
822         to work around compiler bug noted by Simon.
823
824         mktime: fix integer overflow in 'configure'-time test
825         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
826         after integer overflow.  Problem reported by Rich Felker in
827         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
828         Also, don't look for further instances of a bug if we've already
829         found one instance; this helps 'configure' run faster.
830
831 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
832
833         tmpfile, clean-temp: Fix invocation of GetVersionEx.
834         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
835         GetVersionEx correctly.
836         * lib/clean-temp.c (supports_delete_on_close): Likewise.
837
838 2012-06-20  Bruno Haible  <bruno@clisp.org>
839
840         fdopen: Allow implementations that don't reject invalid fd arguments.
841         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
842         succeeds.
843         Reported by Rich Felker <dalias@aerifal.cx>.
844
845 2012-06-20  Simon Josefsson  <simon@josefsson.org>
846
847         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
848         bring in LIBINTL.
849
850 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
851
852         init.sh: do not rely on autoupated PWD
853         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
854         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
855         Although Nelson's bug was not necessarily fixed by this patch,
856         it seems wise to make the change for safety.
857         * tests/init.sh (path_prepend_): Do not rely on PWD updating
858         automagically after 'cd'; this is not reliable on older shells.
859         (setup_): Fail if we cannot cd to temporary directory.
860
861 2012-06-19  Bruno Haible  <bruno@clisp.org>
862
863         stat, fstat: Avoid warnings on mingw64.
864         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
865         redefining.
866         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
867         Reported by Daniel P. Berrange <berrange@redhat.com>.
868
869 2012-06-19  Bruno Haible  <bruno@clisp.org>
870
871         stdioext: Add support for musl libc.
872
873         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
874         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
875
876         * m4/fseterr.m4: New file.
877         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
878         function exists.
879         * modules/fseterr (Files): Add m4/fseterr.m4.
880         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
881         __fseterr does not exist.
882         (Makefile.am): Remove fseterr.c from lib_SOURCES.
883
884         * lib/freadable.h: Update comment.
885
886         * lib/fwritable.h: Update comment.
887
888         * lib/freading.h: Update comment.
889
890         * lib/fwriting.h: Update comment.
891
892         * m4/freadahead.m4: New file.
893         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
894         that function exists.
895         * modules/freadahead (Files): Add m4/freadahead.m4.
896         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
897         __freadahead does not exist.
898         (Makefile.am): Remove freadahead.c from lib_SOURCES.
899
900         * m4/freadptr.m4: New file.
901         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
902         function exists.
903         * modules/freadptr (Files): Add m4/freadptr.m4.
904         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
905         __freadptr does not exist.
906         (Makefile.am): Remove freadptr.c from lib_SOURCES.
907
908         * m4/freadseek.m4: New file.
909         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
910         exists.
911         * modules/freadseek (Files): Add m4/freadseek.m4.
912         (configure.ac): Invoke gl_FUNC_FREADSEEK.
913
914         * lib/fpurge.c (fpurge): Update comment.
915
916         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
917
918 2012-06-19  Bruno Haible  <bruno@clisp.org>
919
920         *printf-posix: Put more info into config.log.
921         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
922         exit code into config.log.
923
924 2012-06-19  Bruno Haible  <bruno@clisp.org>
925
926         getopt-gnu: Fix exit code overflow in autoconf test.
927         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
928         to keep them below < 128.
929
930 2012-06-17  Jim Meyering  <meyering@redhat.com>
931
932         maint.mk: fix typo in code to derive GPG key at release time
933         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
934
935 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
936
937         regex: avoid warning when pointers are not long
938         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
939         and uintptr_t, not long, for portability to hosts where pointers and
940         long have different sizes.  Issue noted by Daniel P. Berrange in
941         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
942         and fix suggested by Bruno Haible in
943         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
944
945 2012-06-17  Bruno Haible  <bruno@clisp.org>
946
947         dummy: Relicense into the public domain.
948         * modules/dummy (License): Set to "public domain".
949         Suggested by Reuben Thomas.
950
951 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
952
953         announce-gen: VPATH issues
954         * build-aux/announce-gen (--srcdir): New option, used to trim the
955         $srcdir part of the path from $builddir to NEWS.
956         * top/maint.mk (announcement): Adjust.
957
958 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
959
960         gnu-web-doc-update: VPATH builds
961         * build-aux/gnu-web-doc-update (--builddir): New option.
962         Revamp the handling of options.
963         Prefer $(...) to `...`.
964         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
965         the template, and it is GNU mktemp specific.
966         Prefer set -e to long series of &&.
967         Restore the initial git branch, not "master".
968         Properly initialize submodules (don't rely only on bootstrap).
969         Do not reconfigure blindly, use config.status.
970         * top/README-release: Update instructions for gnu-web-doc-update.
971
972 2012-06-11  Jim Meyering  <meyering@redhat.com>
973
974         maint.mk: revert most of the previous change re "all these"
975         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
976         For rationale, see the discussion at
977         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
978
979 2012-06-10  Karl Berry  <karl@gnu.org>
980
981         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
982
983         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
984
985 2012-06-10  Bruce Korb  <bkorb@gnu.org>
986
987         parse-duration: Relicense under LGPLv2+.
988         * modules/parse-duration (License): Change to LGPLv2+.
989
990 2012-06-10  Jim Meyering  <meyering@redhat.com>
991
992         maint.mk: prohibit common grammar error: "all these"
993         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
994         the list of prohibited word sequences.  It should be "all of these".
995         * lib/tempname.c (__gen_tempname): Fix one of them.
996
997 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
998
999         do-release-commit-and-tag: support VPATH builds
1000         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
1001         (noteworthy): Defined earlier to factor its value.
1002         (noteworthy_stub): New.
1003         Use it to factor.
1004         (help_version): Split into...
1005         (help, version): these.
1006         Adjust the option processing part.
1007         Support "--option=value" in addition to "--option value".
1008         (builddir): New.
1009         (--builddir): New option.
1010         * top/README-release: Document this.
1011         Reword slightly so that the reader cannot understand that he
1012         has to do these steps before calling do-release-commit-and-tag.
1013
1014 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
1015
1016         readme-release: also require announce-gen and maintainer-makefile
1017         * modules/readme-release (Depends-on): here.
1018         * modules/announce-gen, modules/do-release-commit-and-tag,
1019         modules/gnu-web-doc-update, modules/maintainer-makefile
1020         (Description): Point to readme-release.
1021
1022 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
1023
1024         maint.mk: fix VPATH issues.
1025         * top/maint.mk (news-check): GNU Make understand $< very well.
1026         (release-prep): NEWS is in $(srcdir).
1027
1028 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
1029
1030         readme-release: require the promoted modules.
1031         * modules/readme-release (Depends-on): Add
1032         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
1033         in this text.
1034
1035 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1036             Bruno Haible  <bruno@clisp.org>
1037
1038         error, strerror-override: Support mingw64 from Fedora 17.
1039         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
1040         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
1041         EINPROGRESS.
1042         * lib/strerror-override.h (strerror_override): Test it.
1043         * lib/strerror-override.c (strerror_override): Likewise.
1044         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
1045
1046 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1047             Bruno Haible  <bruno@clisp.org>
1048
1049         error, strerror-override: Support mingw64 from Fedora 17.
1050         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
1051         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
1052         * lib/strerror-override.h (strerror_override): Test it.
1053         * lib/strerror-override.c (strerror_override): Likewise.
1054
1055 2012-06-03  Bruno Haible  <bruno@clisp.org>
1056
1057         error, strerror-override: Support new errno values from POSIX:2008.
1058         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
1059         ENOTRECOVERABLE.
1060         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
1061         platforms.
1062         * lib/strerror-override.c (strerror_override): Conditionalize the
1063         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
1064         * lib/strerror-override.h (strerror_override): Declare also if
1065         GNULIB_defined_EOWNERDEAD is defined.
1066         * tests/test-errno.c (e130, e131): New variables.
1067         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
1068         ENOTRECOVERABLE.
1069         Reported by Paolo Bonzini.
1070
1071 2012-05-31  Jim Meyering  <meyering@redhat.com>
1072
1073         savewd: add missing dependency on sys_wait module
1074         * modules/savewd (Depends-on): Add sys_wait, needed at least
1075         for MSVC.  Report and suggested change by Michael Goffioul.
1076
1077 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1078
1079         system-quote-tests: port to CentOS 5
1080         Problem reported by Tom G. Christensen in
1081         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
1082         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
1083
1084 2012-05-29  Jim Meyering  <meyering@redhat.com>
1085
1086         maint: fix typos in comments and ChangeLog
1087         Culprits identified and fixed mostly automatically using these commands:
1088         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
1089         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
1090         using http://github.com/lyda/misspell-check
1091         * ChangeLog: Fix typos.
1092         * doc/solaris-versions: Likewise.
1093         * lib/regexec.c (re_search_stub): Likewise.
1094         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
1095
1096 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
1097
1098         manywarnings: remove duplicate -Wmultichar entry
1099         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
1100         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
1101         so keep the entry marked as documented.
1102
1103 2012-05-27  Karl Berry  <karl@gnu.org>
1104
1105         * config/srclist.txt (mktime.c): remove last libc sync,
1106         perhaps just temporarily.
1107
1108 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
1109
1110         regex: don't assume uint64_t or uint32_t
1111         * lib/regcomp.c (init_word_char): Don't assume that the types
1112         uint64_t and uint32_t exist.  The C standard doesn't guarantee
1113         them, and on some 32-bit compilers there is no uint64_t.
1114         Problem reported by Gianluigi Tiesi in
1115         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
1116
1117 2012-05-25  Jim Meyering  <meyering@redhat.com>
1118
1119         maint.mk: add strncpy-prohibiting syntax-check rule
1120         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
1121
1122 2012-05-24  Jim Meyering  <meyering@redhat.com>
1123
1124         maint.mk: compute $(gpg_key_ID) more portably
1125         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
1126         That use of sed is not portable to some fringe systems.
1127         Reported by Paul Eggert in
1128         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
1129
1130 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1131
1132         mktime: sync from glibc
1133         * config/srclist.txt: Uncomment mktime.c.
1134         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
1135         First, indent with tabs, since glibc uses tabs and doesn't want to
1136         change and we'd rather be identical to glibc.  Also, two small
1137         coding changes:
1138         (isdst_differ): Use &&, not &, as && is the usual style.
1139         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
1140         for clarity.
1141
1142 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
1143
1144         announce-gen: du -h is more portable than du --human
1145         * build-aux/announce-gen (sizes): Invoke du with -h instead
1146         of --human.  Accept leading white space in its output.
1147
1148 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
1149
1150         announce-gen: Improve diagnostics.
1151         * build-aux/announce-gen: When parsing command line options,
1152         prefer "announce-gen: option --release-type requires an argument"
1153         to "Option release-type requires an argument".
1154
1155 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
1156
1157         maint.mk: gpg_key_ID: use sed more portably
1158         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
1159         the closing brace.
1160         (refresh-po): Fuse two sed invocations into one.
1161
1162 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
1163
1164         gitlog-to-changelog: support the log message format used in Bison.
1165         * build-aux/gitlog-to-changelog: Support --strip-tab and
1166         --strip-cherry-picked.
1167
1168 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1169
1170         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
1171         the rest of the current time slice to another thread in the current
1172         process. So if the thread that feeds the file decscriptor we're
1173         polling is not in the current process, we get busy-waiting.
1174         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
1175         Patch from Theodore Leblond.
1176         * lib/select.c: Split polling out of the loop that sets the output
1177         fd_sets.  Check for zero result and loop if the wait timeout is
1178         infinite.
1179
1180 2012-05-21  Simon Josefsson  <simon@josefsson.org>
1181
1182         select: Fix build error on IRIX 6.5.
1183         * lib/select.c: Include stddef.h for NULL.
1184
1185 2012-05-21  Simon Josefsson  <simon@josefsson.org>
1186
1187         gc: fix libgcrypt detection on older machines.
1188         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
1189         copyright years because the file has been distributed every year
1190         since it was created.
1191
1192 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
1193
1194         crypto: fix bug in large buffer handling
1195         Problem reported by Serge Belyshev for glibc in
1196         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
1197         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
1198         * lib/md4.c (md4_process_block):
1199         * lib/md5.c (md5_process_block):
1200         * lib/sha1.c (sha1_process_block):
1201         * lib/sha256.c (sha256_process_block):
1202         Don't assume the buffer length is less than 2**32.
1203         * lib/sha512.c (sha512_process_block): Likewise.
1204         Here, the bug is present only in the rare case where the host does
1205         not support uint64_t or where size_t is wider than 64 bits.
1206         Use u64size to work around the problems.
1207         * lib/u64.h (u64size): New macro.
1208
1209 2012-05-15  Pádraig Brady  <P@draigBrady.com>
1210
1211         fsusage: fix block size returned on older Linux 2.6
1212
1213         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
1214         which is available since Linux 2.6.
1215         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
1216         when the member is available so it can be used as a fallback.
1217         * doc/posix-functions/statvfs.texi: Mention the hang issue
1218         on Linux < 2.6.36.
1219
1220 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
1221
1222         bootstrap: suppress stderr chatter
1223         * build-aux/bootstrap (insert_sorted_if_absent, main program):
1224         Omit unnecessary chatter to stderr.  The main program chatter
1225         was there only inadvertantly.
1226
1227         bootstrap: .gitignore files created by autopoint, libtool
1228         I ran into this problem when bootstrapping the latest diffutils.
1229         After './bootstrap', 'git status' reported lots of untracked files
1230         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
1231         autopoint and do not need to be version-controlled.
1232         * build-aux/bootstrap: Put into .gitignore the files that
1233         autopoint and libtool create, by keeping track of files that exist
1234         after but not before these programs are run.
1235         (version_controlled_file): Move up.  2nd arg is now full file
1236         name, not base name; this is more convenient.  Put CVS at the end,
1237         as it's now somewhat deprecated.
1238
1239 2012-05-14  Jim Meyering  <meyering@redhat.com>
1240
1241         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
1242         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
1243         definition.  Reported by Bruno Haible.
1244
1245 2012-05-13  Bruno Haible  <bruno@clisp.org>
1246             Paul Eggert  <eggert@cs.ucla.edu>
1247
1248         binary-io: Define set_binary_mode function.
1249         * lib/binary-io.h (set_binary_mode): New function.
1250         (SET_BINARY): Define in terms of set_binary_mode.
1251         * modules/binary-io (configure.ac): Require AC_C_INLINE.
1252         * tests/test-binary-io.c (main): Accept an argument, and test either
1253         set_binary_mode or SET_BINARY depending on the argument.
1254         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
1255         argument. Clean up also t-bin-out0.tmp.
1256
1257 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
1258
1259         bootstrap: take advantage of POSIX shell features
1260
1261         The 'bootstrap' script offered by Gnulib script already uses POSIX
1262         shell features (like $((...)) arithmetic expansions) that are not
1263         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
1264         means that bootstrap must already be run using a proper POSIX shell,
1265         which will thus provide more features, like ${var#pattern} parameter
1266         expansion or inversion of a command exit status with '!'.  We can
1267         thus use these features to improve the clarity and the performances
1268         of the bootstrap script.
1269
1270         Suggested by Eric Blake.
1271
1272         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
1273         of sed/expr plus command substitutions, to save some forks.  While
1274         we are at it, prefer the POSIX $(...) form of command substitution,
1275         rather than the legacy form `...` (since the former is visually
1276         clearer and interacts better with quoting), and prefer the idiom:
1277           "if ! CMD; then ACTION ..."
1278         over the idiom:
1279           "if CMD; then :; else ACTION ..."
1280         which was required by legacy Bourne shells not supporting '!'.
1281
1282 2012-05-12  Bruno Haible  <bruno@clisp.org>
1283
1284         system-quote: Add more comments.
1285         * lib/system-quote.h: Add more comments about wilcards and limitations.
1286         Suggested by Eli Zaretskii <eliz@gnu.org>.
1287
1288         sh-quote, system-quote: Add comments about wildcards.
1289         * lib/sh-quote.h: Clarify what happens with wildcard characters.
1290         * lib/system-quote.h: Likewise.
1291         Reported by Eli Zaretskii <eliz@gnu.org>.
1292
1293 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1294
1295         fsusage: check for GNU/Linux statvfs problem dynamically
1296         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
1297         Define STAT_STATFS2_BSIZE too, since in this case the code now
1298         checks dynamically whether statvfs is reliable, falling back on
1299         Linux-style statfs otherwise.
1300         (statvfs_works): New function, for dynamically testing statvfs.
1301         (get_fs_usage) [STAT_STATVFS]: Use it.
1302         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
1303         statvfs on GNU/Linux hosts, since it's now done dynamically.
1304
1305 2012-05-10  Bruno Haible  <bruno@clisp.org>
1306
1307         system-quote, execute, spawn-pipe: Escape '?' on Windows.
1308         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
1309         '?' character.
1310         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
1311         * tests/test-system-quote-main.c (check_all): Check also strings like
1312         "??????????".
1313         Reported by Eli Zaretskii <eliz@gnu.org>.
1314
1315 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1316
1317         _Noreturn: port config.h to gcc -Wundef
1318         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
1319         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
1320         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
1321
1322 2012-05-10  Bruno Haible  <bruno@clisp.org>
1323
1324         system-quote: Refactor.
1325         * lib/system-quote.h (system_quote_copy): Fix comment.
1326         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
1327         New functions, extracted from system_quote_copy.
1328         (system_quote_length, system_quote_copy): Use these functions.
1329         Reported by Paul Eggert.
1330
1331 2012-05-08  Bruno Haible  <bruno@clisp.org>
1332
1333         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
1334         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
1335
1336 2012-05-08  Bruno Haible  <bruno@clisp.org>
1337
1338         Tests for module 'system-quote'.
1339         * modules/system-quote-tests: New file.
1340         * tests/test-system-quote.sh: New file.
1341         * tests/test-system-quote-main.c: New file.
1342         * tests/test-system-quote-child.c: New file.
1343
1344         New module 'system-quote'.
1345         * lib/system-quote.h: New file.
1346         * lib/system-quote.c: New file.
1347         * modules/system-quote: New file.
1348
1349 2012-05-08  Bruno Haible  <bruno@clisp.org>
1350
1351         sh-quote: Make C++ safe and allow multiple inclusion.
1352         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
1353         declarations in extern "C".
1354
1355 2012-05-08  Bruno Haible  <bruno@clisp.org>
1356
1357         sh-quote tests: Make tests stricter.
1358         * tests/test-sh-quote.c (check_one): Check the return value of
1359         shell_quote_copy.
1360         (main): Check a string with a CR character. Check a string that
1361         contains UCHAR_MAX.
1362
1363 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
1364
1365         warnings.m4: provide a means to specify the program to compile.
1366         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
1367         (gl_WARN_ADD): here.
1368         Use gl_AS_VAR_APPEND.
1369         Support an argument to specify the program to compile.
1370         (gl_WARN_ADD): Accept an argument to specify the program to compile.
1371         AC_SUBST the WARN_CFLAGS when they are used.
1372         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
1373         leave this to gl_WARN_ADD.
1374
1375 2012-05-08  Eric Blake  <eblake@redhat.com>
1376
1377         doc: recommendations on gettext version
1378         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
1379         choice between versions.
1380         * DEPENDENCIES (gettext): Cover both approaches.
1381
1382 2012-05-08  Jim Meyering  <meyering@redhat.com>
1383
1384         init.sh: explain why EXEEXT support uses aliases rather than functions
1385         * tests/init.sh: Add a comment.
1386
1387         init.sh: don't let bash aliases interfere with tests
1388         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
1389         is bash.  This avoids problems for those who alias standard commands to
1390         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
1391         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
1392
1393 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1394
1395         stdint: be more consistent with glibc, SunOS libc
1396         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
1397         (gl_int_fast16_t, gl_uint_fast16_t)
1398         (gl_int_fast32_t, gl_uint_fast32_t)
1399         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
1400         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
1401         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
1402         Be consistent with glibc by default, and with SunOS 5.10 and later
1403         if __sun is defined.  This lessens the likelihood of clashes if
1404         code compiled for older hosts is combined with code compiled for
1405         newer ones.  Problem reported by Niels Möller in
1406         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
1407
1408 2012-05-07  Eric Blake  <eblake@redhat.com>
1409
1410         isatty: relax license to LGPLv2+
1411         * modules/isatty (License): Relax license.
1412
1413 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
1414
1415         stat-size: comment fix
1416         * lib/stat-size.h: Remove obsolete comment about indenting.
1417
1418 2012-05-06  Bruno Haible  <bruno@clisp.org>
1419
1420         Tests for module 'sh-quote'.
1421         * modules/sh-quote-tests: New file.
1422         * tests/test-sh-quote.c: New file.
1423
1424 2012-05-06  Bruno Haible  <bruno@clisp.org>
1425
1426         sh-quote: Improve shell_quote_argv's signature.
1427         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
1428         * lib/sh-quote.c (shell_quote_argv): Likewise.
1429
1430 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
1431
1432         stdint: document issues with int_fast8_t etc.
1433         * doc/posix-headers/stdint.texi (stdint.h): Say that other
1434         stdint.h substitutes may define these types differently.  See
1435         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
1436
1437 2012-05-05  Bruno Haible  <bruno@clisp.org>
1438
1439         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
1440         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
1441         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
1442         or 'guessing no (mishandles large arguments)'.
1443
1444 2012-05-05  Bruno Haible  <bruno@clisp.org>
1445
1446         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
1447         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
1448         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
1449         set gl_cv_func_link_follows_symlink to "guessing no".
1450
1451 2012-05-05  Bruno Haible  <bruno@clisp.org>
1452
1453         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
1454         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
1455         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
1456         "guessing no".
1457         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
1458
1459 2012-05-05  Bruno Haible  <bruno@clisp.org>
1460
1461         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
1462         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
1463         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
1464         set gl_cv_struct_dirent_d_ino to "guessing yes".
1465
1466 2012-05-05  Bruno Haible  <bruno@clisp.org>
1467
1468         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
1469         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
1470         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
1471         "guessing yes".
1472
1473 2012-05-05  Bruno Haible  <bruno@clisp.org>
1474
1475         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
1476         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
1477         compiling to a glibc system, set gl_cv_func_signbit and
1478         gl_cv_func_signbit_gcc to "guessing yes".
1479
1480 2012-05-05  Bruno Haible  <bruno@clisp.org>
1481
1482         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
1483         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
1484         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
1485         to "guessing yes".
1486         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
1487         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
1488
1489 2012-05-05  Bruno Haible  <bruno@clisp.org>
1490
1491         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
1492         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
1493         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
1494         gl_cv_func_realpath_works to "guessing yes".
1495
1496 2012-05-05  Bruno Haible  <bruno@clisp.org>
1497
1498         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
1499         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
1500         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
1501
1502 2012-05-04  Bruno Haible  <bruno@clisp.org>
1503
1504         Tweak last commit.
1505         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
1506         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1507
1508 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
1509
1510         unistd_h: make it easier to avoid sys_types_h
1511         This is useful for Emacs, which has its own method of porting to
1512         Windows, and which therefore does not need the sys_types_h module.
1513         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
1514         code moved here from gl_SYS_TYPES_H.
1515         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
1516         using the code directly.
1517         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
1518         gl_SYS_TYPES_H.
1519         * modules/sys_types (Files):
1520         * modules/unistd (Files): Add m4/off_t.m4.
1521
1522 2012-05-03  Bruno Haible  <bruno@clisp.org>
1523
1524         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
1525         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
1526         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
1527         "guessing yes" or "guessing no".
1528         (gl_FUNC_LSTAT): Update.
1529         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
1530         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
1531         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
1532
1533 2012-05-03  Bruno Haible  <bruno@clisp.org>
1534
1535         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
1536         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
1537         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
1538         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
1539         cross-compiling, choose the first alternative on glibc systems.
1540         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
1541
1542 2012-05-03  Bruno Haible  <bruno@clisp.org>
1543
1544         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
1545         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
1546         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
1547
1548 2012-05-03  Bruno Haible  <bruno@clisp.org>
1549
1550         chown: Avoid "guessing no" when cross-compiling to glibc systems.
1551         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
1552
1553 2012-05-03  Bruno Haible  <bruno@clisp.org>
1554
1555         Avoid "guessing no" guesses when cross-compiling to glibc systems.
1556         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
1557         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
1558         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
1559         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
1560         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
1561         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
1562         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
1563         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
1564         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
1565         compiling to glibc systems, set gl_cv_func_chown_slash_works,
1566         gl_cv_func_chown_ctime_works to "guessing yes".
1567         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
1568         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
1569         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
1570         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
1571         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
1572         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
1573         compiling to glibc systems, set gl_cv_func_open_directory_works to
1574         "guessing yes".
1575         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
1576         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
1577         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
1578         "guessing yes".
1579         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
1580         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
1581         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
1582         compiling to glibc systems, set gl_cv_func_floorf_ieee to
1583         "guessing yes".
1584         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
1585         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
1586         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
1587         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
1588         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
1589         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
1590         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
1591         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
1592         "guessing yes".
1593         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
1594         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
1595         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
1596         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
1597         "guessing yes".
1598         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
1599         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
1600         "guessing yes".
1601         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
1602         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
1603         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
1604         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
1605         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
1606         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
1607         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
1608         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
1609         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
1610         compiling to glibc systems, set gl_cv_func_log10f_ieee to
1611         "guessing yes".
1612         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
1613         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
1614         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
1615         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
1616         "guessing yes".
1617         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
1618         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
1619         "guessing yes".
1620         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
1621         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
1622         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
1623         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
1624         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
1625         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
1626         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
1627         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
1628         compiling to glibc systems, set gl_cv_func_mkfifo_works to
1629         "guessing yes".
1630         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
1631         compiling to glibc systems, set gl_cv_func_mknod_works to
1632         "guessing yes".
1633         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
1634         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
1635         "guessing yes".
1636         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
1637         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
1638         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
1639         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
1640         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
1641         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
1642         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
1643         compiling to glibc systems, set gl_cv_func_svid_putenv to
1644         "guessing yes".
1645         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
1646         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
1647         "guessing yes".
1648         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
1649         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
1650         "guessing yes".
1651         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
1652         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
1653         to "guessing yes".
1654         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
1655         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
1656         to "guessing yes".
1657         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
1658         compiling to glibc systems, set gl_cv_func_rmdir_works to
1659         "guessing yes".
1660         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
1661         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
1662         gl_cv_func_unlink_parent_fails to "guessing yes".
1663         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
1664         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
1665         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
1666         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
1667         gl_cv_func_rename_dest_works to "guessing yes".
1668         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
1669         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
1670         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
1671         compiling to glibc systems, set gl_cv_func_roundf_ieee to
1672         "guessing yes".
1673         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
1674         compiling to glibc systems, set gl_cv_func_roundl_ieee to
1675         "guessing yes".
1676         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
1677         compiling to glibc systems, set gl_cv_func_setenv_works to
1678         "guessing yes".
1679         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
1680         compiling to glibc systems, set gl_cv_func_unsetenv_works to
1681         "guessing yes".
1682         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
1683         compiling to glibc systems, set gl_cv_func_sleep_works to
1684         "guessing yes".
1685         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
1686         compiling to glibc systems, set gl_cv_func_stat_file_slash to
1687         "guessing yes".
1688         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
1689         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
1690         "guessing yes".
1691         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
1692         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
1693         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
1694         compiling to glibc systems, set gl_cv_func_truncf_ieee to
1695         "guessing yes".
1696         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
1697         compiling to glibc systems, set gl_cv_func_truncl_ieee to
1698         "guessing yes".
1699         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
1700         compiling to glibc systems, set gl_cv_func_usleep_works to
1701         "guessing yes".
1702         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
1703         compiling to glibc systems, set gl_cv_func_futimesat_works to
1704         "guessing yes".
1705
1706 2012-05-03  Bruno Haible  <bruno@clisp.org>
1707
1708         Say "guessing yes" or "guessing no" when cross-compiling.
1709         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
1710         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
1711         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
1712         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
1713         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
1714         am_cv_func_working_getline to "guessing yes" or "guessing no".
1715         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
1716         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
1717         (gl_FUNC_MEMMEM): When cross-compiling, set
1718         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
1719         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
1720         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
1721         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
1722         set gl_cv_func_strcasestr_works_always to "guessing yes" or
1723         "guessing no".
1724         (gl_FUNC_STRCASESTR): When cross-compiling, set
1725         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
1726         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
1727         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
1728         (gl_FUNC_STRSTR): When cross-compiling, set
1729         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
1730         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
1731         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
1732         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
1733         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
1734
1735 2012-05-01  Bruno Haible  <bruno@clisp.org>
1736
1737         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
1738         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
1739         * build-aux/reloc-ldflags: Likewise.
1740         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
1741
1742 2012-05-01  Bruno Haible  <bruno@clisp.org>
1743
1744         gnulib-tool: Remove transitional code.
1745         * gnulib-tool: Don't warn about --import with 0 arguments any more.
1746         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1747
1748 2012-05-01  Bruno Haible  <bruno@clisp.org>
1749
1750         getcwd: Fix misindentation.
1751         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
1752
1753 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1754
1755         exclude: process exclude and include directives in order
1756         This restores the pre-2009 behavior, and is part of a fix of a
1757         grep bug reported by Quentin Arce in
1758         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
1759         * lib/exclude.c (struct exclude): Remove 'tail' member.
1760         (new_exclude_segment): Prepend the new segment instead of appending.
1761         Return void, since that's now more convenient.
1762         (file_pattern_matches): Renamed from excluded_file_pattern_p.
1763         (file_name_matches): Renamed from excluded_file_name_p.
1764         (file_pattern_matches, file_name_matches):
1765         Return true if the pattern matches, not if it excludes.
1766         All callers changed.
1767         (excluded_file_name): Process the list in reverse order;
1768         since the list is now reversed this restores the pre-2009 behavior.
1769         (add_exclude): Adjust to new reversed-order list.  Use local var
1770         rather than macro, for clarity.
1771         * tests/test-exclude7.sh: Adjust to corrected behavior.
1772
1773         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
1774         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
1775         it's not possible here.  Handle the case of \ at end of pattern
1776         without dumping core.
1777         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
1778
1779         _Noreturn: future-proof non-GNU and non-MSVC compilers
1780         * build-aux/snippet/_Noreturn.h (_Noreturn):
1781         * m4/gnulib-common.m4 (gl_COMMON_BODY):
1782         Do not define _Noreturn if __STDC_VERSION__ indicates this is
1783         C11 or later.  This is more likely to work with random future C
1784         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
1785         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
1786
1787         exclude: handle wildcards with FNM_EXTMATCH
1788         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
1789         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
1790         comment that "has wildcards" really means "has or may have
1791         wildcards".  Simplify by avoiding the need to call strcspn.
1792
1793 2012-04-29  Bruno Haible  <bruno@clisp.org>
1794
1795         gnulib-tool: Fix list of authors.
1796         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
1797
1798 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
1799
1800         bootstrap: support Automake-NG in $buildreq
1801         * bootstrap (check_versions): Handle automake and aclocal from
1802         Automake-NG specially.  They can be specified as respectively
1803         the "automake-ng" and "aclocal-ng" requirements.
1804
1805 2012-04-25  Eric Blake  <eblake@redhat.com>
1806
1807         bootstrap: only force latest Makefile.in.in for gettext module
1808         * build-aux/bootstrap (with_gettext): Only install latest
1809         Makefile.in.in for projects requesting bleeding edge gettext.
1810
1811 2012-04-22  Bruno Haible  <bruno@clisp.org>
1812
1813         doc: Mention reason for replacement on glibc/Linux systems.
1814         * doc/posix-functions/dprintf.texi: Mention the problem with special
1815         'long double' values.
1816         * doc/posix-functions/fprintf.texi: Likewise.
1817         * doc/posix-functions/printf.texi: Likewise.
1818         * doc/posix-functions/snprintf.texi: Likewise.
1819         * doc/posix-functions/sprintf.texi: Likewise.
1820         * doc/posix-functions/vdprintf.texi: Likewise.
1821         * doc/posix-functions/vfprintf.texi: Likewise.
1822         * doc/posix-functions/vprintf.texi: Likewise.
1823         * doc/posix-functions/vsnprintf.texi: Likewise.
1824         * doc/posix-functions/vsprintf.texi: Likewise.
1825         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
1826         platforms with F_DUPFD_CLOEXEC problems.
1827         * doc/posix-functions/glob.texi: Mention which platforms are affected
1828         by the problem with symbolic links.
1829         * doc/posix-functions/linkat.texi: Mention the problem with
1830         AT_SYMLINK_FOLLOW on Linux.
1831
1832 2012-04-22  Bruno Haible  <bruno@clisp.org>
1833
1834         pwrite: Don't replace on all platforms.
1835         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
1836
1837 2012-04-22  Bruno Haible  <bruno@clisp.org>
1838
1839         rint* tests: Avoid gcc warnings.
1840         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
1841         * tests/test-rintf.c (INFINITY, NAN): Likewise.
1842         * tests/test-rintl.c (INFINITY, NAN): Likewise.
1843
1844 2012-04-21  Bruno Haible  <bruno@clisp.org>
1845
1846         users.txt: Update.
1847         * users.txt: Add freedink, wdiff. Update URLs for projects that have
1848         switched from CVS to git, bzr, or svn.
1849
1850 2012-04-21  Bruno Haible  <bruno@clisp.org>
1851
1852         Large File Support for native Windows platforms.
1853
1854         * m4/largefile.m4 (gl_LARGEFILE): New macro.
1855         * modules/largefile (configure.ac): Require gl_LARGEFILE.
1856
1857         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
1858         type.
1859         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
1860         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
1861         * doc/posix-headers/sys_types.texi: Mention the effect of the
1862         'largefile' module.
1863
1864         * lib/fcntl.in.h: Add comments about off_t.
1865         * modules/fcntl-h (Depends-on): Add sys_types.
1866
1867         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
1868         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
1869         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
1870         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
1871         * modules/unistd (Depends-on): Add sys_types.
1872         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
1873
1874         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
1875         instead of lseek.
1876         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
1877         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
1878         * modules/lseek (Depends-on): Add sys_types.
1879
1880         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
1881         msvc-nothrow.h.
1882         (SetFileSize): New function.
1883         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
1884         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
1885         if Large File Support is requested.
1886         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
1887         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
1888
1889         * lib/stdio.in.h: Add comments about off_t.
1890         * modules/stdio (Depends-on): Add sys_types.
1891
1892         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
1893         instead of ftello.
1894         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
1895         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
1896         (gl_PREREQ_FTELLO): New macro.
1897         * modules/ftello (Depends-on): Add sys_types.
1898         (configure.ac): Incoke gl_PREREQ_FTELLO.
1899
1900         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
1901         instead of fseeko.
1902         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
1903         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
1904         (gl_PREREQ_FSEEKO): New macro.
1905         * modules/fseeko (Depends-on): Add sys_types.
1906         (configure.ac): Invoke gl_PREREQ_FSEEKO.
1907
1908         * lib/sys_stat.in.h: Add comments about off_t.
1909         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
1910         64-bit integer for st_size in 'struct stat'.
1911         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
1912         Define _GL_WINDOWS_64_BIT_ST_SIZE.
1913         * modules/sys_stat (Depends-on): Add sys_types.
1914         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
1915
1916         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
1917         instead of stat or _stat.
1918
1919         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
1920         'struct _stati64' instead of fstat and 'struct stat'.
1921         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
1922         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
1923
1924         Reported by Ray Satiro <raysatiro@yahoo.com>.
1925
1926 2012-04-19  Eric Blake  <eblake@redhat.com>
1927
1928         bootstrap: accommodate older libtool
1929         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
1930         Reported by Daniel P. Berrange.
1931
1932 2012-04-19  Jim Meyering  <meyering@redhat.com>
1933
1934         announce-gen: avoid failure due to lack of Digest::SHA1
1935         Even with the preferred Digest::SHA available, this script
1936         would fail when the backup module, Digest::SHA1, was not installed.
1937         * build-aux/announce-gen: Quote the conditional use of "use".
1938         Reported by Reuben Thomas in:
1939         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
1940
1941         bootstrap: don't let a user's CDPATH setting affect this script
1942         When CDPATH is set, cd will sometimes generate output.
1943         When "cd" is run in a subshell whose output matters, that
1944         surprising-to-some output can cause malfunction.
1945         Unsetting CDPATH turns off this shell "feature."
1946         * build-aux/bootstrap (CDPATH): Unset.
1947         Reported by Reuben Thomas in:
1948         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
1949         and inspired by his patch here:
1950         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
1951
1952 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
1953         and Jim Meyering  <meyering@redhat.com>
1954
1955         maint.mk: catch "see @xref{}" and similar
1956         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
1957         prohibit "See also @xref{", "Also see @pxref{", and similar.
1958
1959 2012-04-16  Jim Meyering  <meyering@redhat.com>
1960
1961         bootstrap: really use gnulib's po/Makefile.in.in
1962         * build-aux/bootstrap: Correct the source file name in previous change.
1963         Reported by Akim Demaille.
1964
1965         configmake: correct minor inconsistency in Makefile rule
1966         * modules/configmake (Makefile.am): All other rules like this one
1967         run the final "mv -f ..." in the same backslash-continued command
1968         as the one that does everything else.  This one put the mv -f ...
1969         command on a separate, non-backslash-continued line.
1970         Make it like the others.
1971
1972         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
1973         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
1974         the one from gettext.  Reported by Akim Demaille.
1975
1976 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
1977
1978         Fix recursion of install-* into po directories.
1979         Bison's install-pdf bug reported by Hans Aberg at
1980         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
1981         * build-aux/po/Makefile.in.in (install-dvi, install-html)
1982         (install-info, install-pdf, install-ps): New targets.
1983
1984 2012-04-16  Jim Meyering  <meyering@redhat.com>
1985
1986         maint: avoid spurious "make sc_maint" failure
1987         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
1988         exempt all *.class file names, for lib/javaversion.class.
1989
1990 2012-04-15  Bruno Haible  <bruno@clisp.org>
1991
1992         lseek: Make configure test independent of environment.
1993         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
1994         Windows, we know that lseek() on pipes is broken; skip the runtime
1995         test.
1996
1997 2012-04-14  Bruno Haible  <bruno@clisp.org>
1998
1999         stat: Bypass buggy override in mingw64.
2000         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
2001         * lib/stat.c (stat) [mingw64]: Define to _stat.
2002         * doc/posix-functions/stat.texi: Mention mingw64 bug.
2003
2004 2012-04-14  Bruno Haible  <bruno@clisp.org>
2005
2006         pathmax: Fix compilation error on MSVC 9.
2007         * modules/pathmax (Depends-on): Add unistd.
2008
2009 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
2010
2011         README: document pointer comparison assumption
2012         * README (Portability guidelines): Document assumption about
2013         pointer comparisons, in response to a recent bug-gnulib comment by
2014         Jeffrey Kegler.
2015
2016 2012-04-12  Bruno Haible  <bruno@clisp.org>
2017
2018         Tests for module 'getrusage'.
2019         * modules/getrusage-tests: New file.
2020         * tests/test-getrusage.c: New file.
2021
2022         New module 'getrusage'.
2023         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
2024         warn-on-use.h.
2025         (getrusage): New declaration.
2026         * lib/getrusage.c: New file.
2027         * m4/getrusage.m4: New file.
2028         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
2029         is declared.
2030         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
2031         HAVE_GETRUSAGE.
2032         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
2033         snippet/c++defs, snippet/warn-on-use.
2034         (Makefile.am): Update generation of sys/resource.h. Substitute
2035         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
2036         * modules/getrusage: New file.
2037         * doc/posix-functions/getrusage.texi: Mention the new module.
2038
2039 2012-04-12  Bruno Haible  <bruno@clisp.org>
2040
2041         Tests for module 'sys_resource'.
2042         * modules/sys_resource-tests: New file.
2043         * tests/test-sys_resource.c: New file.
2044
2045         New module 'sys_resource'.
2046         * lib/sys_resource.in.h: New file.
2047         * m4/sys_resource_h.m4: New file.
2048         * modules/sys_resource: New file.
2049         * doc/posix-headers/sys_resource.texi: Mention the new module.
2050
2051 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
2052
2053         ioctl: Fix compilation error on mingw.
2054         * lib/ioctl.c: Include <windows.h>.
2055         Also reported by Ray Satiro <raysatiro@yahoo.com>.
2056
2057 2012-04-04  Jim Meyering  <meyering@redhat.com>
2058
2059         regex: correct #pragma guard expression
2060         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
2061         not 4.3.  Correct its cpp guard expression.
2062
2063 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
2064
2065         regex: remove unnecessary type punning
2066         Problem reported by Vladimir Serbinenko in
2067         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
2068         * lib/regex.h (struct re_pattern_buffer): Change the type of
2069         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
2070         Fix comment to match code.
2071         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
2072         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
2073         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
2074         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
2075         (set_regs):
2076         Omit no-longer-necessary casts.
2077
2078 2012-04-03  Bruno Haible  <bruno@clisp.org>
2079
2080         Tests for module 'ilogbl'.
2081         * modules/ilogbl-tests: New file.
2082         * tests/test-ilogbl.c: New file.
2083
2084         New module 'ilogbl'.
2085         * lib/math.in.h (ilogbl): New declaration.
2086         * lib/ilogbl.c: New file.
2087         * m4/ilogbl.m4: New file.
2088         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
2089         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
2090         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
2091         Split sed invocation, to avoid the limit of 100 substitutions of
2092         HP-UX 'sed'.
2093         * modules/ilogbl: New file.
2094         * tests/test-math-c++.cc: Check the declaration of ilogbl.
2095         * doc/posix-functions/ilogbl.texi: Mention the new module.
2096
2097 2012-04-03  Bruno Haible  <bruno@clisp.org>
2098
2099         Tests for module 'ilogbf'.
2100         * modules/ilogbf-tests: New file.
2101         * tests/test-ilogbf.c: New file.
2102
2103         New module 'ilogbf'.
2104         * lib/math.in.h (ilogbf): New declaration.
2105         * lib/ilogbf.c: New file.
2106         * m4/ilogbf.m4: New file.
2107         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
2108         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
2109         REPLACE_ILOGBF.
2110         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
2111         REPLACE_ILOGBF.
2112         * modules/ilogbf: New file.
2113         * tests/test-math-c++.cc: Check the declaration of ilogbf.
2114         * doc/posix-functions/ilogbf.texi: Mention the new module.
2115
2116 2012-04-03  Bruno Haible  <bruno@clisp.org>
2117
2118         Tests for module 'ilogb'.
2119         * modules/ilogb-tests: New file.
2120         * tests/test-ilogb.c: New file.
2121         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
2122         tests/test-logb-ieee.h.
2123
2124         New module 'ilogb'.
2125         * lib/math.in.h (ilogb): New declaration.
2126         * lib/ilogb.c: New file.
2127         * m4/ilogb.m4: New file.
2128         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
2129         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
2130         REPLACE_ILOGB.
2131         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
2132         REPLACE_ILOGB.
2133         * modules/ilogb: New file.
2134         * tests/test-math-c++.cc: Check the declaration of ilogb.
2135         * doc/posix-functions/ilogb.texi: Mention the new module.
2136
2137 2012-04-03  Bruno Haible  <bruno@clisp.org>
2138
2139         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
2140         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
2141         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
2142         (main): Check their values.
2143         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
2144         problem.
2145
2146 2012-04-03  Bruno Haible  <bruno@clisp.org>
2147
2148         Tests for module 'logbl-ieee'.
2149         * modules/logbl-ieee-tests: New file.
2150         * tests/test-logbl-ieee.c: New file.
2151
2152         New module 'logbl-ieee'.
2153         * modules/logbl-ieee: New file.
2154
2155         Tests for module 'logb-ieee'.
2156         * modules/logb-ieee-tests: New file.
2157         * tests/test-logb-ieee.c: New file.
2158
2159         New module 'logb-ieee'.
2160         * modules/logb-ieee: New file.
2161
2162         Tests for module 'logbf-ieee'.
2163         * modules/logbf-ieee-tests: New file.
2164         * tests/test-logbf-ieee.c: New file.
2165         * tests/test-logb-ieee.h: New file.
2166
2167         New module 'logbf-ieee'.
2168         * modules/logbf-ieee: New file.
2169
2170 2012-04-03  Bruno Haible  <bruno@clisp.org>
2171
2172         Tests for module 'logbl'.
2173         * modules/logbl-tests: New file.
2174         * tests/test-logbl.c: New file.
2175
2176         New module 'logbl'.
2177         * lib/math.in.h (logbl): New declaration.
2178         * lib/logbl.c: New file.
2179         * m4/logbl.m4: New file.
2180         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
2181         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
2182         REPLACE_LOGBL.
2183         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
2184         REPLACE_LOGBL.
2185         * modules/logbl: New file.
2186         * tests/test-math-c++.cc: Check the declaration of logbl.
2187         * doc/posix-functions/logbl.texi: Mention the new module.
2188
2189 2012-04-02  Bruno Haible  <bruno@clisp.org>
2190
2191         Tests for module 'logbf'.
2192         * modules/logbf-tests: New file.
2193         * tests/test-logbf.c: New file.
2194
2195         New module 'logbf'.
2196         * lib/math.in.h (logbf): New declaration.
2197         * lib/logbf.c: New file.
2198         * m4/logbf.m4: New file.
2199         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
2200         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
2201         REPLACE_LOGBF.
2202         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
2203         REPLACE_LOGBF.
2204         * modules/logbf: New file.
2205         * tests/test-math-c++.cc: Check the declaration of logbf.
2206         * doc/posix-functions/logbf.texi: Mention the new module.
2207
2208 2012-04-02  Bruno Haible  <bruno@clisp.org>
2209
2210         logb tests: More tests.
2211         * tests/test-logb.h: New file, based on tests/test-logb.c and
2212         tests/test-frexp.h.
2213         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
2214         (main): Just invoke test_function.
2215         * modules/logb-tests (Files): Add tests/test-logb.h,
2216         tests/minus-zero.h, tests/randomd.c.
2217         (Makefile.am): Add randomd.c to test_logb_SOURCES.
2218
2219         logb: Provide replacement and workarounds.
2220         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
2221         is 1.
2222         * lib/logb.c: New file.
2223         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
2224         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
2225         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
2226         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
2227         * modules/logb (Files): Add lib/logb.c.
2228         (Depends-on): Add isfinite, frexp, isnand.
2229         (configure.ac): Compile the replacement code logb.c if needed.
2230         * tests/test-math-c++.cc: Check the declaration of logb.
2231         * doc/posix-functions/logb.texi: Mention the replacement and the bug
2232         with subnormal numbers.
2233
2234 2012-04-02  Bruno Haible  <bruno@clisp.org>
2235
2236         log10* tests: Speed up.
2237         * tests/test-log10.h (test_function): Reduce amount of random numbers
2238         to test.
2239
2240 2012-04-01  Bruno Haible  <bruno@clisp.org>
2241
2242         logf-ieee: Fix test whether logf works.
2243         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
2244
2245 2012-04-01  Bruno Haible  <bruno@clisp.org>
2246
2247         log10l: Work around log10l-ieee test failure on IRIX 6.5.
2248         * lib/log10l.c: Include <float.h>
2249         (log10l): On IRIX, normalize the +Infinity value.
2250         * modules/log10l (Depends-on): Add 'float'.
2251         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
2252         +Infinity.
2253
2254         log10f-ieee: Work around test failure on NetBSD 5.1.
2255         * m4/log10f-ieee.m4: New file.
2256         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
2257         test whether log10f works with a negative argument. Replace it if not.
2258         * lib/log10f.c (log10f): For negative arguments, return NaN.
2259         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
2260         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
2261         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
2262
2263         log10f-ieee: Work around test failure on Solaris 9.
2264         * modules/log10f-ieee (Depends-on): Add log10-ieee.
2265         (configure.ac): Require gl_FUNC_LOG10F.
2266
2267         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
2268         * m4/log10-ieee.m4: New file.
2269         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
2270         whether log10 works with a negative argument. Replace it if not.
2271         * lib/log10.c (log10): For negative arguments, return NaN.
2272         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
2273         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
2274         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
2275
2276         Tests for module 'log10l-ieee'.
2277         * modules/log10l-ieee-tests: New file.
2278         * tests/test-log10l-ieee.c: New file.
2279
2280         New module 'log10l-ieee'.
2281         * modules/log10l-ieee: New file.
2282
2283         Tests for module 'log10-ieee'.
2284         * modules/log10-ieee-tests: New file.
2285         * tests/test-log10-ieee.c: New file.
2286
2287         New module 'log10-ieee'.
2288         * modules/log10-ieee: New file.
2289
2290         Tests for module 'log10f-ieee'.
2291         * modules/log10f-ieee-tests: New file.
2292         * tests/test-log10f-ieee.c: New file.
2293         * tests/test-log10-ieee.h: New file.
2294
2295         New module 'log10f-ieee'.
2296         * modules/log10f-ieee: New file.
2297
2298 2012-04-01  Bruno Haible  <bruno@clisp.org>
2299
2300         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
2301         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
2302         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
2303         workaround.
2304         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
2305         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
2306         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
2307         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
2308         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
2309         (Depends-on): Update conditions.
2310         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
2311         IRIX 6.5, OSF/1 5.1 problems.
2312
2313 2012-04-01  Bruno Haible  <bruno@clisp.org>
2314
2315         log10f: Work around OSF/1 5.1 bug.
2316         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
2317         * lib/log10f.c (log10f): If logf exists, use it and provide just the
2318         workaround.
2319         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
2320         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
2321         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
2322         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
2323         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
2324         (Depends-on): Update conditions.
2325         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
2326
2327 2012-04-01  Bruno Haible  <bruno@clisp.org>
2328
2329         log10: Work around OSF/1 5.1 bug.
2330         * lib/math.in.h (log10): New declaration.
2331         * lib/log10.c: New file.
2332         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
2333         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
2334         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
2335         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
2336         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
2337         * modules/log10 (Files): Add lib/log10.c.
2338         (Depends-on): Add math.
2339         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
2340         * tests/test-math-c++.cc: Check the declaration of log10.
2341         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
2342
2343 2012-03-31  Bruno Haible  <bruno@clisp.org>
2344
2345         log10l tests: More tests.
2346         * modules/log10l-tests (Files): Add tests/test-log10l.h,
2347         tests/minus-zero.h, tests/randoml.c.
2348         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
2349         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
2350         (main): Invoke test_function.
2351
2352         log10f tests: More tests.
2353         * modules/log10f-tests (Files): Add tests/test-log10.h,
2354         tests/minus-zero.h, tests/randomf.c.
2355         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
2356         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
2357         (main): Invoke test_function.
2358
2359         log10 tests: More tests.
2360         * tests/test-log10.h: New file.
2361         * modules/log10-tests (Files): Add tests/test-log10.h,
2362         tests/minus-zero.h, tests/randomd.c.
2363         (Makefile.am): Add randomd.c to test_log10_SOURCES.
2364         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
2365         (main): Invoke test_function.
2366
2367 2012-03-31  Simon Josefsson  <simon@josefsson.org>
2368
2369         fflush: Fix syntax error.
2370         * lib/fflush.c: Include unused-parameter.h, needed for
2371         _GL_UNUSED_PARAMETER.
2372         * modules/fflush (Depends-on): Add snippet/unused-parameter.
2373
2374 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
2375
2376         regex: pacify GCC when compiling GRUB
2377         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
2378         a diagnostic.  Reported by Vladimir Serbinenko in
2379         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
2380
2381 2012-03-29  Eric Blake  <eblake@redhat.com>
2382
2383         stdio: don't assume gets any more
2384         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
2385         support.
2386         * modules/stdio (Makefile.am): Likewise.
2387         * lib/stdio-read.c (gets): Likewise.
2388         * tests/test-stdio-c++.cc: Likewise.
2389         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
2390         * lib/stdio.in.h (gets): Make warning occur in more places.
2391         * doc/posix-functions/gets.texi (gets): Update documentation.
2392         Reported by Christer Solskogen.
2393
2394         maint.mk: fix syntax checks without exclusions
2395         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
2396         Reported by Daniel P. Berrange.
2397
2398         strerror_r: avoid compiler warning
2399         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
2400         level.
2401
2402         fflush: avoid compiler warning
2403         * lib/fflush.c (update_fpos_cache): Mark variables that are
2404         potentially unused.
2405
2406 2012-03-25  Bruno Haible  <bruno@clisp.org>
2407
2408         Tests for module 'localeconv'.
2409         * modules/localeconv-tests: New file.
2410         * tests/test-localeconv.c: New file.
2411
2412         New module 'localeconv'.
2413         * lib/locale.in.h (localeconv): New declaration.
2414         * lib/localeconv.c: New file.
2415         * m4/localeconv.m4: New file.
2416         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
2417         REPLACE_LOCALECONV.
2418         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
2419         REPLACE_LOCALECONV.
2420         * modules/localeconv: New file.
2421         * modules/nl_langinfo (Depends-on): Add localeconv.
2422         * modules/human (Depends-on): Likewise.
2423         * doc/posix-functions/localeconv.texi: Mention the new module.
2424
2425 2012-03-25  Bruno Haible  <bruno@clisp.org>
2426
2427         locale: Provide a complete 'struct lconv'.
2428         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
2429         'struct lconv' does not contain int_p_cs_precedes.
2430         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
2431         * doc/posix-headers/locale.texi: Update.
2432
2433         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
2434         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
2435         * doc/posix-headers/locale.texi: Update.
2436
2437         locale: Provide a working 'struct lconv'.
2438         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
2439         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
2440         'struct lconv' does not even contain decimal_point.
2441         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
2442         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
2443         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
2444         * doc/posix-headers/locale.texi: Mention the problems with
2445         'struct lconv'.
2446         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
2447
2448 2012-03-24  Bruno Haible  <bruno@clisp.org>
2449
2450         Enable common subexpression optimization in GCC.
2451         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
2452         macros.
2453         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
2454         GCC attribute 'const'.
2455         (uc_locale_language): Declare with GCC attribute 'pure'.
2456         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
2457         with GCC attribute 'const'.
2458         * lib/unictype.in.h (uc_is_general_category_withtable,
2459         uc_combining_class, uc_combining_class_name,
2460         uc_combining_class_long_name, uc_bidi_class_name,
2461         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
2462         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
2463         uc_decimal_value, uc_digit_value, uc_numeric_value,
2464         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
2465         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
2466         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
2467         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
2468         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
2469         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
2470         Declare with GCC attribute 'const'.
2471         (uc_general_category_name, uc_general_category_long_name,
2472         uc_general_category_byname, uc_general_category,
2473         uc_is_general_category, uc_combining_class_byname,
2474         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
2475         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
2476         Declare with GCC attribute 'pure'.
2477         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
2478         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
2479         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
2480         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
2481         with GCC attribute 'pure'.
2482         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
2483         'const'.
2484         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
2485         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
2486         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
2487         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
2488         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
2489         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
2490         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
2491         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
2492         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
2493         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
2494         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
2495         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
2496         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
2497         GCC attribute 'pure'.
2498         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
2499         'const'.
2500         * lib/uniwidth.in.h (uc_width): Simplify declaration.
2501         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
2502         u32_strwidth): Declare with GCC attribute 'pure'.
2503
2504         Enable common subexpression optimization in GCC.
2505         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2506         (alphasort): Declare with GCC attribute 'pure'.
2507         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2508         (atoll): Declare with GCC attribute 'pure'.
2509         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
2510         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
2511         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
2512         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2513         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
2514         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
2515         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
2516
2517 2012-03-24  Bruno Haible  <bruno@clisp.org>
2518
2519         gnulib-tool: Avoid unintended error output from 'cmp'.
2520         * gnulib-tool (func_add_file, func_update_file, func_import): Use
2521         "cmp -s", not "cmp > /dev/null".
2522
2523 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
2524
2525         gnulib-tool: fix imprecise comments w.r.t. an automake bug
2526
2527         It's not just Automake versions < 1.9b that creates an empty
2528         pkgdatadir at installation time if pkgdata_DATA is specified
2529         to empty; modern automake versions do this as well, at least
2530         until automake 1.11.4 (not yet released at the moment of writing,
2531         but soon to appear).  That behaviour was generally considered a
2532         feature rather than a bug, at least until this discussion:
2533         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
2534
2535         See also automake bugs #10997 and #11030.
2536
2537         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
2538         reference to relevant automake bug numbers.
2539         (func_emit_tests_Makefile_am): Likewise.
2540
2541 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
2542
2543         announce-gen: use Digest::SHA when possible
2544         * build-aux/announce-gen: Use Digest::SHA when possible, falling
2545         back to Digest::SHA1 if necessary.
2546
2547 2012-03-20  Jim Meyering  <meyering@redhat.com>
2548
2549         tests: avoid gcc warnings about argv vs. const initializers
2550         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
2551         warnings about discarding 'const' qualifier from pointer target type.
2552         * tests/test-posix_spawn2.c (main): Likewise.
2553
2554 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
2555
2556         README-release: simplify slightly
2557         * top/README-release: Run "git checkout master" only once.
2558
2559 2012-03-15  Mark Wielaard  <mark@klomp.org>
2560
2561         git-merge-changelog: add specific example on how to use with hg.
2562         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
2563
2564 2012-03-18  Mark Wielaard  <mark@klomp.org>
2565
2566         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
2567
2568 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
2569
2570         git-version-gen: don't let "prefix" envvar cause trouble
2571         * build-aux/git-version-gen (prefix): Initialize properly,
2572         so as not to use a value specified via the environment.
2573         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
2574
2575 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
2576
2577         regex: diagnose too-large repeat counts in EREs
2578         Previously, the code did not diagnose the too-large repeat count
2579         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
2580         as if it were 'b\{1000000000}', which is unexpected.
2581         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
2582         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
2583         is a reasonable one for this problem.  Another option would be to
2584         create a new REG_OVERFLOW error for repeat counts that are too large.
2585         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
2586         count is too large, so that the caller can distinguish the two cases.
2587         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
2588         "Too large" return code, and that repeat counts are one example of this.
2589
2590 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
2591
2592         doc: some glibc x32 integer width issues
2593         * doc/posix-headers/sys_types.texi (sys/types.h):
2594         * doc/posix-headers/time.texi (time.h):
2595         Mention that glibc x32 does not conform to POSIX in a couple of
2596         areas related to integer widths.
2597
2598 2012-03-15  Bruno Haible  <bruno@clisp.org>
2599
2600         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
2601         * lib/fma.c (VOLATILE): New macro.
2602         (FUNC): Use it to work around a GCC compiler bug.
2603
2604 2012-03-13  Bruno Haible  <bruno@clisp.org>
2605
2606         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2607         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
2608         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
2609         REPLACE_HYPOTL to 1.
2610         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
2611
2612 2012-03-13  Bruno Haible  <bruno@clisp.org>
2613
2614         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2615         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
2616         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
2617         REPLACE_REMAINDERL to 1.
2618         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
2619         bug.
2620
2621 2012-03-13  Bruno Haible  <bruno@clisp.org>
2622
2623         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2624         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
2625         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
2626         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
2627         too big rounding errors.
2628         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
2629         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
2630         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
2631         (Depends-on): Update conditions.
2632         * tests/test-sqrtl.c (my_ldexpl): New function.
2633         (main): Add test of a particular value.
2634         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2635
2636 2012-03-13  Pádraig Brady  <P@draigBrady.com>
2637
2638         doc: Update timer_* platform portability notes.
2639         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
2640         that always return ENOSYS.
2641         * doc/posix-functions/timer_delete.texi: Likewise.
2642         * doc/posix-functions/timer_gettime.texi: Likewise.
2643         * doc/posix-functions/timer_settime.texi: Likewise.
2644
2645 2012-03-13  Bruno Haible  <bruno@clisp.org>
2646
2647         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2648         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
2649         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
2650         REPLACE_CBRTL to 1.
2651         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2652
2653 2012-03-13  Bruno Haible  <bruno@clisp.org>
2654
2655         remainderl: Avoid compilation error on AIX >= 5.2.
2656         * lib/math.in.h (remainderl): Undefine macro from the system header.
2657
2658 2012-03-13  Bruno Haible  <bruno@clisp.org>
2659
2660         Avoid compilation errors with MSVC option -fp:strict.
2661         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
2662         * lib/cbrtf.c: Likewise.
2663         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2664
2665 2012-03-12  Bruno Haible  <bruno@clisp.org>
2666
2667         uninorm: Don't crash in out-of-memory conditions.
2668         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
2669         gracefully.
2670         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
2671         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
2672
2673 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
2674
2675         quote: fix syntax-check
2676         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
2677         also exports quote_quoting_options.
2678
2679 2012-03-12  Simon Josefsson  <simon@josefsson.org>
2680
2681         Collapse list of copyright years to ranges.  See
2682         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
2683         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
2684         build-aux/csharpexec.sh.in, build-aux/gnupload,
2685         build-aux/install-reloc, build-aux/javacomp.sh.in,
2686         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
2687         build-aux/move-if-change, build-aux/reloc-ldflags,
2688         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
2689
2690 2012-03-11  Bruno Haible  <bruno@clisp.org>
2691
2692         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2693         * m4/log2f-ieee.m4: New file.
2694         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
2695         whether log2f works with a minus zero argument. Replace it if not.
2696         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
2697         (Depends-on): Add log2-ieee.
2698         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
2699         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
2700
2701         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2702         * m4/log2-ieee.m4: New file.
2703         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
2704         whether log2 works with a minus zero argument. Replace it if not.
2705         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
2706         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
2707         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
2708
2709         Tests for module 'log2l-ieee'.
2710         * modules/log2l-ieee-tests: New file.
2711         * tests/test-log2l-ieee.c: New file.
2712
2713         New module 'log2l-ieee'.
2714         * modules/log2l-ieee: New file.
2715
2716         Tests for module 'log2-ieee'.
2717         * modules/log2-ieee-tests: New file.
2718         * tests/test-log2-ieee.c: New file.
2719
2720         New module 'log2-ieee'.
2721         * modules/log2-ieee: New file.
2722
2723         Tests for module 'log2f-ieee'.
2724         * modules/log2f-ieee-tests: New file.
2725         * tests/test-log2f-ieee.c: New file.
2726         * tests/test-log2-ieee.h: New file.
2727
2728         New module 'log2f-ieee'.
2729         * modules/log2f-ieee: New file.
2730
2731 2012-03-11  Bruno Haible  <bruno@clisp.org>
2732
2733         Tests for module 'log2l'.
2734         * modules/log2l-tests: New file.
2735         * tests/test-log2l.c: New file.
2736
2737         New module 'log2l'.
2738         * lib/math.in.h (log2l): New declaration.
2739         * lib/log2l.c: New file.
2740         * m4/log2l.m4: New file.
2741         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
2742         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
2743         REPLACE_LOG2L.
2744         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
2745         REPLACE_LOG2L.
2746         * modules/log2l: New file.
2747         * tests/test-math-c++.cc: Check the declaration of log2l.
2748         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
2749         and OSF/1 problems.
2750
2751 2012-03-11  Bruno Haible  <bruno@clisp.org>
2752
2753         Tests for module 'log2f'.
2754         * modules/log2f-tests: New file.
2755         * tests/test-log2f.c: New file.
2756
2757         New module 'log2f'.
2758         * lib/math.in.h (log2f): New declaration.
2759         * lib/log2f.c: New file.
2760         * m4/log2f.m4: New file.
2761         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
2762         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
2763         REPLACE_LOG2F.
2764         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
2765         REPLACE_LOG2F.
2766         * modules/log2f: New file.
2767         * tests/test-math-c++.cc: Check the declaration of log2f.
2768         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
2769         and OSF/1 and Cygwin problems.
2770
2771 2012-03-11  Bruno Haible  <bruno@clisp.org>
2772
2773         Tests for module 'log2'.
2774         * modules/log2-tests: New file.
2775         * tests/test-log2.c: New file.
2776         * tests/test-log2.h: New file.
2777
2778         New module 'log2'.
2779         * lib/math.in.h (log2): New declaration.
2780         * lib/log2.c: New file.
2781         * m4/log2.m4: New file.
2782         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
2783         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
2784         REPLACE_LOG2.
2785         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
2786         REPLACE_LOG2.
2787         * modules/log2: New file.
2788         * tests/test-math-c++.cc: Check the declaration of log2.
2789         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
2790         and OSF/1 and Cygwin problems.
2791
2792 2012-03-11  Bruno Haible  <bruno@clisp.org>
2793
2794         exp2* tests: More tests.
2795         * tests/test-exp2.h (test_function): Test all integral arguments that
2796         don't need to overflow or denormalized numbers.
2797         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
2798         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
2799         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
2800
2801 2012-03-10  Bruno Haible  <bruno@clisp.org>
2802
2803         log1pl-ieee: Work around test failure on AIX 7.1.
2804         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
2805
2806         log1pl-ieee: Work around test failure on IRIX 6.5.
2807         * m4/log1pl-ieee.m4: New file.
2808         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
2809         test whether log1pl works with a minus zero argument. Replace it if
2810         not.
2811         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
2812         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
2813         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
2814         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
2815         (Depends-on): Update conditions.
2816         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2817         m4/signbit.m4.
2818         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
2819         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
2820
2821         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
2822         * m4/log1pf-ieee.m4: New file.
2823         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
2824         test whether log1pf works with a minus zero argument. Replace it if
2825         not.
2826         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
2827         m4/signbit.m4.
2828         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
2829         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
2830
2831         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
2832         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
2833         (configure.ac): Require gl_FUNC_LOG1PF.
2834
2835         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
2836         * m4/log1p-ieee.m4: New file.
2837         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
2838         whether log1p works with a minus zero argument. Replace it if not.
2839         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
2840         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
2841         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
2842         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
2843         (Depends-on): Update conditions.
2844         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2845         m4/signbit.m4.
2846         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
2847         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
2848
2849         Tests for module 'log1pl-ieee'.
2850         * modules/log1pl-ieee-tests: New file.
2851         * tests/test-log1pl-ieee.c: New file.
2852
2853         New module 'log1pl-ieee'.
2854         * modules/log1pl-ieee: New file.
2855
2856         Tests for module 'log1p-ieee'.
2857         * modules/log1p-ieee-tests: New file.
2858         * tests/test-log1p-ieee.c: New file.
2859
2860         New module 'log1p-ieee'.
2861         * modules/log1p-ieee: New file.
2862
2863         Tests for module 'log1pf-ieee'.
2864         * modules/log1pf-ieee-tests: New file.
2865         * tests/test-log1pf-ieee.c: New file.
2866         * tests/test-log1p-ieee.h: New file.
2867
2868         New module 'log1pf-ieee'.
2869         * modules/log1pf-ieee: New file.
2870
2871 2012-03-10  Bruno Haible  <bruno@clisp.org>
2872
2873         Tests for module 'log1pl'.
2874         * modules/log1pl-tests: New file.
2875         * tests/test-log1pl.c: New file.
2876
2877         New module 'log1pl'.
2878         * lib/math.in.h (log1pl): New declaration.
2879         * lib/log1pl.c: New file.
2880         * m4/log1pl.m4: New file.
2881         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
2882         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
2883         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
2884         * modules/log1pl: New file.
2885         * tests/test-math-c++.cc: Check the declaration of log1pl.
2886         * doc/posix-functions/log1pl.texi: Mention the new module.
2887
2888 2012-03-10  Bruno Haible  <bruno@clisp.org>
2889
2890         Tests for module 'log1pf'.
2891         * modules/log1pf-tests: New file.
2892         * tests/test-log1pf.c: New file.
2893
2894         New module 'log1pf'.
2895         * lib/math.in.h (log1pf): New declaration.
2896         * lib/log1pf.c: New file.
2897         * m4/log1pf.m4: New file.
2898         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
2899         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
2900         REPLACE_LOG1PF.
2901         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
2902         REPLACE_LOG1PF.
2903         * modules/log1pf: New file.
2904         * tests/test-math-c++.cc: Check the declaration of log1pf.
2905         * doc/posix-functions/log1pf.texi: Mention the new module.
2906
2907 2012-03-10  Bruno Haible  <bruno@clisp.org>
2908
2909         log1p tests: More tests.
2910         * tests/test-log1p.h: New file.
2911         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
2912         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
2913         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
2914         (main): Invoke test_function.
2915
2916         log1p: Provide replacement for Minix and MSVC.
2917         * lib/math.in.h (log1p): New declaration.
2918         * lib/log1p.c: New file.
2919         * m4/log1p.m4: New file.
2920         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
2921         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
2922         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
2923         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
2924         (Depends-on): Add math, isnand, log, round.
2925         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
2926         HAVE_LOG1P is 0.
2927         * tests/test-math-c++.cc: Check the declaration of log1p.
2928         * doc/posix-functions/log1p.texi: Mention the replacement.
2929
2930 2012-03-10  Bruno Haible  <bruno@clisp.org>
2931
2932         math tests: Small simplification.
2933         * tests/test-exp.h (test_function): Use the same err_bound for
2934         'double' on platforms with sizeof (long double) == sizeof (double)
2935         than on platforms with sizeof (long double) > sizeof (double).
2936         * tests/test-exp2.h (test_function): Likewise.
2937         * tests/test-expm1.h (test_function): Likewise.
2938         * tests/test-log.h (test_function): Likewise.
2939
2940 2012-03-10  Bruno Haible  <bruno@clisp.org>
2941
2942         Fix some comments.
2943         * lib/expl.c: Fix an ambiguous comment.
2944         * lib/expm1.c: Likewise.
2945         * lib/expm1l.c: Likewise.
2946         * lib/exp2.c: Likewise.
2947         * lib/exp2l.c: Likewise.
2948
2949 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
2950
2951         regex: allow inclusion of <regex.h> before <limits.h>
2952         Without this patch, portable programs had to include <limits.h> before
2953         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
2954         I ran into this problem with a test version of GNU grep on Solaris 8.
2955         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
2956         This is done conditionally so that this change can be merged
2957         back to glibc.
2958         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
2959         using the included regex.
2960
2961         fts: depend on fdopendir
2962         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
2963         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
2964         problem was introduced when fdopendir was split out.
2965
2966 2012-03-10  Bruno Haible  <bruno@clisp.org>
2967
2968         Remove unused variables.
2969         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
2970         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2971
2972 2012-03-10  Bruno Haible  <bruno@clisp.org>
2973
2974         isnanf-nolibm: Fix last commit.
2975         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
2976
2977         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
2978         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
2979
2980 2012-03-10  Bruno Haible  <bruno@clisp.org>
2981
2982         logf-ieee: Work around test failure on NetBSD 5.1.
2983         * m4/logf-ieee.m4: New file.
2984         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
2985         whether logf works with a negative argument. Replace it if not.
2986         * lib/logf.c (logf): For negative arguments, return NaN.
2987         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
2988         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
2989         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
2990
2991         logf-ieee: Work around test failure on Solaris 9.
2992         * modules/logf-ieee (Depends-on): Add log-ieee.
2993         (configure.ac): Require gl_FUNC_LOGF.
2994
2995         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
2996         * m4/log-ieee.m4: New file.
2997         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
2998         log works with a negative argument. Replace it if not.
2999         * lib/log.c (log): For negative arguments, return NaN.
3000         * modules/log-ieee (Files): Add m4/log-ieee.m4.
3001         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
3002         * doc/posix-functions/log.texi: Mention the log-ieee module.
3003
3004         Tests for module 'logl-ieee'.
3005         * modules/logl-ieee-tests: New file.
3006         * tests/test-logl-ieee.c: New file.
3007
3008         New module 'logl-ieee'.
3009         * modules/logl-ieee: New file.
3010
3011         Tests for module 'log-ieee'.
3012         * modules/log-ieee-tests: New file.
3013         * tests/test-log-ieee.c: New file.
3014
3015         New module 'log-ieee'.
3016         * modules/log-ieee: New file.
3017
3018         Tests for module 'logf-ieee'.
3019         * modules/logf-ieee-tests: New file.
3020         * tests/test-logf-ieee.c: New file.
3021         * tests/test-log-ieee.h: New file.
3022
3023         New module 'logf-ieee'.
3024         * modules/logf-ieee: New file.
3025
3026 2012-03-10  Bruno Haible  <bruno@clisp.org>
3027
3028         log: Fix bug introduced on 2012-03-09.
3029         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
3030
3031 2012-03-10  Pádraig Brady  <P@draigBrady.com>
3032
3033         timer-time: link explicitly with pthreads on glibc
3034         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
3035         to support static linking, when newer glibc is
3036         detected, as that contains pthread emulation of
3037         POSIX timer functions where required.
3038         * modules/timer-time: Depend on threadlib to
3039         pull in the appropriate library to link.
3040
3041 2012-03-10  Bruno Haible  <bruno@clisp.org>
3042
3043         log* tests: More tests.
3044         * tests/test-log.h: New file.
3045         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
3046         (main): Invoke test_function.
3047         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
3048         (main): Invoke test_function.
3049         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
3050         (main): Invoke test_function.
3051         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
3052         tests/randomd.c.
3053         (Makefile.am): Add randomd.c to test_log_SOURCES.
3054         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
3055         tests/randomf.c.
3056         (Makefile.am): Add randomf.c to test_logf_SOURCES.
3057         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
3058         tests/randoml.c.
3059         (Depends-on): Add 'float'.
3060         (Makefile.am): Add randoml.c to test_logl_SOURCES.
3061
3062 2012-03-09  Bruno Haible  <bruno@clisp.org>
3063
3064         logl: Work around OSF/1 5.1 bug.
3065         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
3066         * lib/logl.c (logl): If logl exists, use it and provide just the
3067         workaround.
3068         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
3069         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
3070         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
3071         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
3072         * modules/logl (configure.ac): Consider REPLACE_LOGL.
3073         (Depends-on): Update conditions.
3074         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
3075
3076 2012-03-09  Bruno Haible  <bruno@clisp.org>
3077
3078         logf: Work around OSF/1 5.1 bug.
3079         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
3080         * lib/logf.c (logf): If logf exists, use it and provide just the
3081         workaround.
3082         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
3083         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
3084         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
3085         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
3086         * modules/logf (configure.ac): Consider REPLACE_LOGF.
3087         (Depends-on): Update conditions.
3088         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
3089
3090 2012-03-09  Bruno Haible  <bruno@clisp.org>
3091
3092         log: Work around OSF/1 5.1 bug.
3093         * lib/math.in.h (log): New declaration.
3094         * lib/log.c: New file.
3095         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
3096         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
3097         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
3098         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
3099         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
3100         * modules/log (Files): Add lib/log.c.
3101         (Depends-on): Add math.
3102         (configure.ac): If REPLACE_LOG is 1, compile an override.
3103         * tests/test-math-c++.cc: Check the declaration of log.
3104         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
3105
3106 2012-03-09  Jim Meyering  <meyering@redhat.com>
3107
3108         readtokens.c: adjust wording in a comment
3109         * lib/readtokens.c: Insert omitted "that" in a comment.
3110
3111 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
3112
3113         modechange: add notations +40, 00440, etc.
3114         * lib/modechange.c (mode_compile): Support new notations
3115         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
3116
3117 2012-03-08  Bruno Haible  <bruno@clisp.org>
3118
3119         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
3120         * m4/exp2l-ieee.m4: New file.
3121         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
3122         test whether exp2l works with a NaN argument and with a negative
3123         infinity argument. Replace it if not.
3124         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
3125         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
3126         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
3127         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
3128         (Depends-on): Update conditions.
3129         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
3130         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
3131         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
3132
3133         Tests for module 'exp2l-ieee'.
3134         * modules/exp2l-ieee-tests: New file.
3135         * tests/test-exp2l-ieee.c: New file.
3136
3137         New module 'exp2l-ieee'.
3138         * modules/exp2l-ieee: New file.
3139
3140         Tests for module 'exp2-ieee'.
3141         * modules/exp2-ieee-tests: New file.
3142         * tests/test-exp2-ieee.c: New file.
3143
3144         New module 'exp2-ieee'.
3145         * modules/exp2-ieee: New file.
3146
3147         Tests for module 'exp2f-ieee'.
3148         * modules/exp2f-ieee-tests: New file.
3149         * tests/test-exp2f-ieee.c: New file.
3150         * tests/test-exp2-ieee.h: New file.
3151
3152         New module 'exp2f-ieee'.
3153         * modules/exp2f-ieee: New file.
3154
3155 2012-03-08  Bruno Haible  <bruno@clisp.org>
3156
3157         Tests for module 'exp2l'.
3158         * modules/exp2l-tests: New file.
3159         * tests/test-exp2l.c: New file.
3160
3161         New module 'exp2l'.
3162         * lib/math.in.h (exp2l): New declaration.
3163         * lib/exp2l.c: New file.
3164         * lib/expl-table.c: New file, extracted from lib/expl.c.
3165         * lib/expl.c (gl_expl_table): New declaration.
3166         (expl): Remove expl_table. Update reference.
3167         * m4/exp2l.m4: New file.
3168         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
3169         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
3170         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
3171         * modules/exp2l: New file.
3172         * modules/expl (Files): Add lib/expl-table.c.
3173         (configure.ac): Compile also expl-table.c.
3174         * tests/test-math-c++.cc: Check the declaration of exp2l.
3175         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
3176         problem.
3177
3178 2012-03-08  Bruno Haible  <bruno@clisp.org>
3179
3180         Tests for module 'exp2f'.
3181         * modules/exp2f-tests: New file.
3182         * tests/test-exp2f.c: New file.
3183
3184         New module 'exp2f'.
3185         * lib/math.in.h (exp2f): New declaration.
3186         * lib/exp2f.c: New file.
3187         * m4/exp2f.m4: New file.
3188         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
3189         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
3190         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
3191         * modules/exp2f: New file.
3192         * tests/test-math-c++.cc: Check the declaration of exp2f.
3193         * doc/posix-functions/exp2f.texi: Mention the new module and the
3194         IRIX problem.
3195
3196 2012-03-08  Bruno Haible  <bruno@clisp.org>
3197
3198         Tests for module 'exp2'.
3199         * modules/exp2-tests: New file.
3200         * tests/test-exp2.c: New file.
3201         * tests/test-exp2.h: New file.
3202
3203         New module 'exp2'.
3204         * lib/math.in.h (exp2): New declaration.
3205         * lib/exp2.c: New file.
3206         * m4/exp2.m4: New file.
3207         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
3208         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
3209         REPLACE_EXP2.
3210         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
3211         REPLACE_EXP2.
3212         * modules/exp2: New file.
3213         * tests/test-math-c++.cc: Check the declaration of exp2.
3214         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
3215         and OpenBSD problems.
3216
3217 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
3218
3219         savedir: fix comment typo
3220         * lib/savedir.c (savedirstream): Fix typo in comment.
3221
3222 2012-03-08  Bruno Haible  <bruno@clisp.org>
3223
3224         test-readtokens.c: use const; remove unwarranted cast
3225         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
3226
3227 2012-03-08  Bruno Haible  <bruno@clisp.org>
3228
3229         fmal: Avoid compilation error on AIX.
3230         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
3231         AIX 5.2..7.1.
3232
3233 2012-03-08  Bruno Haible  <bruno@clisp.org>
3234
3235         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
3236         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
3237         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
3238         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
3239         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
3240         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
3241         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
3242
3243 2012-03-08  Bruno Haible  <bruno@clisp.org>
3244
3245         remainderf: Override buggy system function on IRIX 6.5.
3246         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
3247         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
3248         when it exists.
3249         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
3250
3251 2012-03-08  Jim Meyering  <meyering@redhat.com>
3252
3253         test-readtokens.c: avoid const-related compilation warnings
3254         * tests/test-readtokens.c: Avoid const-related compilation warnings.
3255
3256 2012-03-07  Jim Meyering  <meyering@redhat.com>
3257             Bruno Haible  <bruno@clisp.org>
3258
3259         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
3260         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
3261         tests/randomd.c.
3262         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
3263         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
3264         tests/randoml.c.
3265         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
3266
3267 2012-03-07  Bruno Haible  <bruno@clisp.org>
3268
3269         expm1l: Avoid compilation error on AIX.
3270         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
3271         AIX 5.2..7.1.
3272
3273 2012-03-07  Bruno Haible  <bruno@clisp.org>
3274
3275         expm1l: Don't override undeclared system function on IRIX 6.5.
3276         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
3277         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
3278         it exists. Set HAVE_DECL_EXPM1L.
3279         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
3280         HAVE_EXPM1L.
3281         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
3282         HAVE_EXPM1L.
3283         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
3284
3285 2012-03-07  Bruno Haible  <bruno@clisp.org>
3286
3287         remainderl: Don't override undeclared system function on IRIX 6.5.
3288         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
3289         HAVE_REMAINDERL.
3290         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
3291         declared when it exists. Set HAVE_DECL_REMAINDERL.
3292         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
3293         not HAVE_REMAINDERL.
3294         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
3295         HAVE_REMAINDERL.
3296         * doc/posix-functions/remainderl.texi: Mention missing declaration
3297         problem.
3298
3299 2012-03-07  Bruno Haible  <bruno@clisp.org>
3300
3301         rintf: Don't override undeclared system function on IRIX 6.5.
3302         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
3303         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
3304         exists. Set HAVE_DECL_RINTF.
3305         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
3306         HAVE_RINTF.
3307         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
3308         HAVE_RINTF.
3309         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
3310
3311 2012-03-07  Bruno Haible  <bruno@clisp.org>
3312
3313         roundl: Avoid compilation error on AIX.
3314         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
3315         AIX 5.2..7.1.
3316
3317 2012-03-07  Bruno Haible  <bruno@clisp.org>
3318
3319         roundl: Don't override undeclared system function on IRIX 6.5.
3320         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
3321         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
3322         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
3323         * modules/roundl (configure.ac): For replacement code, test
3324         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
3325         (Depends-on): Update conditions.
3326         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
3327
3328 2012-03-07  Bruno Haible  <bruno@clisp.org>
3329
3330         roundf: Don't override undeclared system function on IRIX 6.5.
3331         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
3332         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
3333         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
3334         * modules/roundf (configure.ac): For replacement code, test
3335         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
3336         (Depends-on): Update conditions.
3337         * modules/roundf-ieee (Depends-on): Update conditions.
3338         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
3339
3340 2012-03-07  Bruno Haible  <bruno@clisp.org>
3341
3342         round: Don't override undeclared system function on IRIX 6.5.
3343         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
3344         argument.
3345         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
3346         also when it is not declared. Set HAVE_ROUND. For replacement code,
3347         test HAVE_ROUND, not HAVE_DECL_ROUND.
3348         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
3349         not HAVE_DECL_ROUND.
3350         (Depends-on): Update conditions.
3351         * modules/round-ieee (Depends-on): Update conditions.
3352         * doc/posix-functions/round.texi: Mention the IRIX problem.
3353
3354 2012-03-07  Bruno Haible  <bruno@clisp.org>
3355
3356         copysignf: Don't override undeclared system function on IRIX 6.5.
3357         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
3358         HAVE_COPYSIGNF.
3359         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
3360         declared when it exists. Set HAVE_DECL_COPYSIGNF.
3361         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
3362         not HAVE_COPYSIGNF.
3363         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
3364         HAVE_COPYSIGNF.
3365         * doc/posix-functions/copysignf.texi: Mention missing declaration
3366         problem.
3367
3368 2012-03-07  Jim Meyering  <meyering@redhat.com>
3369
3370         readtokens: add tests
3371         * modules/readtokens-tests: New file.
3372         * tests/test-readtokens.c: New file.
3373
3374 2012-03-07  Jim Meyering  <meyering@redhat.com>
3375
3376         quotearg: the module must now include quote.h
3377         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
3378         So must the module.
3379         * modules/quotearg (Files): Add quote.h.
3380
3381 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
3382
3383         readtokens: avoid core dumps with unusual calling patterns
3384         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
3385         * lib/readtokens.c: Include limits.h.
3386         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
3387         (readtoken): Don't cache the delimiters; the cache code was buggy
3388         if !delim && saved_delim, or if the new n_delim differs from the old.
3389         Also, it wasn't thread-safe.
3390
3391 2012-03-07  Bruno Haible  <bruno@clisp.org>
3392
3393         quote: Adhere to common module description layout.
3394         * modules/quote (Makefile.am): Add back empty section.
3395
3396 2012-03-06  Akim Demaille  <demaille@gostai.com>
3397
3398         quote: fuse into quotearg
3399         This patch is made for the benefit of Bison.
3400         quote does not leave the choice of the quoting style to the user.
3401         quoting_style provides poor customizability, yet quoting_options,
3402         which is very rich, is hidden inside quotearg.c.  So in order to
3403         allow quote customization, move its implementation to quotearg.c.
3404         * lib/quote.c: Remove.
3405         * modules/quote: Adjust.
3406         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
3407         warning: provide all the members of literal structs.
3408         (quote_quoting_options): New.
3409         (quote, quote_n): Import implementation from quote.c.
3410         * lib/quote.h: Import the comments from quote.c.
3411         (quote_quoting_options): New.
3412
3413 2012-03-06  Bruno Haible  <bruno@clisp.org>
3414
3415         Tests for module 'expm1l-ieee'.
3416         * modules/expm1l-ieee-tests: New file.
3417         * tests/test-expm1l-ieee.c: New file.
3418
3419         New module 'expm1l-ieee'.
3420         * modules/expm1l-ieee: New file.
3421
3422         Tests for module 'expm1f-ieee'.
3423         * modules/expm1f-ieee-tests: New file.
3424         * tests/test-expm1f-ieee.c: New file.
3425
3426         New module 'expm1f-ieee'.
3427         * modules/expm1f-ieee: New file.
3428
3429         Tests for module 'expm1-ieee'.
3430         * modules/expm1-ieee-tests: New file.
3431         * tests/test-expm1-ieee.c: New file.
3432         * tests/test-expm1-ieee.h: New file.
3433
3434         New module 'expm1-ieee'.
3435         * modules/expm1-ieee: New file.
3436         * m4/expm1-ieee.m4: New file.
3437         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
3438         whether expm1 works with a minus zero argument. Replace it if not.
3439         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
3440         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
3441         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
3442         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
3443         (Depends-on): Update conditions.
3444         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
3445         AIX problem.
3446
3447 2012-03-06  Bruno Haible  <bruno@clisp.org>
3448
3449         Work around expm1f bug on IRIX 6.5.
3450         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
3451         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
3452         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
3453         not work.
3454         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
3455         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
3456         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
3457         (Depends-on): Update conditions.
3458         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
3459
3460 2012-03-06  Bruno Haible  <bruno@clisp.org>
3461
3462         Tests for module 'expm1l'.
3463         * modules/expm1l-tests: New file.
3464         * tests/test-expm1l.c: New file.
3465
3466         New module 'expm1l'.
3467         * lib/math.in.h (expm1l): New declaration.
3468         * lib/expm1l.c: New file.
3469         * m4/expm1l.m4: New file.
3470         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
3471         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
3472         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
3473         * modules/expm1l: New file.
3474         * tests/test-math-c++.cc: Check the declaration of expm1l.
3475         * doc/posix-functions/expm1l.texi: Mention the new module.
3476
3477 2012-03-06  Bruno Haible  <bruno@clisp.org>
3478
3479         Tests for module 'expm1f'.
3480         * modules/expm1f-tests: New file.
3481         * tests/test-expm1f.c: New file.
3482
3483         New module 'expm1f'.
3484         * lib/math.in.h (expm1f): New declaration.
3485         * lib/expm1f.c: New file.
3486         * m4/expm1f.m4: New file.
3487         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
3488         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
3489         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
3490         * modules/expm1f: New file.
3491         * tests/test-math-c++.cc: Check the declaration of expm1f.
3492         * doc/posix-functions/expm1f.texi: Mention the new module.
3493
3494 2012-03-06  Bruno Haible  <bruno@clisp.org>
3495
3496         Tests for module 'expm1'.
3497         * modules/expm1-tests: New file.
3498         * tests/test-expm1.c: New file.
3499         * tests/test-expm1.h: New file.
3500
3501         New module 'expm1'.
3502         * lib/math.in.h (expm1): New declaration.
3503         * lib/expm1.c: New file.
3504         * m4/expm1.m4: New file.
3505         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
3506         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
3507         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
3508         * modules/expm1: New file.
3509         * tests/test-math-c++.cc: Check the declaration of expm1.
3510         * doc/posix-functions/expm1.texi: Mention the new module.
3511
3512 2012-03-06  Bruno Haible  <bruno@clisp.org>
3513
3514         math: Ensure declarations of math functions.
3515         * modules/acosf (Depends-on): Add 'extensions'.
3516         * modules/asinf (Depends-on): Likewise.
3517         * modules/atan2f (Depends-on): Likewise.
3518         * modules/atanf (Depends-on): Likewise.
3519         * modules/cbrt (Depends-on): Likewise.
3520         * modules/cbrtf (Depends-on): Likewise.
3521         * modules/cbrtl (Depends-on): Likewise.
3522         * modules/copysignf (Depends-on): Likewise.
3523         * modules/copysignl (Depends-on): Likewise.
3524         * modules/cosf (Depends-on): Likewise.
3525         * modules/coshf (Depends-on): Likewise.
3526         * modules/expf (Depends-on): Likewise.
3527         * modules/fabsf (Depends-on): Likewise.
3528         * modules/fabsl (Depends-on): Likewise.
3529         * modules/fmaf (Depends-on): Likewise.
3530         * modules/fmal (Depends-on): Likewise.
3531         * modules/fmodf (Depends-on): Likewise.
3532         * modules/fmodl (Depends-on): Likewise.
3533         * modules/frexpf (Depends-on): Likewise.
3534         * modules/frexpl (Depends-on): Likewise.
3535         * modules/hypot (Depends-on): Likewise.
3536         * modules/hypotf (Depends-on): Likewise.
3537         * modules/hypotl (Depends-on): Likewise.
3538         * modules/ldexpf (Depends-on): Likewise.
3539         * modules/ldexpl (Depends-on): Likewise.
3540         * modules/log10f (Depends-on): Likewise.
3541         * modules/log10l (Depends-on): Likewise.
3542         * modules/log1p (Depends-on): Likewise.
3543         * modules/logb (Depends-on): Likewise.
3544         * modules/logf (Depends-on): Likewise.
3545         * modules/modff (Depends-on): Likewise.
3546         * modules/modfl (Depends-on): Likewise.
3547         * modules/powf (Depends-on): Likewise.
3548         * modules/remainderf (Depends-on): Likewise.
3549         * modules/remainderl (Depends-on): Likewise.
3550         * modules/rintf (Depends-on): Likewise.
3551         * modules/rintl (Depends-on): Likewise.
3552         * modules/sinf (Depends-on): Likewise.
3553         * modules/sinhf (Depends-on): Likewise.
3554         * modules/sqrtf (Depends-on): Likewise.
3555         * modules/tanf (Depends-on): Likewise.
3556         * modules/tanhf (Depends-on): Likewise.
3557         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
3558         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
3559         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
3560         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
3561         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
3562         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
3563         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
3564         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
3565         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
3566         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
3567         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
3568         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
3569         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
3570         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
3571         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
3572         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
3573         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
3574         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3575         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
3576         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
3577         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
3578         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
3579         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
3580         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
3581         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3582         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
3583         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
3584         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3585         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
3586         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
3587         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3588         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
3589         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
3590         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3591         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
3592         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
3593         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
3594         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
3595         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
3596         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
3597         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
3598
3599 2012-03-06  Bruno Haible  <bruno@clisp.org>
3600
3601         math: Update module names in warnings.
3602         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3603         tanl): Use specific module name in warn-on-use warning.
3604
3605 2012-03-06  Bruno Haible  <bruno@clisp.org>
3606
3607         expl: Simplify computation.
3608         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
3609
3610 2012-03-05  Bruno Haible  <bruno@clisp.org>
3611
3612         exp* tests: More tests.
3613         * tests/test-exp.h: New file.
3614         * tests/test-exp.c: Include <float.h> and test-exp.h.
3615         (main): Invoke test_function.
3616         * tests/test-expf.c: Include <float.h> and test-exp.h.
3617         (main): Invoke test_function.
3618         * tests/test-expl.c: Include <float.h> and test-exp.h.
3619         (main): Invoke test_function.
3620         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
3621         (Makefile.am): Add randomd.c to test_exp_SOURCES.
3622         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
3623         (Makefile.am): Add randomf.c to test_expf_SOURCES.
3624         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
3625         (Depends-on): Add 'float'.
3626         (Makefile.am): Add randoml.c to test_expl_SOURCES.
3627
3628         expl: Fix precision of computed result.
3629         * lib/expl.c: Completely rewritten.
3630         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
3631         (Maintainer): Add me.
3632         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
3633
3634 2012-03-05  Bruno Haible  <bruno@clisp.org>
3635
3636         cbrt* tests: More tests.
3637         * tests/test-cbrt.h: New file.
3638         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
3639         (main): Invoke test_function.
3640         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
3641         (main): Invoke test_function.
3642         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
3643         (main): Invoke test_function.
3644         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
3645         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
3646         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
3647         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
3648         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
3649         (Depends-on): Add 'float'.
3650         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
3651
3652 2012-03-05  Bruno Haible  <bruno@clisp.org>
3653
3654         hypot* tests: More tests.
3655         * tests/test-hypot.h: New file, partially extracted from
3656         tests/test-hypotl.c.
3657         * tests/test-hypot.c: Include test-hypot.h.
3658         (main): Invoke test_function.
3659         * tests/test-hypotf.c: Include test-hypot.h.
3660         (main): Invoke test_function.
3661         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
3662         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
3663         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
3664         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
3665         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
3666         tests/randomf.c.
3667         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
3668         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
3669         tests/randoml.c.
3670         (Depends-on): Add 'fpucw', 'float'.
3671         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
3672
3673 2012-03-05  Bruno Haible  <bruno@clisp.org>
3674
3675         fpucw: Doc about FreeBSD.
3676         * lib/fpucw.h: Mention FreeBSD in comments.
3677
3678 2012-03-04  Bruno Haible  <bruno@clisp.org>
3679
3680         sqrt* tests: More tests.
3681         * tests/test-sqrt.h: New file.
3682         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
3683         (main): Invoke test_function.
3684         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
3685         (main): Invoke test_function.
3686         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
3687         (main): Invoke test_function.
3688         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
3689         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
3690         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
3691         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
3692         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
3693         (Depends-on): Add 'float'.
3694         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
3695
3696 2012-03-04  Bruno Haible  <bruno@clisp.org>
3697
3698         remainder* tests: More tests.
3699         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
3700         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
3701         (main): Invoke test_function.
3702         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
3703         (main): Invoke test_function.
3704         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
3705         (main): Invoke test_function.
3706         * modules/remainder-tests (Files): Add tests/test-remainder.h,
3707         tests/randomd.c.
3708         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
3709         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
3710         tests/randomf.c.
3711         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
3712         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
3713         tests/randoml.c.
3714         (Depends-on): Add 'float'.
3715         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
3716
3717 2012-03-04  Bruno Haible  <bruno@clisp.org>
3718
3719         remainder, remainderf, remainderl: Fix computation for large quotients.
3720         * lib/remainder.c: Completely rewritten.
3721         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
3722         USE_FLOAT.
3723         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
3724         USE_LONG_DOUBLE.
3725         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
3726         isnand, isinf. Remove round, fma.
3727         * modules/remainderf (Files): Add lib/remainder.c.
3728         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
3729         Remove roundf, fmaf.
3730         * modules/remainderl (Files): Add lib/remainder.c.
3731         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
3732         isinf. Remove roundl, fmal.
3733         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
3734         REMAINDER_LIBM.
3735         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
3736         REMAINDERF_LIBM.
3737         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
3738         REMAINDERL_LIBM.
3739
3740 2012-03-04  Bruno Haible  <bruno@clisp.org>
3741
3742         fmod* tests: More tests.
3743         * tests/test-fmod.h (my_ldexp): New function.
3744         (test_function): Reduce amount of random numbers to test. Add tests
3745         of very large quotients x / y.
3746         * tests/test-fmod.c (MAX_EXP): New macro.
3747         * tests/test-fmodf.c (MAX_EXP): Likewise.
3748         * tests/test-fmodl.c (MAX_EXP): Likewise.
3749
3750 2012-03-04  Bruno Haible  <bruno@clisp.org>
3751
3752         fmod, fmodl: Fix computation for large quotients x / y.
3753         * lib/fmod.c: Completely rewritten.
3754         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
3755         USE_LONG_DOUBLE.
3756         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
3757         isnand. Remove fma.
3758         * modules/fmodl (Files): Add lib/fmod.c.
3759         (Depends-on): Add float, isfinite, signbit, fabsl,
3760         frexpl, ldexpl, isnanl. Remove fma.
3761         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
3762         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
3763
3764 2012-03-03  Bruno Haible  <bruno@clisp.org>
3765
3766         fmod* tests: More tests.
3767         * tests/test-fmod.h: New file.
3768         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
3769         (main): Invoke test_function.
3770         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
3771         (main): Invoke test_function.
3772         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
3773         (main): Invoke test_function.
3774         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
3775         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
3776         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
3777         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
3778         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
3779         (Depends-on): Add 'float'.
3780         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
3781
3782 2012-03-03  Bruno Haible  <bruno@clisp.org>
3783
3784         rint* tests: More tests.
3785         * tests/test-rint.h: New file, partially extracted from
3786         tests/test-rintl.c.
3787         * tests/test-rint.c: Include test-rint.h.
3788         (main): Invoke test_function.
3789         * tests/test-rintf.c: Include test-rint.h.
3790         (main): Invoke test_function.
3791         * tests/test-rintl.c: Include test-rint.h.
3792         (main): Invoke test_function.
3793         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
3794         (Makefile.am): Add randomd.c to test_rint_SOURCES.
3795         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
3796         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
3797         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
3798         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
3799
3800 2012-03-03  Bruno Haible  <bruno@clisp.org>
3801
3802         modf* tests: More tests.
3803         * tests/test-modf.h: New file.
3804         * tests/test-modf.c: Include <float.h> and test-modf.h.
3805         (main): Invoke test_function.
3806         * tests/test-modff.c: Include <float.h> and test-modf.h.
3807         (main): Invoke test_function.
3808         * tests/test-modfl.c: Include <float.h> and test-modf.h.
3809         (main): Invoke test_function.
3810         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
3811         (Makefile.am): Add randomd.c to test_modf_SOURCES.
3812         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
3813         (Makefile.am): Add randomf.c to test_modff_SOURCES.
3814         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
3815         (Depends-on): Add 'float'.
3816         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
3817
3818 2012-03-03  Bruno Haible  <bruno@clisp.org>
3819
3820         fabs* tests: More tests.
3821         * tests/test-fabs.h: New file, partially extracted from
3822         tests/test-fabsl.c.
3823         * tests/test-fabs.c (RANDOM): New macro.
3824         * tests/test-fabsf.c (RANDOM): New macro.
3825         * tests/test-fabsl.c (RANDOM): New macro.
3826         * modules/fabs-tests (Files): Add tests/randomd.c.
3827         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
3828         * modules/fabsf-tests (Files): Add tests/randomf.c.
3829         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
3830         * modules/fabsl-tests (Files): Add tests/randoml.c.
3831         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
3832
3833 2012-03-03  Bruno Haible  <bruno@clisp.org>
3834
3835         ldexp* tests: More tests.
3836         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
3837         * tests/test-ldexp.c (RANDOM): New macro.
3838         * tests/test-ldexpf.c (RANDOM): New macro.
3839         * tests/test-ldexpl.c (RANDOM): New macro.
3840         * modules/ldexp-tests (Files): Add tests/randomd.c.
3841         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
3842         * modules/ldexpf-tests (Files): Add tests/randomf.c.
3843         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
3844         * modules/ldexpl-tests (Files): Add tests/randoml.c.
3845         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
3846
3847 2012-03-03  Bruno Haible  <bruno@clisp.org>
3848
3849         frexp* tests: More tests.
3850         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
3851         * tests/test-frexp.c (RANDOM): New macro.
3852         * tests/test-frexpf.c (RANDOM): New macro.
3853         * tests/test-frexpl.c (RANDOM): New macro.
3854         * modules/frexp-tests (Files): Add tests/randomd.c.
3855         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
3856         * modules/frexpf-tests (Files): Add tests/randomf.c.
3857         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
3858         * modules/frexpl-tests (Files): Add tests/randoml.c.
3859         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
3860
3861 2012-03-03  Bruno Haible  <bruno@clisp.org>
3862
3863         Support for pseudo-random numbers in tests.
3864         * tests/randomf.c: New file.
3865         * tests/randomd.c: New file.
3866         * tests/randoml.c: New file.
3867         * tests/macros.h (randomf, randomd, randoml): New declarations.
3868
3869 2012-03-03  Bruno Haible  <bruno@clisp.org>
3870
3871         frexp* tests: Refactor.
3872         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
3873         * tests/test-frexp.c: Include and use it.
3874         * tests/test-frexpf.c: Likewise.
3875         * tests/test-frexpl.c: Likewise.
3876         * modules/frexp-tests (Files): Add tests/test-frexp.h.
3877         * modules/frexpf-tests (Files): Likewise.
3878         * modules/frexpl-tests (Files): Likewise.
3879
3880 2012-03-02  Jim Meyering  <meyering@redhat.com>
3881
3882         maint: don't specify XZ_OPT=-9ev in dist-related rule
3883         Using xz's -9 option is warranted only if you have a very large
3884         tarball (see xz's documentation for the sizes vs. presets), and
3885         requires 64MiB of memory at decompression time.
3886         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
3887         Automake's default of just "-e" is fine.  Override on a
3888         per-package basis by setting XZ_OPT e.g., in cfg.mk.
3889
3890 2012-03-01  Eric Blake  <eblake@redhat.com>
3891
3892         maint.mk: allow announcement for non-gnulib project
3893         * maint.mk (announcement): Skip gnulib version if not used.
3894
3895 2012-03-01  Jim Meyering  <meyering@redhat.com>
3896
3897         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
3898         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
3899         envvar settings cannot interfere.  Otherwise, setting envvars like
3900         prohibit=foo require=bar, etc. would cause spurious test failures.
3901
3902 2012-03-01  Eric Blake  <eblake@redhat.com>
3903
3904         maint.mk: add per-line exclusions to prohibitions
3905         * maint.mk (_sc_search_regexp): Add $exclude parameter.
3906         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3907         (sc_const_long_option): Use it.
3908
3909 2012-03-01  Bruno Haible  <bruno@clisp.org>
3910
3911         Tests for module 'expl-ieee'.
3912         * modules/expl-ieee-tests: New file.
3913         * tests/test-expl-ieee.c: New file.
3914
3915         New module 'expl-ieee'.
3916         * modules/expl-ieee: New file.
3917
3918         Tests for module 'exp-ieee'.
3919         * modules/exp-ieee-tests: New file.
3920         * tests/test-exp-ieee.c: New file.
3921
3922         New module 'exp-ieee'.
3923         * modules/exp-ieee: New file.
3924
3925         Tests for module 'expf-ieee'.
3926         * modules/expf-ieee-tests: New file.
3927         * tests/test-expf-ieee.c: New file.
3928         * tests/test-exp-ieee.h: New file.
3929
3930         New module 'expf-ieee'.
3931         * modules/expf-ieee: New file.
3932
3933 2012-02-29  Bruno Haible  <bruno@clisp.org>
3934
3935         cbrtl-ieee: Work around test failure on IRIX 6.5.
3936         * m4/cbrtl-ieee.m4: New file.
3937         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
3938         test whether cbrtl works with a minus zero argument. Replace it if not.
3939         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
3940         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
3941         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
3942         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
3943         (Depends-on): Update conditions.
3944         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
3945         m4/signbit.m4.
3946         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
3947         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
3948         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
3949
3950         Tests for module 'cbrtl-ieee'.
3951         * modules/cbrtl-ieee-tests: New file.
3952         * tests/test-cbrtl-ieee.c: New file.
3953
3954         New module 'cbrtl-ieee'.
3955         * modules/cbrtl-ieee: New file.
3956
3957         Tests for module 'cbrt-ieee'.
3958         * modules/cbrt-ieee-tests: New file.
3959         * tests/test-cbrt-ieee.c: New file.
3960
3961         New module 'cbrt-ieee'.
3962         * modules/cbrt-ieee: New file.
3963
3964         Tests for module 'cbrtf-ieee'.
3965         * modules/cbrtf-ieee-tests: New file.
3966         * tests/test-cbrtf-ieee.c: New file.
3967         * tests/test-cbrt-ieee.h: New file.
3968
3969         New module 'cbrtf-ieee'.
3970         * modules/cbrtf-ieee: New file.
3971
3972 2012-02-29  Bruno Haible  <bruno@clisp.org>
3973
3974         cbrtf: Work around bug in IRIX 6.5 system function.
3975         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
3976         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
3977         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
3978         work.
3979         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
3980         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
3981         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
3982         (Depends-on): Update conditions.
3983         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
3984
3985 2012-02-29  Bruno Haible  <bruno@clisp.org>
3986
3987         Tests for module 'cbrtl'.
3988         * modules/cbrtl-tests: New file.
3989         * tests/test-cbrtl.c: New file.
3990
3991         New module 'cbrtl'.
3992         * lib/math.in.h (cbrtl): New declaration.
3993         * lib/cbrtl.c: New file.
3994         * m4/cbrtl.m4: New file.
3995         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
3996         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
3997         HAVE_DECL_CBRTL.
3998         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
3999         HAVE_DECL_CBRTL.
4000         * modules/cbrtl: New file.
4001         * tests/test-math-c++.cc: Check the declaration of cbrtl.
4002         * doc/posix-functions/cbrtl.texi: Mention the new module.
4003
4004 2012-02-29  Bruno Haible  <bruno@clisp.org>
4005
4006         Tests for module 'cbrtf'.
4007         * modules/cbrtf-tests: New file.
4008         * tests/test-cbrtf.c: New file.
4009
4010         New module 'cbrtf'.
4011         * lib/math.in.h (cbrtf): New declaration.
4012         * lib/cbrtf.c: New file.
4013         * m4/cbrtf.m4: New file.
4014         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
4015         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
4016         HAVE_DECL_CBRTF.
4017         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
4018         HAVE_DECL_CBRTF.
4019         * modules/cbrtf: New file.
4020         * tests/test-math-c++.cc: Check the declaration of cbrtf.
4021         * doc/posix-functions/cbrtf.texi: Mention the new module.
4022
4023 2012-02-29  Bruno Haible  <bruno@clisp.org>
4024
4025         cbrt: Provide replacement on MSVC and Minix.
4026         * lib/math.in.h (cbrt): New declaration.
4027         * lib/cbrt.c: New file.
4028         * m4/cbrt.m4: New file.
4029         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
4030         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
4031         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
4032         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
4033         (Depends-on): Add dependencies.
4034         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
4035         * tests/test-math-c++.cc: Check the declaration of cbrt.
4036         * doc/posix-functions/cbrt.texi: Mention that the module provides a
4037         replacement.
4038
4039 2012-02-29  Bruno Haible  <bruno@clisp.org>
4040
4041         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
4042         * m4/hypotl-ieee.m4: New file.
4043         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
4044         test whether hypotl works with mixed NaN and Infinity arguments.
4045         Replace it if not.
4046         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
4047         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
4048         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
4049         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
4050         (Depends-on): Update conditions.
4051         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
4052         (Depends-on): Add hypot-ieee.
4053         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
4054         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
4055
4056         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
4057         * m4/hypotf-ieee.m4: New file.
4058         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
4059         test whether hypotf works with mixed NaN and Infinity arguments.
4060         Replace it if not.
4061         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
4062         (Depends-on): Add hypot-ieee.
4063         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
4064         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
4065
4066         hypot-ieee: Work around test failure on OSF/1 and native Windows.
4067         * lib/math.in.h (hypot): New declaration.
4068         * lib/hypot.c: New file.
4069         * m4/hypot-ieee.m4: New file.
4070         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
4071         whether hypot works with mixed NaN and Infinity arguments. Replace it
4072         if not.
4073         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
4074         REPLACE_HYPOT.
4075         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
4076         * modules/hypot (Files): Add lib/hypot.c.
4077         (Depends-on): Add dependencies.
4078         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
4079         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
4080         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
4081         * tests/test-math-c++.cc: Check the declaration of hypot.
4082         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
4083
4084         Tests for module 'hypotl-ieee'.
4085         * modules/hypotl-ieee-tests: New file.
4086         * tests/test-hypotl-ieee.c: New file.
4087
4088         New module 'hypotl-ieee'.
4089         * modules/hypotl-ieee: New file.
4090
4091         Tests for module 'hypot-ieee'.
4092         * modules/hypot-ieee-tests: New file.
4093         * tests/test-hypot-ieee.c: New file.
4094
4095         New module 'hypot-ieee'.
4096         * modules/hypot-ieee: New file.
4097
4098         Tests for module 'hypotf-ieee'.
4099         * modules/hypotf-ieee-tests: New file.
4100         * tests/test-hypotf-ieee.c: New file.
4101         * tests/test-hypot-ieee.h: New file.
4102
4103         New module 'hypotf-ieee'.
4104         * modules/hypotf-ieee: New file.
4105
4106 2012-02-29  Bruno Haible  <bruno@clisp.org>
4107
4108         Remove unused variables.
4109         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
4110         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
4111         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
4112         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
4113
4114 2012-02-29  Eric Blake  <eblake@redhat.com>
4115
4116         termios: fix pid_t always, not just for tcgetsid
4117         * doc/posix-headers/termios.texi (termios.h): Mention problem.
4118         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
4119         just when building tcgetsid.
4120
4121 2012-02-29  Bruno Haible  <bruno@clisp.org>
4122
4123         Tests for module 'hypotl'.
4124         * modules/hypotl-tests: New file.
4125         * tests/test-hypotl.c: New file.
4126
4127         New module 'hypotl'.
4128         * lib/math.in.h (hypotl): New declaration.
4129         * lib/hypotl.c: New file.
4130         * m4/hypotl.m4: New file.
4131         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
4132         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
4133         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
4134         * modules/hypotl: New file.
4135         * tests/test-math-c++.cc: Check the hypotl declaration.
4136         * doc/posix-functions/hypotl.texi: Mention the new module.
4137
4138 2012-02-29  Eric Blake  <eblake@redhat.com>
4139
4140         tcgetsid: fix cygwin header bug
4141         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
4142
4143         docs: update cygwin progress
4144         * doc/posix-functions/llround.texi (llround): Added in cygwin
4145         1.7.8.
4146         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
4147         * doc/glibc-functions/program_invocation_name.texi
4148         (program_invocation_name): Likewise.
4149         * doc/glibc-functions/program_invocation_short_name.texi
4150         (program_invocation_short_name): Likewise.
4151         * doc/glibc-functions/madvise.texi (madvise): Likewise.
4152         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
4153         Likewise.
4154         * doc/posix-functions/pthread_spin_destroy.texi
4155         (pthread_spin_destroy): Added in cygwin 1.7.10.
4156         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
4157         Likewise.
4158         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
4159         Likewise.
4160         * doc/posix-functions/pthread_spin_trylock.texi
4161         (pthread_spin_trylock): Likewise.
4162         * doc/posix-functions/pthread_spin_unlock.texi
4163         (pthread_spin_unlock): Likewise.
4164         * doc/posix-functions/pthread_setschedprio.texi
4165         (pthread_setschedprio): Likewise.
4166         * doc/posix-functions/pthread_attr_getstack.texi
4167         (pthread_attr_getstack): Likewise.
4168         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
4169         (pthread_attr_getstackaddr): Likewise.
4170         * doc/glibc-functions/pthread_getattr_np.texi
4171         (pthread_getattr_np): Likewise.
4172         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
4173         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
4174         * doc/posix-functions/clock_settime.texi (clock_settime):
4175         Likewise.
4176         * doc/posix-functions/pthread_attr_getguardsize.texi
4177         (pthread_attr_getguardsize): Likewise.
4178         * doc/posix-functions/pthread_attr_setguardsize.texi
4179         (pthread_attr_setguardsize): Likewise.
4180         * doc/posix-functions/pthread_attr_setstack.texi
4181         (pthread_attr_setstack): Likewise.
4182         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
4183         (pthread_attr_setstackaddr): Likewise.
4184         * doc/posix-functions/clock_getcpuclockid.texi
4185         (clock_getcpuclockid): Likewise.
4186         * doc/posix-functions/pthread_getcpuclockid.texi
4187         (pthread_getcpuclockid): Likewise.
4188         * doc/glibc-functions/error.texi (error): Likewise.
4189         * doc/glibc-functions/error_at_line.texi (error_at_line):
4190         Likewise.
4191         * doc/glibc-functions/error_message_count.texi
4192         (error_message_count): Likewise.
4193         * doc/glibc-functions/error_one_per_line.texi
4194         (error_one_per_line): Likewise.
4195         * doc/glibc-functions/error_print_progname.texi
4196         (error_print_progname): Likewise.
4197         * doc/posix-functions/pthread_condattr_getclock.texi
4198         (pthread_condattr_getclock): Likewise.
4199         * doc/posix-functions/pthread_condattr_setclock.texi
4200         (pthread_condattr_setclock): Likewise.
4201         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
4202         Likewise.
4203         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
4204         * doc/glibc-functions/getpt.texi (getpt): Likewise.
4205         * doc/glibc-functions/get_current_dir_name.texi
4206         (get_current_dir_name): Likewise.
4207         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
4208         Likewise.
4209         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
4210         wrong return type.
4211         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
4212         1.7.11.
4213
4214 2012-02-29  Bruno Haible  <bruno@clisp.org>
4215
4216         Tests for module 'hypotf'.
4217         * modules/hypotf-tests: New file.
4218         * tests/test-hypotf.c: New file.
4219
4220         New module 'hypotf'.
4221         * lib/math.in.h (hypotf): New declaration.
4222         * lib/hypotf.c: New file.
4223         * m4/hypotf.m4: New file.
4224         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
4225         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
4226         REPLACE_HYPOTF.
4227         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
4228         REPLACE_HYPOTF.
4229         * modules/hypotf: New file.
4230         * tests/test-math-c++.cc: Check the hypotf declaration.
4231         * doc/posix-functions/hypotf.texi: Mention the new module.
4232
4233         hypot: Prepare for hypotf module.
4234         * m4/hypot.m4: New file.
4235         * modules/hypot (Files): Add m4/hypot.m4.
4236         (configure.ac): Invoke gl_FUNC_HYPOT.
4237
4238 2012-02-29  Bruno Haible  <bruno@clisp.org>
4239
4240         hypot tests: More tests.
4241         * tests/test-hypot.c: Include <float.h>.
4242         (main): Add tests about overflow and underflow.
4243
4244 2012-02-29  Bruno Haible  <bruno@clisp.org>
4245
4246         math code: Add comments.
4247         * lib/acosl.c: Add comment about related glibc source files.
4248         * lib/asinl.c: Likewise.
4249         * lib/atanl.c: Likewise.
4250         * lib/expl.c: Likewise.
4251         * lib/logl.c: Likewise.
4252         * lib/sincosl.c: Likewise.
4253         * lib/sinl.c: Likewise.
4254         * lib/tanl.c: Likewise.
4255         * lib/trigl.c: Likewise.
4256         * lib/cosl.c: Likewise. Fix comments.
4257
4258 2012-02-28  Bruno Haible  <bruno@clisp.org>
4259
4260         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
4261         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
4262         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
4263         HUGE_VALL are defined.
4264         (numeric_equald): Renamed from numeric_equal.
4265         (numeric_equalf, numeric_equall): New functions.
4266         (main): Check also HUGE_VALF, HUGE_VALL.
4267         * modules/math-tests (Files): Add tests/macros.h.
4268         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
4269         HUGE_VALL.
4270
4271 2012-02-28  Bruno Haible  <bruno@clisp.org>
4272
4273         doc: Move ISO C11 feature notes into POSIX chapters.
4274         * doc/posix-functions/aligned_alloc.texi: Renamed from
4275         doc/glibc-functions/aligned_alloc.texi.
4276         * doc/posix-functions/quick_exit.texi: Renamed from
4277         doc/glibc-functions/quick_exit.texi.
4278         * doc/posix-headers/uchar.texi: Renamed from
4279         doc/glibc-headers/uchar.texi.
4280         * doc/posix-functions/c16rtomb.texi: Renamed from
4281         doc/glibc-functions/c16rtomb.texi.
4282         * doc/posix-functions/c32rtomb.texi: Renamed from
4283         doc/glibc-functions/c32rtomb.texi.
4284         * doc/posix-functions/mbrtoc16.texi: Renamed from
4285         doc/glibc-functions/mbrtoc16.texi.
4286         * doc/posix-functions/mbrtoc32.texi: Renamed from
4287         doc/glibc-functions/mbrtoc32.texi.
4288         * doc/gnulib.texi: Update.
4289         (Glibc uchar.h): Remove section.
4290         Suggested by Eric Blake.
4291
4292 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
4293
4294         stdnoreturn: port to MSVC better
4295         MSVC standard headers use __declspec(noreturn), so #define noreturn
4296         to empty on that platform.  Reported by Bruno Haible in
4297         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
4298         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
4299         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
4300
4301 2012-02-28  Bruno Haible  <bruno@clisp.org>
4302
4303         doc: Mention new glibc headers and functions.
4304         * doc/glibc-headers/uchar.texi: New file.
4305         * doc/glibc-functions/aligned_alloc.texi: New file.
4306         * doc/glibc-functions/c16rtomb.texi: New file.
4307         * doc/glibc-functions/c32rtomb.texi: New file.
4308         * doc/glibc-functions/clock_adjtime.texi: New file.
4309         * doc/glibc-functions/fanotify_init.texi: New file.
4310         * doc/glibc-functions/fanotify_mark.texi: New file.
4311         * doc/glibc-functions/inet6_opt_append.texi: New file.
4312         * doc/glibc-functions/inet6_opt_find.texi: New file.
4313         * doc/glibc-functions/inet6_opt_finish.texi: New file.
4314         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
4315         * doc/glibc-functions/inet6_opt_init.texi: New file.
4316         * doc/glibc-functions/inet6_opt_next.texi: New file.
4317         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
4318         * doc/glibc-functions/inet6_rth_add.texi: New file.
4319         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
4320         * doc/glibc-functions/inet6_rth_init.texi: New file.
4321         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
4322         * doc/glibc-functions/inet6_rth_segments.texi: New file.
4323         * doc/glibc-functions/inet6_rth_space.texi: New file.
4324         * doc/glibc-functions/login.texi: New file.
4325         * doc/glibc-functions/mbrtoc16.texi: New file.
4326         * doc/glibc-functions/mbrtoc32.texi: New file.
4327         * doc/glibc-functions/name_to_handle_at.texi: New file.
4328         * doc/glibc-functions/ntp_gettimex.texi: New file.
4329         * doc/glibc-functions/open_by_handle_at.texi: New file.
4330         * doc/glibc-functions/prlimit.texi: New file.
4331         * doc/glibc-functions/process_vm_readv.texi: New file.
4332         * doc/glibc-functions/process_vm_writev.texi: New file.
4333         * doc/glibc-functions/recvmmsg.texi: New file.
4334         * doc/glibc-functions/scandirat.texi: New file.
4335         * doc/glibc-functions/sendmmsg.texi: New file.
4336         * doc/glibc-functions/setns.texi: New file.
4337         * doc/glibc-functions/timespec_get.texi: New file.
4338         * doc/gnulib.texi: Include them.
4339         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
4340         sections.
4341         Reported by Eric Blake.
4342
4343 2012-02-28  Bruno Haible  <bruno@clisp.org>
4344
4345         Avoid compilation errors with MSVC option -fp:strict.
4346         * lib/floor.c: Use MSVC specific pragma fenv_access.
4347         * lib/ceil.c: Likewise.
4348         * lib/trunc.c: Likewise.
4349         * lib/round.c: Likewise.
4350         * lib/rint.c: Likewise.
4351         * lib/fma.c: Likewise.
4352         * lib/integer_length.c: Likewise.
4353         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4354         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4355         * tests/test-floor2.c: Likewise.
4356         * tests/test-floorf2.c: Likewise.
4357         * tests/test-ceil2.c: Likewise.
4358         * tests/test-ceilf2.c: Likewise.
4359         * tests/test-trunc2.c: Likewise.
4360         * tests/test-truncf2.c: Likewise.
4361         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4362
4363 2012-02-27  Bruno Haible  <bruno@clisp.org>
4364
4365         Tests for module 'sqrtl-ieee'.
4366         * modules/sqrtl-ieee-tests: New file.
4367         * tests/test-sqrtl-ieee.c: New file.
4368
4369         New module 'sqrtl-ieee'.
4370         * modules/sqrtl-ieee: New file.
4371
4372         Tests for module 'sqrt-ieee'.
4373         * modules/sqrt-ieee-tests: New file.
4374         * tests/test-sqrt-ieee.c: New file.
4375
4376         New module 'sqrt-ieee'.
4377         * modules/sqrt-ieee: New file.
4378
4379         Tests for module 'sqrtf-ieee'.
4380         * modules/sqrtf-ieee-tests: New file.
4381         * tests/test-sqrtf-ieee.c: New file.
4382         * tests/test-sqrt-ieee.h: New file.
4383
4384         New module 'sqrtf-ieee'.
4385         * modules/sqrtf-ieee: New file.
4386
4387 2012-02-27  Bruno Haible  <bruno@clisp.org>
4388
4389         remainderl-ieee: Work around test failure on OSF/1.
4390         * m4/remainderl-ieee.m4: New file.
4391         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
4392         present, test whether remainderl works with a zero second argument.
4393         Replace it if not.
4394         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
4395         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
4396         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
4397         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
4398         (Depends-on): Update conditions.
4399         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
4400         (Depends-on): Add remainder-ieee.
4401         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
4402         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
4403         module.
4404
4405         remainderf-ieee: Work around test failure on OSF/1.
4406         * m4/remainderf-ieee.m4: New file.
4407         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
4408         present, test whether remainderf works with a zero second argument.
4409         Replace it if not.
4410         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
4411         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
4412         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
4413         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
4414         (Depends-on): Update conditions.
4415         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
4416         (Depends-on): Add remainder-ieee.
4417         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
4418         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
4419         module.
4420
4421         remainder-ieee: Work around test failure on OSF/1.
4422         * m4/remainder-ieee.m4: New file.
4423         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
4424         present, test whether remainder works with a zero second argument.
4425         Replace it if not.
4426         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
4427         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
4428         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
4429         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
4430         (Depends-on): Update dependencies.
4431         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
4432         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
4433         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
4434
4435         Tests for module 'remainderl-ieee'.
4436         * modules/remainderl-ieee-tests: New file.
4437         * tests/test-remainderl-ieee.c: New file.
4438
4439         New module 'remainderl-ieee'.
4440         * modules/remainderl-ieee: New file.
4441
4442         Tests for module 'remainder-ieee'.
4443         * modules/remainder-ieee-tests: New file.
4444         * tests/test-remainder-ieee.c: New file.
4445
4446         New module 'remainder-ieee'.
4447         * modules/remainder-ieee: New file.
4448
4449         Tests for module 'remainderf-ieee'.
4450         * modules/remainderf-ieee-tests: New file.
4451         * tests/test-remainderf-ieee.c: New file.
4452         * tests/test-remainder-ieee.h: New file.
4453
4454         New module 'remainderf-ieee'.
4455         * modules/remainderf-ieee: New file.
4456
4457 2012-02-27  Bruno Haible  <bruno@clisp.org>
4458
4459         modff, modfl: Fix configure syntax error.
4460         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
4461         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4462
4463 2012-02-27  Bruno Haible  <bruno@clisp.org>
4464
4465         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
4466         * m4/fmodl-ieee.m4: New file.
4467         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
4468         whether fmodl works with zero arguments. Replace it if not.
4469         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
4470         (Depends-on): Add fmod-ieee.
4471         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
4472         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
4473
4474         fmodf-ieee: Work around test failure on OSF/1.
4475         * m4/fmodf-ieee.m4: New file.
4476         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
4477         whether fmodf works with zero arguments. Replace it if not.
4478         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
4479         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
4480         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
4481         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
4482         (Depends-on): Update dependencies.
4483         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
4484         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
4485         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
4486
4487         fmodf-ieee: Work around test failure on MSVC 9.
4488         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
4489         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
4490
4491         fmod-ieee: Work around test failures on OSF/1, mingw.
4492         * m4/fmod-ieee.m4: New file.
4493         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
4494         whether fmod works with zero arguments. Replace it if not.
4495         * lib/math.in.h (fmod): New declaration.
4496         * lib/fmod.c: New file.
4497         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
4498         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
4499         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
4500         * modules/fmod (Files): Add lib/fmod.c.
4501         (Depends-on): Add math, isinf, trunc, fma.
4502         (configure.ac): Arrange to compile lib/fmod.c if needed.
4503         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
4504         m4/signbit.m4.
4505         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
4506         * tests/test-math-c++.cc: Check the declaration of fmod.
4507         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
4508
4509         fmodl-ieee: Fix test failures.
4510         * lib/fmodl.c (fmodl): Treat Inf specially.
4511         * modules/fmodl (Depends-on): Add isinf.
4512
4513         Tests for module 'fmodl-ieee'.
4514         * modules/fmodl-ieee-tests: New file.
4515         * tests/test-fmodl-ieee.c: New file.
4516
4517         New module 'fmodl-ieee'.
4518         * modules/fmodl-ieee: New file.
4519
4520         Tests for module 'fmod-ieee'.
4521         * modules/fmod-ieee-tests: New file.
4522         * tests/test-fmod-ieee.c: New file.
4523
4524         New module 'fmod-ieee'.
4525         * modules/fmod-ieee: New file.
4526
4527         Tests for module 'fmodf-ieee'.
4528         * modules/fmodf-ieee-tests: New file.
4529         * tests/test-fmodf-ieee.c: New file.
4530         * tests/test-fmod-ieee.h: New file.
4531
4532         New module 'fmodf-ieee'.
4533         * modules/fmodf-ieee: New file.
4534
4535 2012-02-27  Bruno Haible  <bruno@clisp.org>
4536
4537         Tests for module 'rintl-ieee'.
4538         * modules/rintl-ieee-tests: New file.
4539         * tests/test-rintl-ieee.c: New file.
4540
4541         New module 'rintl-ieee'.
4542         * modules/rintl-ieee: New file.
4543
4544         Tests for module 'rint-ieee'.
4545         * modules/rint-ieee-tests: New file.
4546         * tests/test-rint-ieee.c: New file.
4547
4548         New module 'rint-ieee'.
4549         * modules/rint-ieee: New file.
4550
4551         Tests for module 'rintf-ieee'.
4552         * modules/rintf-ieee-tests: New file.
4553         * tests/test-rintf-ieee.c: New file.
4554         * tests/test-rint-ieee.h: New file.
4555
4556         New module 'rintf-ieee'.
4557         * modules/rintf-ieee: New file.
4558
4559 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
4560
4561         regex: re_search etc. should return -2 when memory exhausted
4562         This bug was uncovered when testing 'grep'.  Without the fix,
4563         re_search and friends return -1 when memory is exhausted, but -1
4564         means no match, and this causes grep to falsely report no-match
4565         instead of memory-exhaustion.  See
4566         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
4567         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
4568         trouble; this can occur if re_search_internal ran out of memory.
4569
4570 2012-02-26  Bruno Haible  <bruno@clisp.org>
4571
4572         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
4573         * m4/modfl-ieee.m4: New file.
4574         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
4575         whether modfl works with Inf. Replace it if not.
4576         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
4577         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
4578         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
4579         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
4580         (Depends-on): Update dependencies.
4581         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
4582         m4/signbit.m4.
4583         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
4584         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
4585
4586         modfl-ieee: Fix dependencies.
4587         * modules/modfl-ieee (Depends-on): Add modf-ieee.
4588
4589         modfl-ieee: Fix test failures.
4590         * lib/modfl.c (modfl): Treat NaN and Inf specially.
4591         * modules/modfl (Depends-on): Add isfinite, isinf.
4592
4593         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
4594         * m4/modff-ieee.m4: New file.
4595         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
4596         whether modff works with NaN and Inf. Replace it if not.
4597         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
4598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
4599         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
4600         * modules/modff (configure.ac): Consider REPLACE_MODFF.
4601         (Depends-on): Update dependencies.
4602         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
4603         m4/signbit.m4.
4604         (Depends-on): Add modf-ieee.
4605         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
4606         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
4607
4608         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
4609         * m4/modf-ieee.m4: New file.
4610         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
4611         whether modf works with NaN and Inf. Replace it if not.
4612         * lib/math.in.h (modf): New declaration.
4613         * lib/modf.c: New file.
4614         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
4615         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
4616         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
4617         * modules/modf (Files): Add lib/modf.c.
4618         (Depends-on): Add math, isfinite, trunc, isinf.
4619         (configure.ac): Addrange to compile lib/modf.c if needed.
4620         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
4621         m4/signbit.m4.
4622         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
4623         * tests/test-math-c++.cc: Check the declaration of modf.
4624         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
4625
4626         Tests for module 'modfl-ieee'.
4627         * modules/modfl-ieee-tests: New file.
4628         * tests/test-modfl-ieee.c: New file.
4629
4630         New module 'modfl-ieee'.
4631         * modules/modfl-ieee: New file.
4632
4633         Tests for module 'modf-ieee'.
4634         * modules/modf-ieee-tests: New file.
4635         * tests/test-modf-ieee.c: New file.
4636
4637         New module 'modf-ieee'.
4638         * modules/modf-ieee: New file.
4639
4640         Tests for module 'modff-ieee'.
4641         * modules/modff-ieee-tests: New file.
4642         * tests/test-modff-ieee.c: New file.
4643         * tests/test-modf-ieee.h: New file.
4644
4645         New module 'modff-ieee'.
4646         * modules/modff-ieee: New file.
4647
4648 2012-02-26  Bruno Haible  <bruno@clisp.org>
4649
4650         Tests for module 'fabsl-ieee'.
4651         * modules/fabsl-ieee-tests: New file.
4652         * tests/test-fabsl-ieee.c: New file.
4653
4654         New module 'fabsl-ieee'.
4655         * modules/fabsl-ieee: New file.
4656
4657         Tests for module 'fabs-ieee'.
4658         * modules/fabs-ieee-tests: New file.
4659         * tests/test-fabs-ieee.c: New file.
4660
4661         New module 'fabs-ieee'.
4662         * modules/fabs-ieee: New file.
4663
4664         Tests for module 'fabsf-ieee'.
4665         * modules/fabsf-ieee-tests: New file.
4666         * tests/test-fabsf-ieee.c: New file.
4667         * tests/test-fabs-ieee.h: New file.
4668
4669         New module 'fabsf-ieee'.
4670         * modules/fabsf-ieee: New file.
4671
4672 2012-02-26  Bruno Haible  <bruno@clisp.org>
4673
4674         Tests for module 'fmal-ieee'.
4675         * modules/fmal-ieee-tests: New file.
4676         * tests/test-fmal-ieee.c: New file.
4677
4678         New module 'fmal-ieee'.
4679         * modules/fmal-ieee: New file.
4680
4681         Tests for module 'fma-ieee'.
4682         * modules/fma-ieee-tests: New file.
4683         * tests/test-fma-ieee.c: New file.
4684
4685         New module 'fma-ieee'.
4686         * modules/fma-ieee: New file.
4687
4688         Tests for module 'fmaf-ieee'.
4689         * modules/fmaf-ieee-tests: New file.
4690         * tests/test-fmaf-ieee.c: New file.
4691         * tests/test-fma-ieee.h: New file.
4692
4693         New module 'fmaf-ieee'.
4694         * modules/fmaf-ieee: New file.
4695
4696 2012-02-26  Bruno Haible  <bruno@clisp.org>
4697
4698         Tests for module 'ldexpl-ieee'.
4699         * modules/ldexpl-ieee-tests: New file.
4700         * tests/test-ldexpl-ieee.c: New file.
4701
4702         New module 'ldexpl-ieee'.
4703         * modules/ldexpl-ieee: New file.
4704
4705         Tests for module 'ldexp-ieee'.
4706         * modules/ldexp-ieee-tests: New file.
4707         * tests/test-ldexp-ieee.c: New file.
4708
4709         New module 'ldexp-ieee'.
4710         * modules/ldexp-ieee: New file.
4711
4712         Tests for module 'ldexpf-ieee'.
4713         * modules/ldexpf-ieee-tests: New file.
4714         * tests/test-ldexpf-ieee.c: New file.
4715         * tests/test-ldexp-ieee.h: New file.
4716
4717         New module 'ldexpf-ieee'.
4718         * modules/ldexpf-ieee: New file.
4719
4720 2012-02-26  Bruno Haible  <bruno@clisp.org>
4721
4722         Refactor frexp*-ieee tests.
4723         * tests/test-frexp-ieee.h: New file.
4724         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
4725         (main): Just call test_function.
4726         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
4727         (main): Just call test_function.
4728         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
4729         (main): Just call test_function.
4730         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
4731         * modules/frexp-ieee-tests (Files): Likewise.
4732         * modules/frexpl-ieee-tests (Files): Likewise.
4733
4734         Tests for module 'frexpl-ieee'.
4735         * modules/frexpl-ieee-tests: New file.
4736         * tests/test-frexpl-ieee.c: New file.
4737
4738         New module 'frexpl-ieee'.
4739         * modules/frexpl-ieee: New file.
4740
4741         Tests for module 'frexp-ieee'.
4742         * modules/frexp-ieee-tests: New file.
4743         * tests/test-frexp-ieee.c: New file.
4744
4745         New module 'frexp-ieee'.
4746         * modules/frexp-ieee: New file.
4747
4748         Tests for module 'frexpf-ieee'.
4749         * modules/frexpf-ieee-tests: New file.
4750         * tests/test-frexpf-ieee.c: New file.
4751
4752         New module 'frexpf-ieee'.
4753         * modules/frexpf-ieee: New file.
4754
4755 2012-02-26  Bruno Haible  <bruno@clisp.org>
4756
4757         roundl-ieee tests: More tests.
4758         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4759         (main): Add tests for [MX] shaded specification in POSIX.
4760         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4761         (Depends-on): Add isnanl-nolibm.
4762
4763         round-ieee tests: More tests.
4764         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4765         (main): Add tests for [MX] shaded specification in POSIX.
4766         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4767         (Depends-on): Add isnand-nolibm.
4768
4769         roundf-ieee tests: More tests.
4770         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4771         (main): Add tests for [MX] shaded specification in POSIX.
4772         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4773         (Depends-on): Add isnanf-nolibm.
4774
4775         truncl-ieee tests: More tests.
4776         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4777         (main): Add tests for [MX] shaded specification in POSIX.
4778         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4779         (Depends-on): Add isnanl-nolibm.
4780
4781         trunc-ieee tests: More tests.
4782         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4783         (main): Add tests for [MX] shaded specification in POSIX.
4784         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4785         (Depends-on): Add isnand-nolibm.
4786
4787         truncf-ieee tests: More tests.
4788         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4789         (main): Add tests for [MX] shaded specification in POSIX.
4790         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4791         (Depends-on): Add isnanf-nolibm.
4792
4793         ceill-ieee tests: More tests.
4794         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4795         (main): Add tests for [MX] shaded specification in POSIX.
4796         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4797         (Depends-on): Add isnanl-nolibm.
4798
4799         ceil-ieee tests: More tests.
4800         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4801         (main): Add tests for [MX] shaded specification in POSIX.
4802         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4803         (Depends-on): Add isnand-nolibm.
4804
4805         ceilf-ieee tests: More tests.
4806         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4807         (main): Add tests for [MX] shaded specification in POSIX.
4808         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4809         (Depends-on): Add isnanf-nolibm.
4810
4811         floorl-ieee tests: More tests.
4812         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4813         (main): Add tests for [MX] shaded specification in POSIX.
4814         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4815         (Depends-on): Add isnanl-nolibm.
4816
4817         floor-ieee tests: More tests.
4818         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4819         (main): Add tests for [MX] shaded specification in POSIX.
4820         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4821         (Depends-on): Add isnand-nolibm.
4822
4823         floorf-ieee tests: More tests.
4824         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4825         (main): Add tests for [MX] shaded specification in POSIX.
4826         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4827         (Depends-on): Add isnanf-nolibm.
4828
4829 2012-02-26  Bruno Haible  <bruno@clisp.org>
4830
4831         fpieee: More comments.
4832         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
4833
4834 2012-02-25  Bruno Haible  <bruno@clisp.org>
4835
4836         Tests for module 'log10l'.
4837         * modules/log10l-tests: New file.
4838         * tests/test-log10l.c: New file.
4839         * tests/test-math-c++.cc: Check the declaration of log10l.
4840
4841         New module 'log10l'.
4842         * lib/math.in.h (log10l): New declaration.
4843         * lib/log10l.c: New file.
4844         * m4/log10l.m4: New file.
4845         * modules/log10l: New file.
4846         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
4847         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
4848         HAVE_DECL_LOG10L.
4849         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
4850         HAVE_DECL_LOG10L.
4851         * doc/posix-functions/log10l.texi: Mention the new module.
4852
4853 2012-02-25  Bruno Haible  <bruno@clisp.org>
4854
4855         fmodl, remainder*: Avoid wrong results due to rounding errors.
4856         * lib/fmodl.c (fmodl): Correct the result if it is not within the
4857         expected bounds.
4858         * lib/remainderf.c (remainderf): Likewise.
4859         * lib/remainder.c (remainder): Likewise.
4860         * lib/remainderl.c (remainderl): Likewise.
4861
4862 2012-02-25  Bruno Haible  <bruno@clisp.org>
4863
4864         Tests for module 'remainderl'.
4865         * modules/remainderl-tests: New file.
4866         * tests/test-remainderl.c: New file.
4867         * tests/test-math-c++.cc: Check the declaration of remainderl.
4868
4869         New module 'remainderl'.
4870         * lib/math.in.h (remainderl): New declaration.
4871         * lib/remainderl.c: New file.
4872         * m4/remainderl.m4: New file.
4873         * modules/remainderl: New file.
4874         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
4875         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
4876         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
4877         HAVE_REMAINDERL.
4878         * doc/posix-functions/remainderl.texi: Mention the new module.
4879
4880 2012-02-25  Bruno Haible  <bruno@clisp.org>
4881
4882         Tests for module 'remainderf'.
4883         * modules/remainderf-tests: New file.
4884         * tests/test-remainderf.c: New file.
4885         * tests/test-math-c++.cc: Check the declaration of remainderf.
4886
4887         New module 'remainderf'.
4888         * lib/math.in.h (remainderf): New declaration.
4889         * lib/remainderf.c: New file.
4890         * m4/remainderf.m4: New file.
4891         * modules/remainderf: New file.
4892         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
4893         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
4894         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
4895         HAVE_REMAINDERF.
4896         * doc/posix-functions/remainderf.texi: Mention the new module.
4897
4898 2012-02-25  Bruno Haible  <bruno@clisp.org>
4899
4900         remainder: Support for MSVC.
4901         * lib/math.in.h (remainder): New declaration.
4902         * lib/remainder.c: New file.
4903         * m4/remainder.m4: New file.
4904         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
4905         (Depends-on): Add math, round, fma.
4906         (configure.ac): Use results of gl_FUNC_REMAINDER.
4907         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
4908         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
4909         HAVE_DECL_REMAINDER.
4910         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
4911         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
4912         * tests/test-math-c++.cc: Check the declaration of remainder.
4913         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
4914         problems are fixed.
4915
4916 2012-02-25  Bruno Haible  <bruno@clisp.org>
4917
4918         Tests for module 'fmodl'.
4919         * modules/fmodl-tests: New file.
4920         * tests/test-fmodl.c: New file.
4921         * tests/test-math-c++.cc: Check the declaration of fmodl.
4922
4923         New module 'fmodl'.
4924         * lib/math.in.h (fmodl): New declaration.
4925         * lib/fmodl.c: New file.
4926         * m4/fmodl.m4: New file.
4927         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
4928         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
4929         REPLACE_FMODL.
4930         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
4931         REPLACE_FMODL.
4932         * modules/fmodl: New file.
4933         * doc/posix-functions/fmodl.texi: Mention the new module.
4934
4935 2012-02-25  Bruno Haible  <bruno@clisp.org>
4936
4937         Tests for module 'modfl'.
4938         * modules/modfl-tests: New file.
4939         * tests/test-modfl.c: New file.
4940         * tests/test-math-c++.cc: Check the declaration of modfl.
4941
4942         New module 'modfl'.
4943         * lib/math.in.h (modfl): New declaration.
4944         * lib/modfl.c: New file.
4945         * m4/modfl.m4: New file.
4946         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
4947         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
4948         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
4949         * modules/modfl: New file.
4950         * doc/posix-functions/modfl.texi: Mention the new module.
4951
4952 2012-02-25  Bruno Haible  <bruno@clisp.org>
4953
4954         Tests for module 'fabsl'.
4955         * modules/fabsl-tests: New file.
4956         * tests/test-fabsl.c: New file.
4957         * tests/test-math-c++.cc: Check the declaration of fabsl.
4958
4959         New module 'fabsl'.
4960         * lib/math.in.h (fabsl): New declaration.
4961         * lib/fabsl.c: New file.
4962         * m4/fabsl.m4: New file.
4963         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
4964         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
4965         REPLACE_FABSL.
4966         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
4967         REPLACE_FABSL.
4968         * modules/fabsl: New file.
4969         * doc/posix-functions/fabsl.texi: Mention the new module.
4970
4971 2012-02-25  Bruno Haible  <bruno@clisp.org>
4972
4973         fabs tests: More tests.
4974         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
4975         (zero): New variable.
4976         (main): Add tests for signed zero.
4977         * modules/fabs-tests (Files): Add tests/minus-zero.h.
4978
4979         fabsf tests: More tests.
4980         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
4981         (zero): New variable.
4982         (main): Add tests for signed zero.
4983         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
4984
4985 2012-02-24  Bruno Haible  <bruno@clisp.org>
4986
4987         atanl: Provide function definition on MSVC.
4988         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
4989         function pointer.
4990         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
4991
4992 2012-02-24  Bruno Haible  <bruno@clisp.org>
4993
4994         acosl: Provide function definition on MSVC.
4995         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
4996         function pointer.
4997         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
4998
4999 2012-02-24  Bruno Haible  <bruno@clisp.org>
5000
5001         asinl: Provide function definition on MSVC.
5002         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
5003         function pointer.
5004         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
5005
5006 2012-02-24  Bruno Haible  <bruno@clisp.org>
5007
5008         tanl: Provide function definition on MSVC.
5009         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
5010         function pointer.
5011         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
5012
5013 2012-02-24  Bruno Haible  <bruno@clisp.org>
5014
5015         cosl: Provide function definition on MSVC.
5016         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
5017         function pointer.
5018         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
5019
5020 2012-02-24  Bruno Haible  <bruno@clisp.org>
5021
5022         sinl: Provide function definition on MSVC.
5023         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
5024         function pointer.
5025         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
5026
5027 2012-02-24  Bruno Haible  <bruno@clisp.org>
5028
5029         logl: Provide function definition on MSVC.
5030         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
5031         function pointer.
5032         * lib/math.in.h (logl): Undefine if it does not exist as a function.
5033
5034 2012-02-24  Bruno Haible  <bruno@clisp.org>
5035
5036         expl: Provide function definition on MSVC.
5037         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
5038         function pointer.
5039         * lib/math.in.h (expl): Undefine if it does not exist as a function.
5040
5041 2012-02-24  Bruno Haible  <bruno@clisp.org>
5042
5043         sqrtl: Provide function definition on MSVC.
5044         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
5045         a function pointer.
5046         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
5047
5048 2012-02-24  Bruno Haible  <bruno@clisp.org>
5049
5050         ceill: Provide function definition on MSVC.
5051         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
5052         used as a function pointer.
5053         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
5054
5055 2012-02-24  Bruno Haible  <bruno@clisp.org>
5056
5057         floorl: Provide function definition on MSVC.
5058         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
5059         used as a function pointer.
5060         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
5061
5062 2012-02-24  Bruno Haible  <bruno@clisp.org>
5063
5064         ceilf: Provide function definition on MSVC.
5065         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
5066         used as a function pointer.
5067         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
5068
5069 2012-02-24  Bruno Haible  <bruno@clisp.org>
5070
5071         floorf: Provide function definition on MSVC.
5072         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
5073         used as a function pointer.
5074         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
5075
5076 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
5077
5078         stdnoreturn: new module
5079         This implements a replacement for C11's <stdnoreturn.h>.
5080         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
5081         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
5082         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5083         * tests/test-stdnoreturn.c: New files.
5084
5085 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
5086
5087         regex: fix false multibyte matches in some regular expressions
5088         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
5089         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
5090         * lib/regex_internal.c (re_string_skip_chars):
5091         Fix miscomputation of remain_len that may cause incomplete
5092         multi-byte character and false match.
5093
5094 2012-02-24  Jim Meyering  <meyering@redhat.com>
5095
5096         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
5097         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
5098         uses with "==" *before* the call, e.g., 0 == strcmp (...)
5099         Remove now-unnecessary str''cmp obfuscation.
5100         Suggested by Akim Demaille.
5101
5102 2012-02-24  Bruno Haible  <bruno@clisp.org>
5103
5104         streq: Rename macro.
5105         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
5106         * NEWS: Mention the change.
5107         * lib/mbrtowc.c (mbrtowc): Update.
5108         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
5109         * lib/wcwidth.c (wcwidth): Update.
5110         Suggested by Akim Demaille and Jim Meyering.
5111
5112 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
5113
5114         regex: fix typo in definition of MIN
5115         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
5116         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
5117
5118 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
5119             Bruno Haible  <bruno@clisp.org>
5120
5121         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
5122         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
5123         entries into a stack-allocated buffer directly.
5124         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
5125
5126 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
5127             Bruno Haible  <bruno@clisp.org>
5128
5129         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
5130
5131          - There were several instances of this pattern:
5132
5133              for (;;) {
5134                n = acl (f, GETACLCNT, 0, NULL);
5135                [ allocate an array A of size N ]
5136                if (acl (f, GETACL, n, a) == n)
5137                  break;
5138              }
5139
5140            This loop might never terminate if some other process is constantly
5141            manipulating the file's ACL.  The loop should be rewritten to
5142            terminate.
5143
5144          - The acl (... GETACLNT ...) call is merely an optimization; its value
5145            is merely a hint as to how big to make the array.  A better
5146            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
5147            and just guess a reasonably-big size, growing the size and trying
5148            again if it's not large enough.  This guarantees termination, and
5149            saves a system call.
5150
5151         * lib/acl-internal.h: Include <limits.h>.
5152         (MIN, SIZE_MAX): New macros.
5153         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
5154         a stack-allocated buffer, and use malloc if it does not fit. Don't
5155         use GETACLCNT.
5156         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
5157
5158 2012-02-19  Bruno Haible  <bruno@clisp.org>
5159
5160         acl: Fix endless loop on Solaris with vxfs.
5161         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
5162         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
5163         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
5164         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
5165         * tests/test-sameacls.c (main)[Solaris]: Likewise.
5166         Reported by Bill Jones in
5167         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
5168
5169 2012-02-19  Bruno Haible  <bruno@clisp.org>
5170
5171         acl: Fix copy-acl test failure on Solaris 11 2011-11.
5172         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
5173         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
5174         that this function returns 0 in some more cases.
5175
5176 2012-02-19  Bruno Haible  <bruno@clisp.org>
5177
5178         acl: Update doc references.
5179         * doc/acl-resources.txt: Update links to Solaris documentation.
5180
5181 2012-02-19  Bruno Haible  <bruno@clisp.org>
5182
5183         Fix test failure in many locales on Solaris 11.
5184         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
5185         'tr' arguments.
5186         * tests/test-pipe-filter-ii1.c (main): Likewise.
5187         * build-aux/bootstrap (check_versions): Run 'tr' command with range
5188         expressions in the C locale.
5189         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
5190         * m4/host-os.m4 (gl_HOST_OS): Likewise.
5191
5192 2012-02-19  Bruno Haible  <bruno@clisp.org>
5193
5194         gnulib-tool: Improve usage message.
5195         * gnulib-tool (func_usage): Move doc of --help and --version to the
5196         section "Operation modes".
5197
5198 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
5199
5200         README-release: make it easier to execute commands
5201         * top/README-release: break commands out on to separate lines.
5202
5203 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
5204
5205         GNUmakefile: simplify detection of unconfigured trees
5206         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
5207         whether the tree make is being run from is already configured or
5208         not.  Related simplifications.
5209
5210 2012-02-13  Simon Josefsson  <simon@josefsson.org>
5211
5212         * gnulib-tool (func_usage): Document --help and --version.
5213
5214 2012-02-11  Jim Meyering  <meyering@redhat.com>
5215
5216         bootstrap: don't exit 0 upon gnulib-tool failure
5217         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
5218         its exit status, not 0.
5219
5220 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
5221
5222         README-release: various improvements
5223         * top/README-release: Give a command to push changes for the
5224         release.  Add "distcheck" to list of other pre-release checks.
5225         Fix instance of "make stable" which should be "make TYPE".
5226
5227 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5228
5229         maint: replace FSF snail-mail addresses with URLs
5230         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
5231         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
5232         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
5233         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
5234         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
5235         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
5236         * lib/check-version.c, lib/check-version.h, lib/config.charset:
5237         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
5238         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
5239         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
5240         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
5241         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
5242         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
5243         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
5244         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
5245         * lib/glthread/thread.c, lib/glthread/thread.h:
5246         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
5247         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
5248         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
5249         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
5250         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
5251         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
5252         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
5253         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
5254         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
5255         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
5256         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
5257         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
5258         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
5259         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
5260         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
5261         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
5262         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
5263         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
5264         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
5265         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
5266         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
5267         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
5268         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
5269         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
5270         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
5271         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
5272         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
5273         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
5274         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
5275         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
5276         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
5277         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
5278         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
5279         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
5280         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
5281         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
5282         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
5283         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
5284         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
5285         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
5286         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
5287         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
5288         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
5289         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
5290         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
5291         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
5292         * tests/test-poll.c, tests/test-quotearg-simple.c:
5293         * tests/test-quotearg.c, tests/test-quotearg.h:
5294         * tests/test-round-ieee.c, tests/test-round1.c:
5295         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
5296         * tests/test-roundl-ieee.c, tests/test-roundl.c:
5297         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
5298         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
5299         * tests/test-strerror.c, tests/test-strerror_r.c:
5300         * tests/test-strsignal.c, tests/test-strverscmp.c:
5301         * tests/test-xmemdup0.c:
5302         Replace FSF snail mail addresses with URLs, as per GNU coding
5303         standards.  See glibc bug
5304         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
5305
5306 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5307
5308         README-release: capitalize a word and split a line
5309         * top/README-release: Fix punctuation and spacing.
5310
5311 2012-02-08  Akim Demaille  <demaille@gostai.com>
5312
5313         fatal-signal: use C prototypes (with explicit void).
5314         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
5315         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
5316
5317 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5318
5319         regex: spelling fix
5320         * lib/regexec.c: spelling fix
5321
5322         regex: rely on stdint.h for SIZE_MAX
5323         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
5324
5325 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5326
5327         regex: merge glibc changes
5328
5329         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
5330         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
5331         (init_word_char): Work even if bitset words are not exactly 32 or
5332         64 bits wide.  Don't assume there are no padding bits.
5333         * lib/regex.c [_LIBC]: Do not include <config.h>.
5334         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
5335         and -Wtype-limits.
5336         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
5337         needless disagreement with glibc.  All uses changed.  Define it to
5338         1 only if _GNU_SOURCE, to match glibc.
5339         (_REG_RM_NAME): Remove; no longer needed, since the names in
5340         question are now all protected by __USE_GNU.
5341         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
5342         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
5343         * lib/regex_internal.h (MIN): New macro.
5344
5345         2012-01-03 Ulrich Drepper <drepper@gmail.com>
5346         * lib/regcomp.c (init_word_char): Optimize regex a bit.
5347
5348         2011-12-30 Jakub Jelinek <jakub@redhat.com>
5349         * lib/regex_internal.c (re_string_fetch_byte_case):
5350         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
5351         is miscompiled, and it turns out it is because of an incorrect
5352         attribute on re_string_fetch_byte_case.  Unlike
5353         re_string_peek_byte_case, this one is really not pure, it modifies
5354         memory (increments pstr->cur_idx), and with the pure attribute GCC
5355         assumed it doesn't and it cached the presumed value of
5356         regexp->cur_idx in a variable across the
5357          for (;; ++i)
5358            {
5359              if (i >= BRACKET_NAME_BUF_SIZE)
5360                return REG_EBRACK;
5361              if (token->type == OP_OPEN_CHAR_CLASS)
5362                ch = re_string_fetch_byte_case (regexp);
5363              else
5364                ch = re_string_fetch_byte (regexp);
5365              if (re_string_eoi(regexp))
5366                return REG_EBRACK;
5367              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
5368                break;
5369              elem->opr.name[i] = ch;
5370            }
5371
5372         2011-11-29 Andreas Schwab <schwab@redhat.com>
5373         * lib/regcomp.c (build_equiv_class):
5374         Fix access after end of search string in regex matcher.
5375
5376         2011-11-12 Ulrich Drepper <drepper@redhat.com>
5377         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
5378
5379         2011-10-12 Ulrich Drepper <drepper@redhat.com>
5380         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
5381
5382         2011-10-11 Ulrich Drepper <drepper@redhat.com>
5383         * lib/regcomp.c (parse_branch, parse_sub_exp):
5384         More regex memory leak fixes and tests.
5385         (parse_sub_exp, parse_bracket_exp):
5386         Fix memory leak for some invalid regular expressions.
5387
5388         2011-05-28 Ulrich Drepper <drepper@gmail.com>
5389         * lib/regex_internal.c, lib/regexec.c:
5390         Fix unnecessary overallocation due to incomplete character.  When
5391         incomplete characters are found at the end of a string the code
5392         ran amok and allocated lots of memory.  Stricter limits are now in
5393         place.
5394
5395         2011-05-20 Reuben Thomas <rrt@sc3d.org>
5396         * lib/regex.h: Update documentation.
5397
5398         2011-05-16 Aharon Robbins <arnold@skeeve.com>
5399         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
5400
5401         2010-05-05 Andreas Schwab <schwab@redhat.com>
5402         * lib/regexec.c (find_collation_sequence_value):
5403         Fix lookup of collation sequence value during regexp matching.
5404
5405         2010-01-22 Ulrich Drepper <drepper@redhat.com>
5406         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
5407
5408         2008-01-16 Ulrich Drepper <drepper@redhat.com>
5409         * lib/regex.h: Cleanup namespace.
5410
5411         2007-11-26 Ulrich Drepper <drepper@redhat.com>
5412         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
5413
5414         2007-08-26 Ulrich Drepper <drepper@redhat.com>
5415         * lib/regex_internal.h: Prevent some declarations and definitions
5416         to be seen when used in tests.
5417
5418         2005-05-06 Ulrich Drepper <drepper@redhat.com>
5419         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
5420         __libc_lock_* macros if not _LIBC.
5421         (struct re_dfa_t): Add lock.
5422
5423 2012-02-07  Eric Blake  <eblake@redhat.com>
5424
5425         maint.mk: also prohibit lower-case @var@
5426         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
5427         lower case, like @top_srcdir@.
5428
5429 2012-02-04  Eric Blake  <eblake@redhat.com>
5430
5431         canonicalize: avoid uninitialized memory use
5432         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
5433         random '/' left in dest.
5434         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
5435
5436 2012-02-04  Bruno Haible  <bruno@clisp.org>
5437
5438         isatty: Fix test failure of ptsname_r on native Windows.
5439         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
5440         and don't set errno.
5441         (isatty): Test first whether fd is valid. Set errno when returning 0.
5442
5443 2012-02-04  Bruno Haible  <bruno@clisp.org>
5444
5445         spawn-pipe tests: Fix a NULL program name in a diagnostic.
5446         * tests/test-spawn-pipe-main.c: Include progname.h.
5447         (main): Invoke set_program_name.
5448         * modules/spawn-pipe-tests (Depends-on): Add progname.
5449
5450         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
5451         * tests/test-nonblocking-socket-main.c: Include progname.h.
5452         (main): Invoke set_program_name.
5453         * modules/nonblocking-socket-tests (Depends-on): Add progname.
5454
5455         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
5456         * tests/test-nonblocking-pipe-main.c: Include progname.h.
5457         (main): Invoke set_program_name.
5458         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
5459
5460 2012-02-04  Eric Blake  <eblake@redhat.com>
5461
5462         canonicalize-lgpl: fix // handling
5463         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
5464
5465         canonicalize: fix // handling
5466         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
5467         /// to //, since only // is special.
5468
5469 2012-02-04  Bruno Haible  <bruno@clisp.org>
5470
5471         ioctl: Fix test failure on native Windows.
5472         * lib/ioctl.c: Include msvc-nothrow.h.
5473         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
5474
5475 2012-02-04  Bruno Haible  <bruno@clisp.org>
5476
5477         fsync: Avoid test failure on native Windows.
5478         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
5479         read-only.
5480
5481 2012-02-04  Bruno Haible  <bruno@clisp.org>
5482
5483         sys_select: Avoid syntax error on OpenBSD 5.0.
5484         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
5485         currently being included, just include the system's <sys/select.h>.
5486
5487 2012-02-04  Bruno Haible  <bruno@clisp.org>
5488
5489         sys_select: Avoid syntax error on OpenBSD 5.0.
5490         * lib/sys_select.in.h: Include <signal.h> only after the include_next
5491         <sys/select.h>, not before.
5492         Reported by Jiri B <jirib@devio.us>.
5493
5494 2012-02-04  Bruno Haible  <bruno@clisp.org>
5495
5496         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
5497         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
5498         global variables.
5499         * tests/test-get-rusage-data.c (main): Likewise.
5500         Reported by Jim Meyering.
5501
5502 2012-02-04  Bruno Haible  <bruno@clisp.org>
5503
5504         stdioext: Fix last commit.
5505         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
5506
5507 2012-02-03  Bruno Haible  <bruno@clisp.org>
5508
5509         stdioext: Add tentative support for Plan9.
5510         * lib/stdio-impl.h: Include <errno.h>.
5511         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
5512         * lib/freadable.c (freadable): Likewise.
5513         * lib/fwritable.c (fwritable): Likewise.
5514         * lib/fbufmode.c (fbufmode): Likewise.
5515         * lib/freading.c (freading): Likewise.
5516         * lib/fwriting.c (fwriting): Likewise.
5517         * lib/freadptr.c (freadptr): Likewise.
5518         * lib/freadseek.c (freadptrinc): Likewise.
5519         * lib/freadahead.c (freadahead): Likewise.
5520         * lib/fpurge.c (fpurge): Likewise.
5521         * lib/fseeko.c (rpl_fseeko): Likewise.
5522         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
5523         Reported by Jens Staal <staal1978@gmail.com>.
5524
5525 2012-02-02  Jim Meyering  <meyering@redhat.com>
5526
5527         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
5528         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
5529         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
5530         not even to try to add the attribute.  Instead, add a pragma to suppress
5531         the suggestion/warning.
5532
5533 2012-01-31  Karl Berry  <karl@gnu.org>
5534
5535         setstate doc: typo.
5536         * doc/posix-functions/setstate.texi (setstate): { not (.
5537
5538 2012-01-31  Bruno Haible  <bruno@clisp.org>
5539
5540         popen: Make more robust on Windows.
5541         * lib/popen.c: On native Windows, use the _popen based code even if
5542         HAVE_POPEN is set.
5543         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
5544         environment variable on native Windows.
5545
5546 2012-01-30  Bruno Haible  <bruno@clisp.org>
5547
5548         pclose: Fix typo.
5549         * lib/stdio.in.h (pclose): Fix typo in warning message.
5550
5551 2012-01-30  Bruno Haible  <bruno@clisp.org>
5552
5553         doc about getlogin_r, setstate.
5554         * doc/posix-functions/getlogin_r.texi: List the incompatible
5555         declaration problem under "not fixed by gnulib".
5556         * doc/posix-functions/setstate.texi: Mention incompatible declaration
5557         problem on Solaris 11 and other platforms.
5558
5559 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
5560             Bruno Haible  <bruno@clisp.org>
5561
5562         poll tests: Make test more robust.
5563         * tests/test-poll.c: Include macros.h.
5564         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
5565         return value of various I/O operations.
5566         * modules/poll-tests (Files): Add tests/macros.h.
5567
5568 2012-01-30  Bruno Haible  <bruno@clisp.org>
5569
5570         sys_stat: Fix support for mingw64 and MSVC.
5571         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
5572         header files already do it.
5573         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
5574         stat itself.
5575         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5576
5577 2012-01-30  Bruno Haible  <bruno@clisp.org>
5578
5579         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
5580         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
5581         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
5582
5583 2012-01-29  Bruno Haible  <bruno@clisp.org>
5584
5585         quotearg: Fix test failure on MacOS X 10.5.
5586         * tests/test-quotearg-simple.c: Include localcharset.h.
5587         (main): If the locale encoding is not ASCII, bypass the tests of
5588         locale_quoting_style and clocale_quoting_style.
5589         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
5590
5591 2012-01-29  Jim Meyering  <meyering@redhat.com>
5592
5593         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
5594         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
5595         detect uses of canonicalize_file_name.
5596
5597 2012-01-28  Bruno Haible  <bruno@clisp.org>
5598
5599         test-framework-sh: Fix test failure with AIX 7.1 diff.
5600         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
5601         in column 1, like 'diff -c' does.
5602         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
5603         whether 'diff -u' is used. Instead, test whether the output contains
5604         some '@' character.
5605
5606 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5607
5608         strtoimax: eliminate need for stdint.h, inttypes.h checks
5609         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
5610         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
5611         the prerequisites for a recently-introduced strtoimax test.
5612         I guess this might cause strtoimax to be replaced when not
5613         strictly necessary on older hosts, but this shouldn't introduce
5614         any bugs and it should make Emacs 'configure' faster on typical
5615         modern hosts.  Problem discovered when importing the latest gnulib
5616         to an Emacs test version.
5617         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
5618
5619 2012-01-28  Bruno Haible  <bruno@clisp.org>
5620
5621         sys_time: Override 'struct timeval' on some native Windows platforms.
5622         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
5623         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
5624         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
5625         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
5626         needs to be overridden.
5627         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
5628         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
5629         * tests/test-sys_select.c: Check that the tv_sec member has the same
5630         size as a 'time_t'.
5631         * tests/test-sys_time.c: Likewise.
5632         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
5633         is set, set also REPLACE_GETTIMEOFDAY.
5634         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
5635         convert the resulting 'struct timeval' before returning.
5636         * lib/select.c: Include <sys/time.h>.
5637         (select, timeval): Undefine at the right place.
5638         * modules/select (Depends-on): Add sys_time.
5639         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
5640         some Windows platforms.
5641         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5642
5643 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5644
5645         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
5646         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
5647         an integer.
5648         * lib/fcntl.c (dupfd): Likewise.
5649         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
5650
5651 2012-01-28  Bruno Haible  <bruno@clisp.org>
5652
5653         fcntl: Avoid compilation error on native Windows.
5654         * modules/fcntl (Depends-on): Add 'close'.
5655
5656 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5657
5658         select, poll, isatty: Avoid warnings on x86_64 mingw64.
5659         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
5660         pointer to an integer.
5661         * lib/poll.c (IsConsoleHandle): Likewise.
5662         * lib/isatty.c (IsConsoleHandle): Likewise.
5663
5664 2012-01-28  Jim Meyering  <meyering@redhat.com>
5665
5666         doc: clarify README-release
5667         * top/README-release: Clarify: you should make a point to have
5668         the latest stable versions of build tools in your PATH, and the
5669         reference to buildreq is solely for its list of tool names, not
5670         for its minimal-functional version numbers.
5671         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
5672
5673         maint.mk: use more readable (yet functionally equivalent) quoting
5674         It is common to quote a single quote in a single quoted string like
5675         this:  '...'\''...'.  Unless you know the idiom, that looks like
5676         gibberish, so prefer to double-quote the string when possible.
5677         Then you can use a more readable, lone single quote: "...'..."
5678         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
5679         "don't" is more readable than the equivalent 'don'\''t'.
5680         (sc_cast_of_x_alloc_return_value): Likewise.
5681         (sc_cast_of_alloca_return_value): Likewise.
5682         (sc_makefile_path_separator_check): Similar: use ":" in '...',
5683         rather than '\'':'\''.
5684
5685 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5686
5687         stdalign: relax _Alignof and tighten _Alignas test
5688         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
5689         as it was too strict: alignof must divide offsetof, but it need
5690         not equal offsetof.  Inspired by Joseph S. Myers's comment
5691         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
5692         Conversely, tighten the _Alignas test a bit, as the resulting
5693         alignment must be exactly 8.
5694
5695 2012-01-27  Bruno Haible  <bruno@clisp.org>
5696
5697         stdalign: Document the last change.
5698         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
5699
5700 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5701
5702         stdalign: check that alignof and offsetof are consistent
5703         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
5704         Problem reported for gnulib by Richard W.M. Jones in
5705         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
5706
5707 2012-01-27  Jim Meyering  <meyering@redhat.com>
5708
5709         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
5710         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
5711         convert a sequence with gaps to the minimal containing range.
5712         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
5713         * tests/test-update-copyright.sh: Test for this.
5714         The FSF confirmed it is ok to do this, assuming there is at
5715         least one significant change per year in the affected range:
5716         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
5717
5718 2012-01-26  Bruno Haible  <bruno@clisp.org>
5719
5720         pipe2: refine doc about thread-safety
5721         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
5722         multithread-safety problem.
5723         * doc/glibc-functions/accept4.texi: Likewise.
5724
5725 2012-01-26  Bruno Haible  <bruno@clisp.org>
5726
5727         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
5728         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
5729         In the test program, include <fcntl.h>, for O_RDONLY.
5730
5731 2012-01-26  Eric Blake  <eblake@redhat.com>
5732
5733         pipe2: document lack of thread-safety in replacement
5734         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
5735         issue in replacement.
5736         * doc/glibc-functions/accept4.texi (accept4): Likewise.
5737         Based on a report by Eric Wong.
5738
5739 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5740             Bruno Haible  <bruno@clisp.org>
5741
5742         malloca: Avoid warnings on x86_64 mingw64.
5743         * lib/malloca.c: Include <stdint.h>.
5744         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
5745         * modules/malloca (Depends-on): Add stdint.
5746         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
5747
5748 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
5749
5750         obstack: remove __STDC__ conditionals
5751         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
5752         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
5753         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
5754         m4/include_next.m4 as the only gnulib-maintained places that still
5755         refer to __STDC__.
5756
5757 2012-01-24  Bruno Haible  <bruno@clisp.org>
5758
5759         havelib: Modern quoting.
5760         * build-aux/config.rpath: Quote 'like this', not `like this', as per
5761         the recent change to the GNU coding standards.
5762
5763 2012-01-24  Bruno Haible  <bruno@clisp.org>
5764
5765         stdint: Improve support for Android.
5766         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
5767         Reported by Simon Josefsson <simon@josefsson.org>.
5768
5769 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5770
5771         doc: omit trailing empty lines from INSTALL etc.
5772         * doc/Makefile (INSTALL): Omit trailing empty lines.
5773         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
5774         omit trailing empty lines.  This simplifies the build procedure.
5775
5776 2012-01-23  Jim Meyering  <meyering@redhat.com>
5777
5778         tests: avoid spurious warnings about gl_sockets_startup
5779         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
5780         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
5781         reporting a "statement with no effect".
5782         * tests/test-accept.c (main): Mark as "(void)".
5783         * tests/test-accept4.c (main): Likewise.
5784         * tests/test-bind.c (main): Likewise.
5785         * tests/test-connect.c (main): Likewise.
5786         * tests/test-getpeername.c (main): Likewise.
5787         * tests/test-getsockname.c (main): Likewise.
5788         * tests/test-getsockopt.c (main): Likewise.
5789         * tests/test-listen.c (main): Likewise.
5790         * tests/test-recv.c (main): Likewise.
5791         * tests/test-recvfrom.c (main): Likewise.
5792         * tests/test-send.c (main): Likewise.
5793         * tests/test-sendto.c (main): Likewise.
5794         * tests/test-setsockopt.c (main): Likewise.
5795         * tests/test-shutdown.c (main): Likewise.
5796
5797 2012-01-21  Bruno Haible  <bruno@clisp.org>
5798
5799         locale-fr.m4: Fix for Android.
5800         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
5801         failure of the test program on Bionic libc.
5802
5803 2012-01-21  Jim Meyering  <meyering@redhat.com>
5804
5805         bootstrap: fail when bootstrap_post_import_hook fails
5806         Otherwise, it's far too easy to miss diagnostics emitted
5807         between gnulib-tool's output and that of running configure.
5808         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
5809
5810 2012-01-17  Jim Meyering  <meyering@redhat.com>
5811
5812         maint: enable sc_trailing_blank
5813         * build-aux/pmccabe.css: Remove trailing blanks.
5814         * doc/acl-cygwin.txt: Likewise.
5815         * doc/gnu-oids.texi: Likewise
5816         * cfg.mk: Enable sc_trailing_blank.
5817         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
5818
5819 2012-01-17  Jim Meyering  <meyering@redhat.com>
5820
5821         maint: enable sc_prohibit_openat_without_use
5822         * cfg.mk: Enable sc_prohibit_openat_without_use.
5823         Exempt lib/selinux-at.c.
5824
5825 2012-01-17  Jim Meyering  <meyering@redhat.com>
5826
5827         maint: enable sc_prohibit_cloexec_without_use
5828         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
5829         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
5830
5831 2012-01-17  Jim Meyering  <meyering@redhat.com>
5832
5833         maint: enable sc_prohibit_intprops_without_use
5834         * cfg.mk: Enable sc_prohibit_intprops_without_use
5835         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
5836
5837 2012-01-17  Jim Meyering  <meyering@redhat.com>
5838
5839         maint: enable sc_prohibit_hash_pjw_without_use
5840         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
5841         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
5842         to match any use of \<hash_pjw\>, i.e., not necessarily with a
5843         following " (".
5844
5845 2012-01-17  Jim Meyering  <meyering@redhat.com>
5846
5847         maint: enable double-word-prohibiting rule
5848         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
5849         Exempt three files.
5850
5851 2012-01-17  Jim Meyering  <meyering@redhat.com>
5852
5853         maint: remove empty lines at EOF, but excluding modules/*
5854         Apply syntax rules at home as well as abroad.  Most changes
5855         were induced by running this:
5856           make srcdir=. _build-aux=build-aux -f top/maint.mk \
5857             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
5858             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
5859         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
5860         Exempt modules/* and two binary files.
5861         Also exempt doc/INSTALL*, per request from Bruno Haible.
5862         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
5863         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
5864         * doc/Copyright/request-assign.future: Likewise.
5865         * doc/Copyright/request-disclaim.changes: Likewise.
5866         * doc/INSTALL: Likewise.
5867         * doc/INSTALL.ISO: Likewise.
5868         * doc/INSTALL.UTF-8: Likewise.
5869         * doc/acl-cygwin.txt: Likewise.
5870         * doc/acl-resources.txt: Likewise.
5871         * doc/fdl-1.2.texi: Likewise.
5872         * doc/fdl-1.3.texi: Likewise.
5873         * doc/fdl.texi: Likewise.
5874         * lib/argp-pin.c: Likewise.
5875         * lib/round.c: Likewise.
5876         * lib/unicase/u16-totitle.c: Likewise.
5877         * lib/unictype/block_test.c: Likewise.
5878         * lib/uninorm/canonical-decomposition.c: Likewise.
5879         * m4/README: Likewise.
5880         * m4/relocatable-lib.m4: Likewise.
5881         * tests/test-isnand-nolibm.c: Likewise.
5882         * tests/test-isnand.c: Likewise.
5883         * tests/uninorm/NormalizationTest.txt: Likewise.
5884
5885 2012-01-17  Jim Meyering  <meyering@redhat.com>
5886
5887         maint: add framework to run syntax-check rules against gnulib sources
5888         * cfg.mk: New file, to disable all currently-failing tests.
5889         We'll enable them one by one, as they are made to pass.
5890         * Makefile (sc_maint): New rule.
5891
5892 2012-01-21  Bruno Haible  <bruno@clisp.org>
5893
5894         stdint: Add support for Android.
5895         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
5896         include the system's <stdint.h>.
5897         Reported by Simon Josefsson <simon@josefsson.org>.
5898
5899 2012-01-19  Jim Meyering  <meyering@redhat.com>
5900
5901         bootstrap: add bootstrap_post_import_hook
5902         Bison does still need something like the gnulib_mk_hook whose
5903         invocation I had to remove along with slurp in commit 767ccd40.
5904         Technically, we could get along without it, but doing so would
5905         have required living with a warning and a mandatory post-bootstrap
5906         automake rerun.
5907         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
5908         (bootstrap_post_import_hook): New function.
5909         Invoke it after gnulib-tool --import and before autoreconf.
5910
5911 2012-01-18  Jim Meyering  <meyering@redhat.com>
5912
5913         gitlog-to-changelog: don't use "no_"-prefixed variable name
5914         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
5915         to enable both --cluster and --no-cluster.  Change variable name,
5916         s/\$no_cluster/$cluster/, and reverse usage to match.
5917
5918         gitlog-to-changelog: use "||", not "or" in expressions
5919         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
5920         expressions.
5921
5922 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
5923
5924         gitlog-to-changelog: new option --no-cluster
5925         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
5926         clustering of adjacent commit messages.
5927
5928 2012-01-17  Jim Meyering  <meyering@redhat.com>
5929
5930         maint: spell file systems with two words, not one
5931         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
5932         two words, not one.
5933
5934 2012-01-16  Jim Meyering  <meyering@redhat.com>
5935
5936         bootstrap: add a FIXME comment to ensure we eventually remove the hack
5937         * build-aux/bootstrap (gnulib_tool_options): Add comment.
5938
5939 2012-01-16  Eric Blake  <eblake@redhat.com>
5940
5941         bootstrap: cater to autoconf 2.59
5942         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
5943         is not available.
5944
5945         bootstrap: properly check for libtool
5946         * build-aux/bootstrap (libtoolize): Also run libtool when older
5947         usage is detected.
5948
5949 2012-01-15  Bruno Haible  <bruno@clisp.org>
5950
5951         Improve support for MSVC 9.
5952         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
5953         clashes on MSVC.
5954         * lib/fcntl.in.h: Likewise.
5955         * lib/stdlib.in.h: Likewise.
5956         * lib/sys_stat.in.h: Likewise.
5957
5958 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
5959
5960         gnupload: we hold the master copy of this script now
5961         For motivation and more information, see:
5962         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
5963         * build-aux/gnupload: Make it clear in the heading comments that the
5964         master copy of this file is maintained by gnulib.  Since we are at
5965         it, bump its copyright year and ...
5966         ($scriptversion): ... the date in its version.
5967         ($usage): Patches and bug reports should be sent to the gnulib list,
5968         not the automake one.
5969         * config/srclist.txt: Don't try to sync 'gnupload' from automake
5970         anymore.
5971
5972 2012-01-15  Bruno Haible  <bruno@clisp.org>
5973
5974         Fix module 'random'.
5975         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
5976         initstate, setstate are declared.
5977
5978 2012-01-14  Bruno Haible  <bruno@clisp.org>
5979
5980         Tests for module 'random'.
5981         * modules/random-tests: New file.
5982         * tests/test-random.c: New file, based on tests/test-random_r.c.
5983
5984         New module 'random'.
5985         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
5986         declarations.
5987         * lib/random.c: New file, based on glibc/stdlib/random.c.
5988         * m4/random.m4: New file.
5989         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
5990         HAVE_RANDOM.
5991         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
5992         * modules/random: New file.
5993         * config/srclist.txt: Add an entry for random.c.
5994         * doc/posix-functions/random.texi: Mention the 'random' module.
5995         * doc/posix-functions/initstate.texi: Likewise.
5996         * doc/posix-functions/setstate.texi: Likewise.
5997         * doc/posix-functions/srandom.texi: Likewise.
5998
5999 2012-01-12  Bruno Haible  <bruno@clisp.org>
6000
6001         random_r: Use common idioms.
6002         * lib/random_r.c: Include <stdlib.h> first.
6003
6004         random_r: Override incompatible API on AIX, OSF/1.
6005         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
6006         Override the system function if REPLACE_RANDOM_R is 1.
6007         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
6008         and OSF/1, set REPLACE_RANDOM_R.
6009         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
6010         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
6011         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
6012         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
6013         * doc/glibc-functions/random_r.texi: Likewise.
6014         * doc/glibc-functions/setstate_r.texi: Likewise.
6015
6016         random_r: Support for MSVC 9.
6017         * lib/random_r.c: Include stdint.h, not inttypes.h.
6018
6019 2012-01-12  Eric Blake  <eblake@redhat.com>
6020
6021         inet_ntop: guard extra work by IF_LINT
6022         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
6023         better code generation when not checking for warnings.
6024         Suggested by Paul Eggert and Jim Meyering.
6025
6026         strptime: fix regression on mingw
6027         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
6028         Fix regression.  Reported by Bruno Haible.
6029
6030 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
6031             Bruno Haible  <bruno@clisp.org>
6032
6033         copy-file: add error-code-returning variant.
6034         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
6035         (qcopy_file_preserving): New declaration.
6036         * lib/copy-file.c (qcopy_file_preserving): Renamed from
6037         copy_file_preserving. Change return type to 'int'. Don't emit an error
6038         message here.
6039         (copy_file_preserving): New function.
6040         * tests/test-copy-file.c: Include <stdlib.h>.
6041         (main): Test qcopy_file_preserving if the environment variable
6042         NO_STDERR_OUTPUT is set.
6043         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
6044         with NO_STDERR_OUTPUT
6045         * tests/test-copy-file-2.sh: Likewise.
6046
6047 2012-01-10  Bruno Haible  <bruno@clisp.org>
6048
6049         copy-file: Use 'quote' module consistently.
6050         * lib/copy-file.c (copy_file_preserving): Use quote().
6051
6052         copy-file: Refactor.
6053         * lib/copy-file.c: Include quote.h.
6054         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
6055         message here.
6056         * modules/copy-file (Depends-on): Add quote.
6057
6058         acl: Export qcopy_acl.
6059         * lib/acl.h (qcopy_acl): New declaration.
6060         * lib/copy-acl.c (qcopy_acl): Make non-static.
6061
6062         acl: Rename a local variable.
6063         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
6064
6065         acl: Align return values of copy_acl and qcopy_acl.
6066         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
6067         maybe < -1.
6068
6069 2012-01-11  Eric Blake  <eblake@redhat.com>
6070
6071         strptime: silence gcc warnings
6072         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
6073         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
6074         Reported by Daniel P. Berrange.
6075
6076         inet_ntop: silence gcc warning
6077         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
6078         Reported by Daniel P. Berrange.
6079
6080 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
6081
6082         getloadavg test: skip the test on GNU/Linux without /proc mounted
6083         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
6084         file.  When /proc is not mounted, it always fails with ENOENT.
6085         * tests/test-getloadavg.c (main): Treat ENOENT return code from
6086         getloadavg(3) the same way as ENOSYS and ENOTSUP.
6087
6088 2012-01-10  Bruno Haible  <bruno@clisp.org>
6089
6090         regex: Avoid link error on MSVC 9.
6091         * modules/regex (Depends-on): Add wctype.
6092
6093 2012-01-10  Bruno Haible  <bruno@clisp.org>
6094
6095         doc: Mention --with-tests option.
6096         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
6097         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
6098         --with-tests.
6099         Reported by Reuben Thomas.
6100
6101 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
6102
6103         users.txt: order package names lexicographically.
6104         * users.txt: Order package names lexicographically.
6105
6106 2012-01-10  Jim Meyering  <meyering@redhat.com>
6107
6108         maint.mk: fix description in comment
6109         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
6110
6111         ignore-value: remove deprecated ignore_ptr function
6112         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
6113         * NEWS: Note this.
6114
6115 2012-01-09  Jim Meyering  <meyering@redhat.com>
6116
6117         test-init.sh: avoid a subshell
6118         * tests/test-init.sh: Remove protective subshell.
6119         Suggested by Bernhard Voelker.  While a subshell is normally
6120         required to protect against older shells (Solaris, FreeBSD) that
6121         warn about a missing program before performing redirection, the
6122         shell-selection tests performed by init.sh probably exclude any
6123         offending shell.
6124
6125 2012-01-08  Bruno Haible  <bruno@clisp.org>
6126
6127         setlocale tests: Avoid test failure on Solaris 11 2011-11.
6128         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
6129         variable.
6130
6131 2012-01-08  Bruno Haible  <bruno@clisp.org>
6132
6133         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
6134         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
6135         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
6136         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
6137         macro.
6138         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
6139         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
6140         * lib/spawn_faction_addopen.c: Add workaround implementation if
6141         HAVE_WORKING_POSIX_SPAWN.
6142         * modules/spawn (Makefile): Substitute
6143         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
6144         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
6145         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
6146         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
6147         (Depends-on): Update conditions.
6148         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
6149         the Solaris 11 bug.
6150
6151 2012-01-08  Bruno Haible  <bruno@clisp.org>
6152
6153         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
6154         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
6155         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
6156         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
6157         macro.
6158         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
6159         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
6160         * lib/spawn_faction_adddup2.c: Add workaround implementation if
6161         HAVE_WORKING_POSIX_SPAWN.
6162         * modules/spawn (Makefile): Substitute
6163         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
6164         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
6165         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
6166         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
6167         (Depends-on): Update conditions.
6168         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
6169         the Solaris 11 bug.
6170
6171 2012-01-08  Bruno Haible  <bruno@clisp.org>
6172
6173         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
6174         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
6175         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
6176         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
6177         HAVE_WORKING_POSIX_SPAWN.
6178         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
6179         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
6180         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
6181         * lib/spawn_faction_addclose.c: Add workaround implementation if
6182         HAVE_WORKING_POSIX_SPAWN.
6183         * modules/spawn (Makefile): Substitute
6184         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
6185         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
6186         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
6187         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
6188         (Depends-on): Update conditions.
6189         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
6190         the Solaris 11 bug.
6191
6192 2012-01-08  Bruno Haible  <bruno@clisp.org>
6193
6194         doc: Update for Solaris 11 2011-11.
6195         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
6196         * m4/printf.m4: Update comments.
6197
6198 2012-01-08  Bruno Haible  <bruno@clisp.org>
6199
6200         mktime: Avoid compilation error on Solaris 11.
6201         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
6202
6203 2012-01-08  Bruno Haible  <bruno@clisp.org>
6204
6205         doc: Small fix.
6206         * doc/posix-headers/nl_types.texi: Correct platforms list.
6207
6208 2012-01-08  Simon Josefsson  <simon@josefsson.org>
6209
6210         Add lgpl-3.0 module.
6211         * MODULES.html.sh (Support for building documentation): Add
6212         lgpl-3.0.
6213         * modules/lgpl-3.0: New file.
6214
6215 2012-01-08  Jim Meyering  <meyering@redhat.com>
6216
6217         select.c: indent with spaces, not TABs
6218         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
6219
6220 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6221
6222         quotearg: do not use grave accent for left quote
6223         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
6224         locale_quoting_style.
6225         (quotearg_buffer_restyled): Fix example.
6226         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
6227
6228 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6229
6230         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
6231         Most programs do not have translation catalogs for English and much
6232         less separate catalogs for British and American English.  Drop the
6233         suggestion to translators about these two, and provide it
6234         automatically for Unicode locales.  Like most programs, even those
6235         using American English, we use single quotation marks.  This conflicts
6236         with the American typographic convention, but works better when you
6237         cite the entire error message within double quotes.  It also tries not
6238         to clash with established practice and with what non-gnulib programs
6239         will usually do.
6240         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
6241         using an UTF-8 or GB-18030 locale.  The list of other locales with
6242         quotes was provided by Bruno Haible.
6243         (quotearg_buffer_restyled): Adjust instructions to translators.
6244         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
6245         text, since this would be wrong when using Unicode.
6246         * modules/quotearg: Depend on c-strcaseeq.
6247
6248 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6249
6250         quotearg: fix Wikipedia link
6251         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
6252
6253 2012-01-07  Simon Josefsson  <simon@josefsson.org>
6254
6255         Fix for mingw with MSVC9.
6256         * m4/ld-version-script.m4: Check that compiler rejects version
6257         scripts with syntax errors.  Reported by Bruno Haible
6258         <bruno@clisp.org>.
6259
6260 2012-01-06  Bruno Haible  <bruno@clisp.org>
6261
6262         Talk about "native Windows API", not "Woe32".
6263         * lib/accept4.c: Update comments to mention native Windows.
6264         * lib/execute.c: Likewise.
6265         * lib/fatal-signal.c: Likewise.
6266         * lib/localcharset.c: Likewise.
6267         * lib/nanosleep.c: Likewise.
6268         * lib/nl_langinfo.c: Likewise.
6269         * lib/pclose.c: Likewise.
6270         * lib/pipe-filter-gi.c: Likewise.
6271         * lib/pipe-filter-ii.c: Likewise.
6272         * lib/pipe.c: Likewise.
6273         * lib/pipe2.c: Likewise.
6274         * lib/popen.c: Likewise.
6275         * lib/progreloc.c: Likewise.
6276         * lib/relocatable.c: Likewise.
6277         * lib/sigaction.c: Likewise.
6278         * lib/sigprocmask.c: Likewise.
6279         * lib/spawn-pipe.h: Likewise.
6280         * lib/spawn-pipe.c: Likewise.
6281         * lib/spawni.c: Likewise.
6282         * lib/stat-time.h: Likewise.
6283         * lib/w32spawn.h: Likewise.
6284         * tests/test-isatty.c: Likewise.
6285         * lib/config.charset: More comments.
6286         * doc/gnulib-intro.texi: Mention native Windows.
6287         * doc/posix-functions/_Exit_C99.texi: Likewise.
6288         * doc/posix-headers/fcntl.texi: Likewise.
6289
6290 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
6291
6292         argp: Avoid crash if translator uses % characters in a translation.
6293         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
6294         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
6295
6296 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
6297
6298         doc: C11 and C++11 are now official
6299         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
6300         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
6301         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
6302         * modules/stdalign:
6303         Replace references to draft C1X to C11, and to draft C++0X to C++11.
6304
6305 2012-01-06  Bruno Haible  <bruno@clisp.org>
6306
6307         uc-is-grapheme-break tests: Tweak.
6308         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
6309         message.
6310
6311 2012-01-06  Bruno Haible  <bruno@clisp.org>
6312
6313         test-init.sh: correct the test for diff -u
6314         * tests/test-init.sh: Also redirect stdout to /dev/null.
6315
6316 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
6317
6318         Use ', not `, for quoting output.
6319         * build-aux/announce-gen (usage, sizes, print_news_deltas)
6320         (print_changelog_deltas, get_tool_versions, main program):
6321         * build-aux/git-version-gen:
6322         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
6323         * build-aux/move-if-change (help):
6324         * build-aux/useless-if-before-free (usage, main program):
6325         * check-module (parse_module_file, usage)
6326         (find_included_lib_files, check_module):
6327         * lib/argmatch.c (main) [TEST]:
6328         * lib/argp-help.c (_help):
6329         * lib/getopt1.c (main) [TEST]:
6330         * lib/git-merge-changelog.c (usage):
6331         * lib/xstrtol-error.c (xstrtol_error):
6332         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
6333         * m4/argz.m4 (gl_FUNC_ARGZ):
6334         * m4/bison.m4 (gl_BISON):
6335         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
6336         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
6337         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
6338         * m4/fpending.m4 (gl_PREREQ_FPENDING):
6339         * m4/gc-random.m4 (gl_GC_RANDOM):
6340         * m4/intl.m4 (gt_CHECK_DECL):
6341         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
6342         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
6343         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
6344         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
6345         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
6346         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
6347         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
6348         * tests/test-dirname.c (main):
6349         * tests/test-getpass.c (main):
6350         * tests/test-iconvme.c (main):
6351         * tests/test-parse-datetime.c (LOG):
6352         * tests/test-xstrtoimax.sh:
6353         * tests/test-xstrtol.sh:
6354         * tests/test-xstrtoll.sh:
6355         * tests/test-xstrtoumax.sh:
6356         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
6357         * top/GNUmakefile (abort-due-to-no-makefile):
6358         Quote 'like this', not `like this', as per the recent change to
6359         the GNU coding standards.
6360
6361 2012-01-05  Bruno Haible  <bruno@clisp.org>
6362
6363         strtoimax: Don't force a replacement on systems where intmax_t is int.
6364         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
6365         'intmax_t' is not larger than 'int'.
6366         Reported by Pádraig Brady <P@draigBrady.com>.
6367
6368 2012-01-05  Bruno Haible  <bruno@clisp.org>
6369
6370         doc: Mention NetBSD bugs.
6371         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
6372         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
6373
6374 2012-01-05  Bruno Haible  <bruno@clisp.org>
6375
6376         strtoumax tests: Enhance tests.
6377         * tests/test-strtoumax.c (main): Add tests for large values.
6378
6379 2012-01-05  Bruno Haible  <bruno@clisp.org>
6380
6381         strtoimax: Work around AIX 5.1 bug.
6382         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
6383         definition.
6384         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
6385         Set HAVE_STRTOIMAX.
6386         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
6387         REPLACE_STRTOIMAX.
6388         * modules/inttypes-incomplete (Makefile.am): Substitute
6389         REPLACE_STRTOIMAX.
6390         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
6391         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
6392         (Depends-on): Update conditions.
6393         * tests/test-strtoimax.c (main): Add tests for large values.
6394         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
6395
6396 2012-01-05  Bruno Haible  <bruno@clisp.org>
6397
6398         inttypes: Modernize.
6399         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
6400         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
6401         (Makefile.am): Update inttypes.h rule.
6402
6403 2012-01-05  Jim Meyering  <meyering@redhat.com>
6404
6405         init.sh: don't waste a subshell just to redirect stderr
6406         * tests/init.sh: In testing for diff -u and diff -c, use a
6407         stderr-redirecting exec inside `...` rather than a subshell.
6408
6409         test-init.sh: avoid failure on HP-UX 11.00
6410         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
6411         resolves to diff -c or cmp.  Reported by Bruno Haible.
6412
6413 2012-01-05  Bruno Haible  <bruno@clisp.org>
6414
6415         Tests for module 'strtoull'.
6416         * modules/strtoull-tests: New file.
6417         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
6418
6419 2012-01-05  Bruno Haible  <bruno@clisp.org>
6420
6421         Tests for module 'strtoll'.
6422         * modules/strtoll-tests: New file.
6423         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
6424
6425 2012-01-05  Bruno Haible  <bruno@clisp.org>
6426
6427         Tests for module 'strtoul'.
6428         * modules/strtoul-tests: New file.
6429         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
6430
6431 2012-01-05  Bruno Haible  <bruno@clisp.org>
6432
6433         Tests for module 'strtol'.
6434         * modules/strtol-tests: New file.
6435         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
6436
6437 2012-01-04  Jim Meyering  <meyering@redhat.com>
6438
6439         test-init.sh: accommodate Solaris 5.10's different diff -u output
6440         * tests/test-init.sh: Also exempt @@ lines from the comparison
6441         of diff output, since Solaris 5.10 and GNU diff formats differ.
6442         Reported by Stefano Lattarini.
6443
6444 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
6445
6446         test-posixtm: don't assume signed integer wraparound
6447         * tests/test-posixtm.c (main): Don't assume wraparound semantics
6448         after signed integer overflow.  Inspired by (though it may not
6449         fix) Bruno Haible's bug report in
6450         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
6451
6452         Spell out "Windows 9x" and "Windows XP".
6453         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
6454         "Windows 9x" and "WinXP" with "Windows XP".
6455
6456 2012-01-04  Jim Meyering  <meyering@redhat.com>
6457
6458         test-vc-list-files-cvs.sh: remove obsolete comment
6459         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
6460         double exit.  Now that's all encapsulated via skip_ and Exit.
6461
6462 2012-01-04  Bruno Haible  <bruno@clisp.org>
6463
6464         Talk about "native Windows API", not "Win32".
6465         * lib/classpath.c: Update comments to mention native Windows.
6466         * lib/csharpexec.c: Likewise.
6467         * lib/dup2.c: Likewise.
6468         * lib/error.c: Likewise.
6469         * lib/fcntl.c: Likewise.
6470         * lib/filename.h: Likewise.
6471         * lib/findprog.c: Likewise.
6472         * lib/get-rusage-as.c: Likewise.
6473         * lib/get-rusage-data.c: Likewise.
6474         * lib/getpagesize.c: Likewise.
6475         * lib/javaexec.c: Likewise.
6476         * lib/msvc-inval.c: Likewise.
6477         * lib/msvc-nothrow.c: Likewise.
6478         * lib/nanosleep.c: Likewise.
6479         * lib/nonblocking.c: Likewise.
6480         * lib/printf-parse.c: Likewise.
6481         * lib/setlocale.c: Likewise.
6482         * lib/sigaction.c: Likewise.
6483         * lib/strerror_r.c: Likewise.
6484         * lib/tmpdir.c: Likewise.
6485         * lib/vasnprintf.c: Likewise.
6486         * lib/w32spawn.h: Likewise.
6487         * lib/waitpid.c: Likewise.
6488         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
6489         * m4/locale-ar.m4: Likewise.
6490         * m4/locale-fr.m4: Likewise.
6491         * m4/locale-ja.m4: Likewise.
6492         * m4/locale-tr.m4: Likewise.
6493         * m4/locale-zh.m4: Likewise.
6494         * m4/printf.m4: Likewise.
6495         * tests/test-cloexec.c: Likewise.
6496         * tests/test-copy-acl.sh: Likewise.
6497         * tests/test-copy-file.sh: Likewise.
6498         * tests/test-file-has-acl.sh: Likewise.
6499         * tests/test-set-mode-acl.sh: Likewise.
6500         * tests/test-dup-safer.c: Likewise.
6501         * tests/test-dup2.c: Likewise.
6502         * tests/test-dup3.c: Likewise.
6503         * tests/test-fcntl.c: Likewise.
6504         * tests/test-nonblocking-pipe.h: Likewise.
6505         * tests/test-nonblocking-socket.h: Likewise.
6506         * tests/test-pipe.c: Likewise.
6507         * tests/test-pipe2.c: Likewise.
6508         * tests/test-spawn-pipe-child.c: Likewise.
6509         * doc/acl-resources.txt: Likewise.
6510         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6511         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
6512         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
6513         * lib/localcharset.c: Update comments to mention native Windows.
6514         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6515         * lib/localename.c: Likewise.
6516         * lib/progreloc.c: Likewise.
6517         * lib/relocatable.c: Likewise.
6518         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6519         (windows_compute_revents): Renamed from win32_compute_revents.
6520         (windows_compute_revents_socket): Renamed from
6521         win32_compute_revents_socket.
6522         * lib/select.c: Update comments to mention native Windows.
6523         (windows_poll_handle): Renamed from win32_poll_handle.
6524         * m4/threadlib.m4: Update comments to mention native Windows.
6525         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
6526         --enable-threads=windows instead of --enable-threads=win32. Set
6527         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
6528         * lib/glthread/lock.h: Update comments to mention native Windows.
6529         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
6530         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
6531         USE_WIN32_THREADS.
6532         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
6533         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
6534         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
6535         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
6536         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
6537         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
6538         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
6539         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
6540         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
6541         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
6542         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
6543         * tests/test-tls.c: Likewise.
6544         Rationale:
6545         Microsoft renamed the "Win32 API" to "Windows API", as it is available
6546         on both 32-bit and 64-bit Windows systems.
6547         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
6548         line of distinction is between "native Windows" on one side and Unix/
6549         POSIX systems on the other side. More details in
6550         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
6551         Suggested by Paul Eggert.
6552
6553 2012-01-03  Bruno Haible  <bruno@clisp.org>
6554
6555         isatty: Support for MSVC 9.
6556         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
6557         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
6558         (_isatty_nothrow): New function.
6559         (isatty): Use it instead of _isatty.
6560         (IsConsoleHandle): Add comment, from Paolo Bonzini.
6561         * lib/poll.c (IsConsoleHandle): Likewise.
6562         * lib/select.c (IsConsoleHandle): Likewise.
6563         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
6564         (gl_PREREQ_ISATTY): New macro.
6565         * modules/isatty (Depends-on): Add msvc-inval.
6566         (configure.ac): Invoke gl_PREREQ_ISATTY.
6567
6568 2012-01-03  Jim Meyering  <meyering@redhat.com>
6569
6570         maint.mk: remove temporary transition aid from over 1.5 years ago
6571         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
6572         purpose was to aid in the transition (avoiding silent malfunction)
6573         from that old name to the new _sc_search_regexp.  This shim was
6574         added by commit 219c504b.
6575
6576         init.sh: do not try to accommodate compare arguments starting with "-"
6577         * tests/init.sh (compare_dev_null_): Do not try to accommodate
6578         compare arguments that start with "-".  Besides, we do not worry
6579         about this when invoking diff or cmp; why start now with sed?
6580         Using "--" to separate options from argument would trigger sed
6581         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
6582         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
6583
6584 2012-01-02  Bruno Haible  <bruno@clisp.org>
6585
6586         Enhance tests for module 'isatty'.
6587         * modules/isatty-tests (Depends-on): Add pipe-posix.
6588         * tests/test-isatty.c: Include <fcntl.h>.
6589         (DEV_NULL): New macro.
6590         (main): Test the resut of isatty() also on regular files, pipes, and
6591         /dev/null.
6592
6593         New module 'isatty'.
6594         * lib/unistd.in.h (isatty): New declaration.
6595         * lib/isatty.c: New file, based on an idea of
6596         Bastien Roucariès <roucaries.bastien@gmail.com>.
6597         * m4/isatty.m4: New file.
6598         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
6599         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
6600         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
6601         REPLACE_ISATTY.
6602         * modules/isatty: New file.
6603         * doc/posix-functions/isatty.texi: Mention the new module.
6604         Suggested by Paolo Bonzini.
6605
6606 2012-01-02  Bruno Haible  <bruno@clisp.org>
6607
6608         canonicalize: Tweak 2011-12-29 commit.
6609         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
6610         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
6611
6612 2012-01-02  Jim Meyering  <meyering@redhat.com>
6613
6614         gitlog-to-changelog: describe input syntax in --help output
6615         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
6616
6617         gitlog-to-changelog: fix typo in --help: show backslash before email @
6618         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
6619         in sources, but not in actual output.
6620
6621 2011-12-30  Jim Meyering  <meyering@redhat.com>
6622
6623         gitlog-to-changelog: don't malfunction when name contains %-directive
6624         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
6625         in a name string cause trouble.  E.g., with a user name of "%s",
6626         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
6627
6628 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
6629
6630         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
6631         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
6632         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
6633         the "  (tiny change)" notation that is appended to the standard
6634         ChangeLog "date  name  email" header line.
6635
6636 2012-01-01  Jim Meyering  <meyering@redhat.com>
6637
6638         test-framework-sh: init.sh: fix "make dist" failure
6639         When using gnulib-tool's --with-tests option and any module that
6640         depends on test-framework-sh, "make dist" would fail due to the
6641         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
6642         in the gltests directory, and not in the gllib/ directory.
6643         One way to work around that is to move the EXTRA_DIST += init.sh
6644         from the primary module to the -tests one:
6645         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
6646         * modules/test-framework-sh (Makefile.am): ...not here.
6647         Reported by Tom G. Christensen in
6648         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
6649
6650         version-etc: update copyright year reported by --version
6651         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
6652
6653 2011-12-31  Pádraig Brady  <P@draigBrady.com>
6654
6655         canonicalize: only stat() if required
6656         * lib/canonicalize.c (canonicalize_filename_mode):
6657         Avoid calling l?stat() when both CAN_MISSING,
6658         and CAN_NOLINKS are set, as we neither need
6659         to resolve symlinks or test component existence.
6660
6661 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
6662
6663         doc: cover st_ino issues once; add OpenVMS etc.
6664         * doc/posix-functions/stat.texi (stat):
6665         * doc/posix-functions/lstat.texi (lstat):
6666         * doc/posix-functions/fstatat.texi (fstatat):
6667         * doc/posix-functions/fstat.texi (fstat):
6668         Move general 'struct stat' stuff to sys_stat.texi,
6669         leaving behind a pointer.
6670         * doc/posix-headers/sys_stat.texi (sys/stat.h):
6671         Merge duplicate info about 'struct stat' problems into here.
6672         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
6673         and suggest partial workarounds.
6674
6675         same-inode: port to OpenVMS
6676         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
6677         three st_ino values.
6678
6679 2011-12-30  Pádraig Brady  <P@draigBrady.com>
6680
6681         canonicalize: fix references to stat() and lstat()
6682         * lib/canonicalize.c (canonicalize_filename_mode):
6683         Ensure references always resolve to a replacement
6684         function if required (even via a macro).
6685
6686 2011-12-30  Jim Meyering  <meyering@redhat.com>
6687
6688         gitlog-to-changelog: remove a little duplication
6689         * build-aux/gitlog-to-changelog (main): Grep @lines once,
6690         rather than twice.
6691
6692 2011-12-29  Pádraig Brady  <P@draigBrady.com>
6693
6694         canonicalize: add support for not resolving symlinks
6695         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
6696         indicate we don't want to follow symlinks.  Also
6697         provide CAN_MODE_MASK to aid setting these existing
6698         mutually exclusive values.
6699         * lib/canonicalize.c (canonicalize_filename_mode):
6700         Extract the flags from can_mode parameter, which
6701         are currently just used to select between stat()
6702         and lstat().  Also ensure that mutually exclusive
6703         values are flagged immediately as invalid.
6704         * tests/test-canonicalize.c: Verify symlinks are
6705         not followed, and that invalid flag combinations
6706         are diagnosed.
6707
6708 2011-12-25  Jim Meyering  <meyering@redhat.com>
6709
6710         gitlog-to-changelog: do not clump multi-paragraph entries
6711         Identical header lines (date,name,email+coauthors) are suppressed,
6712         thus putting all entries with those same characteristics under
6713         a single header.  However, when a log entry consists of two or
6714         more paragraphs, it may not be clear where it starts and ends.
6715         This change makes it so that such an entry is always separated
6716         from others by a header line, even when that header would
6717         otherwise be suppressed.
6718         * build-aux/gitlog-to-changelog: Implement the above.
6719         Inspired by a related request from Stefano Lattarini in
6720         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
6721
6722 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6723
6724         announce-gen: fix `cmd' typo in diagnostic
6725         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
6726         diagnostic: a missing '$' meant that the command was not output.
6727
6728 2011-12-23  Jim Meyering  <meyering@redhat.com>
6729
6730         test-framework-sh: distribute init.sh
6731         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
6732         Otherwise, "make -C gnulib-tests check" (at least in grep) would
6733         fail due to the lack of init.sh.
6734
6735         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
6736         * modules/atexit-tests: Rather than listing tests/init.sh,
6737         now that there's a module for it, simply depend on that new module.
6738         * modules/closein-tests: Likewise.
6739         * modules/exclude-tests: Likewise.
6740         * modules/getcwd-tests: Likewise.
6741         * modules/perror-tests: Likewise.
6742         * modules/pread-tests: Likewise.
6743         * modules/pwrite-tests: Likewise.
6744         * modules/vc-list-files-tests: Likewise.
6745         * modules/verify-tests: Likewise.
6746         * modules/xalloc-die-tests: Likewise.
6747         * modules/xstrtoimax-tests: Likewise.
6748         * modules/xstrtol-tests: Likewise.
6749         * modules/xstrtoll-tests: Likewise.
6750         * modules/xstrtoumax-tests: Likewise.
6751         * modules/yesno-tests: Likewise.
6752
6753 2011-12-22  Jim Meyering  <meyering@redhat.com>
6754
6755         test-framework-sh: add minimal tests of init.sh's compare function
6756         * modules/test-framework-sh-tests: New file.
6757         * tests/test-init.sh: New file.
6758
6759         test-framework-sh: new module
6760         * modules/test-framework-sh: New file.
6761         * MODULES.html.sh (Support for maintaining and releasing projects):
6762         List it.
6763
6764         init.sh: do not emit simulated diff output to stderr
6765         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
6766
6767 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6768
6769         .gitignore: ignore gnulib.dvi and regex.info
6770         * doc/.gitignore:add gnulib.dvi and regex.info
6771
6772 2011-12-22  Jim Meyering  <meyering@redhat.com>
6773
6774         init.sh: correct previous change
6775         * tests/init.sh (compare): My previous change was wrong.
6776         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
6777
6778         init.sh: avoid unwarranted test failure when using "set -e"
6779         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
6780         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
6781         a use like "compare exp out" would get evoke an unconditional failure.
6782
6783 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
6784
6785         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
6786         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
6787         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
6788         autoreconf that did not.
6789         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
6790         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
6791
6792 2011-12-17  Jim Meyering  <meyering@redhat.com>
6793
6794         bootstrap: remove some now-unneeded code
6795         This script arose back when gnulib-tool was young.
6796         Since then, it has seen improvements that render much of this
6797         script unnecessary.  In particular, it can now make symlinks
6798         to the files it uses.  Also, I no longer see as much value in
6799         marking files as read-only via comments.
6800         If you relied on the symlink-creation feature of the preceding
6801         version of this script, you can get most of that functionality
6802         by adding the --symlink option to the definition of
6803         gnulib_tool_option_extras in your bootstrap.conf file.
6804         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
6805         Run autopoint and libtoolize *before* gnulib-tool.
6806         After it, run an abbreviated autoreconf, rather than a loop around
6807         all tools.
6808         (slirp, bt_mark_as_generated): Remove functions.
6809
6810 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6811
6812         ftoastr: fix typo
6813         * lib/ftoastr.h: Fix misspelling in comment.
6814
6815 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
6816
6817         * top/README-release: fix punctuation.
6818
6819 2011-12-17  Jim Meyering  <meyering@redhat.com>
6820
6821         bootstrap: correct the recent buildreq change
6822         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
6823         had no effect.
6824         * build-aux/bootstrap (buildreq): Bracket each search term with
6825         "*...*", so that the shell "case" statement works as intended.
6826         Add comments.
6827
6828 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
6829
6830         build: let bootstrap resort to wget when downloading .po files
6831         * build-aux/bootstrap (download_po_files): Fallback to wget when
6832         downloading the .po files via rsync fails.  This is necessary to
6833         bootstrap from behind a strict firewall.
6834
6835 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6836
6837         stdint: don't assume C++11 when compiling with g++
6838         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
6839         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
6840         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
6841         work also in C++ before C++11, as that improperly inhibits
6842         generating a substitute stdint.h for that case.
6843
6844 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6845
6846         alloca: protect comment from gnulib-tool
6847         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
6848         that gnulib-tool doesn't think it's a license, and munge it to
6849         say "GCC version 3".
6850
6851 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
6852
6853         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
6854         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
6855         $(abs_top_builddir) instead of $(top_builddir).
6856
6857 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
6858
6859         strftime-tests: also test nanoseconds
6860         * tests/test-strftime.c (T): Add a test of %N.
6861
6862 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
6863
6864         inttypes, stdint: add C++11 support
6865         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
6866         when including inttypes.h and stdint.h.  Support this change to
6867         the standard.
6868         * doc/posix-headers/inttypes.texi (inttypes.h):
6869         * doc/posix-headers/stdint.texi (stdint.h): Document this.
6870         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
6871         Define if not defined already, for the benefit of pre-C++11 hosts.
6872         Define the standard format macros (e.g., PRId8) always.
6873         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
6874         Likewise, if __cpluspus.  Define the standard constant and limit
6875         macros (e.g., INT8_C, INT8_MAX) always.
6876         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
6877         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
6878         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
6879         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
6880         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
6881         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
6882         Likewise.
6883
6884 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6885
6886         nonblocking tests: Fix test failure on Linux/PPC.
6887         Suggested by Prerna Saxena in
6888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
6889         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
6890         Set to 1100000.
6891
6892 2011-12-12  Jim Meyering  <meyering@redhat.com>
6893
6894         argmatch: don't hard-code `' when listing valid option arguments
6895         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
6896         use the quote function to add quotes.  Use fputs rather than
6897         fprintf for the format string with no format directive.
6898
6899 2011-12-07  Eric Blake  <eblake@redhat.com>
6900
6901         bootstrap: detect tools required by gnulib-tool
6902         * build-aux/bootstrap (buildreq): Provide minimum implicit
6903         dependencies.
6904         * DEPENDENCIES: Mention patch as a prereq.
6905
6906 2011-12-04  Bruno Haible  <bruno@clisp.org>
6907
6908         sethostname: Port to Windows platforms.
6909         * lib/sethostname.c: Provide an alternate implementation for Windows
6910         platforms.
6911         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
6912         (main): Skip the test if sethostname() fails with EPERM. On Windows
6913         platforms, don't check the result of gethostname().
6914
6915 2011-12-04  Bruno Haible  <bruno@clisp.org>
6916             Jim Meyering  <meyering@redhat.com>
6917
6918         tests: Avoid spurious error message on platforms without mktemp program.
6919         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
6920
6921 2011-12-04  Bruno Haible  <bruno@clisp.org>
6922
6923         sethostname: Fix documentation.
6924         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
6925         "not fixed" section.
6926
6927 2011-12-03  Bruno Haible  <bruno@clisp.org>
6928
6929         gnulib-tool: Verify that the License field is present and non-empty.
6930         * gnulib-tool (func_get_license_raw): New function, extracted from
6931         func_get_license.
6932         (func_get_license): Use it. Warn if the module is not a test module and
6933         has no license.
6934         Suggested by Jim Meyering.
6935
6936 2011-12-03  Bruno Haible  <bruno@clisp.org>
6937
6938         sethostname tests: Fix link error on mingw.
6939         * tests/test-sethostname1.c: New file, extracted from
6940         tests/test-sethostname.c.
6941         * tests/test-sethostname2.c: New file, extracted from
6942         tests/test-sethostname.c.
6943         * tests/test-sethostname.c: Remove file.
6944         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
6945         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
6946         (Depends-on): Add gethostname.
6947         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
6948         Link the latter with $(GETHOSTNAME_LIB).
6949
6950         sethostname tests: Fix compilation error on mingw.
6951         * tests/test-sethostname.c: Don't include <sys/types.h>.
6952         (geteuid): Use a dummy value without uid_t.
6953         * modules/sethostname-tests (Depends-on): Remove sys_types.
6954
6955         sethostname tests: Avoid a gcc warning.
6956         * tests/test-sethostname.c (main): Remove an unused variable.
6957
6958         Tweak last commit.
6959         * modules/sethostname-tests (Files): Sort by decreasing importance.
6960         (configure.ac): Check for geteuid.
6961         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
6962         the test when there's nothing to test. Drop an unnecessary cast.
6963         Improve an error message. Verify that the final sethostname() call
6964         succeeds.
6965
6966 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6967
6968         Add a test suite for the sethostname module.
6969         * modules/sethostname-tests: New file.  A test program
6970         for the sethostname module.
6971         * tests/test-sethostname.c: Likewise.
6972
6973 2011-12-03  Bruno Haible  <bruno@clisp.org>
6974
6975         Tweak last commit.
6976         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
6977         Fix preprocessor directives indentation. Fix typos.
6978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
6979         * modules/unistd (Makefile): Likewise.
6980
6981 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6982
6983         Integrate the sethostname module into unistd.
6984         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
6985         into the unistd.h header.
6986         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
6987         preprocessor directives.
6988         * modules/unistd: Setup the Makefile substitutions of the
6989         SETHOSTNAME preprocessor directives.
6990
6991 2011-12-03  Bruno Haible  <bruno@clisp.org>
6992
6993         Tweak last commit.
6994         * lib/sethostname.c: Don't include <string.h>.
6995         (sethostname): No need to copy the argument string to the stack. Don't
6996         call clearerr. Preserve errno when fprintf failed.
6997         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
6998         Don't invoke AC_REPLACE_FUNCS.
6999         * modules/sethostname (Link): Remove empty section.
7000         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
7001         failure problem.
7002
7003 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7004
7005         New module 'sethostname'.
7006         * lib/sethostname.c (sethostname): New file.  Provide sethostname
7007         for systems that lack it.
7008         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
7009         sethostname declaration and function.
7010         * modules/sethostname: New file.  Define the sethostname module.
7011
7012 2011-12-03  Bruno Haible  <bruno@clisp.org>
7013
7014         Tweak last commit.
7015         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
7016
7017 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7018
7019         Split the HOST_NAME_MAX detection into a separate m4 macro.
7020         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
7021         macro so it can be used by the pending sethostname module.
7022
7023 2011-12-03  Bruno Haible  <bruno@clisp.org>
7024
7025         Fix module descriptions syntax.
7026         * modules/argv-iter (License): Fix syntax.
7027         * modules/di-set (License): Likewise.
7028         * modules/ino-map (License): Likewise.
7029         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
7030
7031 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
7032
7033         stdalign: port to Clang 3.0
7034         Problem reported by Simon Josefsson in
7035         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
7036         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
7037         which has <stdalign.h> but which does not define alignof.
7038         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
7039
7040 2011-12-01  Eric Blake  <eblake@redhat.com>
7041
7042         mktempd: silence dd usage
7043         * build-aux/mktempd (rand_bytes): Silence dd.
7044
7045 2011-11-30  Simon Josefsson  <simon@josefsson.org>
7046
7047         manywarnings: Don't mention gcc version in docstring.
7048         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
7049         Jim Meyering <meyering@redhat.com>.
7050
7051 2011-11-30  Jim Meyering  <meyering@redhat.com>
7052
7053         hash: mark a few floating point constants with "f" suffix
7054         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
7055         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
7056         floating point constants with "f", since they're destined to be
7057         saved/used as "float"s.
7058
7059 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
7060
7061         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
7062         * tests/test-float.c (test_long_double): Correct and re-enable the
7063         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
7064
7065 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
7066
7067         Avoid subtracting two pointers that don't point into the same block.
7068         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
7069         only pointers into the same memory block are subtracted. We cannot
7070         assume that sizeof (ptrdiff_t) == sizeof (void *).
7071
7072 2011-11-29  Eric Blake  <eblake@redhat.com>
7073
7074         maint.mk: add syntax check for use of compare from init.sh
7075         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
7076         moved here from coreutils.
7077
7078         manywarnings: drop -Wunsuffixed-float-constants
7079         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
7080         '1.0D', which is the only way to silence this warning for 'double'.
7081
7082 2011-11-29  Jim Meyering  <meyering@redhat.com>
7083
7084         hash: mark compute_bucket_size with the pure attribute
7085         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
7086
7087         quotearg, propername: correct pragma guard expression
7088         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
7089         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
7090
7091 2011-11-28  Jim Meyering  <meyering@redhat.com>
7092
7093         propername: do not mark proper_name with the const attribute
7094         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
7095         since it examines data pointed to by its parameter.
7096         * lib/propername.c (proper_name): Instead, add a pragma to suppress
7097         the suggestion from -Wsuggest-attribute=const.
7098
7099         propername: mark one more function as const
7100         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
7101
7102 2011-11-27  Jim Meyering  <meyering@redhat.com>
7103
7104         mark functions with const and pure attributes
7105
7106         Mark functions per suggestions from gcc-4.6 when using these options:
7107         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
7108         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
7109         Follow these guidelines: when possible, apply the attribute to
7110         an extern declaration, not to its definition.  Apply it to the
7111         definition only when the definition is static.
7112         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
7113         * lib/argv-iter.h (argv_iter_n_args): Likewise.
7114         * lib/base64.h (isbase64): Likewise.
7115         * lib/basename-lgpl.c (last_component, base_len): Likewise.
7116         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
7117         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
7118         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
7119         (c_tolower, c_toupper): Likewise.
7120         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
7121         * lib/chdir-long.c (find_non_slash): Likewise.
7122         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
7123         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
7124         * lib/file-type.h (file_type): Likewise.
7125         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
7126         * lib/filevercmp.c (verrevcmp): Likewise.
7127         * lib/freadahead.h (freadahead): Likewise.
7128         * lib/fts.c (fts_maxarglen): Likewise.
7129         * lib/hash-pjw.h (hash_pjw): Likewise.
7130         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
7131         * lib/hash.c (is_prime, next_prime): Likewise.
7132         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
7133         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
7134         (hash_table_ok, hash_get_first, hash_string): Likewise.
7135         (compute_bucket_size): Likewise.
7136         * lib/i-ring.h (i_ring_empty): Likewise.
7137         * lib/isnan.c (isnanl): Likewise.
7138         * lib/math.h (isnanl, rpl_isnanl): Likewise.
7139         * lib/memcasecmp.h (memcasecmp): Likewise.
7140         * lib/memchr2.h (memchr2): Likewise.
7141         * lib/memcmp2.h (memcmp2): Likewise.
7142         * lib/parse-datetime.y (lookup_zone): Likewise.
7143         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
7144         [!WINDOWS_SOCKETS]: Likewise.
7145         * lib/strnlen1.h (strnlen1): Likewise.
7146         * lib/uniwidth.in.h (uc_width): Likewise.
7147         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
7148         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
7149         (quoting_options_from_style): Add a comment.
7150         * lib/propername.h (proper_name): Add a comment.
7151
7152 2011-11-27  Bruno Haible  <bruno@clisp.org>
7153
7154         Remove unused macros from !_LIBC code in glibc-borrowed files.
7155         * lib/fnmatch.c (STRCOLL): Remove macro.
7156         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
7157         * lib/glob.c (__stat, __readdir64): Remove macros.
7158         * lib/tempname.c (__open64, __xstat64): Remove macros.
7159         Suggested by Paul Eggert.
7160
7161 2011-11-27  Bruno Haible  <bruno@clisp.org>
7162
7163         getcwd: Fix link error on MSVC 9.
7164         * modules/getcwd (Depends-on): Add readdir, rewinddir.
7165
7166 2011-11-27  Bruno Haible  <bruno@clisp.org>
7167
7168         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
7169         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
7170         HAVE_OPENDIR is 0.
7171         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
7172         HAVE_CLOSEDIR is 0.
7173         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
7174         is 0.
7175         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
7176
7177 2011-11-27  Bruno Haible  <bruno@clisp.org>
7178
7179         getcwd: Fix bug from 2011-08-17.
7180         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
7181         platforms that need it.
7182         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
7183         code of 4 to be a failure, not a success. This ensures that
7184         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
7185
7186 2011-11-27  Bruno Haible  <bruno@clisp.org>
7187
7188         binary-io tests: Avoid test failure on mingw when libtool is used.
7189         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
7190         Don't verify the size of t-bin-out1.tmp here.
7191         * tests/test-binary-io.sh: Verify it here.
7192         Reported by Simon Josefsson.
7193
7194 2011-11-26  Bruno Haible  <bruno@clisp.org>
7195
7196         Fix conflict between two instantiations of module 'unistd'.
7197         * gnulib-tool (func_emit_autoconf_snippet): Substitute
7198         ${include_guard_prefix} also in the autoconf snippet.
7199         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
7200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
7201         GNULIB_UNISTD_H_GETOPT.
7202         * modules/getopt-posix (configure.ac): Set the
7203         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
7204         * modules/getopt-gnu (configure.ac): Likewise.
7205         * modules/unistd (Makefile.am): Change the substitution value of
7206         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
7207         Reported by Simon Josefsson.
7208
7209 2011-11-25  Bruno Haible  <bruno@clisp.org>
7210
7211         pagealign_alloc: Doc and comments.
7212         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
7213         module.
7214         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
7215
7216 2011-11-25  Jim Meyering  <meyering@redhat.com>
7217
7218         test-update-copyright.sh: avoid false-positive failure
7219         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
7220         around false positive failure on Cygwin/Windows.  The latter was
7221         matching erroneously-created files with names like
7222         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
7223
7224 2011-11-25  Simon Josefsson  <simon@josefsson.org>
7225
7226         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
7227         * m4/valgrind-tests.m4: Check that the parameters that will be
7228         used works, not just a subset of them.  Reported by Bruno Haible
7229         <bruno@clisp.org>.
7230
7231 2011-11-24  Jim Meyering  <meyering@redhat.com>
7232
7233         test-stdalign.c: comment out long double tests
7234         * tests/test-stdalign.c: Don't try to reduce alignment of long double
7235         variables.  That provokes errors like this from gcc-4.7.0 20111124:
7236         error: '_Alignas' specifiers cannot reduce alignment of \
7237         'static_longdouble_alignas'.
7238
7239 2011-11-22  Jim Meyering  <meyering@redhat.com>
7240
7241         init.sh: make "compare /dev/null FILE" output more readable
7242         * tests/init.sh (compare_): Document the preferred order of arguments.
7243         (emit_diff_u_header_): New function.
7244         (compare_dev_null_): Emit a simulated diff, rather than just the
7245         contents of the unexpected file.  Suggestion from Bruno Haible.
7246
7247 2011-11-21  Jim Meyering  <meyering@redhat.com>
7248             Eric Blake  <eblake@redhat.com>
7249
7250         init.sh: work around OSF/1 5.1's mishandling of /dev/null
7251         * tests/init.sh: Make our compare function slightly more portable.
7252         Reported by Bruno Haible in
7253         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
7254
7255 2011-11-21  Simon Josefsson  <simon@josefsson.org>
7256
7257         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
7258         before using it, in code that ends up in config.h.
7259
7260 2011-11-20  Bruno Haible  <bruno@clisp.org>
7261
7262         getcwd: Work around getcwd bug on AIX 5..7.
7263         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
7264         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
7265         Use a different value for gl_cv_func_getcwd_path_max. Move the
7266         definition of HAVE_PARTLY_WORKING_GETCWD from here...
7267         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
7268         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
7269         Define HAVE_MINIMALLY_WORKING_GETCWD.
7270         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
7271         where it is not even minimally working, that is, on AIX.
7272         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
7273         m4/getcwd-path-max.m4.
7274         (main): Update exit code computation.
7275         * doc/posix-functions/getcwd.texi: Mention list of platforms where
7276         getcwd does not handle long file names.
7277
7278 2011-11-20  Bruno Haible  <bruno@clisp.org>
7279
7280         getcwd: Fix bug from 2009-09-10.
7281         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
7282         like "no".
7283
7284 2011-11-20  Simon Josefsson  <simon@josefsson.org>
7285
7286         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
7287
7288 2011-11-20  Bruno Haible  <bruno@clisp.org>
7289
7290         fma tests: Avoid shadowing local variables.
7291         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
7292         expected.
7293
7294 2011-11-20  Bruno Haible  <bruno@clisp.org>
7295
7296         copysignf tests: Fix.
7297         * tests/test-copysignf.c: Fix signature check.
7298
7299 2011-11-20  Bruno Haible  <bruno@clisp.org>
7300
7301         fma: Remove unused code.
7302         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
7303         unused macros.
7304
7305 2011-11-20  Bruno Haible  <bruno@clisp.org>
7306
7307         sethostname: Fix doc about AIX.
7308         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
7309         sethostname; it has it.
7310
7311         sethostname: Mention more portability problems.
7312         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
7313         problem.
7314         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
7315
7316 2011-11-19  Bruno Haible  <bruno@clisp.org>
7317
7318         Depend on module fcntl-h when AT_FDCWD is used.
7319         * modules/utimens (Depends-on): Add fcntl-h.
7320         * modules/areadlinkat (Depends-on): Likewise.
7321         * modules/areadlinkat-with-size (Depends-on): Likewise.
7322         * modules/faccessat (Depends-on): Likewise.
7323         * modules/fchmodat (Depends-on): Likewise.
7324         * modules/fchownat (Depends-on): Likewise.
7325         * modules/getcwd (Depends-on): Likewise.
7326         * modules/mkdirat (Depends-on): Likewise.
7327         * modules/mkfifoat (Depends-on): Likewise.
7328         * modules/readlinkat (Depends-on): Likewise.
7329         * modules/symlinkat (Depends-on): Likewise.
7330         * modules/dup2-tests (Depends-on): Likewise.
7331         * modules/fdutimensat-tests (Depends-on): Likewise.
7332         * modules/futimens-tests (Depends-on): Likewise.
7333
7334 2011-11-19  Bruno Haible  <bruno@clisp.org>
7335
7336         euidaccess: Update a comment.
7337         * lib/euidaccess.c: Update comment about platforms with faccessat.
7338
7339 2011-11-19  Bruno Haible  <bruno@clisp.org>
7340
7341         openat: Fix file list.
7342         * modules/openat (Files): Remove lib/at-func.c.
7343
7344 2011-11-19  Bruno Haible  <bruno@clisp.org>
7345
7346         fstatat: Simplify.
7347         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
7348         gnulib should define rpl_fstatat, there is a
7349         "#define fstatat rpl_fstatat" in <sys/stat.h>.
7350
7351 2011-11-19  Bruno Haible  <bruno@clisp.org>
7352
7353         Ensure 'inline' can be used in tests/test-utimens-common.h.
7354         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
7355         * modules/futimens-tests (configure.ac): Likewise.
7356         * modules/utimens-tests (configure.ac): Likewise.
7357         * modules/utimensat-tests (configure.ac): Likewise.
7358
7359 2011-11-19  Simon Josefsson  <simon@josefsson.org>
7360
7361         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
7362         not hash_insert0.
7363         (hash_insert_if_absent): Doc fix.
7364
7365 2011-11-19  Simon Josefsson  <simon@josefsson.org>
7366
7367         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
7368
7369 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7370
7371         test-getcwd: disambiguate exit status
7372         * tests/test-getcwd.c (test_long_name): Return 0..7.
7373         (main): Exit with an unambiguous exit status.  The old
7374         code yielded a mysterious mixture of two failure codes.
7375
7376         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
7377         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
7378         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
7379         rpl_fstatat or fstatat.  This should fix the other problem
7380         reported by Kai Habel in
7381         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
7382         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
7383         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
7384         and I reproduced it on a Solaris 8 host we still have in production.
7385
7386 2011-11-18  Jim Meyering  <meyering@redhat.com>
7387
7388         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
7389         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
7390         Add a sentence to the comment.
7391         (hash_insert0): New function that simply calls hash_insert_if_absent.
7392         * lib/hash.h (hash_insert_if_absent): Declare it.
7393         (hash_insert0): Add deprecation attribute.
7394         (_GL_ATTRIBUTE_DEPRECATED): Define.
7395         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
7396         not hash_insert0.
7397         * NEWS: Mention it, even though it's not really an incompatible change.
7398
7399 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
7400
7401         openat: avoid compilation failure due to lack of <errno.h> inclusion
7402         * lib/openat.c: Include <errno.h>.
7403
7404 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
7405
7406         * modules/getcwd (Depends-on): Add fdopendir.
7407         This fixes one of the two problems reported by Kai Habel in
7408         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
7409
7410         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
7411         stdalign problem reported by Ian Beckwith in
7412         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
7413         * modules/crypto/gc-arcfour (Depends-on):
7414         Depend conditionally on crypto/arcfour.
7415         * modules/crypto/gc-arctwo (Depends-on):
7416         Depend conditionally on crypto/arctwo.
7417         * modules/crypto/gc-des (Depends-on):
7418         Depend conditionally on crypto/des.
7419         * modules/crypto/gc-hmac-md5 (Depends-on):
7420         Depend conditionally on crypto/hmac-md5.
7421         * modules/crypto/gc-hmac-sha1 (Depends-on):
7422         Depend conditionally on crypto/hmac-sha1.
7423         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
7424         * modules/crypto/gc-md4 (Depends-on):
7425         Depend conditionally on crypto/md4.
7426         * modules/crypto/gc-md5 (Depends-on):
7427         Depend conditionally on crypto/md5.
7428         * modules/crypto/gc-rijndael (Depends-on):
7429         Depend conditionally on crypto/rijndael.
7430         * modules/crypto/gc-sha1 (Depends-on):
7431         Depend conditionally on crypto/sha1.
7432         * modules/crypto/gc-arcfour:
7433         * modules/crypto/gc-arctwo:
7434         * modules/crypto/gc-des:
7435         * modules/crypto/gc-hmac-md5:
7436         * modules/crypto/gc-hmac-sha1:
7437         * modules/crypto/gc-md2:
7438         * modules/crypto/gc-md4:
7439         * modules/crypto/gc-md5:
7440         * modules/crypto/gc-rijndael:
7441         * modules/crypto/gc-sha1:
7442         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
7443         now that the conditional dependencies do the work for us.
7444
7445 2011-11-17  Jim Meyering  <meyering@redhat.com>
7446
7447         tests: factor st_ctime-comparison out of two headers
7448         * tests/test-utimens-common.h (ctime_compare): Define.
7449         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
7450         * tests/test-lutimens.h (test_lutimens): Likewise.
7451         * tests/test-utimens.h (test_utimens): Likewise.
7452
7453         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
7454         Invoke the test program via an init.sh-using wrapper.
7455         * tests/test-getcwd.sh: New file.
7456         * modules/getcwd-tests (Files): Add it.
7457         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
7458
7459 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
7460
7461         gitlog-to-changelog: support multi-author commits.
7462         The FSF cares about keeping track of all authors of patches to its
7463         projects, but Git doesn't provide obvious support for multi-author
7464         changesets. Consensus seems to be forming around the use of extra
7465         Signed-off-by inspired lines in the log message formatted as
7466         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
7467         multi-author commits between version control systems.
7468         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
7469         log message and output in standard ChangeLog multi-author format.
7470         Reported by Peter Rosin <peda@lysator.liu.se>
7471
7472 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
7473             Bruno Haible  <bruno@clisp.org>
7474
7475         Fix some modules' file list.
7476         * modules/fstatat (Files): Add m4/lstat.m4.
7477         * modules/openat (Files): Likewise.
7478         * modules/unlinkat (Files): Likewise.
7479
7480 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
7481
7482         maint.mk: fix tight-scope.mk generation in VPATH builds.
7483         * top/maint.mk (tight-scope.mk): Make sure to prefix file
7484         reference with $(srcdir) so that the file is found correctly even
7485         when running `make syntax-check' in a VPATH build.
7486
7487 2011-11-13  Bruno Haible  <bruno@clisp.org>
7488             Jim Meyering  <meyering@redhat.com>
7489
7490         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
7491         * tests/init.sh (compare): Remove "No differences encountered" or
7492         synonymous output from the 'diff' program.
7493
7494 2011-11-13  Bruno Haible  <bruno@clisp.org>
7495
7496         Makefile: Tweak indentation.
7497         * Makefile: Use tab as first character in every line that contains rule
7498         commands.
7499
7500 2011-11-13  Bruno Haible  <bruno@clisp.org>
7501
7502         Syntax check for copyright statements.
7503         * check-copyright: New file.
7504         * Makefile (sc_check_copyright): New rule.
7505
7506 2011-11-13  Simon Josefsson  <simon@josefsson.org>
7507
7508         * build-aux/git-version-gen: Add --prefix to configure the tag
7509         match string.
7510
7511 2011-11-13  Simon Josefsson  <simon@josefsson.org>
7512
7513         * build-aux/git-version-gen: Add --help and --version.
7514
7515 2011-11-12  Jim Meyering  <meyering@redhat.com>
7516
7517         revamp the other test-exclude?.sh scripts to use init.sh, too
7518         * tests/test-exclude1.sh: Use init.sh.
7519         * tests/test-exclude2.sh: Likewise.
7520         * tests/test-exclude3.sh: Likewise.
7521         * tests/test-exclude4.sh: Likewise.
7522         * tests/test-exclude5.sh: Likewise.
7523         * tests/test-exclude6.sh: Likewise.
7524         * tests/test-exclude7.sh: Likewise.
7525         * tests/test-exclude8.sh: Likewise.
7526         * modules/exclude-tests (Files): List init.sh.
7527
7528         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
7529         These shell scripts ignored failure of the binary test-exclude,
7530         so making the latter return 77 didn't cause them to be skipped.
7531         * tests/test-exclude5.sh: Exit with test-exclude's error status
7532         when that program fails.  Revamp to use init.sh.
7533         * tests/test-exclude2.sh: Likewise.
7534
7535         test-exclude: fix a typo
7536         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
7537
7538 2011-11-11  Bruno Haible  <bruno@clisp.org>
7539
7540         obstack: Fix compilation error on MSVC 9.
7541         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
7542
7543 2011-11-11  Jim Meyering  <meyering@redhat.com>
7544
7545         test-exclude: skip tests rather than failing on deficient systems
7546         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
7547         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
7548         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
7549         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
7550
7551 2011-11-10  Bruno Haible  <bruno@clisp.org>
7552
7553         ptsname_r test: Avoid gcc warning on glibc systems.
7554         * tests/test-ptsname_r.c (null_ptr): New function.
7555         (test_errors): Use it.
7556
7557 2011-11-10  Bruno Haible  <bruno@clisp.org>
7558
7559         ptsname_r: Avoid compilation error on OSF/1 5.1.
7560         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
7561         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
7562         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
7563         function is not declared or incompatibly declared.
7564         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
7565         * modules/ptsname_r (Depends-on, configure.ac): Update.
7566         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
7567
7568 2011-11-10  Bruno Haible  <bruno@clisp.org>
7569
7570         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
7571         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
7572         When cross-compiling, guess yes on all platforms except AIX.
7573         Reported by Ludovic Courtès <ludo@gnu.org>.
7574
7575 2011-11-09  Bruno Haible  <bruno@clisp.org>
7576
7577         ptsname_r tests: Fix bugs.
7578         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
7579         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
7580
7581 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
7582
7583         fstatat: work with cross-compilation
7584         Problem reported by Ludovic Courtès in
7585         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
7586         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
7587         "cross-compiling" and assume the bug is present.  Replace
7588         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
7589         an inverted sense, to be more conservative about our assumptions.
7590         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
7591
7592 2011-11-09  Bruno Haible  <bruno@clisp.org>
7593
7594         Improve MODULES.html output.
7595         * modules/mkfifoat (Description): Use the word "function".
7596         * modules/readlinkat (Description): Likewise.
7597         * modules/symlinkat (Description): Likewise.
7598
7599 2011-11-09  Eric Blake  <eblake@redhat.com>
7600
7601         ptsname_r-tests: new test module
7602         * modules/ptsname_r-tests: New module.
7603         * tests/test-ptsname_r.c: New file.
7604
7605         ptsname_r: new module
7606         * modules/ptsname_r: New module.
7607         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
7608         * lib/ptsname.c (__ptsname_r): Split...
7609         * lib/ptsname_r.c: ...into new file.
7610         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7611         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
7612         * modules/stdlib (Makefile.am): Substitute witnesses.
7613         * lib/stdlib.in.h (ptsname_r): Declare it.
7614         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
7615         * MODULES.html.sh (Misc): Likewise.
7616         * modules/ptsname (Depends-on): Alter dependency.
7617         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
7618
7619 2011-11-09  Jim Meyering  <meyering@redhat.com>
7620
7621         announce-gen: be more concise when there's only one URL+tarball
7622         * build-aux/announce-gen (get_tool_versions): When you distribute
7623         only one type of tarball, combine the first two "Here are..."
7624         sections and make the key-checking grammar independent of
7625         how many tarballs there are.
7626
7627 2011-11-09  Eric Blake  <eblake@redhat.com>
7628
7629         openpty: provide a stub on mingw
7630         * lib/pty.in.h (includes): Provide forward declarations.
7631         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
7632
7633         raise: fix mingw handling of SIGPIPE
7634         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
7635
7636 2011-11-08  Bruno Haible  <bruno@clisp.org>
7637
7638         More conditional dependencies.
7639         * modules/faccessat (Depends-on): Add conditions.
7640         * modules/fchmodat (Depends-on): Likewise.
7641         * modules/fchownat (Depends-on): Likewise.
7642         * modules/fstatat (Depends-on): Likewise.
7643         * modules/mkfifoat (Depends-on): Likewise.
7644         * modules/readlinkat (Depends-on): Likewise.
7645         * modules/symlinkat (Depends-on): Likewise.
7646         * modules/unlinkat (Depends-on): Likewise.
7647         * modules/utimensat (Depends-on): Likewise.
7648         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
7649         * modules/linkat (Depends-on): Refine the conditions.
7650         * modules/renameat (Depends-on): Likewise.
7651
7652 2011-11-08  Bruno Haible  <bruno@clisp.org>
7653
7654         faccessat: Move AC_LIBOBJ invocation to module description.
7655         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
7656         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
7657         invocation from here...
7658         * modules/faccessat (configure.ac): ... to here. Invoke
7659         gl_PREREQ_FACCESSAT.
7660
7661 2011-11-08  Bruno Haible  <bruno@clisp.org>
7662
7663         faccessat: Simplify autoconf macro.
7664         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
7665         gl_FUNC_EUIDACCESS.
7666
7667 2011-11-08  Bruno Haible  <bruno@clisp.org>
7668
7669         renameat: Fix dependencies.
7670         * modules/renameat (Depends-on): Add stdbool.
7671
7672 2011-11-08  Bruno Haible  <bruno@clisp.org>
7673
7674         mkfifoat: Fix module description.
7675         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
7676         not gl_UNISTD_MODULE_INDICATOR.
7677
7678 2011-11-08  Bruno Haible  <bruno@clisp.org>
7679
7680         fstatat: Remove unused dependency.
7681         * modules/fstatat (Depends-on): Remove fstat.
7682
7683 2011-11-08  Simon Josefsson  <simon@josefsson.org>
7684
7685         GNUmakefile: behave when Makefile is missing.
7686         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
7687
7688 2011-11-08  Bruno Haible  <bruno@clisp.org>
7689
7690         openat: Conditionalize dependencies.
7691         * lib/openat.c: Reduce the scope of some #includes.
7692         * modules/openat (Depends-on): Add conditions.
7693
7694 2011-11-07  Jim Meyering  <meyering@redhat.com>
7695
7696         maint.mk: extract GPG key ID without using a temporary file
7697         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
7698         without using a temporary file.  Based on a suggestion from Werner Koch
7699         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
7700
7701 2011-11-07  Eric Blake  <eblake@redhat.com>
7702
7703         grantpt: fix typo
7704         * lib/stdlib.in.h (grantpt): Check correct function.
7705
7706         maint.mk: silence new syntax check
7707         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
7708
7709 2011-11-06  Bruno Haible  <bruno@clisp.org>
7710
7711         Doc about floating-point and math API.
7712         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
7713         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
7714
7715 2011-11-06  Bruno Haible  <bruno@clisp.org>
7716
7717         stdalign tests: Skip the test when compiled by Sun C.
7718         * tests/test-stdalign.c (main): Skip the test on Sun C.
7719
7720 2011-11-06  Bruno Haible  <bruno@clisp.org>
7721
7722         ansi-c++-opt: Complete the 2011-06-05 change.
7723         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
7724         does not support namespaces, set the variable to "no", not to ":".
7725
7726 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
7727
7728         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
7729
7730 2011-11-06  Bruno Haible  <bruno@clisp.org>
7731
7732         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
7733         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
7734         (minus_zerol) [HP-UX]: New macro.
7735         (unary_minus) [HP-UX]: New function.
7736         (copysignl) [HP-UX]: Use unary_minus function.
7737
7738 2011-11-06  Bruno Haible  <bruno@clisp.org>
7739
7740         ldexp, ldexpf, ldexpl: Enhance tests.
7741         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
7742         and tests/test-ldexpl.c.
7743         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
7744         LDEXP, MIN_EXP, MAX_EXP): New macros.
7745         Include test-ldexp.h.
7746         (main): Just call test_function.
7747         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
7748         infinity.h, nan.h.
7749         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7750         MAX_EXP): New macros.
7751         Include test-ldexp.h.
7752         (x, y): Remove variables.
7753         (main): Just call test_function.
7754         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
7755         infinity.h, nan.h.
7756         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7757         MAX_EXP): New macros.
7758         Include test-ldexp.h.
7759         (x, y): Remove variables.
7760         (main): Just call test_function.
7761         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
7762         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
7763         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7764         (Depends-on): Add isnand-nolibm, signbit, float.
7765         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
7766         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7767         (Depends-on): Add isnanf-nolibm, signbit, float.
7768
7769 2011-11-06  Bruno Haible  <bruno@clisp.org>
7770
7771         math tests: Cosmetics.
7772         * tests/test-math-c++.cc: Reorder declarations.
7773
7774 2011-11-05  Bruno Haible  <bruno@clisp.org>
7775
7776         fma*: Simplify test.
7777         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
7778         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
7779
7780         Tests for module 'fmal'.
7781         * modules/fmal-tests: New file.
7782         * tests/test-fmal1.c: New file.
7783         * tests/test-fmal2.c: New file.
7784
7785         New module 'fmal'.
7786         * lib/math.in.h (fmal): New declaration.
7787         * lib/fmal.c: New file.
7788         * m4/fmal.m4: New file.
7789         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
7790         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
7791         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
7792         REPLACE_FMAL.
7793         * modules/fmal: New file.
7794         * doc/posix-functions/fmal.texi: Mention the new module and the various
7795         bugs.
7796
7797         Tests for module 'fmaf'.
7798         * modules/fmaf-tests: New file.
7799         * tests/test-fmaf1.c: New file.
7800         * tests/test-fmaf2.c: New file.
7801
7802         New module 'fmaf'.
7803         * lib/math.in.h (fmaf): New declaration.
7804         * lib/fmaf.c: New file.
7805         * m4/fmaf.m4: New file.
7806         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
7807         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
7808         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
7809         REPLACE_FMAF.
7810         * modules/fmaf: New file.
7811         * doc/posix-functions/fmaf.texi: Mention the new module and the various
7812         bugs.
7813
7814         Tests for module 'fma'.
7815         * modules/fma-tests: New file.
7816         * tests/test-fma1.c: New file.
7817         * tests/test-fma1.h: New file.
7818         * tests/test-fma2.c: New file.
7819         * tests/test-fma2.h: New file.
7820
7821         New module 'fma'.
7822         * lib/math.in.h (fma): New declaration.
7823         * lib/fma.c: New file.
7824         * m4/fma.m4: New file.
7825         * m4/fegetround.m4: New file.
7826         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
7827         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
7828         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
7829         REPLACE_FMA.
7830         * modules/fma: New file.
7831         * doc/posix-functions/fma.texi: Mention the new module and the various
7832         bugs.
7833
7834         Extend gl_MATHFUNC.
7835         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
7836         Support 'void' as argument type.
7837         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
7838
7839 2011-11-05  Jim Meyering  <meyering@redhat.com>
7840
7841         maint.mk: also prohibit inclusion of dirent.h without use
7842         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
7843
7844 2011-11-05  Bruno Haible  <bruno@clisp.org>
7845
7846         ldexpl tests: Avoid test failure on MSVC 9.
7847         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
7848         value. Needed in order to enforce the conversion from a value greater
7849         than LDBL_MAX to Infinity.
7850
7851 2011-11-05  Bruno Haible  <bruno@clisp.org>
7852
7853         New modules 'at-internal', 'openat-h', split off from module 'openat'.
7854         * modules/at-internal: New file, extracted from modules/openat.
7855         * modules/openat-h: New file.
7856         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
7857         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
7858         * modules/openat (Description): Add reference to POSIX function.
7859         (Files): Remove lib/openat.h, lib/openat-proc.c.
7860         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
7861         intprops, unistd.
7862         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
7863         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
7864         gl_FCNTL_MODULE_INDICATOR.
7865         (Include): Remove unistd.h, openat.h.
7866         * modules/areadlinkat (Files): Add lib/at-func.c.
7867         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7868         openat-die, openat-h, save-cwd.
7869         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
7870         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7871         openat-die, openat-h, save-cwd, unistd.
7872         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
7873         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7874         openat-h, save-cwd. Remove fcntl-h, openat.
7875         * modules/fchmodat (Files): Remove lib/openat.h.
7876         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7877         openat, stdbool, unistd.
7878         * modules/fchownat (Files): Remove lib/openat.h.
7879         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7880         openat, stdbool, sys_stat.
7881         * modules/fdopendir (Files): Remove lib/openat-priv.h,
7882         lib/openat-proc.c.
7883         (Depends-on): Add at-internal.
7884         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
7885         * modules/fstatat (Files): Remove lib/openat.h.
7886         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7887         stdbool, unistd.
7888         * modules/fts (Depends-on): Add openat-h.
7889         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
7890         openat.
7891         * modules/mkdirat (Files): Remove lib/openat.h.
7892         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7893         openat, stdbool, sys_stat.
7894         * modules/mkfifoat (Files): Add lib/at-func.c.
7895         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7896         openat-h, save-cwd. Remove fcntl-h, openat.
7897         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
7898         * modules/readlinkat (Files): Add lib/at-func.c.
7899         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7900         openat-h, save-cwd. Remove fcntl-h, openat.
7901         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
7902         openat.
7903         * modules/selinux-at (Files): Add lib/at-func.c.
7904         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7905         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
7906         * modules/symlinkat (Files): Add lib/at-func.c.
7907         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7908         openat-h, save-cwd. Remove fcntl-h, openat.
7909         * modules/unlinkat (Files): Remove lib/openat.h.
7910         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7911         stdbool.
7912         * modules/utimensat (Files): Add lib/at-func.c.
7913         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
7914         openat-die, openat-h, save-cwd.
7915         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
7916         * modules/fdutimensat-tests (Depends-on): Add openat.
7917         * modules/fstatat-tests (Depends-on): Add openat-h.
7918         * modules/readlinkat-tests (Depends-on): Add openat.
7919         * modules/symlinkat-tests (Depends-on): Add openat.
7920
7921 2011-11-05  Bruno Haible  <bruno@clisp.org>
7922
7923         openat: Include <stdbool.h>.
7924         * lib/openat.c: Include <stdbool.h>.
7925
7926 2011-11-04  Bruno Haible  <bruno@clisp.org>
7927
7928         fchownat, renameat, unlinkat: Fix dependencies.
7929         * modules/fchownat (Depends-on): Add fstatat.
7930         * modules/renameat (Depends-on): Likewise.
7931         * modules/unlinkat (Depends-on): Likewise.
7932
7933 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
7934
7935         openat: remove direct dependency on dirent
7936         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
7937         and hasn't been needed ever since fdopendir was split into its own
7938         module on 2009-08-31.
7939         * modules/openat (Depends-on): Remove dirent.
7940
7941 2011-11-04  Bruno Haible  <bruno@clisp.org>
7942
7943         renameat: Optimize code size.
7944         * modules/renameat (configure.ac): Don't compile at-func2.c if
7945         REPLACE_RENAMEAT is 1.
7946
7947 2011-11-04  Bruno Haible  <bruno@clisp.org>
7948
7949         openat tests: Fix file list.
7950         * modules/openat-tests (Files): Add tests/test-open.h.
7951
7952 2011-11-04  Bruno Haible  <bruno@clisp.org>
7953
7954         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
7955         * modules/fchmodat (Depends-on): Add openat-die.
7956         * modules/fchownat (Depends-on): Likewise.
7957         * modules/linkat (Depends-on): Likewise.
7958         * modules/renameat (Depends-on): Likewise.
7959         * modules/openat (Depends-on): Add dirent.
7960
7961 2011-11-04  Jim Meyering  <meyering@redhat.com>
7962
7963         at-func*.c: fix comments
7964         * lib/at-func2.c: Correct/improve first-line comment.
7965         * lib/at-func.c: Correct grammar in first-line comment.
7966
7967 2011-11-04  Bruno Haible  <bruno@clisp.org>
7968
7969         New module 'mkdirat', split off from module 'openat'.
7970         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
7971         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
7972         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
7973         * modules/mkdirat: New file, extracted from modules/openat.
7974         * modules/openat (Files): Remove lib/mkdirat.c.
7975         (Depends-on): Remove mkdir.
7976         (configure.ac): Remove AC_LIBOBJ of mkdirat.
7977         (Include): Remove <sys/stat.h>.
7978         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
7979         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
7980         tests/test-mkdir.h.
7981         (Depends-on): Remove ignore-value.
7982         (Makefile.am): Remove rules for test-mkdirat.
7983         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
7984         of module 'openat'.
7985         * NEWS: Mention the change.
7986
7987 2011-11-04  Bruno Haible  <bruno@clisp.org>
7988
7989         closedir: Avoid warning on mingw.
7990         * lib/closedir.c: Include <unistd.h>.
7991
7992 2011-11-04  Bruno Haible  <bruno@clisp.org>
7993
7994         New module 'fstatat', split off from module 'openat'.
7995         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
7996         defined.
7997         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
7998         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
7999         gl_FUNC_FSTATAT.
8000         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
8001         * modules/fstatat: New file, extracted from modules/openat.
8002         * modules/openat (Files): Remove lib/fstatat.c.
8003         (Depends-on): Remove lstat.
8004         (configure.ac): Remove AC_LIBOBJ of fstatat.
8005         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
8006         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
8007         tests/test-lstat.h, tests/test-stat.h.
8008         (Depends-on): Remove getcwd-lgpl.
8009         (Makefile.am): Remove rules for test-fstatat.
8010         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
8011         of module 'openat'.
8012         * NEWS: Mention the change.
8013         * modules/getcwd (Depends-on): Add fstatat.
8014         * modules/linkat (Depends-on): Likewise.
8015         * modules/mkfifoat-tests (Depends-on): Likewise.
8016         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
8017
8018 2011-11-03  Bruno Haible  <bruno@clisp.org>
8019
8020         New module 'unlinkat', split off from module 'openat'.
8021         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
8022         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
8023         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
8024         * modules/unlinkat: New file, extracted from modules/openat. Correct
8025         the dependency conditions.
8026         * modules/openat (Files): Remove lib/unlinkat.c.
8027         (Depends-on): Remove rmdir, unlink.
8028         (configure.ac): Remove AC_LIBOBJ of unlinkat.
8029         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
8030         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
8031         tests/test-rmdir.h, tests/test-unlink.h.
8032         (Depends-on): Remove unlinkdir.
8033         (Makefile.am): Remove rules for test-unlinkat.
8034         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
8035         of module 'openat'.
8036         * NEWS: Mention the change.
8037         * modules/linkat-tests (Depends-on): Add unlinkat.
8038         * modules/mkfifoat-tests (Depends-on): Likewise.
8039         * modules/readlinkat-tests (Depends-on): Likewise.
8040
8041 2011-11-02  Bruno Haible  <bruno@clisp.org>
8042
8043         New module 'fchmodat', split off from module 'openat'.
8044         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
8045         defined.
8046         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
8047         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
8048         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
8049         * modules/fchmodat: New file, extracted from modules/openat.
8050         * modules/openat (Files): Remove lib/fchmodat.c.
8051         (configure.ac): Remove AC_LIBOBJ of fchmodat.
8052         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
8053         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
8054         (Makefile.am): Remove rules for test-fchmodat.
8055         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
8056         of module 'openat'.
8057         * NEWS: Mention the change.
8058
8059 2011-11-02  Jim Meyering  <meyering@redhat.com>
8060
8061         putenv: indent #definition of "environ" to placate cppi
8062         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
8063
8064         gitlog-to-changelog: provide a ChangeLog-repair mechanism
8065         Git logs are often treated as immutable, because editing them
8066         changes the SHA1 checksums of all descendants.  Thus, errors in
8067         git logs tend to stay there forever.  However, when we generate
8068         a ChangeLog file -- typically for distribution -- from that git log,
8069         we can actually make corrections in the generated file.  The key
8070         lies in recording in machine-readable/applicable form the desired
8071         corrections.  See --help for description and an example.
8072         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
8073         (usage): Describe it; alphabetize option descriptions.
8074         (main): Honor the new option, carefully.
8075
8076 2011-11-01  Jim Meyering  <meyering@redhat.com>
8077
8078         gitlog-to-changelog: avoid an infloop
8079         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
8080         that ends up being empty.
8081
8082 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
8083
8084         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
8085         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
8086         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
8087         contains (possibly-quoted) backslashes.  This should avoid
8088         all-too-common shell bugs if COMPLICATED contains backslashes in
8089         the "wrong" places.  Reported by David Evans in
8090         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
8091         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
8092         because we want ASCII ranges.  Is there some reason we don't use
8093         the C locale everywhere in this script?
8094         (func_module, top level): Avoid unwanted pathname expansion when
8095         $repo_url_prefix or $repo_url_suffix_repl contain shell
8096         metacharacters like '?' and '*'.
8097
8098 2011-11-01  Bruno Haible  <bruno@clisp.org>
8099
8100         fchownat: Improve description.
8101         * modules/fchownat (Description): Add link to function.
8102
8103 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
8104
8105         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
8106         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
8107         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
8108         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
8109
8110 2011-11-01  Bruno Haible  <bruno@clisp.org>
8111
8112         alignof: Avoid collision with stdalign module.
8113         * lib/alignof.h (alignof): Remove macro.
8114         * NEWS: Mention the change.
8115         Reported by Paul Eggert.
8116
8117 2011-11-01  Bruno Haible  <bruno@clisp.org>
8118
8119         New module 'fchownat', split off from module 'openat'.
8120         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
8121         defined.
8122         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
8123         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
8124         invoke gl_FUNC_FCHOWNAT.
8125         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
8126         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
8127         * modules/fchownat: New file, extracted from modules/openat.
8128         * modules/openat (Files): Remove lib/fchownat.c.
8129         (Depends-on): Remove lchown.
8130         (configure.ac): Remove AC_LIBOBJ of fchownat.
8131         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
8132         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
8133         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
8134         (Depends-on): Remove mgetgroups, usleep, stat-time.
8135         (configure.ac): Remove test for getegid.
8136         (Makefile.am): Remove rules for test-fchownat.
8137         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
8138         of module 'openat'.
8139         * NEWS: Mention the change.
8140
8141 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
8142
8143         stdalign: port better to MSVC and to Sun C 5.11
8144         This fixes some of the problems reported by Bruno Haible in
8145         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
8146         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
8147         shortcomings of MSVC and of Sun C 5.11.
8148         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
8149         around __declspec arg.
8150         * modules/stdalign-tests (Files): Add tests/macros.h.
8151         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
8152         Include macros.h, for ASSERT.
8153         (DECLARE_ALIGNED): Remove.
8154         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
8155         to catch bug), and to 1 if not (simplifies the rest of the code).
8156         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
8157         (CHECK_AUTO): Remove.
8158         (CHECK_ALIGNED): Check only the alignment of the static vars,
8159         since auto var alignment isn't supported by Sun C 5.11.
8160         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
8161         ASSERT failures are easier to diagnose.
8162
8163 2011-10-31  Bruno Haible  <bruno@clisp.org>
8164
8165         doc about some IRIX 5.3 problems.
8166         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
8167         on IRIX 5.3.
8168         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
8169         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
8170         5.3.
8171         * doc/posix-functions/grantpt.texi: Likewise.
8172         * doc/posix-functions/unlockpt.texi: Likewise.
8173         * doc/posix-functions/lgamma.texi: Likewise.
8174         * doc/posix-functions/nextafter.texi: Likewise.
8175         * doc/posix-functions/remainder.texi: Likewise.
8176         * doc/posix-functions/select.texi: Mention misplaced declaration on
8177         IRIX 5.3.
8178         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8179
8180 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
8181
8182         gitlog-to-changelog: fix git-log invocation.
8183         git-log mishandles date strings before 1970-01-01 UTC, and there is
8184         no use to specify --since=1970-01-01 by default anyway.
8185         * build-aux/gitlog-to-changelog: By default, when no --since option
8186         was given, do not specify explicit --since option to git-log.
8187
8188 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
8189
8190         gitlog-to-changelog: new option --append-dot.
8191         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
8192         first non-blank line of each commit message terminated with a dot.
8193
8194 2011-10-30  Bruno Haible  <bruno@clisp.org>
8195
8196         ffsl, ffsll: Avoid compilation error due to 'restrict'.
8197         * lib/ffsl.h: Include <config.h>.
8198         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
8199
8200 2011-10-30  Jim Meyering  <meyering@redhat.com>
8201
8202         GNUmakefile: reenable "make syntax-check" for most projects
8203         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
8204         build-aux variable", "syntax-check" would do nothing but succeed with
8205         the "No version control files detected..." diagnostic (unless you
8206         happened to override _build-aux via cfg.mk).
8207         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
8208         to precede inclusion of maint.mk.  Otherwise, these variables would
8209         be used undefined in any project that does not override the default.
8210
8211 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
8212
8213         gitlog-to-changelog: treat a message with only blank lines as empty.
8214         * build-aux/gitlog-to-changelog: Move the code that removes leading and
8215         trailing blank lines before the code that issues a warning about an
8216         empty commit message.
8217
8218 2011-10-30  Jim Meyering  <meyering@redhat.com>
8219
8220         test-parse-datetime.c: avoid new DST-related false positive test failure
8221         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
8222         based on the time/date we'll convert, not the current time.
8223         Otherwise, the moment we cross a DST boundary like today's in
8224         Europe, (CEST to CET), that offset ends up being one hour off.
8225
8226 2011-10-27  Bruno Haible  <bruno@clisp.org>
8227
8228         fstat: Tweak documentation.
8229         * modules/fstat (Description): More precise description.
8230
8231 2011-10-27  Bruno Haible  <bruno@clisp.org>
8232
8233         Update documentation regarding 'largefile' module.
8234         * doc/posix-functions/fstat.texi: Tweak wording.
8235         * doc/posix-functions/opendir.texi: Mention that the module fixes the
8236         problems with huge directories and/or small ino_t types.
8237         * doc/posix-functions/readdir.texi: Likewise.
8238         * doc/posix-functions/rewinddir.texi: Likewise.
8239
8240 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
8241
8242         maint.mk: don't maintain a second build-aux variable.
8243         * maint.mk (build_aux): Removed.  The maintainer-makefile module
8244         depends on GNUmakefile, which already maintains a cfg.mk
8245         overridable $(_build-aux) for projects with a non-standard
8246         build-aux directory location, although without the $(srcdir)
8247         prefix.  Use that variable consistently instead of introducing a
8248         second one.  Adjust all call sites.
8249
8250 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
8251
8252         Add stdalign module and use it in other modules.
8253         This is based on a previous proposal by Bruno Haible
8254         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
8255
8256         stdalign: new module
8257         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
8258         * modules/stdalign: New files.
8259         * MODULES.html.sh (c1x_core_properties): Add stdalign.
8260         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
8261
8262         stdalign-tests: new module
8263         * modules/stdalign-tests, tests/test-stdalign.c: New files.
8264
8265         argp: use stdalign
8266         * lib/argp-parse.c: Include <stdalign.h>.
8267         (alignof): Remove.
8268         * modules/argp (Depends-on): Add stdalign.
8269
8270         crypto libraries: use stdalign
8271         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
8272         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
8273         Do not include <stdlib.h> twice, in md4.c.
8274         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
8275         because we are accessing a pointer's bit-pattern, not a size.
8276         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
8277         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
8278         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
8279         * modules/crypto/sha512: Likewise.
8280
8281         sys_socket: use stdalign, not alignof
8282         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
8283         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
8284
8285 2011-10-27  Bruno Haible  <bruno@clisp.org>
8286
8287         raise test: Avoid a test failure on Linux/MIPS.
8288         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
8289         because 99 is a valid signal on Linux/MIPS.
8290
8291 2011-10-27  Bruno Haible  <bruno@clisp.org>
8292
8293         nonblocking tests: Fix test failure on Linux/MIPS.
8294         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
8295         Set to 270000.
8296
8297 2011-10-27  Bruno Haible  <bruno@clisp.org>
8298
8299         utimensat: Work around problem on Linux/hppa.
8300         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
8301         values.
8302         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
8303
8304 2011-10-25  Jim Meyering  <meyering@redhat.com>
8305
8306         maint.mk: fix a bug in sc_prohibit_stddef_without_use
8307         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
8308         after symbols like NULL, size_t, etc.
8309         Reported by Alfred M. Szmidt.
8310
8311         maint.mk: exempt ENODATA from a syntax-check rule
8312         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
8313         from the sc_prohibit_always-defined_macros syntax-check rule.
8314         Add a comment.  See this for more details:
8315         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
8316
8317 2011-10-23  Jim Meyering  <meyering@redhat.com>
8318
8319         fts: close parent dir FD before returning from post-traversal fts_read
8320         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
8321         unlink A, even though an FD open on A remained.  This is suboptimal
8322         (holding a file descriptor open longer than needed), but otherwise not
8323         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
8324         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
8325         that represents a real problem: it causes the removal of A to fail
8326         with e.g., "rm: cannot remove `A': Device or resource busy"
8327
8328         fts visits each directory twice and keeps a cache (fts_fd_ring) of
8329         directory file descriptors.  After completing the final, FTS_DP,
8330         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
8331         cache, but then proceeded to add a new FD to it via the subsequent
8332         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
8333         final file descriptor would be closed only via fts_close's call to
8334         fd_ring_clear.  Now, it is usually closed earlier, via the final
8335         FTS_DP-returning fts_read call.
8336         * lib/fts.c (restore_initial_cwd): New function, converted from
8337         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
8338         Update callers.
8339         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
8340         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
8341
8342 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
8343             Bruno Haible  <bruno@clisp.org>
8344             Jim Meyering  <jim@meyering.net>
8345
8346         readme-release: improve safety of release prep instructions.
8347         * README-release: Don't git pull all branches when only master
8348         is needed for the release process.
8349         Run make maintainer-clean before changing trees and merging.
8350         Don't try to run ./configure right after git pull in case files
8351         that influence the bootstrap process have changed, move the
8352         ./configure step to after running ./bootstrap.
8353         Don't bootstrap "one last time"... it's the first time!
8354
8355 2011-10-22  Bruno Haible  <bruno@clisp.org>
8356
8357         errno, strerror-override: Support for MSVC 10.
8358         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
8359         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
8360         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
8361         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
8362         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
8363         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
8364         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
8365         Assign values compatible with MSVC 10.
8366         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
8367         New macros.
8368         (GNULIB_defined_EWINSOCK): New macro.
8369         * lib/strerror-override.c (strerror_override): Update accordingly.
8370         * lib/strerror-override.h: Likewise.
8371         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
8372         longer equal to the corresponding errno value.
8373         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8374
8375 2011-10-22  Bruno Haible  <bruno@clisp.org>
8376
8377         perror: Recognize when test program crashes.
8378         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
8379         strerror, set gl_cv_func_perror_works to no.
8380         Reported by Daniel Richard G. <skunk@iskunk.org>.
8381
8382         perror: Fix indentation.
8383         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
8384
8385 2011-10-22  Bruno Haible  <bruno@clisp.org>
8386
8387         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
8388         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
8389         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
8390         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
8391         functions, not as a macro.
8392         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
8393         macros.
8394         (isfinite, isinf, isnan, signbit): Check overloaded functions and
8395         absence of macro.
8396         Suggested by Eric Blake.
8397         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8398
8399 2011-10-21  Bruno Haible  <bruno@clisp.org>
8400
8401         relocatable-prog-wrapper: Don't leave object files behind.
8402         * build-aux/install-reloc: Re-synchronize list of .o files to be
8403         removed with list of compilation units.
8404
8405 2011-10-20  Bruno Haible  <bruno@clisp.org>
8406
8407         openpty, posix_openpt: Remove code duplication.
8408         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
8409         * lib/openpty.c: Include <stdlib.h>.
8410         (openpty): Use posix_openpt on all platforms except IRIX.
8411         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
8412
8413 2011-10-20  Bruno Haible  <bruno@clisp.org>
8414
8415         unlockpt: Detect invalid argument.
8416         * lib/unlockpt.c: Include <fcntl.h>.
8417         (unlockpt): Check whether fd is valid, using fcntl().
8418         * modules/unlockpt (Depends-on): Add fcntl-h.
8419
8420 2011-10-20  Bruno Haible  <bruno@clisp.org>
8421
8422         openpty: Avoid compilation error on AIX 6.1.
8423         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
8424
8425 2011-10-20  Bruno Haible  <bruno@clisp.org>
8426
8427         posix_openpt: Support for OpenBSD.
8428         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
8429         (posix_openpt) [OpenBSD]: New code.
8430         * lib/grantpt.c: Include <fcntl.h>.
8431         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
8432         * modules/grantpt (Depends-on): Add fcntl-h.
8433
8434 2011-10-20  Bruno Haible  <bruno@clisp.org>
8435
8436         posix_openpt test: Coding style.
8437         * tests/test-posix_openpt.c: Use GNU coding style.
8438
8439 2011-10-20  Bruno Haible  <bruno@clisp.org>
8440
8441         grantpt: Support --avoid=pt_chown.
8442         * modules/grantpt (Files): Add lib/pty-private.h.
8443
8444 2011-10-20  Bruno Haible  <bruno@clisp.org>
8445
8446         posix_openpt: Fix autoconf macro.
8447         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
8448         unneeded check for _getpty.
8449
8450 2011-10-20  Bruno Haible  <bruno@clisp.org>
8451
8452         openpty: Update comments.
8453         * lib/openpty.c: Add comments about Minix.
8454
8455 2011-10-19  Eric Blake  <eblake@redhat.com>
8456
8457         openpty: relax license
8458         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
8459
8460         pt_chown: use configmake to simplify build
8461         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
8462
8463         ptsname and others: relax license
8464         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
8465         * modules/unlockpt (License): Likewise.
8466         * modules/pt_chown (License): Likewise.
8467         * modules/ptsname (License): Likewise.
8468         * modules/ttyname_r (License): Likewise.
8469
8470 2011-10-19  Jim Meyering  <meyering@redhat.com>
8471
8472         posix_openpt: remove spurious #endif
8473         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
8474
8475 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
8476
8477         maint.mk: Respect $(build_aux) in web-manual rule.
8478         * top/maint.mk (web-manual): Find gen-announce script in user's
8479         $(build_aux) directory instead of hard-coding 'build-aux'.
8480
8481 2011-10-19  Bruno Haible  <bruno@clisp.org>
8482
8483         posix_openpt: Fix compilation error.
8484         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
8485         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
8486         Mention the openpty module as an alternative.
8487
8488 2011-10-19  Bruno Haible  <bruno@clisp.org>
8489
8490         Support for old NeXTstep 3.3 frexp().
8491         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
8492         execution time of the test to 5 seconds.
8493         Reported by Daniel Richard G. <skunk@iskunk.org>.
8494
8495 2011-10-19  Bruno Haible  <bruno@clisp.org>
8496
8497         Support for old NeXTstep 3.3 sed.
8498         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
8499         part, use /.../, not \|...|. Escape periods in the header file name.
8500         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
8501         Reported by Daniel Richard G. <skunk@iskunk.org>.
8502
8503 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8504
8505         Support for old NeXTstep 3.3 gcc.
8506         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
8507         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
8508         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
8509         * lib/spawn.in.h (_Restrict_arr_): Likewise.
8510         * lib/regex.h (_Restrict_arr_): Likewise.
8511         * lib/regex_internal.h (re_token_t): Likewise.
8512         * lib/regexec.c (check_node_accept_bytes): Likewise.
8513         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
8514
8515 2011-10-18  Eric Blake  <eblake@redhat.com>
8516
8517         posix_openpt: new module
8518         * modules/posix_openpt: New module.
8519         * m4/posix_openpt.m4: New file.
8520         * lib/posix_openpt.c: Likewise.
8521         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
8522         (gl_STDLIB_H_DEFAULTS): Set defaults.
8523         * modules/stdlib (Makefile.am): Substitute macros.
8524         * lib/stdlib.in.h (posix_openpt): Declare.
8525         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
8526         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
8527         * modules/posix_openpt-tests: New test module.
8528         * tests/test-posix_openpt.c: New test.
8529
8530 2011-10-15  Bruno Haible  <bruno@clisp.org>
8531
8532         xstrtoll: Fix compilation failure.
8533         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
8534         from lib/strtol.c.
8535         * doc/posix-headers/limits.texi: Mention missing numerical limits on
8536         some platforms.
8537         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8538
8539 2011-10-15  Bruno Haible  <bruno@clisp.org>
8540
8541         vasnprintf: Optimize bit search operation.
8542         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
8543         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
8544         gl_DOUBLE_EXPONENT_LOCATION.
8545         * modules/vasnprintf (Files): Add m4/exponentd.m4.
8546         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8547         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8548         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8549         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8550         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8551         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8552         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8553         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
8554
8555 2011-10-15  Bruno Haible  <bruno@clisp.org>
8556
8557         vasnprintf: Fix comments.
8558         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
8559
8560 2011-10-14  Bruno Haible  <bruno@clisp.org>
8561
8562         Tests for module 'integer_length_ll'.
8563         * modules/integer_length_ll-tests: New file.
8564         * tests/test-integer_length_ll.c: New file.
8565
8566         New module 'integer_length_ll'.
8567         * lib/integer_length_ll.c: New file.
8568         * modules/integer_length_ll: New file.
8569
8570 2011-10-14  Bruno Haible  <bruno@clisp.org>
8571
8572         Tests for module 'integer_length_l'.
8573         * modules/integer_length_l-tests: New file.
8574         * tests/test-integer_length_l.c: New file.
8575
8576         New module 'integer_length_l'.
8577         * lib/integer_length_l.c: New file.
8578         * modules/integer_length_l: New file.
8579
8580 2011-10-14  Bruno Haible  <bruno@clisp.org>
8581
8582         Tests for module 'integer_length'.
8583         * modules/integer_length-tests: New file.
8584         * tests/test-integer_length.c: New file.
8585
8586         New module 'integer_length'.
8587         * lib/integer_length.h: New file.
8588         * lib/integer_length.c: New file.
8589         * modules/integer_length: New file.
8590
8591 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8592
8593         popen: Fix dependency conditions.
8594         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
8595
8596 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8597
8598         perror: Fix autoconf test.
8599         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
8600         <stdlib.h> and <string.h>.
8601
8602 2011-10-14  Bruno Haible  <bruno@clisp.org>
8603
8604         ffsl: Optimize on 64-bit platforms.
8605         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
8606         unrolling.
8607
8608 2011-10-13  Bruno Haible  <bruno@clisp.org>
8609
8610         ffsl: Optimize on 32-bit platforms.
8611         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
8612         use ffs() without a loop.
8613
8614         ffsl, ffsll: Optimize for GCC.
8615         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
8616         * lib/ffsl.c (GCC_BUILTIN): New macro.
8617         * lib/ffsll.c (GCC_BUILTIN): Likewise.
8618
8619 2011-10-13  Bruno Haible  <bruno@clisp.org>
8620
8621         ffs, bcopy, memset: Support symbol renaming via config.h.
8622         * lib/ffs.c: Include <config.h>.
8623         * lib/bcopy.c: Likewise.
8624         * lib/memset.c: Likewise.
8625
8626 2011-10-10  Bruno Haible  <bruno@clisp.org>
8627
8628         atanl: Simplify for platforms where 'long double' == 'double'.
8629         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8630         alternative implementation.
8631         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8632         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8633         * modules/atanl (Depends-on): Add atan. Update conditions.
8634
8635 2011-10-10  Bruno Haible  <bruno@clisp.org>
8636
8637         acosl: Simplify for platforms where 'long double' == 'double'.
8638         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8639         alternative implementation.
8640         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8641         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8642         * modules/acosl (Depends-on): Add acos. Update conditions.
8643
8644 2011-10-10  Bruno Haible  <bruno@clisp.org>
8645
8646         asinl: Simplify for platforms where 'long double' == 'double'.
8647         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8648         alternative implementation.
8649         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8650         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8651         * modules/asinl (Depends-on): Add asin. Update conditions.
8652
8653 2011-10-10  Bruno Haible  <bruno@clisp.org>
8654
8655         tanl: Simplify for platforms where 'long double' == 'double'.
8656         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8657         implementation.
8658         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8659         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8660         * modules/tanl (Depends-on): Add tan. Update conditions.
8661         (configure.ac): Don't compile trigl.c if
8662         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8663
8664 2011-10-10  Bruno Haible  <bruno@clisp.org>
8665
8666         cosl: Simplify for platforms where 'long double' == 'double'.
8667         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8668         implementation.
8669         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8670         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8671         * modules/cosl (Depends-on): Add cos. Update conditions.
8672         (configure.ac): Don't compile sincosl.c and trigl.c if
8673         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8674
8675 2011-10-10  Bruno Haible  <bruno@clisp.org>
8676
8677         sinl: Simplify for platforms where 'long double' == 'double'.
8678         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8679         implementation.
8680         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8681         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8682         * modules/sinl (Depends-on): Add sin. Update conditions.
8683         (configure.ac): Don't compile sincosl.c and trigl.c if
8684         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8685
8686 2011-10-10  Bruno Haible  <bruno@clisp.org>
8687
8688         logl: Simplify for platforms where 'long double' == 'double'.
8689         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8690         implementation.
8691         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8692         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8693         * modules/logl (Depends-on): Add log. Update conditions.
8694
8695 2011-10-10  Bruno Haible  <bruno@clisp.org>
8696
8697         expl: Simplify for platforms where 'long double' == 'double'.
8698         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8699         implementation.
8700         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8701         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8702         * modules/expl (Depends-on): Add exp. Update conditions.
8703
8704 2011-10-10  Bruno Haible  <bruno@clisp.org>
8705
8706         sqrtl: Simplify for platforms where 'long double' == 'double'.
8707         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8708         alternative implementation.
8709         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8710         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8711         * modules/sqrtl (Depends-on): Update conditions.
8712
8713 2011-10-10  Bruno Haible  <bruno@clisp.org>
8714
8715         ldexpl: Simplify for platforms where 'long double' == 'double'.
8716         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8717         alternative implementation.
8718         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8719         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8720         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
8721
8722 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
8723
8724         ffsll: set correct witness
8725         * modules/ffsll (configure.ac): Fix typo.
8726
8727 2011-10-10  Bruno Haible  <bruno@clisp.org>
8728
8729         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
8730         * lib/printf-frexpl.c: Include <config.h>.
8731         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8732         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
8733         second time.
8734         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
8735         gl_LONG_DOUBLE_VS_DOUBLE.
8736         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
8737         conditions.
8738
8739 2011-10-10  Bruno Haible  <bruno@clisp.org>
8740
8741         frexpl: Simplify for platforms where 'long double' == 'double'.
8742         * lib/frexpl.c: Include <config.h>.
8743         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8744         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8745         time.
8746         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8747         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8748         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
8749         * modules/frexpl (Depends-on): Add frexp. Update conditions.
8750         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
8751         conditions.
8752
8753 2011-10-10  Jim Meyering  <meyering@redhat.com>
8754
8755         test-renameat: don't leave behind a temporary file
8756         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
8757           ERROR: files left in build directory after distclean:
8758           ./gltests/test-renameat.too
8759           make[1]: *** [distcleancheck] Error 1
8760         Reported by Tom G. Christensen.
8761
8762 2011-10-09  Bruno Haible  <bruno@clisp.org>
8763
8764         rint: Determine RINT_LIBM correctly on AIX 7.
8765         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
8766         directly, not only through a function pointer. Also accept an optional
8767         4th argument with extra code.
8768         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
8769         rintf() call by gcc when optimizing.
8770
8771         mathfunc.m4: Refactor.
8772         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
8773         m4 variable.
8774
8775 2011-10-09  Bruno Haible  <bruno@clisp.org>
8776
8777         rintl: Simplify for platforms where 'long double' == 'double'.
8778         * lib/rintl.c: Include <config.h>.
8779         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8780         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8781         time.
8782         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8783         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8784         * modules/rintl (Depends-on): Add rint. Update conditions.
8785
8786 2011-10-09  Bruno Haible  <bruno@clisp.org>
8787
8788         roundl: Simplify for platforms where 'long double' == 'double'.
8789         * lib/roundl.c: Include <config.h>.
8790         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8791         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8792         time.
8793         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8794         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8795         * modules/roundl (Depends-on): Add round. Update conditions.
8796
8797 2011-10-09  Bruno Haible  <bruno@clisp.org>
8798
8799         truncl: Simplify for platforms where 'long double' == 'double'.
8800         * lib/truncl.c: Include <config.h>.
8801         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8802         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8803         time.
8804         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8805         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8806         * modules/truncl (Depends-on): Add trunc. Update conditions.
8807
8808 2011-10-09  Bruno Haible  <bruno@clisp.org>
8809
8810         ceill: Simplify for platforms where 'long double' == 'double'.
8811         * lib/ceill.c: Include <config.h>.
8812         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8813         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8814         time.
8815         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8816         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8817         * modules/ceill (Depends-on): Add ceil. Update conditions.
8818
8819 2011-10-09  Bruno Haible  <bruno@clisp.org>
8820
8821         floorl: Simplify for platforms where 'long double' == 'double'.
8822         * lib/floorl.c: Include <config.h>.
8823         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8824         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8825         time.
8826         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8827         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8828         * modules/floorl (Depends-on): Add floor. Update conditions.
8829
8830 2011-10-09  Bruno Haible  <bruno@clisp.org>
8831
8832         rint: Fix ordering constraints.
8833         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
8834         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
8835         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
8836
8837 2011-10-09  Bruno Haible  <bruno@clisp.org>
8838
8839         copysignl: Simplify for platforms where 'long double' == 'double'.
8840         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8841         alternative.
8842         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8843         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8844         * modules/copysignl (Depends-on): Add copysign. Update conditions.
8845
8846 2011-10-09  Bruno Haible  <bruno@clisp.org>
8847
8848         Tests for module 'rintl'.
8849         * modules/rintl-tests: New file.
8850         * tests/test-rintl.c: New file.
8851
8852         New module 'rintl'.
8853         * lib/math.in.h (rintl): New declaration.
8854         * lib/rintl.c: New file.
8855         * m4/rintl.m4: New file.
8856         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
8857         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
8858         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
8859         * modules/rintl: New file.
8860         * tests/test-math-c++.cc: Check the declaration of rintl.
8861         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8862         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
8863         * doc/posix-functions/rintl.texi: Mention the new module.
8864
8865 2011-10-09  Bruno Haible  <bruno@clisp.org>
8866
8867         Tests for module 'rintf'.
8868         * modules/rintf-tests: New file.
8869         * tests/test-rintf.c: New file.
8870
8871         New module 'rintf'.
8872         * lib/math.in.h (rintf): New declaration.
8873         * lib/rintf.c: New file.
8874         * m4/rintf.m4: New file.
8875         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
8876         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
8877         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
8878         * modules/rintf: New file.
8879         * tests/test-math-c++.cc: Check the declaration of rintf.
8880         * doc/posix-functions/rintf.texi: Mention the new module.
8881
8882 2011-10-09  Bruno Haible  <bruno@clisp.org>
8883
8884         rint: Support for MSVC.
8885         * lib/math.in.h (rint): New declaration.
8886         * lib/rint.c: New file.
8887         * m4/rint.m4: New file.
8888         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
8889         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
8890         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
8891         * modules/rint (Description): Fix.
8892         (Files): Add lib/rint.c, m4/rint.m4.
8893         (Depends-on): Add math.
8894         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
8895         gl_MATH_MODULE_INDICATOR.
8896         * tests/test-math-c++.cc: Check the declaration of rint.
8897         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8898         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
8899         * doc/posix-functions/rint.texi: Mention the replacement provided by
8900         the module.
8901
8902         rint tests: More tests.
8903         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
8904         minus-zero.h, infinity.h, nan.h.
8905         (main): Skip the test if the current rounding mode is not standard. Add
8906         tests for negative numbers, minus zero, infinity, NaN.
8907         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
8908         tests/nan.h.
8909         (Depends-on): Add isnand-nolibm.
8910
8911 2011-10-09  Bruno Haible  <bruno@clisp.org>
8912
8913         Tests for module 'copysignl'.
8914         * modules/copysignl-tests: New file.
8915         * tests/test-copysignl.c: New file.
8916
8917         New module 'copysignl'.
8918         * lib/math.in.h (copysignl): New declaration.
8919         * lib/copysignl.c: New file.
8920         * m4/copysignl.m4: New file.
8921         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
8922         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
8923         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
8924         HAVE_COPYSIGNL.
8925         * modules/copysignl: New file.
8926         * tests/test-math-c++.cc: Check the declaration of copysignl.
8927         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8928         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
8929         * doc/posix-functions/copysignl.texi: Mention the new module.
8930
8931 2011-10-09  Bruno Haible  <bruno@clisp.org>
8932
8933         Tests for module 'copysignf'.
8934         * modules/copysignf-tests: New file.
8935         * tests/test-copysignf.c: New file.
8936
8937         New module 'copysignf'.
8938         * lib/math.in.h (copysignf): New declaration.
8939         * lib/copysignf.c: New file.
8940         * m4/copysignf.m4: New file.
8941         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
8942         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
8943         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
8944         HAVE_COPYSIGNF.
8945         * modules/copysignf: New file.
8946         * tests/test-math-c++.cc: Check the declaration of copysignf.
8947         * doc/posix-functions/copysignf.texi: Mention the new module.
8948
8949 2011-10-09  Bruno Haible  <bruno@clisp.org>
8950
8951         Ensure that HAVE_* variables are set to 1 before they are set to 0.
8952         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
8953         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
8954         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8955         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
8956         gl_SIGNAL_H_DEFAULTS.
8957
8958 2011-10-09  Bruno Haible  <bruno@clisp.org>
8959
8960         poll: Make macro safer.
8961         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
8962         ac_cv_header_poll_h is not set.
8963
8964 2011-10-09  Bruno Haible  <bruno@clisp.org>
8965
8966         copysign: Provide replacement.
8967         * lib/math.in.h (copysign): New declaration.
8968         * lib/copysign.c: New file.
8969         * m4/copysign.m4: New file.
8970         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
8971         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
8972         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
8973         HAVE_COPYSIGN.
8974         * modules/copysign (Description): Clarify.
8975         (Files): Add lib/copysign.c, m4/copysign.m4.
8976         (Depends-on): Add math, signbit.
8977         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
8978         gl_MATH_MODULE_INDICATOR.
8979         * tests/test-math-c++.cc: Check the declaration of copysign.
8980         * doc/posix-functions/copysign.texi: Mention the effects of the module
8981         on Minix and MSVC.
8982
8983 2011-10-09  Bruno Haible  <bruno@clisp.org>
8984
8985         isinf: Ensure macro on AIX 5.1.
8986         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
8987         macro.
8988         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
8989
8990 2011-10-09  Bruno Haible  <bruno@clisp.org>
8991
8992         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
8993         * modules/snprintf-posix-tests (configure.ac): Require
8994         gl_LONG_DOUBLE_VS_DOUBLE.
8995         * modules/sprintf-posix-tests (configure.ac): Likewise.
8996         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
8997         * modules/vasprintf-posix-tests (configure.ac): Likewise.
8998         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
8999         * modules/vsprintf-posix-tests (configure.ac): Likewise.
9000         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
9001         tests on platforms where 'long double' is the same as 'double'.
9002         * tests/test-sprintf-posix.h (test_function): Likewise.
9003         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9004         * tests/test-vasprintf-posix.c (test_function): Likewise.
9005
9006         *printf: Fix for platforms where 'long double' == 'double'.
9007         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
9008         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
9009         * modules/dprintf-posix (Files): Add m4/math_h.m4.
9010         * modules/fprintf-posix (Files): Likewise.
9011         * modules/obstack-printf-posix (Files): Likewise.
9012         * modules/snprintf-posix (Files): Likewise.
9013         * modules/sprintf-posix (Files): Likewise.
9014         * modules/vasnprintf (Files): Likewise.
9015         * modules/vasnprintf-posix (Files): Likewise.
9016         * modules/vasprintf-posix (Files): Likewise.
9017         * modules/vdprintf-posix (Files): Likewise.
9018         * modules/vfprintf-posix (Files): Likewise.
9019         * modules/vsnprintf-posix (Files): Likewise.
9020         * modules/vsprintf-posix (Files): Likewise.
9021         * modules/unistdio/u8-vasnprintf (Files): Likewise.
9022         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
9023         * modules/unistdio/u16-vasnprintf (Files): Likewise.
9024         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
9025         * modules/unistdio/u32-vasnprintf (Files): Likewise.
9026         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
9027         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
9028
9029         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
9030         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
9031         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9032         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
9033         'long double'.
9034         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
9035
9036         isinf: Fix for platforms where 'long double' == 'double'.
9037         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
9038         Don't blindly assume 80-bit 'long double'.
9039
9040         isfinite: Fix for platforms where 'long double' == 'double'.
9041         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
9042         Don't blindly assume 80-bit 'long double'.
9043
9044         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
9045         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
9046         * modules/isfinite-tests (configure.ac): Require
9047         gl_LONG_DOUBLE_VS_DOUBLE.
9048         * modules/isinf-tests (configure.ac): Likewise.
9049         * modules/isnan-tests (configure.ac): Likewise.
9050         * modules/isnanl-tests (configure.ac): Likewise.
9051         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
9052         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
9053         tests on platforms where 'long double' is the same as 'double'.
9054         * tests/test-isinf.c (test_isinfl): Likewise.
9055         * tests/test-isnan.c (test_long_double): Likewise.
9056         * tests/test-isnanl.h (main): Likewise.
9057
9058 2011-10-08  Bruno Haible  <bruno@clisp.org>
9059
9060         Tests for module 'tanhf'.
9061         * modules/tanhf-tests: New file.
9062         * tests/test-tanhf.c: New file.
9063
9064         New module 'tanhf'.
9065         * lib/math.in.h (tanhf): New declaration.
9066         * lib/tanhf.c: New file.
9067         * m4/tanhf.m4: New file.
9068         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
9069         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
9070         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
9071         * modules/tanhf: New file.
9072         * tests/test-math-c++.cc: Check the declaration of tanhf.
9073         * doc/posix-functions/tanhf.texi: Mention the new module.
9074
9075         tanh: Use a .m4 file.
9076         * m4/tanh.m4: New file.
9077         * modules/tanh (Files): Add it.
9078         (configure.ac): Just invoke gl_FUNC_TANH.
9079
9080 2011-10-08  Bruno Haible  <bruno@clisp.org>
9081
9082         Tests for module 'coshf'.
9083         * modules/coshf-tests: New file.
9084         * tests/test-coshf.c: New file.
9085
9086         New module 'coshf'.
9087         * lib/math.in.h (coshf): New declaration.
9088         * lib/coshf.c: New file.
9089         * m4/coshf.m4: New file.
9090         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
9091         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
9092         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
9093         * modules/coshf: New file.
9094         * tests/test-math-c++.cc: Check the declaration of coshf.
9095         * doc/posix-functions/coshf.texi: Mention the new module.
9096
9097         cosh: Use a .m4 file.
9098         * m4/cosh.m4: New file.
9099         * modules/cosh (Files): Add it.
9100         (configure.ac): Just invoke gl_FUNC_COSH.
9101
9102 2011-10-08  Bruno Haible  <bruno@clisp.org>
9103
9104         Tests for module 'sinhf'.
9105         * modules/sinhf-tests: New file.
9106         * tests/test-sinhf.c: New file.
9107
9108         New module 'sinhf'.
9109         * lib/math.in.h (sinhf): New declaration.
9110         * lib/sinhf.c: New file.
9111         * m4/sinhf.m4: New file.
9112         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
9113         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
9114         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
9115         * modules/sinhf: New file.
9116         * tests/test-math-c++.cc: Check the declaration of sinhf.
9117         * doc/posix-functions/sinhf.texi: Mention the new module.
9118
9119         sinh: Use a .m4 file.
9120         * m4/sinh.m4: New file.
9121         * modules/sinh (Files): Add it.
9122         (configure.ac): Just invoke gl_FUNC_SINH.
9123
9124 2011-10-08  Bruno Haible  <bruno@clisp.org>
9125
9126         Tests for module 'atan2f'.
9127         * modules/atan2f-tests: New file.
9128         * tests/test-atan2f.c: New file.
9129
9130         New module 'atan2f'.
9131         * lib/math.in.h (atan2f): New declaration.
9132         * lib/atan2f.c: New file.
9133         * m4/atan2f.m4: New file.
9134         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
9135         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
9136         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
9137         * modules/atan2f: New file.
9138         * tests/test-math-c++.cc: Check the declaration of atan2f.
9139         * doc/posix-functions/atan2f.texi: Mention the new module.
9140
9141         atan2: Use a .m4 file.
9142         * m4/atan2.m4: New file.
9143         * modules/atan2 (Files): Add it.
9144         (configure.ac): Just invoke gl_FUNC_ATAN2.
9145
9146 2011-10-08  Bruno Haible  <bruno@clisp.org>
9147
9148         Tests for module 'atanf'.
9149         * modules/atanf-tests: New file.
9150         * tests/test-atanf.c: New file.
9151
9152         New module 'atanf'.
9153         * lib/math.in.h (atanf): New declaration.
9154         * lib/atanf.c: New file.
9155         * m4/atanf.m4: New file.
9156         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
9157         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
9158         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
9159         * modules/atanf: New file.
9160         * tests/test-math-c++.cc: Check the declaration of atanf.
9161         * doc/posix-functions/atanf.texi: Mention the new module.
9162
9163         atan: Use a .m4 file.
9164         * m4/atan.m4: New file.
9165         * modules/atan (Files): Add it.
9166         (configure.ac): Just invoke gl_FUNC_ATAN.
9167
9168 2011-10-08  Bruno Haible  <bruno@clisp.org>
9169
9170         Tests for module 'acosf'.
9171         * modules/acosf-tests: New file.
9172         * tests/test-acosf.c: New file.
9173
9174         New module 'acosf'.
9175         * lib/math.in.h (acosf): New declaration.
9176         * lib/acosf.c: New file.
9177         * m4/acosf.m4: New file.
9178         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
9179         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
9180         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
9181         * modules/acosf: New file.
9182         * tests/test-math-c++.cc: Check the declaration of acosf.
9183         * doc/posix-functions/acosf.texi: Mention the new module.
9184
9185         acos: Use a .m4 file.
9186         * m4/acos.m4: New file.
9187         * modules/acos (Files): Add it.
9188         (configure.ac): Just invoke gl_FUNC_ACOS.
9189
9190 2011-10-08  Bruno Haible  <bruno@clisp.org>
9191
9192         Tests for module 'asinf'.
9193         * modules/asinf-tests: New file.
9194         * tests/test-asinf.c: New file.
9195
9196         New module 'asinf'.
9197         * lib/math.in.h (asinf): New declaration.
9198         * lib/asinf.c: New file.
9199         * m4/asinf.m4: New file.
9200         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
9201         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
9202         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
9203         * modules/asinf: New file.
9204         * tests/test-math-c++.cc: Check the declaration of asinf.
9205         * doc/posix-functions/asinf.texi: Mention the new module.
9206
9207         asin: Use a .m4 file.
9208         * m4/asin.m4: New file.
9209         * modules/asin (Files): Add it.
9210         (configure.ac): Just invoke gl_FUNC_ASIN.
9211
9212 2011-10-08  Bruno Haible  <bruno@clisp.org>
9213
9214         Tests for module 'tanf'.
9215         * modules/tanf-tests: New file.
9216         * tests/test-tanf.c: New file.
9217
9218         New module 'tanf'.
9219         * lib/math.in.h (tanf): New declaration.
9220         * lib/tanf.c: New file.
9221         * m4/tanf.m4: New file.
9222         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
9223         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
9224         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
9225         * modules/tanf: New file.
9226         * tests/test-math-c++.cc: Check the declaration of tanf.
9227         * doc/posix-functions/tanf.texi: Mention the new module.
9228
9229         tan: Use a .m4 file.
9230         * m4/tan.m4: New file.
9231         * modules/tan (Files): Add it.
9232         (configure.ac): Just invoke gl_FUNC_TAN.
9233
9234 2011-10-08  Bruno Haible  <bruno@clisp.org>
9235
9236         Tests for module 'cosf'.
9237         * modules/cosf-tests: New file.
9238         * tests/test-cosf.c: New file.
9239
9240         New module 'cosf'.
9241         * lib/math.in.h (cosf): New declaration.
9242         * lib/cosf.c: New file.
9243         * m4/cosf.m4: New file.
9244         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
9245         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
9246         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
9247         * modules/cosf: New file.
9248         * tests/test-math-c++.cc: Check the declaration of cosf.
9249         * doc/posix-functions/cosf.texi: Mention the new module.
9250
9251         cos: Use a .m4 file.
9252         * m4/cos.m4: New file.
9253         * modules/cos (Files): Add it.
9254         (configure.ac): Just invoke gl_FUNC_COS.
9255
9256 2011-10-08  Bruno Haible  <bruno@clisp.org>
9257
9258         Tests for module 'sinf'.
9259         * modules/sinf-tests: New file.
9260         * tests/test-sinf.c: New file.
9261
9262         New module 'sinf'.
9263         * lib/math.in.h (sinf): New declaration.
9264         * lib/sinf.c: New file.
9265         * m4/sinf.m4: New file.
9266         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
9267         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
9268         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
9269         * modules/sinf: New file.
9270         * tests/test-math-c++.cc: Check the declaration of sinf.
9271         * doc/posix-functions/sinf.texi: Mention the new module.
9272
9273         sin: Use a .m4 file.
9274         * m4/sin.m4: New file.
9275         * modules/sin (Files): Add it.
9276         (configure.ac): Just invoke gl_FUNC_SIN.
9277
9278 2011-10-08  Bruno Haible  <bruno@clisp.org>
9279
9280         Tests for module 'powf'.
9281         * modules/powf-tests: New file.
9282         * tests/test-powf.c: New file.
9283
9284         New module 'powf'.
9285         * lib/math.in.h (powf): New declaration.
9286         * lib/powf.c: New file.
9287         * m4/powf.m4: New file.
9288         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
9289         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
9290         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
9291         * modules/powf: New file.
9292         * tests/test-math-c++.cc: Check the declaration of powf.
9293         * doc/posix-functions/powf.texi: Mention the new module.
9294
9295         pow: Use a .m4 file.
9296         * m4/pow.m4: New file.
9297         * modules/pow (Files): Add it.
9298         (configure.ac): Just invoke gl_FUNC_POW.
9299
9300 2011-10-08  Bruno Haible  <bruno@clisp.org>
9301
9302         Tests for module 'log10f'.
9303         * modules/log10f-tests: New file.
9304         * tests/test-log10f.c: New file.
9305
9306         New module 'log10f'.
9307         * lib/math.in.h (log10f): New declaration.
9308         * lib/log10f.c: New file.
9309         * m4/log10f.m4: New file.
9310         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
9311         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
9312         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
9313         * modules/log10f: New file.
9314         * tests/test-math-c++.cc: Check the declaration of log10f.
9315         * doc/posix-functions/log10f.texi: Mention the new module.
9316
9317         log10: Use a .m4 file.
9318         * m4/log10.m4: New file.
9319         * modules/log10 (Files): Add it.
9320         (configure.ac): Just invoke gl_FUNC_LOG10.
9321
9322 2011-10-08  Bruno Haible  <bruno@clisp.org>
9323
9324         Tests for module 'logf'.
9325         * modules/logf-tests: New file.
9326         * tests/test-logf.c: New file.
9327
9328         New module 'logf'.
9329         * lib/math.in.h (logf): New declaration.
9330         * lib/logf.c: New file.
9331         * m4/logf.m4: New file.
9332         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
9333         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
9334         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
9335         * modules/logf: New file.
9336         * tests/test-math-c++.cc: Check the declaration of logf.
9337         * doc/posix-functions/logf.texi: Mention the new module.
9338
9339         log: Use a .m4 file.
9340         * m4/log.m4: New file.
9341         * modules/log (Files): Add it.
9342         (configure.ac): Just invoke gl_FUNC_LOG.
9343
9344 2011-10-08  Bruno Haible  <bruno@clisp.org>
9345
9346         Tests for module 'expf'.
9347         * modules/expf-tests: New file.
9348         * tests/test-expf.c: New file.
9349
9350         New module 'expf'.
9351         * lib/math.in.h (expf): New declaration.
9352         * lib/expf.c: New file.
9353         * m4/expf.m4: New file.
9354         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
9355         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
9356         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
9357         * modules/expf: New file.
9358         * tests/test-math-c++.cc: Check the declaration of expf.
9359         * doc/posix-functions/expf.texi: Mention the new module.
9360
9361         exp: Use a .m4 file.
9362         * m4/exp.m4: New file.
9363         * modules/exp (Files): Add it.
9364         (configure.ac): Just invoke gl_FUNC_EXP.
9365
9366 2011-10-08  Bruno Haible  <bruno@clisp.org>
9367
9368         Tests for module 'sqrtf'.
9369         * modules/sqrtf-tests: New file.
9370         * tests/test-sqrtf.c: New file.
9371
9372         New module 'sqrtf'.
9373         * lib/math.in.h (sqrtf): New declaration.
9374         * lib/sqrtf.c: New file.
9375         * m4/sqrtf.m4: New file.
9376         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
9377         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
9378         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
9379         * modules/sqrtf: New file.
9380         * tests/test-math-c++.cc: Check the declaration of sqrtf.
9381         * doc/posix-functions/sqrtf.texi: Mention the new module.
9382
9383 2011-10-08  Bruno Haible  <bruno@clisp.org>
9384
9385         Tests: Avoid link failures w.r.t. libintl.
9386         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
9387         $(LIBINTL).
9388         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
9389         $(LIBINTL).
9390         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
9391         against $(LIBINTL).
9392         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
9393         $(LIBINTL).
9394         * modules/openat-tests (Makefile.am): Link test-fchmodat against
9395         $(LIBINTL).
9396         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
9397
9398 2011-10-08  Bruno Haible  <bruno@clisp.org>
9399
9400         pow tests: Defeat compiler optimizations.
9401         * tests/test-pow.c (main): Assign arguments to x and y before use.
9402
9403 2011-10-08  Bruno Haible  <bruno@clisp.org>
9404
9405         gnulib-tool: Improve last commit.
9406         * gnulib-tool (func_modules_transitive_closure): Simplify code.
9407         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
9408         ignore dependencies that are not among the modules list.
9409
9410 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
9411
9412         gnulib-tool: don't follow dependencies to avoided modules
9413         This fixes a bug that is related to the previous one.
9414         * gnulib-tool (func_modules_transitive_closure)
9415         (func_emit_autoconf_snippets):
9416         Check whether a dependency is acceptable before using it.
9417         (--extract-dependencies): Report an error if --avoid is also used,
9418         since this combination of options is not yet supported.
9419
9420         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
9421         Problem reported by Peter Dyballa in
9422         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
9423         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
9424         when echoing "$condition".
9425
9426 2011-10-07  Bruno Haible  <bruno@clisp.org>
9427
9428         Fix documentation about math functions on MacOS X.
9429         * doc/posix-functions/exp2.texi: Don't say the function is missing on
9430         MacOS X 10.5.
9431         * doc/posix-functions/fdim.texi: Likewise.
9432         * doc/posix-functions/feclearexcept.texi: Likewise.
9433         * doc/posix-functions/fegetenv.texi: Likewise.
9434         * doc/posix-functions/fegetround.texi: Likewise.
9435         * doc/posix-functions/feholdexcept.texi: Likewise.
9436         * doc/posix-functions/feraiseexcept.texi: Likewise.
9437         * doc/posix-functions/fesetenv.texi: Likewise.
9438         * doc/posix-functions/fesetround.texi: Likewise.
9439         * doc/posix-functions/fetestexcept.texi: Likewise.
9440         * doc/posix-functions/feupdateenv.texi: Likewise.
9441         * doc/posix-functions/fmax.texi: Likewise.
9442         * doc/posix-functions/fmin.texi: Likewise.
9443         * doc/posix-functions/log2.texi: Likewise.
9444         * doc/posix-functions/modff.texi: Likewise.
9445         * doc/posix-functions/nan.texi: Likewise.
9446         * doc/posix-functions/nanf.texi: Likewise.
9447         * doc/posix-functions/nextafterf.texi: Likewise.
9448         * doc/posix-functions/remquo.texi: Likewise.
9449
9450 2011-10-07  Bruno Haible  <bruno@clisp.org>
9451
9452         modff: Drop assumption about library that defines modff.
9453         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
9454         AC_CHECK_FUNCS.
9455         * modules/modff (Files): Add m4/mathfunc.m4.
9456
9457 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
9458
9459         raise tests: Avoid a GCC warning.
9460         * tests/test-raise.c (handler): Use _Noreturn.
9461
9462 2011-10-07  Bruno Haible  <bruno@clisp.org>
9463
9464         Tests for module 'ldexpf'.
9465         * modules/ldexpf-tests: New file.
9466         * tests/test-ldexpf.c: New file.
9467
9468         New module 'ldexpf'.
9469         * lib/math.in.h (ldexpf): New declaration.
9470         * lib/ldexpf.c: New file.
9471         * m4/ldexpf.m4: New file.
9472         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
9473         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
9474         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
9475         * modules/ldexpf: New file.
9476         * tests/test-math-c++.cc: Check the declaration of ldexpf.
9477         * doc/posix-functions/ldexpf.texi: Mention the new module.
9478
9479 2011-10-06  Bruno Haible  <bruno@clisp.org>
9480
9481         frexpf: Work around problems on IRIX and mingw.
9482         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
9483         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
9484         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
9485         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
9486         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
9487         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
9488         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
9489
9490 2011-10-06  Bruno Haible  <bruno@clisp.org>
9491
9492         fabsf: Drop assumption about library that defines fabsf.
9493         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
9494         AC_CHECK_FUNCS.
9495         * modules/fabsf (Files): Add m4/mathfunc.m4.
9496
9497 2011-10-06  Bruno Haible  <bruno@clisp.org>
9498
9499         frexpf: Drop assumption about library that defines frexpf.
9500         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
9501         'int *', 'float *', 'long double *', 'float', 'long double'.
9502         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
9503         AC_CHECK_FUNCS.
9504         * modules/frexpf (Files): Add m4/mathfunc.m4.
9505
9506         Tests for module 'frexpf'.
9507         * modules/frexpf-tests: New file.
9508         * tests/test-frexpf.c: New file.
9509
9510         New module 'frexpf'.
9511         * lib/math.in.h (frexpf): New declaration.
9512         * lib/frexpf.c: New file.
9513         * m4/frexpf.m4: New file.
9514         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
9515         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
9516         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
9517         * modules/frexpf: New file.
9518         * tests/test-math-c++.cc: Check the declaration of frexpf.
9519         * doc/posix-functions/frexpf.texi: Mention the new module.
9520
9521 2011-10-06  Bruno Haible  <bruno@clisp.org>
9522
9523         math: Sort function declarations of math.in.h.
9524         * lib/math.in.h (frexp, logb): Move declarations.
9525
9526 2011-10-05  Bruno Haible  <bruno@clisp.org>
9527
9528         Tests for module 'modff'.
9529         * modules/modff-tests: New file.
9530         * tests/test-modff.c: New file.
9531
9532         New module 'modff'.
9533         * lib/math.in.h (modff): New declaration.
9534         * lib/modff.c: New file.
9535         * m4/modff.m4: New file.
9536         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
9537         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
9538         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
9539         * modules/modff: New file.
9540         * tests/test-math-c++.cc: Check the declaration of modff.
9541         * doc/posix-functions/modff.texi: Mention the new module.
9542
9543         modf tests: Make test sharper.
9544         * tests/test-modf.c (main): Strengthen upper bound.
9545
9546         modf: Use a .m4 file.
9547         * m4/modf.m4: New file.
9548         * modules/modf (Files): Add it.
9549         (configure.ac): Just invoke gl_FUNC_MODF.
9550
9551 2011-10-05  Bruno Haible  <bruno@clisp.org>
9552
9553         Tests for module 'fmodf'.
9554         * modules/fmodf-tests: New file.
9555         * tests/test-fmodf.c: New file.
9556
9557         New module 'fmodf'.
9558         * lib/math.in.h (fmodf): New declaration.
9559         * lib/fmodf.c: New file.
9560         * m4/fmodf.m4: New file.
9561         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
9562         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
9563         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
9564         * modules/fmodf: New file.
9565         * tests/test-math-c++.cc: Check the declaration of fmodf.
9566         * doc/posix-functions/fmodf.texi: Mention the new module.
9567
9568         fmod: Use a .m4 file.
9569         * m4/fmod.m4: New file.
9570         * modules/fmod (Files): Add it.
9571         (configure.ac): Just invoke gl_FUNC_FMOD.
9572
9573 2011-10-05  Bruno Haible  <bruno@clisp.org>
9574
9575         Tests for module 'fabsf'.
9576         * modules/fabsf-tests: New file.
9577         * tests/test-fabsf.c: New file.
9578
9579         New module 'fabsf'.
9580         * lib/math.in.h (fabsf): New declaration.
9581         * lib/fabsf.c: New file.
9582         * m4/fabsf.m4: New file.
9583         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
9584         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
9585         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
9586         * modules/fabsf: New file.
9587         * tests/test-math-c++.cc: Check the declaration of fabsf.
9588         * doc/posix-functions/fabsf.texi: Mention the new module.
9589
9590         fabs: Use a .m4 file.
9591         * m4/fabs.m4: New file.
9592         * modules/fabs (Files): Add it.
9593         (configure.ac): Just invoke gl_FUNC_FABS.
9594
9595 2011-10-05  Jim Meyering  <meyering@redhat.com>
9596
9597         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
9598         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
9599         ls -lL regression introduced in coreutils-8.12, it does so at the
9600         cost of an additional stat call in the common case.  Besides, now
9601         that the kernel change that prompted commit 95f7c57f has been reverted
9602         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
9603         we have no use for commit 95f7c57f, "file-has-acl: use
9604         acl_extended_file_nofollow if available".
9605
9606 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
9607
9608         file-has-acl: revert unintended change in behavior of ls -L
9609         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
9610         derived from...
9611         (file_has_acl): ...code here.  Call it.
9612         This problem was introduced with 2011-07-22 commit 95f7c57f,
9613         "file-has-acl: use acl_extended_file_nofollow if available".
9614         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
9615
9616 2011-10-03  Bruno Haible  <bruno@clisp.org>
9617
9618         poll: Avoid link errors on MSVC.
9619         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
9620         * modules/poll (Depends-on): Add sockets.
9621         (Link): New section.
9622         * NEWS: Mention the change.
9623         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
9624         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
9625         $(LIB_POLL) instead of $(LIBSOCKET).
9626
9627 2011-10-03  Bruno Haible  <bruno@clisp.org>
9628
9629         sys_select tests: Fix link error on MSVC 9.
9630         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
9631         with $(LIB_SELECT) instead of $(LIBSOCKET).
9632
9633 2011-10-03  Bruno Haible  <bruno@clisp.org>
9634
9635         sys_select: Fix compilation error on mingw.
9636         * lib/sys_select.in.h: On native Windows, include <io.h>.
9637
9638 2011-10-03  Bruno Haible  <bruno@clisp.org>
9639
9640         wmemset: Support for MSVC.
9641         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
9642         whether wmemset() exists.
9643
9644 2011-10-03  Bruno Haible  <bruno@clisp.org>
9645
9646         wmemmove: Support for MSVC.
9647         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
9648         whether wmemmove() exists.
9649
9650 2011-10-03  Bruno Haible  <bruno@clisp.org>
9651
9652         wmemcpy: Support for MSVC.
9653         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
9654         whether wmemcpy() exists.
9655
9656 2011-10-03  Bruno Haible  <bruno@clisp.org>
9657
9658         wmemcmp: Support for MSVC.
9659         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
9660         whether wmemcmp() exists.
9661
9662 2011-10-03  Bruno Haible  <bruno@clisp.org>
9663
9664         wmemchr: Support for MSVC.
9665         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
9666         whether wmemchr() exists.
9667
9668 2011-10-03  Bruno Haible  <bruno@clisp.org>
9669
9670         glthread/*, strsignal: Support for MSVC.
9671         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
9672         including <winsock.h> on MSVC 9.
9673         * lib/glthread/lock.h: Likewise.
9674         * lib/glthread/thread.h: Likewise.
9675         * lib/glthread/tls.h: Likewise.
9676         * lib/glthread/yield.h: Likewise.
9677         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
9678         if HAVE_UNISTD_H is false.
9679         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
9680
9681 2011-10-03  Bruno Haible  <bruno@clisp.org>
9682
9683         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
9684         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
9685         Set to 100000.
9686
9687 2011-10-03  Bruno Haible  <bruno@clisp.org>
9688
9689         acl: Fix specification.
9690         * lib/file-has-acl.c (file_has_acl): Fix specification.
9691
9692 2011-10-03  Bruno Haible  <bruno@clisp.org>
9693
9694         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
9695         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
9696         (compute_curr_prefix, shared_library_fullname,
9697         find_shared_library_fullname, get_shared_library_fullname, relocate):
9698         Use it together with PIC && INSTALLDIR.
9699         Reported by <jojelino@gmail.com>
9700         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
9701
9702 2011-10-01  Jim Meyering  <meyering@redhat.com>
9703
9704         maint.mk: adjust a release-related rule not to require use of gzip
9705         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
9706         Instead, check each file in $(DIST_ARCHIVES).  This is better for
9707         projects that build only .tar.xz files.  Also fix an erroneous test.
9708
9709         test-linkat: don't leave behind a temporary file
9710         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
9711         Otherwise, coreutils' "make distcheck" would fail with this:
9712           Only in /c/cu/tests/torture/coreutils/test/\
9713             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
9714           make[2]: *** [my-distcheck] Error 1
9715
9716         float, math: add omitted file
9717         * lib/itold.c: Add file, required for yesterday's float change.
9718
9719 2011-10-01  Bruno Haible  <bruno@clisp.org>
9720
9721         isinf: Fix for OpenBSD/x86.
9722         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
9723         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
9724         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
9725
9726 2011-10-01  Bruno Haible  <bruno@clisp.org>
9727
9728         isfinite: Fix syntax error in configure test.
9729         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
9730
9731         isfinite: Fix typo.
9732         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
9733         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
9734
9735 2011-10-01  Bruno Haible  <bruno@clisp.org>
9736
9737         nonblocking tests: Fix test failure on Linux/IA-64.
9738         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
9739         Set to 270000.
9740
9741 2011-10-01  Bruno Haible  <bruno@clisp.org>
9742
9743         mkfifoat tests: Fix a test failure on mingw.
9744         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
9745         with error ENOSYS.
9746
9747 2011-09-30  Bruno Haible  <bruno@clisp.org>
9748
9749         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
9750         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
9751         'long double'. Set REPLACE_ITOLD.
9752         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
9753         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
9754         * lib/itold.c: New file.
9755         * modules/float (Files): Add lib/itold.c.
9756         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
9757         (Makefile.am): Substitute REPLACE_ITOLD.
9758         * modules/math (Depends-on): Add float.
9759         (Makefile.am): Substitute REPLACE_ITOLD.
9760         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
9761         * doc/posix-headers/math.texi: Likewise.
9762         * doc/posix-functions/logl.texi: Likewise.
9763
9764 2011-09-30  Bruno Haible  <bruno@clisp.org>
9765
9766         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
9767         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
9768         Set to 140000.
9769
9770 2011-09-30  Bruno Haible  <bruno@clisp.org>
9771
9772         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
9773         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
9774         invocation, say "right after AC_PROG_CC_STDC", not "right after
9775         AC_PROG_CC".
9776         Reported by Gary V. Vaughan <gary@gnu.org>.
9777
9778 2011-09-30  Bruno Haible  <bruno@clisp.org>
9779
9780         Centralize C99 requirement.
9781         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
9782         * modules/stdarg (configure.ac-early): Invoke it instead of
9783         AC_PROG_CC_STDC.
9784         Reported by Gary V. Vaughan and Paul Eggert.
9785
9786 2011-09-29  Bruno Haible  <bruno@clisp.org>
9787
9788         float: Fix LDBL_MAX value on Linux/PowerPC.
9789         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
9790         on Linux/PowerPC.
9791         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
9792         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
9793         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
9794         platform.
9795         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
9796
9797 2011-09-29  Bruno Haible  <bruno@clisp.org>
9798
9799         doc: Improve doc about gl_EARLY.
9800         * doc/gnulib-tool.texi (Initial import): Mention where to place an
9801         AC_PROG_CC_STDC invocation.
9802         Reported by Gary V. Vaughan <gary@gnu.org>.
9803
9804 2011-09-28  Bruno Haible  <bruno@clisp.org>
9805
9806         fgetc, fputc, fread, fwrite tests: Fix link error.
9807         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
9808         on non-MSVC platforms.
9809         * tests/test-fputc.c (main): Likewise.
9810         * tests/test-fread.c (main): Likewise.
9811         * tests/test-fwrite.c (main): Likewise.
9812         Reported by Jim Meyering.
9813
9814 2011-09-27  Bruno Haible  <bruno@clisp.org>
9815
9816         fputc, fwrite tests: Avoid test failure on MSVC.
9817         * tests/test-fgetc.c: Include msvc-inval.h.
9818         (main): Invoke gl_msvc_inval_ensure_handler.
9819         * tests/test-fputc.c: Include msvc-inval.h.
9820         (main): Invoke gl_msvc_inval_ensure_handler.
9821         * tests/test-fread.c: Include msvc-inval.h.
9822         (main): Invoke gl_msvc_inval_ensure_handler.
9823         * tests/test-fwrite.c: Include msvc-inval.h.
9824         (main): Invoke gl_msvc_inval_ensure_handler.
9825         * modules/fgetc-tests (Depends-on): Add msvc-inval.
9826         * modules/fputc-tests (Depends-on): Likewise.
9827         * modules/fread-tests (Depends-on): Likewise.
9828         * modules/fwrite-tests (Depends-on): Likewise.
9829
9830 2011-09-27  Bruno Haible  <bruno@clisp.org>
9831
9832         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
9833         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
9834         (raise): Remove older, duplicated declaration.
9835         (_gl_raise_SIGPIPE): New declaration.
9836         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
9837         (rpl_raise): Remove function.
9838         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
9839         a gnulib-defined SIGPIPE here.
9840         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
9841         'sigprocmask' has detected missing signal-blocking and the module
9842         'sigpipe' is enabled.
9843         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9844
9845 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
9846
9847         base64-tests: avoid memory leak
9848         * tests/test-base64.c (main): Plug memory leak.
9849
9850         base32: new module
9851         * modules/base32: New module.
9852         * lib/base32.c: New file.
9853         * lib/base32.h: Likewise.
9854         * m4/base32.m4: Likewise.
9855         * modules/base32-tests: New test.
9856         * tests/test-base32.c: Likewise.
9857         * MODULES.html.sh (Misc): Mention it.
9858
9859 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9860
9861         gnulib: use more-standard license notice wording
9862         * gnulib-tool (func_emit_copyright_notice): When emitting a
9863         license notice into a file, use the standard wording as suggested
9864         by the current information for GNU maintainers, except say "file"
9865         rather than "program".  The new wording gives a license version
9866         number, which addresses an issue raised by Glenn Morris in
9867         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
9868         * m4/onceonly.m4: Use that same wording here, too.
9869
9870         dup2: minor simplification
9871         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
9872         as lib/dup2.c no longer uses 'inline'.
9873
9874 2011-09-25  Bruno Haible  <bruno@clisp.org>
9875
9876         strings: Fix compilation error on MSVC.
9877         * lib/strings.in.h: Include <stddef.h> for size_t.
9878
9879 2011-09-25  Bruno Haible  <bruno@clisp.org>
9880
9881         fflush et al.: Document limitation on MSVC.
9882         * doc/posix-functions/fflush.texi: Document possible crash in handling
9883         mode other than DEFAULT_HANDLING.
9884         * doc/posix-functions/fgetc.texi: Likewise.
9885         * doc/posix-functions/fputc.texi: Likewise.
9886         * doc/posix-functions/fread.texi: Likewise.
9887         * doc/posix-functions/fwrite.texi: Likewise.
9888
9889 2011-09-25  Bruno Haible  <bruno@clisp.org>
9890
9891         msvc-inval: Allow three invalid parameter handling modes.
9892         * lib/msvc-inval.h: Don't include <stdlib.h> here.
9893         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
9894         macros.
9895         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
9896         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
9897         SANE_LIBRARY_HANDLING as a no-op.
9898         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
9899         <stdlib.h>.
9900         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
9901
9902 2011-09-25  Bruno Haible  <bruno@clisp.org>
9903
9904         msvc-inval: Make handler multithread-safe.
9905         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
9906         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
9907         declarations.
9908         (gl_msvc_inval_current): New declaration.
9909         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9910         Operate on the structure returned by gl_msvc_inval_current().
9911         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
9912         Remove varaiables.
9913         (tls_index, tls_initialized): New variables.
9914         (not_per_thread): New variable.
9915         (gl_msvc_inval_current): New function.
9916         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
9917         returned by gl_msvc_inval_current().
9918
9919 2011-09-25  Bruno Haible  <bruno@clisp.org>
9920
9921         msvc-inval: Install handler globally.
9922         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
9923         !_MSC_VER.
9924         (gl_msvc_invalid_parameter_handler): Remove declaration.
9925         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
9926         declarations.
9927         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9928         Install the handler globally, don't uninstall it.
9929         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
9930         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
9931         currently valid, call RaiseException instead.
9932         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
9933         for !_MSC_VER.
9934
9935 2011-09-25  Bruno Haible  <bruno@clisp.org>
9936
9937         strerror_r-posix: Fix for MSVC 9.
9938         * lib/strerror_r.c (local_snprintf): New function.
9939         (snprintf): Define to local_snprintf, not to _snprintf.
9940
9941 2011-09-25  Bruno Haible  <bruno@clisp.org>
9942
9943         ftruncate: Support for MSVC 9.
9944         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
9945         (chsize_nothrow): New function.
9946         (chsize): Redefine as a macro.
9947         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
9948         * modules/ftruncate (Depends-on): Add msvc-inval.
9949
9950 2011-09-25  Bruno Haible  <bruno@clisp.org>
9951
9952         New module 'fstat'.
9953         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
9954         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
9955         * lib/fchdir.c (rpl_fstat): Remove function.
9956         * m4/fstat.m4: New file.
9957         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
9958         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
9959         declared.
9960         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
9961         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
9962         * modules/fstat: New file.
9963         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
9964         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
9965         is set.
9966         * doc/posix-functions/fstat.texi: Mention the new module and the
9967         problem on MSVC.
9968         * NEWS: Mention the change.
9969         * modules/acl (Depends-on): Add fstat.
9970         * modules/chdir-safer (Depends-on): Likewise.
9971         * modules/chown (Depends-on): Likewise.
9972         * modules/copy-file (Depends-on): Likewise.
9973         * modules/fchdir (Depends-on): Likewise.
9974         * modules/fdopendir (Depends-on): Likewise.
9975         * modules/fopen (Depends-on): Likewise.
9976         * modules/fts (Depends-on): Likewise.
9977         * modules/getcwd (Depends-on): Likewise.
9978         * modules/isapipe (Depends-on): Likewise.
9979         * modules/linkat (Depends-on): Likewise.
9980         * modules/lseek (Depends-on): Likewise.
9981         * modules/mkdir-p (Depends-on): Likewise.
9982         * modules/open (Depends-on): Likewise.
9983         * modules/openat (Depends-on): Likewise.
9984         * modules/read-file (Depends-on): Likewise.
9985         * modules/renameat (Depends-on): Likewise.
9986         * modules/utimens (Depends-on): Likewise.
9987
9988 2011-09-25  Bruno Haible  <bruno@clisp.org>
9989
9990         linkat: Fix compilation on MSVC 9.
9991         * lib/linkat.c: Don't include <stdint.h>.
9992
9993 2011-09-25  Bruno Haible  <bruno@clisp.org>
9994
9995         fclose: Support for MSVC 9.
9996         * lib/fclose.c: Include msvc-inval.h.
9997         (fclose_nothrow): New function.
9998         (rpl_fclose): Use it.
9999         * modules/fclose (Depends-on): Add msvc-inval.
10000         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
10001
10002 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
10003
10004         dup2: minor simplifications
10005         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
10006         that it's a performance win.
10007         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
10008         ! defined __CYGWIN__)" to "ifdef F_GETFL".
10009
10010 2011-09-24  Jim Meyering  <meyering@redhat.com>
10011
10012         test-futimens: avoid a warning from gcc -Wshadow
10013         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
10014         to avoid a shadowing warning.
10015
10016 2011-09-24  Bruno Haible  <bruno@clisp.org>
10017
10018         fdopen: Support for MSVC 9.
10019         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
10020         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
10021         * lib/fdopen.c: Include msvc-inval.h.
10022         (fdopen_nothrow): New function.
10023         (rpl_fdopen): Use it.
10024         * modules/fdopen (Depends-on): Add msvc-inval.
10025         * modules/fclose-tests (Depends-on): Add fdopen.
10026         * modules/fflush-tests (Depends-on): Likewise.
10027         * modules/fgetc-tests (Depends-on): Likewise.
10028         * modules/fputc-tests (Depends-on): Likewise.
10029         * modules/fread-tests (Depends-on): Likewise.
10030         * modules/freopen-tests (Depends-on): Likewise.
10031         * modules/fseeko-tests (Depends-on): Likewise.
10032         * modules/ftello-tests (Depends-on): Likewise.
10033         * modules/fwrite-tests  (Depends-on): Likewise.
10034         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
10035
10036 2011-09-24  Bruno Haible  <bruno@clisp.org>
10037
10038         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
10039         * modules/fgetc-tests (Depends-on): Add unistd.
10040         * modules/fputc-tests (Depends-on): Likewise.
10041         * modules/fread-tests (Depends-on): Likewise.
10042         * modules/fwrite-tests (Depends-on): Likewise.
10043
10044 2011-09-24  Bruno Haible  <bruno@clisp.org>
10045
10046         dup: Simplify autoconf test.
10047         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
10048         on gl_MSVC_INVAL's result.
10049
10050 2011-09-24  Bruno Haible  <bruno@clisp.org>
10051
10052         Tests for function fwrite().
10053         * modules/fwrite-tests: New file.
10054         * tests/test-fwrite.c: New file.
10055         * modules/stdio-tests (Depends-on): Add fwrite-tests.
10056
10057         Tests for function fread().
10058         * modules/fread-tests: New file.
10059         * tests/test-fread.c: New file.
10060         * modules/stdio-tests (Depends-on): Add fread-tests.
10061
10062         Activate fputc tests.
10063         * modules/stdio-tests (Depends-on): Add fputc-tests.
10064
10065         Enhance fgetc, fputc tests.
10066         * tests/test-fgetc.c (main): Also test the stream's error indicator.
10067         * tests/test-fputc.c (main): Likewise.
10068
10069 2011-09-24  Bruno Haible  <bruno@clisp.org>
10070
10071         write: Support for MSVC 9.
10072         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
10073         is not 1.
10074         * lib/write.c (write_nothrow): New function.
10075         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
10076         not 1. Use write_nothrow.
10077         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
10078         invalid parameter handler.
10079         (gl_PREREQ_WRITE): New macro.
10080         * modules/write (Depends-on): Add msvc-inval.
10081         (configure.ac): Invoke gl_PREREQ_WRITE.
10082         * doc/posix-functions/write.texi: Mention the problem on MSVC.
10083
10084 2011-09-24  Bruno Haible  <bruno@clisp.org>
10085
10086         read: Fix last commit.
10087         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
10088
10089 2011-09-24  Bruno Haible  <bruno@clisp.org>
10090
10091         dup2: Fix last commit.
10092         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
10093         (rpl_dup2): Disable fcntl workaround on native Windows.
10094
10095         sigprocmask: Make code safer.
10096         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
10097         section that changes macro definitions for this compilation unit.
10098
10099 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10100
10101         dup2: clarify by coalescing Windows-specific material
10102         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
10103         "msvc-nothrow.h"' to the Windows-specific section, so that the
10104         Emacs source need not contain these include files.
10105         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
10106         Windows-specific fixes into this function rather than just the
10107         nothrow fix, as this shortens and clarifies the code.  Always
10108         define as a function, as that's a bit cleaner than having it be
10109         sometimes a function and sometimes a macro.
10110         (rpl_dup2): Move the Windows-specific stuff out of here and into
10111         ms_windows_dup2.  Don't protect the Haiku-related fix with
10112         "#if !defined __linux__", as the same code also works around
10113         a Linux kernel bug, and it doesn't add any system calls on any
10114         platform.  Add comment about FreeBSD 6.1.
10115
10116         sigprocmask: move #include directive
10117         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
10118         Windows-specific section, so that the Emacs source need not
10119         contain msvc-inval.h.
10120
10121 2011-09-23  Bruno Haible  <bruno@clisp.org>
10122
10123         read: Support for MSVC 9.
10124         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
10125         is not 1.
10126         * lib/read.c (read_nothrow): New function.
10127         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
10128         read_nothrow.
10129         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
10130         invalid parameter handler.
10131         (gl_PREREQ_READ): New macro.
10132         * modules/read (Depends-on): Add msvc-inval.
10133         (configure.ac): Invoke gl_PREREQ_READ.
10134         * doc/posix-functions/read.texi: Mention the problem on MSVC.
10135
10136 2011-09-23  Bruno Haible  <bruno@clisp.org>
10137
10138         close: Support for MSVC 9.
10139         * lib/close.c: Include <errno.h>, msvc-inval.h.
10140         (close_nothrow): New function.
10141         (rpl_close): Use it.
10142         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
10143         invalid parameter handler.
10144         * modules/close (Depends-on): Add msvc-inval.
10145         * modules/dup2-tests (Depends-on): Add close.
10146         * modules/dup3-tests (Depends-on): Likewise.
10147         * modules/fcntl-tests (Depends-on): Likewise.
10148         * modules/spawn-pipe-tests (Depends-on): Likewise.
10149         * modules/unistd-safer-tests (Depends-on): Likewise.
10150         * doc/posix-functions/close.texi: Mention the problem on MSVC.
10151
10152 2011-09-23  Bruno Haible  <bruno@clisp.org>
10153
10154         New module 'dup'.
10155         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
10156         Allow replacement.
10157         * lib/dup.c: New file.
10158         * lib/fchdir.c (rpl_dup): Remove function.
10159         * m4/dup.m4: New file.
10160         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
10161         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
10162         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
10163         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
10164         * modules/dup: New file.
10165         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
10166         'dup' module is in use.
10167         * modules/fdopendir (Depends-on): Add dup.
10168         * modules/fdutimensat-tests (Depends-on): Likewise.
10169         * modules/fts (Depends-on): Likewise.
10170         * modules/futimens-tests (Depends-on): Likewise.
10171         * modules/posix_spawnp-tests (Depends-on): Likewise.
10172         * modules/unistd-safer-tests (Depends-on): Likewise.
10173         * modules/utimens-tests (Depends-on): Likewise.
10174         * doc/posix-functions/dup.texi: Mention the new module and the problem
10175         on MSVC.
10176
10177 2011-09-23  Bruno Haible  <bruno@clisp.org>
10178
10179         getdtablesize: Support for MSVC 9.
10180         * lib/getdtablesize.c: Include msvc-inval.h.
10181         (_setmaxstdio_nothrow): New function.
10182         (_setmaxstdio): Redefine it.
10183         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
10184         * modules/getdtablesize (Depends-on): Add msvc-inval.
10185         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
10186
10187 2011-09-23  Bruno Haible  <bruno@clisp.org>
10188
10189         signal-h: Rename from signal.
10190         * modules/signal-h: Renamed from modules/signal.
10191         * modules/pthread_sigmask (Depends-on): Update.
10192         * modules/raise (Depends-on): Likewise.
10193         * modules/sigaction (Depends-on): Likewise.
10194         * modules/sigpipe (Depends-on): Likewise.
10195         * modules/sigprocmask (Depends-on): Likewise.
10196         * modules/sys_select (Depends-on): Likewise.
10197         * modules/signal-h-tests: Renamed from modules/signal-tests.
10198         (Files, Depends-on, Makefile.am): Update.
10199         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
10200         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
10201         (Files, Makefile.am): Update.
10202         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
10203         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
10204         * modules/signal: New placeholder file.
10205         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
10206         * doc/posix-headers/signal.texi: Update.
10207         * NEWS: Mention the change.
10208
10209 2011-09-23  Bruno Haible  <bruno@clisp.org>
10210
10211         sigprocmask: Avoid crashes through signal() on MSVC 9.
10212         * lib/sigprocmask.c: Include msvc-inval.h.
10213         (signal_nothrow): New function.
10214         (signal): Redefine it.
10215         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
10216         * modules/sigprocmask (Depends-on): Add msvc-inval.
10217         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
10218
10219 2011-09-23  Bruno Haible  <bruno@clisp.org>
10220
10221         Tests for module 'raise'.
10222         * modules/raise-tests: New file.
10223         * tests/test-raise.c: New file.
10224
10225         raise: Support for MSVC.
10226         * lib/signal.in.h (raise): New declaration.
10227         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
10228         for native Windows platforms.
10229         * m4/raise.m4: New file.
10230         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
10231         HAVE_RAISE, REPLACE_RAISE.
10232         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
10233         REPLACE_RAISE.
10234         * modules/raise (Status, Notice): Remove fields.
10235         (Files): Add m4/raise.m4.
10236         (Depends-on): Add signal, msvc-inval.
10237         (configure.ac): Use the common idioms.
10238         (Maintainer): Add me.
10239         * tests/test-signal-c++.cc: Check the signature of raise.
10240         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
10241
10242 2011-09-23  Bruno Haible  <bruno@clisp.org>
10243
10244         pipe2: Fix compilation on pre-C99 compilers.
10245         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
10246
10247 2011-09-23  Bruno Haible  <bruno@clisp.org>
10248
10249         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
10250         * lib/msvc-nothrow.h: New file.
10251         * lib/msvc-nothrow.c: New file.
10252         * m4/msvc-nothrow.m4: New file.
10253         * modules/msvc-nothrow: New file.
10254         * lib/dup2.c: Include msvc-nothrow.h.
10255         (rpl_dup2): No need to protect _get_osfhandle call here.
10256         * lib/accept4.c: Include msvc-nothrow.h.
10257         * lib/error.c: Likewise.
10258         * lib/fcntl.c: Likewise.
10259         * lib/lseek.c: Likewise.
10260         * lib/nonblocking.c: Likewise.
10261         * lib/poll.c: Likewise.
10262         * lib/read.c: Likewise.
10263         * lib/select.c: Likewise.
10264         * lib/sockets.h: Likewise.
10265         * lib/sockets.c: Likewise.
10266         * lib/stdio-read.c: Likewise.
10267         * lib/stdio-write.c: Likewise.
10268         * lib/write.c: Likewise.
10269         * lib/w32sock.h: Likewise.
10270         * lib/w32spawn.h: Likewise.
10271         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
10272         * lib/fsync.c: Likewise.
10273         * lib/isapipe.c: Likewise.
10274         * modules/dup2 (Depends-on): Add msvc-nothrow.
10275         * modules/accept4 (Depends-on): Likewise.
10276         * modules/error (Depends-on): Likewise.
10277         * modules/fcntl (Depends-on): Likewise.
10278         * modules/lseek (Depends-on): Likewise.
10279         * modules/nonblocking (Depends-on): Likewise.
10280         * modules/poll (Depends-on): Likewise.
10281         * modules/read (Depends-on): Likewise.
10282         * modules/select (Depends-on): Likewise.
10283         * modules/sockets (Depends-on): Likewise.
10284         * modules/sigpipe (Depends-on): Likewise.
10285         * modules/write (Depends-on): Likewise.
10286         * modules/accept (Depends-on): Likewise.
10287         * modules/bind (Depends-on): Likewise.
10288         * modules/connect (Depends-on): Likewise.
10289         * modules/gethostname (Depends-on): Likewise.
10290         * modules/getpeername (Depends-on): Likewise.
10291         * modules/getsockname (Depends-on): Likewise.
10292         * modules/getsockopt (Depends-on): Likewise.
10293         * modules/ioctl (Depends-on): Likewise.
10294         * modules/listen (Depends-on): Likewise.
10295         * modules/recv (Depends-on): Likewise.
10296         * modules/recvfrom (Depends-on): Likewise.
10297         * modules/send (Depends-on): Likewise.
10298         * modules/sendto (Depends-on): Likewise.
10299         * modules/setsockopt (Depends-on): Likewise.
10300         * modules/shutdown (Depends-on): Likewise.
10301         * modules/socket (Depends-on): Likewise.
10302         * modules/execute (Depends-on): Likewise.
10303         * modules/spawn-pipe (Depends-on): Likewise.
10304         * modules/flock (Depends-on): Likewise.
10305         * modules/fsync (Depends-on): Likewise.
10306         * modules/isapipe (Depends-on): Likewise.
10307         * tests/test-cloexec.c: Include msvc-nothrow.h.
10308         * tests/test-dup-safer.c: Likewise.
10309         * tests/test-dup2.c: Likewise.
10310         * tests/test-dup3.c: Likewise.
10311         * tests/test-fcntl.c: Likewise.
10312         * tests/test-pipe.c: Likewise.
10313         * tests/test-pipe2.c: Likewise.
10314         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
10315         * modules/unistd-safer-tests (Depends-on): Likewise.
10316         * modules/dup2-tests (Depends-on): Likewise.
10317         * modules/dup3-tests (Depends-on): Likewise.
10318         * modules/fcntl-tests (Depends-on): Likewise.
10319         * modules/pipe-posix-tests (Depends-on): Likewise.
10320         * modules/pipe2-tests (Depends-on): Likewise.
10321
10322 2011-09-23  Bruno Haible  <bruno@clisp.org>
10323
10324         dup2: Make code more maintainable.
10325         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
10326         (rpl_dup2): Use it.
10327         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
10328         * modules/dup2 (configure.ac): Invoke it.
10329         Reported by Paul Eggert.
10330
10331 2011-09-23  Bruno Haible  <bruno@clisp.org>
10332
10333         msvc-inval: Fix compilation error.
10334         * lib/msvc-inval.h: Include <excpt.h>.
10335
10336 2011-09-23  Bruno Haible  <bruno@clisp.org>
10337
10338         mkdir: Tweak for MSVC 9.
10339         * lib/sys_stat.in.h: Update comments.
10340         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
10341
10342         Tests for module 'chdir'.
10343         * modules/chdir-tests: New file.
10344         * tests/test-chdir.c: New file.
10345
10346         New module 'chdir'.
10347         * modules/chdir: New file.
10348         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
10349         (chdir): New declaration.
10350         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
10351         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
10352         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
10353         * tests/test-unistd-c++.cc: Check signature of chdir.
10354         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
10355         * modules/chdir-long (Depends-on): Add chdir.
10356         * modules/fchdir (Depends-on): Likewise.
10357         * modules/rename (Depends-on): Likewise.
10358         * modules/savewd (Depends-on): Likewise.
10359
10360         rmdir: Support for mingw, MSVC 9.
10361         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
10362         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
10363
10364         getcwd: Tweak for MSVC 9.
10365         * lib/unistd.in.h: Update comments.
10366         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
10367
10368 2011-09-22  Bruno Haible  <bruno@clisp.org>
10369
10370         strerror_r-posix: Avoid a link error on MSVC.
10371         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
10372         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
10373
10374 2011-09-22  Bruno Haible  <bruno@clisp.org>
10375
10376         select: Avoid link errors on MSVC.
10377         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
10378         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
10379         * modules/pselect (Link): Likewise.
10380         * NEWS: Mention the change.
10381         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
10382         test-select-stdin against $(LIB_SELECT).
10383         * modules/pselect-tests (Makefile.am): Link test-pselect against
10384         $(LIB_SELECT).
10385
10386 2011-09-22  Bruno Haible  <bruno@clisp.org>
10387
10388         select: Avoid compilation error on MSVC.
10389         * lib/select.c: Don't include <stdbool.h>.
10390
10391 2011-09-21  Bruno Haible  <bruno@clisp.org>
10392
10393         Consolidate all uses of PATH_MAX in *.m4 files.
10394         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
10395         macros.
10396         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
10397         and gl_PATHMAX_SNIPPET.
10398         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10399         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10400         * modules/chdir-long (Files): Add m4/pathmax.m4.
10401         * modules/getcwd (Files): Likewise.
10402
10403 2011-09-21  Bruno Haible  <bruno@clisp.org>
10404
10405         ftruncate: Un-deprecate, concentrate on Win32 support.
10406         * modules/ftruncate (Status, Notice): Remove sections.
10407         (Depends-on): Add largefile.
10408         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
10409         non-mingw platforms.
10410         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
10411         include <io.h>.
10412         * modules/perror-tests (Depends-on): Add ftruncate.
10413         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
10414         'ftruncate' module.
10415
10416 2011-09-21  Bruno Haible  <bruno@clisp.org>
10417
10418         Add dependencies to new dirent related modules.
10419         * modules/opendir (Depends-on): Add closedir.
10420         * modules/getcwd (Depends-on): Add opendir, closedir.
10421         * modules/dirent-safer-tests (Depends-on): Likewise.
10422         * modules/fdopendir-tests (Depends-on): Likewise.
10423         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
10424         * modules/renameat-tests (Depends-on): Likewise.
10425
10426 2011-09-21  Bruno Haible  <bruno@clisp.org>
10427
10428         opendir: Avoid compilation error on mingw.
10429         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
10430         * modules/opendir (Depends-on): Add unistd.
10431
10432 2011-09-21  Bruno Haible  <bruno@clisp.org>
10433
10434         ftruncate tests: Avoid a test failure on mingw.
10435         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
10436
10437 2011-09-21  Bruno Haible  <bruno@clisp.org>
10438
10439         select tests: Avoid test failures on OSF/1 5.1 and mingw.
10440         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
10441         native Windows.
10442
10443 2011-09-21  Bruno Haible  <bruno@clisp.org>
10444
10445         New module 'fdopen'.
10446         * lib/stdio.in.h (fdopen): New declaration.
10447         * lib/fdopen.c: New file.
10448         * m4/fdopen.m4: New file.
10449         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
10450         REPLACE_FDOPEN.
10451         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
10452         REPLACE_FDOPEN.
10453         * modules/fdopen: New file.
10454         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
10455         * tests/test-stdio-c++.cc: Check signature of fdopen.
10456         * doc/posix-functions/fdopen.texi: Mention the new module.
10457
10458 2011-09-21  Bruno Haible  <bruno@clisp.org>
10459
10460         unlockpt tests: Avoid test failure on NetBSD 5.1.
10461         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
10462         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
10463
10464 2011-09-21  Bruno Haible  <bruno@clisp.org>
10465
10466         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
10467         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
10468         * tests/test-getlogin_r.c (main): Likewise.
10469
10470 2011-09-20  Bruno Haible  <bruno@clisp.org>
10471
10472         time tests: Don't require pid_t.
10473         * doc/posix-headers/time.texi: Revert last change.
10474         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
10475         * tests/test-time.c: Comment out the check for pid_t.
10476
10477 2011-09-20  Bruno Haible  <bruno@clisp.org>
10478
10479         fsync tests: Avoid a test failure on mingw.
10480         * tests/test-fsync.c (main): Allow a failure with EIO.
10481
10482 2011-09-20  Bruno Haible  <bruno@clisp.org>
10483
10484         euidaccess: Update comments.
10485         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
10486
10487 2011-09-20  Bruno Haible  <bruno@clisp.org>
10488
10489         Ensure EBADF returns for socket functions on mingw.
10490         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
10491         descriptor is invalid.
10492         * lib/bind.c (rpl_bind): Likewise.
10493         * lib/connect.c (rpl_connect): Likewise.
10494         * lib/getpeername.c (rpl_getpeername): Likewise.
10495         * lib/getsockname.c (rpl_getsockname): Likewise.
10496         * lib/getsockopt.c (rpl_getsockopt): Likewise.
10497         * lib/listen.c (rpl_listen): Likewise.
10498         * lib/recv.c (rpl_recv): Likewise.
10499         * lib/recvfrom.c (rpl_recvfrom): Likewise.
10500         * lib/send.c (rpl_send): Likewise.
10501         * lib/sendto.c (rpl_sendto): Likewise.
10502         * lib/setsockopt.c (rpl_setsockopt): Likewise.
10503         * lib/shutdown.c (rpl_shutdown): Likewise.
10504
10505 2011-09-20  Bruno Haible  <bruno@clisp.org>
10506
10507         select tests: EBADF tests.
10508         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
10509         test_bad_fd): New functions.
10510         (test_function): Invoke also test_bad_fd.
10511
10512 2011-09-20  Bruno Haible  <bruno@clisp.org>
10513
10514         Tests for module 'posix_spawn_file_actions_addopen.
10515         * modules/posix_spawn_file_actions_addopen-tests: New file.
10516         * tests/test-posix_spawn_file_actions_addopen.c: New file.
10517
10518         Tests for module 'posix_spawn_file_actions_adddup2'.
10519         * modules/posix_spawn_file_actions_adddup2-tests: New file.
10520         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
10521
10522         Tests for module 'posix_spawn_file_actions_addclose'.
10523         * modules/posix_spawn_file_actions_addclose-tests: New file.
10524         * tests/test-posix_spawn_file_actions_addclose.c: New file.
10525
10526 2011-09-20  Bruno Haible  <bruno@clisp.org>
10527
10528         Tests for module 'unlockpt'.
10529         * modules/unlockpt-tests: New file.
10530         * tests/test-unlockpt.c: New file.
10531         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
10532
10533         Tests for module 'grantpt'.
10534         * modules/grantpt-tests: New file.
10535         * tests/test-grantpt.c: New file.
10536         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
10537
10538 2011-09-20  Bruno Haible  <bruno@clisp.org>
10539
10540         freopen tests: EBADF tests.
10541         * tests/test-freopen.c: Include errno.h, unistd.h.
10542         (main): Add tests for EBADF, commented out for the moment.
10543
10544         fclose tests: EBADF tests.
10545         * tests/test-fclose.c (main): Add tests for EBADF.
10546
10547         fflush tests: EBADF tests.
10548         * tests/test-fflush.c: Include errno.h, macros.h.
10549         (main): Add tests for EBADF.
10550
10551         ftello tests: EBADF tests.
10552         * tests/test-ftello4.sh: New file.
10553         * tests/test-ftello4.c: New file.
10554         * modules/ftello-tests (Files): Add them.
10555         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
10556
10557         fseeko tests: EBADF tests.
10558         * tests/test-fseeko4.sh: New file.
10559         * tests/test-fseeko4.c: New file.
10560         * modules/fseeko-tests (Files): Add them.
10561         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
10562
10563         Tests for function fputc().
10564         * modules/fputc-tests: New file.
10565         * tests/test-fputc.c: New file.
10566         * modules/stdio-tests (Depends-on): Add fputc-tests.
10567
10568         Tests for function fgetc().
10569         * modules/fgetc-tests: New file.
10570         * tests/test-fgetc.c: New file.
10571         * modules/stdio-tests (Depends-on): Add fgetc-tests.
10572
10573         Tests for function fdopen().
10574         * modules/fdopen-tests: New file.
10575         * tests/test-fdopen.c: New file.
10576         * modules/stdio-tests (Depends-on): Add fdopen-tests.
10577
10578         Tests for module 'vdprintf'.
10579         * modules/vdprintf-tests: New file.
10580         * tests/test-vdprintf.c: New file.
10581
10582         Tests for module 'dprintf'.
10583         * modules/dprintf-tests: New file.
10584         * tests/test-dprintf.c: New file.
10585
10586 2011-09-20  Bruno Haible  <bruno@clisp.org>
10587
10588         Tests for module 'ioctl'.
10589         * modules/ioctl-tests: New file.
10590         * tests/test-ioctl.c: New file.
10591
10592 2011-09-20  Bruno Haible  <bruno@clisp.org>
10593
10594         fcntl tests: EBADF tests.
10595         * tests/test-fcntl.c (main): Add more tests for EBADF.
10596
10597 2011-09-20  Bruno Haible  <bruno@clisp.org>
10598
10599         utimensat tests: EBADF tests.
10600         * tests/test-utimensat.c (main): Add tests for EBADF.
10601
10602         renameat tests: EBADF tests.
10603         * tests/test-renameat.c (main): Add tests for EBADF.
10604
10605         mkfifoat tests: EBADF tests.
10606         * tests/test-mkfifoat.c (main): Add tests for EBADF.
10607
10608         readlinkat tests: EBADF tests.
10609         * tests/test-readlinkat.c (main): Add tests for EBADF.
10610
10611         symlinkat tests: EBADF tests.
10612         * tests/test-symlinkat.c (main): Add tests for EBADF.
10613
10614         linkat tests: EBADF tests.
10615         * tests/test-linkat.c (main): Add tests for EBADF.
10616
10617         Tests for module 'faccessat'.
10618         * modules/faccessat-tests: New file.
10619         * tests/test-faccessat.c: New file.
10620
10621         fdopendir tests: EBADF tests.
10622         * tests/test-fdopendir.c (main): Add more tests for EBADF.
10623
10624         openat tests: EBADF tests.
10625         * tests/test-fchownat.c (main): Add tests for EBADF.
10626         * tests/test-fstatat.c (main): Likewise.
10627         * tests/test-mkdirat.c (main): Likewise.
10628         * tests/test-openat.c (main): Likewise.
10629         * tests/test-unlinkat.c (main): Likewise.
10630         * tests/test-fchmodat.c: New file.
10631         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
10632         (Makefile.am): Also run 'test-fchmodat'.
10633
10634 2011-09-20  Bruno Haible  <bruno@clisp.org>
10635
10636         utimens, futimens, fdutimensat tests: EBADF tests.
10637         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
10638
10639         Tests for function fstat().
10640         * modules/fstat-tests: New file.
10641         * tests/test-fstat.c: New file.
10642         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
10643
10644 2011-09-20  Bruno Haible  <bruno@clisp.org>
10645
10646         test-ttyname_r tests: EBADF tests.
10647         * tests/test-ttyname_r.c (main): Add tests for EBADF.
10648
10649         Tests for module 'isatty'.
10650         * modules/isatty-tests: New file.
10651         * tests/test-isatty.c: New file.
10652
10653         Tests for module 'write'.
10654         * modules/write-tests: New file.
10655         * tests/test-write.c: New file.
10656
10657         Tests for module 'read'.
10658         * modules/read-tests: New file.
10659         * tests/test-read.c: New file.
10660
10661         pwrite tests: EBADF tests.
10662         * tests/test-pwrite.c (main): Add tests for EBADF.
10663
10664         pread tests: EBADF tests.
10665         * tests/test-pread.c (main): Add tests for EBADF.
10666
10667         lseek tests: EBADF tests.
10668         * tests/test-lseek.c (main): Add more tests for EBADF.
10669
10670         Tests for module 'ftruncate'.
10671         * modules/ftruncate-tests: New file.
10672         * tests/test-ftruncate.sh: New file.
10673         * tests/test-ftruncate.c: New file.
10674
10675         fsync tests: EBADF tests.
10676         * tests/test-fsync.c (main): Add more tests for EBADF.
10677
10678         fdatasync tests: EBADF tests.
10679         * tests/test-fdatasync.c (main): Add more tests for EBADF.
10680
10681         Tests for module 'fchown'.
10682         * modules/fchown-tests: New file.
10683         * tests/test-fchown.c: New file.
10684
10685         Tests for module 'fchmod'.
10686         * modules/fchmod-tests: New file.
10687         * tests/test-fchmod.c: New file.
10688
10689         fchdir tests: EBADF tests.
10690         * tests/test-fchdir.c (main): Add more tests for EBADF.
10691
10692         dup2 tests: EBADF tests.
10693         * tests/test-dup2.c (main): Add more tests for EBADF.
10694
10695         Tests for module 'dup'.
10696         * modules/dup-tests: New file.
10697         * tests/test-dup.c: New file.
10698
10699         Tests for module 'close'.
10700         * modules/close-tests: New file.
10701         * tests/test-close.c: New file.
10702
10703 2011-09-20  Bruno Haible  <bruno@clisp.org>
10704
10705         Tests for module 'shutdown'.
10706         * modules/shutdown-tests: New file.
10707         * tests/test-shutdown.c: New file.
10708
10709         Tests for module 'setsockopt'.
10710         * modules/setsockopt-tests: New file.
10711         * tests/test-setsockopt.c: New file.
10712
10713         Tests for module 'sendto'.
10714         * modules/sendto-tests: New file.
10715         * tests/test-sendto.c: New file.
10716
10717         Tests for module 'send'.
10718         * modules/send-tests: New file.
10719         * tests/test-send.c: New file.
10720
10721         Tests for module 'recvfrom'.
10722         * modules/recvfrom-tests: New file.
10723         * tests/test-recvfrom.c: New file.
10724
10725         Tests for module 'recv'.
10726         * modules/recv-tests: New file.
10727         * tests/test-recv.c: New file.
10728
10729         Tests for module 'listen'.
10730         * modules/listen-tests: New file.
10731         * tests/test-listen.c: New file.
10732
10733         Tests for module 'getsockopt'.
10734         * modules/getsockopt-tests: New file.
10735         * tests/test-getsockopt.c: New file.
10736
10737         Tests for module 'getsockname'.
10738         * modules/getsockname-tests: New file.
10739         * tests/test-getsockname.c: New file.
10740
10741         Tests for module 'getpeername'.
10742         * modules/getpeername-tests: New file.
10743         * tests/test-getpeername.c: New file.
10744
10745         Tests for module 'connect'.
10746         * modules/connect-tests: New file.
10747         * tests/test-connect.c: New file.
10748
10749         Tests for module 'bind'.
10750         * modules/bind-tests: New file.
10751         * tests/test-bind.c: New file.
10752
10753         accept4 tests: Fix for native Windows.
10754         * tests/test-accept4.c: Include sockets.h.
10755         (main): Invoke gl_sockets_startup.
10756         * modules/accept4-tests (Depends-on): Add sockets.
10757
10758         accept tests: Fix for native Windows.
10759         * tests/test-accept.c: Include sockets.h.
10760         (main): Invoke gl_sockets_startup.
10761         * modules/accept-tests (Depends-on): Add sockets.
10762
10763 2011-09-19  Bruno Haible  <bruno@clisp.org>
10764
10765         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
10766         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
10767         do...while(0).
10768         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
10769         Suggested by Paul Eggert.
10770
10771 2011-09-19  Bruno Haible  <bruno@clisp.org>
10772
10773         sched: Ensure pid_t is defined.
10774         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
10775         not define pid_t.
10776         * lib/sched.in.h: Include <sys/types.h>.
10777         * doc/posix-headers/sched.texi: Mention the pid_t problem.
10778         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10779
10780 2011-09-19  Bruno Haible  <bruno@clisp.org>
10781
10782         msvc-inval: Ensure the entire expansion is a single statement.
10783         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
10784         of braces.
10785
10786 2011-09-19  Jim Meyering  <meyering@redhat.com>
10787
10788         tests: use printf, not echo in init.sh's warn_ function
10789         * tests/init.sh (warn_): Use printf, not echo.  The latter would
10790         misbehave when given strings containing a backslash or starting
10791         with e.g., -n.  James Youngman suggested setting IFS.
10792
10793 2011-09-19  Eric Blake  <eblake@redhat.com>
10794
10795         futimens: enhance test
10796         * tests/test-futimens.h (test_futimens): Also check for EBADF on
10797         closed non-negative fd.
10798
10799         date: accept 'hence' as opposite of 'ago'
10800         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
10801         * tests/test-parse-datetime.c (main): Enhance test.
10802         Suggested by Jesse Wilson.
10803
10804 2011-09-19  Jim Meyering  <meyering@redhat.com>
10805
10806         getcwd: don't fail in a deep directory on a system without openat
10807         Before this change, getcwd would fail when called from a directory
10808         of depth PATH_MAX / 3 or greater.  That was due to the fact that
10809         the non-openat implementation used "..", "../..", "../../..", etc.
10810         to access ancestor directories.  With too many, that string would
10811         be longer than PATH_MAX.
10812         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
10813         using gnulib's openat replacement.
10814         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
10815         we're using the replacement function.
10816
10817 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
10818
10819         maint.mk: avoid warnings from perl about missing files
10820         * top/maint.mk (def_sym_regex): Ignore files listed in
10821         $(gl_other_headers_) that do not exist, say because a project
10822         does not use a corresponding module.
10823
10824 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
10825
10826         stat: use pathmax.h only if needed
10827         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
10828         This is better for Emacs, which does not have a mingw port and
10829         therefore can avoid the pathmax module.
10830
10831         utimens: remove dependency on dup2
10832         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
10833         to work around the Linux kernel bug.
10834         * modules/utimens (Depends-on): Remove dup2.
10835
10836 2011-09-18  Bruno Haible  <bruno@clisp.org>
10837
10838         inet_ntop, inet_pton: Look for it also in libresolv.
10839         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
10840         libnsl, search for it in libresolv.
10841         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10842         Needed on Solaris 7.
10843
10844 2011-09-18  Bruno Haible  <bruno@clisp.org>
10845
10846         accept, accept4 tests: Avoid link error on Solaris.
10847         * modules/accept-tests (Makefile.am): Link test-accept against
10848         $(LIBSOCKET).
10849         * modules/accept4-tests (Makefile.am): Link test-accept4 against
10850         $(LIBSOCKET).
10851
10852         accept4: Avoid link error on Solaris.
10853         * modules/accept4 (Link): New section.
10854
10855         socket functions: Avoid link errors on Solaris.
10856         * modules/accept (Depends-on): Add socketlib.
10857         (Link): New section.
10858         * modules/bind (Depends-on): Add socketlib.
10859         (Link): New section.
10860         * modules/connect (Depends-on): Add socketlib.
10861         (Link): New section.
10862         * modules/getpeername (Depends-on): Add socketlib.
10863         (Link): New section.
10864         * modules/getsockname (Depends-on): Add socketlib.
10865         (Link): New section.
10866         * modules/getsockopt (Depends-on): Add socketlib.
10867         (Link): New section.
10868         * modules/listen (Depends-on): Add socketlib.
10869         (Link): New section.
10870         * modules/recv (Depends-on): Add socketlib.
10871         (Link): New section.
10872         * modules/recvfrom (Depends-on): Add socketlib.
10873         (Link): New section.
10874         * modules/send (Depends-on): Add socketlib.
10875         (Link): New section.
10876         * modules/sendto (Depends-on): Add socketlib.
10877         (Link): New section.
10878         * modules/setsockopt (Depends-on): Add socketlib.
10879         (Link): New section.
10880         * modules/shutdown (Depends-on): Add socketlib.
10881         (Link): New section.
10882         * modules/socket (Depends-on): Add socketlib.
10883         (Link): New section.
10884
10885 2011-09-18  Bruno Haible  <bruno@clisp.org>
10886
10887         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
10888         * tests/test-ptsname.c (main): Terminate the test if it takes longer
10889         than 5 seconds.
10890         * modules/ptsname-tests (configure.ac): Test for alarm.
10891
10892 2011-09-18  Bruno Haible  <bruno@clisp.org>
10893
10894         posix_spawn_file_actions_add*: Fix module dependencies.
10895         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
10896         posix_spawn_file_actions_init.
10897         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
10898         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
10899
10900 2011-09-18  Bruno Haible  <bruno@clisp.org>
10901
10902         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
10903         * tests/test-rename.h (test_rename): Allow error code EEXIST.
10904         * tests/test-renameat.c (main): Likewise.
10905
10906 2011-09-18  Bruno Haible  <bruno@clisp.org>
10907
10908         Tests for module 'accept4'.
10909         * modules/accept4-tests: New file.
10910         * tests/test-accept4.c: New file.
10911
10912 2011-09-18  Bruno Haible  <bruno@clisp.org>
10913
10914         Tests for module 'accept'.
10915         * modules/accept-tests: New file.
10916         * tests/test-accept.c: New file.
10917
10918 2011-09-18  Bruno Haible  <bruno@clisp.org>
10919
10920         dup2: Support for MSVC.
10921         * lib/dup2.c: Include msvc-inval.h.
10922         (rpl_dup2): Handle invalid parameter notifications during dup2 and
10923         _get_osfhandle calls.
10924         * modules/dup2 (Depends-on): Add msvc-inval.
10925         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
10926
10927         New module 'msvc-inval'.
10928         * lib/msvc-inval.h: New file.
10929         * lib/msvc-inval.c: New file.
10930         * m4/msvc-inval.m4: New file.
10931         * modules/msvc-inval: New file.
10932
10933 2011-09-17  Bruno Haible  <bruno@clisp.org>
10934
10935         Tests for module 'pclose'.
10936         * modules/pclose-tests: New file.
10937
10938         New module 'pclose'.
10939         * lib/stdio.in.h (pclose): New declaration.
10940         * lib/pclose.c: New file.
10941         * m4/pclose.m4: New file.
10942         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
10943         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
10944         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
10945         * modules/pclose: New file.
10946         * modules/popen-tests (Depends-on): Add pclose.
10947         * modules/popen-safer-tests (Depends-on): Likewise.
10948         * doc/posix-functions/pclose.texi: Mention the new module.
10949
10950 2011-09-17  Bruno Haible  <bruno@clisp.org>
10951
10952         popen: Support for MSVC.
10953         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
10954         * lib/popen.c (popen): Provide alternate definition for native Windows.
10955         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
10956         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
10957         * modules/popen (Depends-on, configure.ac): Update condition.
10958         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
10959         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
10960         fixed.
10961
10962 2011-09-17  Bruno Haible  <bruno@clisp.org>
10963
10964         isnanl, isnand, isnanf: Work around MSVC bug.
10965         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
10966
10967 2011-09-17  Bruno Haible  <bruno@clisp.org>
10968
10969         sys_socket tests: Fix recent mistake.
10970         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
10971
10972 2011-09-17  Bruno Haible  <bruno@clisp.org>
10973
10974         putenv: Support for MSVC.
10975         * modules/putenv (Depends-on): Add environ.
10976         * lib/putenv.c (environ): Disable declaration.
10977         * lib/unistd.in.h: Update comment.
10978
10979 2011-09-17  Bruno Haible  <bruno@clisp.org>
10980
10981         math: Avoid macro redefinition warnings on MSVC.
10982         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
10983         Undefine before redefining.
10984
10985 2011-09-17  Bruno Haible  <bruno@clisp.org>
10986
10987         doc: Mention functions which are declared as macros.
10988         * doc/posix-functions/*[fl].texi: Mention that some functions are
10989         defined as macros with arguments only.
10990
10991 2011-09-17  Bruno Haible  <bruno@clisp.org>
10992
10993         Add dependencies to new dirent related modules.
10994         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
10995         * modules/fts (Depends-on): Likewise.
10996         * modules/glob (Depends-on): Likewise.
10997         * modules/savedir (Depends-on): Likewise.
10998         * modules/scandir (Depends-on): Likewise.
10999         * modules/dirent-safer (Depends-on): Add opendir, closedir.
11000         * modules/fdopendir (Depends-on): Add opendir.
11001
11002 2011-09-17  Bruno Haible  <bruno@clisp.org>
11003
11004         inet_pton: Support for MSVC on Windows Vista or newer.
11005         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
11006         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
11007         HAVE_DECL_INET_PTON is defined.
11008         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
11009         On platforms with <winsock2.h>, test whether inet_pton is declared in
11010         <ws2tcpip.h>. If so, arrange to replace it.
11011         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
11012         REPLACE_INET_PTON.
11013         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
11014         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
11015         (Depends-on, configure.ac): Update condition.
11016         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
11017
11018 2011-09-17  Bruno Haible  <bruno@clisp.org>
11019
11020         inet_ntop: Support for MSVC on Windows Vista or newer.
11021         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
11022         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
11023         HAVE_DECL_INET_NTOP is defined.
11024         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
11025         On platforms with <winsock2.h>, test whether inet_ntop is declared in
11026         <ws2tcpip.h>. If so, arrange to replace it.
11027         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
11028         REPLACE_INET_NTOP.
11029         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
11030         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
11031         (Depends-on, configure.ac): Update condition.
11032         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
11033
11034 2011-09-16  Eric Blake  <eblake@redhat.com>
11035
11036         test-fsync: yet another enhancement
11037         * tests/test-fsync.c (main): Also test behavior on read-only text
11038         file.
11039
11040 2011-09-16  Bruno Haible  <bruno@clisp.org>
11041
11042         Enhance fsync, fdatasync tests.
11043         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
11044         * tests/test-fdatasync.c (main): Likewise.
11045
11046 2011-09-16  Bruno Haible  <bruno@clisp.org>
11047
11048         Support for MSVC compiler: Ensure mode_t gets defined.
11049         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
11050         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11051         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
11052         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
11053         * tests/test-fcntl-h.c: Check that mode_t is defined.
11054         * tests/test-sys_stat.c: Likewise.
11055         * tests/test-sys_types.c: Likewise.
11056         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
11057         * doc/posix-headers/sys_stat.texi: Likewise.
11058         * doc/posix-headers/sys_types.texi: Likewise.
11059
11060 2011-09-16  Bruno Haible  <bruno@clisp.org>
11061
11062         sys_stat: Support for MSVC.
11063         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
11064         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
11065         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
11066         MSVC.
11067
11068 2011-09-16  Bruno Haible  <bruno@clisp.org>
11069
11070         Support for MSVC compiler: Ensure off_t gets defined.
11071         * lib/unistd.in.h: Include <sys/types.h>.
11072         * tests/test-fcntl-h.c: Check that off_t is defined.
11073         * tests/test-sys_stat.c: Likewise.
11074         * tests/test-sys_types.c: Likewise.
11075
11076 2011-09-16  Eric Blake  <eblake@redhat.com>
11077
11078         fdatasync: port to Solaris
11079         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
11080         * modules/fdatasync (Link): Document it.
11081         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
11082
11083         fdatasync: port to MacOS X 10.7
11084         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
11085         declared.
11086         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
11087         * modules/unistd (Makefile.am): Substitute it.
11088         * lib/unistd.in.h (fdatasync): Declare on MacOS.
11089         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
11090
11091         fdatasync: minor improvements
11092         * modules/fdatasync (Depends-on): Add condition for fsync.
11093         * lib/fdatasync.c (fdatasync): Add comment.
11094         * tests/test-unistd-c++.cc: Test fdatasync.
11095
11096         unistd: update refs to newer POSIX
11097         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
11098         Suggested by Bruno Haible.
11099
11100         fdatasync: new module
11101         * modules/fsync (Description): Document difference to fdatasync.
11102         * modules/fdatasync: New module.
11103         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
11104         * lib/fdatasync.c (fdatasync): Likewise.
11105         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
11106         defaults.
11107         * modules/unistd (Makefile.am): Set witnesses.
11108         * lib/unistd.in.h (fdatasync): Declare.
11109         * MODULES.html.sh: Document it.
11110         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
11111         * modules/fdatasync-tests: New test.
11112         * tests/test-fdatasync.c: Likewise.
11113
11114 2011-09-16  Eric Blake  <eblake@redhat.com>
11115
11116         test-fsync: enhance tests
11117         * modules/fsync-tests (Depends-on): Add errno, for mingw.
11118         * tests/test-fsync.c (main): Enhance test.
11119
11120 2011-09-15  Bruno Haible  <bruno@clisp.org>
11121
11122         Support for MSVC compiler: Ensure ssize_t gets defined.
11123         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
11124         * doc/posix-headers/stdio.texi: Likewise.
11125         * modules/stdio (Depends-on): Add ssize_t.
11126         * modules/sys_socket (Depends-on): Likewise.
11127         * modules/sys_types (Depends-on): Likewise.
11128         * modules/sys_uio (Depends-on): Likewise.
11129         * modules/unistd (Depends-on): Likewise.
11130         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
11131         * tests/test-sys_types.c: Check that ssize_t is defined.
11132
11133 2011-09-14  Bruno Haible  <bruno@clisp.org>
11134
11135         Avoid using #, the m4 comment starter character, near brackets.
11136         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
11137         delimiter character in sed expressions.
11138         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
11139         Suggested by Eric Blake.
11140
11141         Properly quote AC_CHECK_DECLS' 4th argument.
11142         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
11143         argument.
11144         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11145         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11146         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11147         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
11148         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
11149         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
11150         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
11151         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
11152         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
11153         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
11154         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
11155         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11156         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
11157         * m4/isinf.m4 (gl_ISINF): Likewise.
11158         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
11159         * m4/readutmp.m4 (gl_READUTMP): Likewise.
11160         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11161         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11162         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11163         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11164         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11165         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
11166         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
11167         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11168         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11169         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11170         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
11171         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11172         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11173         Reported by Eric Blake.
11174
11175         Properly quote AC_CHECK_DECL's 4th argument.
11176         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
11177         argument.
11178         * m4/argp.m4 (gl_ARGP): Likewise.
11179         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11180         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11181         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11182         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11183         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
11184         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
11185         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
11186         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
11187         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11188         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11189         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11190         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11191         Reported by Eric Blake.
11192
11193 2011-09-14  Eric Blake  <eblake@redhat.com>
11194
11195         opendir: avoid compile warning
11196         * lib/opendir.c (includes): Always include errno.h.
11197         Reported by Tatsuro MATSUOKA.
11198
11199 2011-09-14  Jim Meyering  <meyering@redhat.com>
11200
11201         maint.mk: sc_tight_scope: propagate failure from sub-make
11202         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
11203         Reported by Martin von Gagern.
11204
11205 2011-09-13  Bruno Haible  <bruno@clisp.org>
11206
11207         tempname: Support for MSVC.
11208         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
11209         MSVC.
11210         * modules/tempname (Depends-on): Add fcntl-h.
11211
11212 2011-09-13  Bruno Haible  <bruno@clisp.org>
11213
11214         sys_time: Support for MSVC.
11215         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
11216         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
11217         include <winsock2.h>.
11218         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
11219         function declarations that collide with POSIX.
11220         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
11221         (Makefile.am): Substitute HAVE_WINSOCK2_H.
11222
11223 2011-09-13  Bruno Haible  <bruno@clisp.org>
11224
11225         stat: Support for MSVC.
11226         * lib/stat.c: Include pathmax.h.
11227         * modules/stat (Depends-on): Add pathmax.
11228
11229         pathmax: Support for native Windows.
11230         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
11231
11232 2011-09-12  Bruno Haible  <bruno@clisp.org>
11233
11234         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
11235         * lib/dirent.in.h (struct dirent): New type.
11236         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
11237         DT_WHT): New macros.
11238         (DIR): New type.
11239         (opendir, closedir): Declare only if the module 'opendir' is enabled.
11240         (readdir, rewinddir): New declarations.
11241         * lib/dirent-private.h: New file.
11242         * lib/opendir.c: New file.
11243         * lib/readdir.c: New file.
11244         * lib/rewinddir.c: New file.
11245         * lib/closedir.c: New file.
11246         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
11247         * m4/opendir.m4: New file.
11248         * m4/readdir.m4: New file.
11249         * m4/rewinddir.m4: New file.
11250         * m4/closedir.m4: New file.
11251         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
11252         REPLACE_CLOSEDIR here.
11253         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
11254         readdir, rewinddir are declared.
11255         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
11256         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
11257         HAVE_REWINDDIR, HAVE_CLOSEDIR.
11258         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
11259         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
11260         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
11261         * modules/opendir: New file.
11262         * modules/readdir: New file.
11263         * modules/rewinddir: New file.
11264         * modules/closedir: New file.
11265         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
11266         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
11267         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
11268         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
11269         * NEWS: Mention the 'fchdir' change.
11270
11271 2011-09-11  Bruno Haible  <bruno@clisp.org>
11272
11273         asm-underscore.m4: Support for MSVC.
11274         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
11275         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
11276
11277 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
11278
11279         Doc about crypt functions.
11280         * doc/posix-functions/crypt.texi: Expand range of glibc versions
11281         needing for _GNU_SOURCE to get crypt.
11282         * doc/posix-functions/encrypt.texi: Likewise.
11283         * doc/posix-functions/setkey.texi: Likewise.
11284
11285 2011-09-11  Bruno Haible  <bruno@clisp.org>
11286
11287         doc: Update regarding MSVC 9.
11288         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
11289         tested".
11290         * doc/posix-functions/*.texi: Update with info about MSVC 9.
11291         * doc/posix-headers/*.texi: Likewise.
11292         * doc/pastposix-functions/*.texi: Likewise.
11293         * doc/glibc-functions/*.texi: Likewise.
11294         * doc/glibc-headers/*.texi: Likewise.
11295
11296 2011-09-11  Bruno Haible  <bruno@clisp.org>
11297
11298         unistd et al.: Don't assume <unistd.h> exists.
11299         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
11300         does not exist.
11301         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
11302         exist. But include <stdlib.h>.
11303         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
11304         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
11305         symlink() does not exist.
11306         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
11307         include <io.h> instead.
11308         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
11309         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
11310         include <direct.h> instead.
11311         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11312         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11313         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
11314         <io.h> instead.
11315         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
11316         correctly if the system does not have hard links.
11317         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
11318         <direct.h> instead.
11319         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
11320         it when looking for function declarations.
11321         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
11322         <direct.h> and <io.h> instead.
11323         * doc/posix-headers/unistd.texi: More details about MSVC problem.
11324
11325 2011-09-11  Bruno Haible  <bruno@clisp.org>
11326
11327         strcase: Support for MSVC.
11328         * modules/strcase (Status, Notice): Remove obsoletion mark.
11329         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
11330         * doc/posix-functions/strncasecmp.texi: Likewise.
11331
11332         strings: Don't assume <strings.h> exists.
11333         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
11334         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
11335         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
11336         * doc/posix-headers/strings.texi: Mention the MSVC problem.
11337
11338 2011-09-11  Bruno Haible  <bruno@clisp.org>
11339
11340         dirent: Don't assume <dirent.h> exists.
11341         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
11342         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
11343         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
11344         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
11345
11346 2011-09-11  Bruno Haible  <bruno@clisp.org>
11347
11348         Fix wint_t on MSVC.
11349         * lib/wchar.in.h (wint_t): On MSVC, override it.
11350         * lib/wctype.in.h (wint_t): Likewise.
11351         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
11352         MSVC.
11353         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
11354         * doc/posix-headers/wctype.texi: Likewise.
11355
11356 2011-09-11  Bruno Haible  <bruno@clisp.org>
11357
11358         sys_types: Fix typo.
11359         * lib/sys_types.in.h: Fix typo in comment.
11360         Reported by Paul Eggert.
11361
11362         Support for MSVC compiler: Ensure size_t gets defined.
11363         * modules/strings (Depends-on): Add 'sys_types'.
11364         * modules/sys_uio (Depends-on): Likewise.
11365         * lib/sys_uio.in.h: Update comment.
11366
11367         C++ tests for module 'sys_types'.
11368         * modules/sys_types-c++-tests: New file.
11369         * tests/test-sys_types-c++.cc: New file.
11370
11371         Tests for module 'sys_types'.
11372         * modules/sys_types-tests: New file.
11373         * tests/test-sys_types.c: New file.
11374
11375         New module 'sys_types'.
11376         * lib/sys_types.in.h: New file.
11377         * m4/sys_types_h.m4: New file.
11378         * modules/sys_types: New file.
11379         * doc/posix-headers/sys_types.texi: Mention the new module and the
11380         size_t problem on MSVC 9.
11381
11382 2011-09-11  Bruno Haible  <bruno@clisp.org>
11383
11384         Support for MSVC compiler: Avoid division by a literal 0.
11385         * lib/math.in.h (NAN): Define through a function call also on MSVC.
11386         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
11387         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
11388         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
11389         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
11390         * tests/infinity.h: New file.
11391         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
11392         on MSVC.
11393         * tests/test-ceilf1.c: Include infinity.h.
11394         (main): Use Infinityf.
11395         * tests/test-ceil1.c: Include infinity.h.
11396         (main): Use Infinityd.
11397         * tests/test-ceill.c: Include infinity.h.
11398         (main): Use Infinityl.
11399         * tests/test-dprintf-posix.c: Include infinity.h.
11400         (test_function): Use Infinityd.
11401         * tests/test-floorf1.c: Include infinity.h.
11402         (main): Use Infinityf.
11403         * tests/test-floor1.c: Include infinity.h.
11404         (main): Use Infinityd.
11405         * tests/test-floorl.c: Include infinity.h.
11406         (main): Use Infinityl.
11407         * tests/test-fprintf-posix.c: Include infinity.h.
11408         (test_function): Use Infinityd.
11409         * tests/test-frexp.c: Include infinity.h.
11410         (main): Use Infinityd.
11411         * tests/test-frexpl.c: Include infinity.h.
11412         (main): Use Infinityl.
11413         * tests/test-isfinite.c: Include infinity.h.
11414         (test_isfinitef): Use Infinityf.
11415         (test_isfinited): Use Infinityd.
11416         (test_isfinitel): Use Infinityl.
11417         * tests/test-isinf.c: Include infinity.h.
11418         (test_isinff): Use Infinityf.
11419         (test_isinfd): Use Infinityd.
11420         (test_isinfl): Use Infinityl.
11421         * tests/test-isnan.c: Include infinity.h.
11422         (test_float): Use Infinityf.
11423         (test_double): Use Infinityd.
11424         (test_long_double): Use Infinityl.
11425         * tests/test-isnanf.h: Include infinity.h.
11426         (main): Use Infinityf.
11427         * tests/test-isnand.h: Include infinity.h.
11428         (main): Use Infinityd.
11429         * tests/test-isnanl.h: Include infinity.h.
11430         (main): Use Infinityl.
11431         * tests/test-ldexpl.c: Include infinity.h.
11432         (main): Use Infinityl.
11433         * tests/test-printf-posix.h: Include infinity.h.
11434         (test_function): Use Infinityd.
11435         * tests/test-roundf1.c: Include infinity.h.
11436         (main): Use Infinityf.
11437         * tests/test-round1.c: Include infinity.h.
11438         (main): Use Infinityd.
11439         * tests/test-roundl.c: Include infinity.h.
11440         (main): Use Infinityl.
11441         * tests/test-signbit.c: Include infinity.h.
11442         (test_signbitf): Use Infinityf.
11443         (test_signbitd): Use Infinityd.
11444         (test_signbitl): Use Infinityl.
11445         * tests/test-snprintf-posix.h: Include infinity.h.
11446         (test_function): Use Infinityd, Infinityl.
11447         * tests/test-sprintf-posix.h: Include infinity.h.
11448         (test_function): Use Infinityd, Infinityl.
11449         * tests/test-truncf1.c: Include infinity.h.
11450         (main): Use Infinityf.
11451         * tests/test-trunc1.c: Include infinity.h.
11452         (main): Use Infinityd.
11453         * tests/test-truncl.c: Include infinity.h.
11454         (main): Use Infinityl.
11455         * tests/test-vasnprintf-posix.c: Include infinity.h.
11456         (test_function): Use Infinityd, Infinityl.
11457         * tests/test-vasprintf-posix.c: Include infinity.h.
11458         (test_function): Use Infinityd, Infinityl.
11459         * modules/ceilf-tests (Files): Add tests/infinity.h.
11460         * modules/ceil-tests (Files): Likewise.
11461         * modules/ceill-tests (Files): Likewise.
11462         * modules/dprintf-posix-tests (Files): Likewise.
11463         * modules/floorf-tests (Files): Likewise.
11464         * modules/floor-tests (Files): Likewise.
11465         * modules/floorl-tests (Files): Likewise.
11466         * modules/fprintf-posix-tests (Files): Likewise.
11467         * modules/frexp-tests (Files): Likewise.
11468         * modules/frexp-nolibm-tests (Files): Likewise.
11469         * modules/frexpl-tests (Files): Likewise.
11470         * modules/frexpl-nolibm-tests (Files): Likewise.
11471         * modules/isfinite-tests (Files): Likewise.
11472         * modules/isinf-tests (Files): Likewise.
11473         * modules/isnan-tests (Files): Likewise.
11474         * modules/isnanf-tests (Files): Likewise.
11475         * modules/isnanf-nolibm-tests (Files): Likewise.
11476         * modules/isnand-tests (Files): Likewise.
11477         * modules/isnand-nolibm-tests (Files): Likewise.
11478         * modules/isnanl-tests (Files): Likewise.
11479         * modules/isnanl-nolibm-tests (Files): Likewise.
11480         * modules/ldexpl-tests (Files): Likewise.
11481         * modules/printf-posix-tests (Files): Likewise.
11482         * modules/roundf-tests (Files): Likewise.
11483         * modules/round-tests (Files): Likewise.
11484         * modules/roundl-tests (Files): Likewise.
11485         * modules/signbit-tests (Files): Likewise.
11486         * modules/snprintf-posix-tests (Files): Likewise.
11487         * modules/sprintf-posix-tests (Files): Likewise.
11488         * modules/truncf-tests (Files): Likewise.
11489         * modules/trunc-tests (Files): Likewise.
11490         * modules/truncl-tests (Files): Likewise.
11491         * modules/vasnprintf-posix-tests (Files): Likewise.
11492         * modules/vasprintf-posix-tests (Files): Likewise.
11493         * modules/vdprintf-posix-tests (Files): Likewise.
11494         * modules/vfprintf-posix-tests (Files): Likewise.
11495         * modules/vprintf-posix-tests (Files): Likewise.
11496         * modules/vsnprintf-posix-tests (Files): Likewise.
11497         * modules/vsprintf-posix-tests (Files): Likewise.
11498         * modules/xprintf-posix-tests (Files): Likewise.
11499
11500 2011-09-11  Bruno Haible  <bruno@clisp.org>
11501
11502         Ensure pid_t gets defined.
11503         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
11504         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11505         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
11506         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11507         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
11508         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11509         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
11510         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11511         * tests/test-fcntl-h.c: Check that pid_t is defined.
11512         * tests/test-sched.c: Likewise.
11513         * tests/test-termios.c: Likewise.
11514         * tests/test-time.c: Likewise.
11515         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
11516         * doc/posix-headers/signal.texi: Likewise.
11517         * doc/posix-headers/sys_types.texi: Likewise.
11518         * doc/posix-headers/time.texi: Likewise.
11519
11520 2011-09-11  Bruno Haible  <bruno@clisp.org>
11521
11522         acl: Fix compilation on Solaris 10 (older version).
11523         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
11524         of ACE_EVERYONE.
11525         * lib/set-mode-acl.c (qset_acl): Likewise.
11526         Reported by Christian Jullien <eligis@orange.fr>.
11527
11528 2011-09-10  Bruno Haible  <bruno@clisp.org>
11529
11530         iconv, unsetenv: Add support for MSVC compiler.
11531         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
11532         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
11533
11534 2011-09-10  Bruno Haible  <bruno@clisp.org>
11535
11536         *printf: Add support for MSVC compiler.
11537         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
11538         handles the exception caused by the %n directive. When cross-compiling,
11539         guess no on native Windows.
11540         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
11541         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
11542         emulate it through vsnprintf.
11543         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
11544         * doc/posix-functions/dprintf.texi: Update documentation regarding
11545         MSVC 9.
11546         * doc/posix-functions/fprintf.texi: Likewise.
11547         * doc/posix-functions/printf.texi: Likewise.
11548         * doc/posix-functions/snprintf.texi: Likewise.
11549         * doc/posix-functions/sprintf.texi: Likewise.
11550         * doc/posix-functions/swprintf.texi: Likewise.
11551         * doc/posix-functions/vdprintf.texi: Likewise.
11552         * doc/posix-functions/vfprintf.texi: Likewise.
11553         * doc/posix-functions/vprintf.texi: Likewise.
11554         * doc/posix-functions/vsnprintf.texi: Likewise.
11555         * doc/posix-functions/vsprintf.texi: Likewise.
11556         * doc/glibc-functions/asprintf.texi: Likewise.
11557         * doc/glibc-functions/obstack_printf.texi: Likewise.
11558         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
11559         * doc/glibc-functions/vasprintf.texi: Likewise.
11560
11561 2011-09-10  Bruno Haible  <bruno@clisp.org>
11562
11563         nocrash: Add support for native Windows.
11564         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
11565
11566 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
11567             Bruno Haible  <bruno@clisp.org>
11568
11569         absolute-header, include-next: Add support for MSVC compiler.
11570         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
11571         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
11572         directory separator in #line directives.
11573         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
11574         recognize also backslash as directory separator in #line directives.
11575
11576 2011-09-08  Jim Meyering  <meyering@redhat.com>
11577
11578         maint.mk: mark the post-release commit log with "maint: " prefix
11579         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
11580         one-line commit-log summary.
11581
11582 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
11583             Bruno Haible  <bruno@clisp.org>
11584
11585         Doc about crypt functions.
11586         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
11587         systems.
11588         * doc/posix-functions/encrypt.texi: Likewise.
11589         * doc/posix-functions/setkey.texi: Likewise.
11590
11591 2011-09-08  Simon Josefsson  <simon@josefsson.org>
11592
11593         * lib/gc.h: Fix copyright header.
11594
11595 2011-09-07  Bruno Haible  <bruno@clisp.org>
11596
11597         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
11598         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
11599         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
11600
11601 2011-09-07  Bruno Haible  <bruno@clisp.org>
11602
11603         openat: Work around compilation error with OSF/1 5.1 DTK cc.
11604         * lib/fopen.c: Use different syntax for include of <stdio.h>.
11605         * lib/freopen.c: Likewise.
11606         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
11607         * lib/lstat.c: Likewise.
11608         * lib/stat.c: Likewise.
11609         * lib/open.c: Use different syntax for include of <fcntl.h>.
11610         * lib/openat.c: Include fcntl.h again, explicitly.
11611
11612 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
11613
11614         parse-datetime: document the newly accepted format
11615         * doc/parse-datetime.texi (Combined date and time of day items):
11616         New section.
11617
11618 2011-09-06  Bruno Haible  <bruno@clisp.org>
11619
11620         acl: Fix a test failure on newer Solaris 10 with ZFS.
11621         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
11622         ENOSYS as no ACL.
11623         Reported by Jim Meyering.
11624
11625 2011-09-06  Bruno Haible  <bruno@clisp.org>
11626
11627         acl: Update for AIX >= 5.3 with NFS.
11628         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
11629         ENOSYS as no ACL.
11630
11631         acl: Fix a test failure on AIX >= 5.3 with NFS.
11632         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
11633         as no ACL.
11634
11635 2011-09-06  Bruno Haible  <bruno@clisp.org>
11636
11637         acl: Fix a test failure on IRIX 6.5 with NFS.
11638         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
11639         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
11640         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
11641         * lib/copy-acl.c (qcopy_acl): Likewise.
11642
11643 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
11644
11645         openat: port to AIX 7.1 with large files
11646         AIX 7.1 does a "#define openat open64at" if large files are in use,
11647         so we can't simply #undef openat.  Use the orig_openat trick (similar
11648         to orig_open in lib/open.c) to work around the problem.  Problem
11649         reported by Kevin Brott for GNU tar, in the thread containing
11650         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
11651         * lib/openat.c (__need_system_fcntl_h): Define first.
11652         Include <fcntl.h> and <sys/types.h> before undefining.
11653         (orig_openat) [HAVE_OPENAT]: New inline function.
11654         (openat) [HAVE_OPENAT]: Do not undef.
11655         (rpl_openat): Use orig_openat, not openat.
11656
11657 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
11658             Bruno Haible  <bruno@clisp.org>
11659
11660         acl: Avoid errors on NonStop Kernel.
11661         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
11662         ENOTSUP errors.
11663
11664 2011-09-05  Bruno Haible  <bruno@clisp.org>
11665
11666         acl: Clean up Solaris code.
11667         * lib/acl-internal.h: Remove no-op #if.
11668         * lib/file-has-acl.c: Likewise.
11669         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
11670         * lib/copy-acl.c (qcopy_acl): Likewise.
11671
11672 2011-09-05  Bruno Haible  <bruno@clisp.org>
11673
11674         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
11675         binaries built on the original Solaris 10.
11676         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
11677         trivial.
11678
11679 2011-09-05  Bruno Haible  <bruno@clisp.org>
11680
11681         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11682         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
11683         10.
11684         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
11685         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
11686         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
11687         instead of acl_get, facl_get, acl_set, facl_set.
11688
11689 2011-09-05  Bruno Haible  <bruno@clisp.org>
11690
11691         copy-file: Try unit tests on more file systems.
11692         * tests/test-copy-file-1.sh: New file.
11693         * tests/test-copy-file-2.sh: New file.
11694         * modules/copy-file-tests (Files): Add them.
11695         (Makefile.am): Add them to TESTS.
11696
11697         acl: Try unit tests on more file systems.
11698         * tests/test-file-has-acl-1.sh: New file.
11699         * tests/test-file-has-acl-2.sh: New file.
11700         * tests/test-set-mode-acl-1.sh: New file.
11701         * tests/test-set-mode-acl-2.sh: New file.
11702         * tests/test-copy-acl-1.sh: New file.
11703         * tests/test-copy-acl-2.sh: New file.
11704         * modules/acl-tests (Files): Add them.
11705         (Makefile.am): Add them to TESTS.
11706
11707 2011-09-04  Bruno Haible  <bruno@clisp.org>
11708
11709         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11710         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
11711         10.
11712         (OLD_ALLOW, OLD_DENY): New macros.
11713         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
11714         ACE_ACCESS_ALLOWED_ACE_TYPE.
11715         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
11716         ACE_ACCESS_DENIED_ACE_TYPE.
11717         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
11718         (NEW_ACE_EXECUTE): Fix value.
11719         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
11720         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
11721         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
11722         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
11723         NEW_ACE_SYNCHRONIZE): New macros.
11724         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
11725         instead of acl_fromtext, acl_set, facl_set.
11726         Fixes a coreutils/tests/cp/perm failure.
11727
11728 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
11729
11730         openat: test for fstatat (..., 0) bug
11731         Further testing with tar suggests that fstatat (..., 0)
11732         does not work in general, on AIX 7.1; see
11733         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
11734         So, give up entirely on AIX 7.1's fstatat, and fall back on our
11735         replacement fstatat (which is what older AIX releases were using
11736         anyway).
11737         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
11738         use is now changed to orig_fstatat.  This was probably the right
11739         thing to do anyway.
11740         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
11741         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
11742         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
11743         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
11744         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
11745         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
11746         if the bug is found.
11747
11748         openat: test for fstatat (AT_FDCWD, ..., 0) bug
11749         This tests for another fstatat bug on AIX 7.1:
11750         fstatat (AT_FDCWD, ..., 0) does not work.  See
11751         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
11752         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
11753         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
11754         (rpl_fstatat): Adjust so that it works around either (or both)
11755         bugs if present.
11756         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
11757
11758 2011-09-03  Karl Berry  <karl@gnu.org>
11759
11760         * doc/regex.texi (Character Class Operators): Avoid literal ":"
11761         in index entries.
11762
11763 2011-09-02  Bruno Haible  <bruno@clisp.org>
11764
11765         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
11766         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
11767         values of AR, ARFLAGS, RANLIB.
11768         Reported by John W. Eaton <jwe@gnu.org> for Octave.
11769
11770 2011-09-02  Bruno Haible  <bruno@clisp.org>
11771
11772         Find 'ar' program that fits with --host argument.
11773         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
11774
11775 2011-09-02  Bruno Haible  <bruno@clisp.org>
11776
11777         tests: init.sh: Support any non-GNU diff.
11778         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
11779         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
11780         Solaris 8.
11781
11782 2011-09-02  Bruno Haible  <bruno@clisp.org>
11783
11784         tests: init.sh: work also with any non-GNU diff that supports -u
11785         * tests/init.sh: Relax check for diff -u support.
11786         Rather than checking for GNU diff via --version, simply check
11787         for support for -u itself.  Useful at least on OpenBSD 4.9,
11788         AIX 7.1, IRIX 6.5, and Solaris 10.
11789
11790 2011-09-01  Bruno Haible  <bruno@clisp.org>
11791
11792         strtoimax, strtoumax: Document problem on HP-UX 11.
11793         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
11794         * doc/posix-functions/strtoumax.texi: Likewise.
11795
11796 2011-09-01  Bruno Haible  <bruno@clisp.org>
11797
11798         strtoumax: Avoid link error on OSF/1 with DTK cc.
11799         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
11800         defined as a function.
11801         * modules/strtoumax (Depends-on, configure.ac): Test only whether
11802         strtoumax is defined, not whether it is declared.
11803
11804 2011-09-01  Bruno Haible  <bruno@clisp.org>
11805
11806         strtoimax: Avoid link error on OSF/1 with DTK cc.
11807         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
11808         defined as a function.
11809         * modules/strtoimax (Depends-on, configure.ac): Test only whether
11810         strtoimax is defined, not whether it is declared.
11811
11812 2011-09-01  Bruno Haible  <bruno@clisp.org>
11813
11814         imaxdiv: Avoid link error on OSF/1 with DTK cc.
11815         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
11816         as a function.
11817         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
11818         whether it is declared.
11819
11820 2011-09-01  Bruno Haible  <bruno@clisp.org>
11821
11822         imaxabs: Avoid link error on OSF/1 with DTK cc.
11823         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
11824         as a function.
11825         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
11826         whether it is declared.
11827
11828 2011-09-01  Bruno Haible  <bruno@clisp.org>
11829
11830         Tests for module 'strtoumax'.
11831         * modules/strtoumax-tests: New file.
11832         * tests/test-strtoumax.c: New file.
11833
11834         Tests for module 'strtoimax'.
11835         * modules/strtoimax-tests: New file.
11836         * tests/test-strtoimax.c: New file.
11837
11838         Tests for module 'imaxdiv'.
11839         * modules/imaxdiv-tests: New file.
11840         * tests/test-imaxdiv.c: New file.
11841
11842         Tests for module 'imaxabs'.
11843         * modules/imaxabs-tests: New file.
11844         * tests/test-imaxabs.c: New file.
11845
11846 2011-09-01  Bruno Haible  <bruno@clisp.org>
11847
11848         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
11849         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
11850         pthread_create.
11851
11852 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11853
11854         openat: work around AIX 7.1 fstatat issue
11855         This should fix the problem that was not properly fixed
11856         in the previous change, dated 2011-08-30.
11857         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
11858         __need_system_stat_h defined.
11859         (orig_fstatat) [HAVE_FSTATAT]: New function.
11860         (rpl_fstatat): Go back to the old way of doing things,
11861         except call orig_fstatat instead of fstatat.
11862         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
11863         Remove unnecessary check whether fstatat fills in st_size etc.
11864
11865 2011-09-01  Bruno Haible  <bruno@clisp.org>
11866
11867         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
11868         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
11869         just include the system's header.
11870
11871 2011-08-31  Jim Meyering  <meyering@redhat.com>
11872
11873         tests: avoid spurious assertion failure in test-float.c on ppc64
11874         * tests/test-float.c (test_long_double): Comment out an assertion,
11875         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
11876         with gcc-4.4.4.
11877
11878         maint: indent with spaces, not TABs
11879         I need to get in the habit of running gnulib's "make check".
11880         Both of these would have been caught.
11881         * m4/largefile.m4: Indent with spaces, not TABs.
11882         * lib/parse-datetime.y (iso_8601_time): Likewise.
11883         Spotted by Pádraig Brady.
11884
11885         test-parse-datetime.c: accommodate a relatively strict gcc warning
11886         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
11887         to avoid a warning from gcc's -Werror=missing-declarations.
11888         Insert a few spaces-before-funcall-parenthesis.
11889
11890 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
11891
11892         parse-datetime: accept ISO 8601 date and time rep with "T" separator
11893         The parser now accepts ISO 8601 date-time strings with "T" as the
11894         separator.  It has long parsed dates like "2004-02-29 16:21:42"
11895         with a space between the date and time strings.  Now it also parses
11896         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
11897         variants like "2004-02-29T16:21:42.333-07:00"
11898         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
11899         of day representation using the 'T' separator character.
11900         * doc/parse-datetime.texi (General date syntax): replace use of
11901         deprecated --iso-8601 option with --rfc-3339 in example of date
11902         command output formats that can be parsed.
11903         * tests/test-parse-datetime.c (tm_diff): New function, taken from
11904         lib/parse-datetime.y.
11905         (gmt_offset): New function.
11906         (main): Add additional test cases to validate ISO8601 extended
11907         date and time of day parsing.
11908
11909 2011-08-31  Bruno Haible  <bruno@clisp.org>
11910
11911         freopen: Documentation.
11912         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
11913         name.
11914         Reported by Claudio Bley <claudio.bley@gmail.com>.
11915
11916 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
11917
11918         freopen: Don't crash if the filename argument is NULL.
11919         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
11920         NULL.
11921
11922 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11923
11924         openat: work around AIX 7.1 fstatat bug
11925         Problem reported by Kevin Brott for GNU tar, in the thread containing
11926         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
11927         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
11928         FSTATAT_ST_SIZE_ETC_BROKEN.
11929         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
11930         rpl_fstatat.
11931         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
11932         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
11933         AC_CHECK_FUNCS_ONCE for fstatat.
11934         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
11935         fchmodat, mkdirat, openat and unlinkat.
11936
11937 2011-08-30  Bruno Haible  <bruno@clisp.org>
11938
11939         Avoid endless recursions if config.h includes some header files.
11940         * lib/fopen.c (__need_FILE): Define already before including config.h.
11941         * lib/freopen.c (__need_FILE): Likewise.
11942         * lib/open.c (__need_system_fcntl_h): Likewise.
11943         * lib/stat.c (__need_system_sys_stat_h): Likewise.
11944         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
11945         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11946
11947 2011-08-25  Karl Berry  <karl@gnu.org>
11948
11949         * config/srclist.txt (ylwrap): new try.
11950         * build-aux/ylwrap: new file.
11951
11952 2011-08-23  Bruno Haible  <bruno@clisp.org>
11953
11954         tmpdir: Use a good default directory on native Windows.
11955         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
11956         (P_tmpdir): Default to _P_tmpdir on native Windows.
11957         (path_search): On native Windows, try the value returned by GetTempPath
11958         before trying P_tmpdir.
11959         * modules/tmpdir (Depends-on): Add pathmax.
11960         Suggested by John Darrington <john@darrington.wattle.id.au>.
11961
11962 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
11963
11964         doc: fix typo in README-release
11965         * top/README-release: Capitalize first word of a sentence.
11966
11967 2011-08-19  Jim Meyering  <meyering@redhat.com>
11968
11969         fts: do not exhaust memory when processing million-entry directories
11970         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
11971         directory would require about 256*N bytes of memory.  Thus, it was
11972         easy to construct a directory too large to be processed by any of
11973         those tools.  With this change, fts' maximum memory utilization is
11974         now limited to around 30MB.
11975         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
11976         (fts_read): When we've processed the final entry (i.e., when
11977         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
11978         using the parent entry to read any remaining entries.  Dispatch
11979         depending on what fts_build returns:
11980         - NULL+stop, aka failure: stop
11981         - NULL otherwise: move up in the dir hierarchy
11982         - non-NULL: handle this new entry
11983         (fts_build): Declare and use new local, continue_readdir.
11984         Prepare to be called from fts_read, when the entries
11985         from a partially-read directory have just been exhausted.
11986         In that case, we'll skip the opendir and instead use the parent's
11987         fts_dirp and derive dir_fd from that.
11988         Finally, in the readdir loop, if we read max_entries entries,
11989         exit the loop ensuring *not* to call closedir.  This is required
11990         so that fts_dirp can be reused on a subsequent call.
11991         Prompted by Ben England's report of memory exhaustion in find
11992         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
11993
11994         maint: fts: move decl of `dp' down into while loop; split a long line
11995         * lib/fts.c (fts_build): No semantic change.
11996
11997         fts: add/use new struct member, fts_dirp
11998         We are about to use this to manage any directory with
11999         too many entries to read all of them into memory at once.
12000         To do that, we'll need to save the DIR* pointer in each
12001         affected FTSENT struct.
12002         * lib/fts_.h: Include <dirent.h>.
12003         (struct FTSENT) [fts_dirp]: New member.
12004         * lib/fts.c (closedir_and_clear): Define.
12005         Use it in place of closedir so that we are sure to
12006         clear the new fts_dirp member when done with it.
12007         (fts_alloc): Initialize the new member.
12008         (fts_lfree): Free, if needed.
12009
12010         maint: fts: give __opendir2 a new parameter and rename
12011         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
12012         than surreptitiously using sole caller's "dir_fd".
12013         (fts_opendir): Rename from __opendir2.
12014
12015         maint: fts.c: remove __opendir2's now-unused parameter, oflag
12016         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
12017
12018         maint: fts.c: correct off-by-one indentation
12019         * lib/fts.c (fts_build): Correct indentation, change style
12020         of a couple of block comments, and bracing style.
12021
12022         maint: fts.c: move __opendir2 #define "up" out of function body
12023         * lib/fts.c (__opendir2): Move "up".  No semantic change.
12024
12025         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
12026         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
12027         out for a long time and besides was useful only on BSD systems.
12028
12029 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
12030
12031         regex: port to Stratus OpenVOS
12032         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
12033         define to empty, rather than attempting nonportable optimizations.
12034         Problem reported by Paul Green in:
12035         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
12036         and fix suggested by Eric Blake in:
12037         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
12038
12039 2011-08-17  Eric Blake  <eblake@redhat.com>
12040
12041         getcwd: fix test failures on mingw
12042         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
12043         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
12044         test if long directory cannot be created, and allow mingw errno.
12045
12046         getcwd-lgpl: fix m4 to match relaxed test for BSD
12047         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
12048         (gl_FUNC_GETCWD_SIGNATURE): New macro.
12049         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
12050         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
12051         signature problem.
12052
12053         getcwd: fix compilation on mingw64
12054         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
12055         getcwd.
12056         Reported by Marc-André Lureau.
12057
12058         pipe2: silence compiler warning
12059         * lib/pipe2.c (pipe2): Hide label if it is not used.
12060
12061 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
12062
12063         relocatable-prog: fix link error
12064         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
12065         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
12066         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
12067         into modules/relocatable-lib without noticing that
12068         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
12069         also needs to build relocatable.c.
12070
12071 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
12072
12073         getaddrinfo: fix sh typo in gai_strerrorA decl checking
12074         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
12075         shell code: it contained a 'break' that was not in a loop.
12076         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
12077         via a shell-language loop; this may have been true in old Autoconf
12078         versions, but it's not true in Autoconf 2.68.  I found this bug
12079         when testing coreutils git on Solaris 8, whose shell complains
12080         about the syntax error.
12081
12082 2011-08-12  Simon Josefsson  <simon@josefsson.org>
12083
12084         * lib/base64.c: Fix comment to reference RFC 4648.
12085         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
12086         <gvtulder@gmail.com>.
12087
12088 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
12089
12090         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
12091
12092         po/Makefile.in.in: fix make -q problem
12093         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
12094         rule, since there's no file named 'check-macro-version' and its
12095         use as a file breaks make -q.
12096         (all): Don't depend on check-macro-version.
12097         (CHECK_MACRO_VERSION): New macro.
12098         (stamp-po): Use it.
12099
12100         configmake: fix make -q problem
12101         * modules/configmake (configmake.h): Update configmake.h's time stamp
12102         even if the file does not change.  Otherwise, 'make -q' fails.
12103         Problem reported by Simon Josefsson in
12104         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
12105
12106 2011-08-11  Jim Meyering  <meyering@redhat.com>
12107
12108         git-version-gen: correct the advice in a comment
12109         * build-aux/git-version-gen: Correct comment.
12110         Don't recommend to list .tarball-version in .gitignore.
12111
12112 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12113
12114         base64: fix off-by-one buffer size bug
12115         Problem and (trivial) fix reported by Gijs van Tulder in
12116         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
12117         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
12118         * tests/test-base64.c (main): Catch the bug.
12119
12120 2011-08-10  Eric Blake  <eblake@redhat.com>
12121
12122         closein: correct comments
12123         * lib/closein.c (close_stdin): Improve comments.
12124
12125 2011-08-09  Bruno Haible  <bruno@clisp.org>
12126
12127         More tests for 'fseeko'.
12128         * tests/test-fseeko3.c: New file, from Eric Blake.
12129         * tests/test-fseeko3.sh: New file.
12130         * modules/fseeko-tests (Files): Add them.
12131         (TESTS): Add test-fseeko3.sh.
12132         (check_PROGRAMS): Add test-fseeko3.
12133
12134 2011-08-09  Eric Blake  <eblake@redhat.com>
12135
12136         fseeko: remove unneeded hack
12137         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
12138
12139         fseeko: fix bug on glibc
12140         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
12141         Reported by John W. Eaton.
12142
12143 2011-08-08  Bruno Haible  <bruno@clisp.org>
12144
12145         unictype/base: Fix interoperability with preinstalled libunistring.
12146         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
12147         Reported by Simon Josefsson.
12148
12149 2011-08-08  Bruno Haible  <bruno@clisp.org>
12150
12151         iswblank: Detect declaration correctly.
12152         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
12153         AC_CHECK_DECLS invocation.
12154
12155 2011-08-08  Bruno Haible  <bruno@clisp.org>
12156
12157         tcgetsid: Detect declaration correctly.
12158         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
12159         AC_CHECK_DECLS invocation.
12160         Reported by Simon Josefsson.
12161
12162 2011-08-08  Eric Blake  <eblake@redhat.com>
12163
12164         largefile: fix typo that regressed large file support
12165         * modules/largefile (configure.ac-early): Fix section name.
12166
12167 2011-08-06  Karl Berry  <karl@gnu.org>
12168
12169         * MODULES.html.sh (func_all_files): _Noreturn is no longer
12170         a separate module.
12171
12172 2011-08-05  Simon Josefsson  <simon@josefsson.org>
12173
12174         openat: Fix warnings and commens when building unlinkat.c on Hurd.
12175         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
12176         get prototype for free.
12177
12178 2011-08-04  Bruno Haible  <bruno@clisp.org>
12179
12180         Tests for module 'pathmax'.
12181         * modules/pathmax-tests: New file.
12182         * tests/test-pathmax.c: New file.
12183
12184         canonicalize-lgpl: Support larger filenames on the Hurd.
12185         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
12186         Reported by Paul Eggert.
12187
12188         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
12189         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
12190         * lib/chdir-long.h: Include pathmax.h.
12191         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
12192         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
12193         (PATH_MAX): Remove code that is done by pathmax.h.
12194         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
12195         * lib/tmpfile.c: Add a comment.
12196         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
12197         * modules/chdir-long (Depends-on): Add pathmax.
12198         * modules/getcwd (Depends-on): Add pathmax.
12199         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
12200         is not defined.
12201         * doc/posix-headers/limits.texi: Mention the pathmax module.
12202         * NEWS: Mention the change.
12203
12204 2011-08-02  Bruno Haible  <bruno@clisp.org>
12205
12206         pthread_sigmask: Actually use results of gl_THREADLIB.
12207         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
12208         gl_THREADLIB, not gl_[]THREADLIB.
12209         Reported by Eric Blake.
12210
12211 2011-08-02  Jim Meyering  <meyering@redhat.com>
12212
12213         maint.mk: relax the default _gl_TS_function_match regexp
12214         * top/maint.mk (_gl_TS_function_match): Don't require at least one
12215         space between function name and "(" in an "extern" declaration.
12216         That would fail to match a decl with no space there: extern void foo();
12217
12218 2011-07-31  Iain Nicol  <iain@thenicols.net>
12219
12220         git-version-gen: document that EXTRA_DIST must include .version
12221         * build-aux/git-version-gen: In the how-to-use comment, document
12222         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
12223         will fail when run from an unpacked distribution tarball.
12224
12225 2011-08-01  Bruno Haible  <bruno@clisp.org>
12226
12227         wctype-h: Fix last change.
12228         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
12229         REPLACE_TOWLOWER to 0.
12230         Reported by Sam Steingold <sds@gnu.org>.
12231
12232 2011-07-31  Bruno Haible  <bruno@clisp.org>
12233
12234         frexpl: Update autoconf test.
12235         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
12236         according to changes of 2011-06-20.
12237
12238 2011-07-31  Bruno Haible  <bruno@clisp.org>
12239
12240         sys_utsname: Add support for Minix.
12241         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
12242         <sys/utsname.h>.
12243         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12244         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
12245
12246 2011-07-31  Bruno Haible  <bruno@clisp.org>
12247
12248         strings: Add support for Minix.
12249         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
12250         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
12251         * doc/posix-headers/strings.texi: Document the Minix problem.
12252
12253 2011-07-31  Bruno Haible  <bruno@clisp.org>
12254
12255         wctype-h: Add support for Minix.
12256         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
12257         REPLACE_TOWLOWER.
12258         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
12259         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
12260         REPLACE_ISWCNTRL.
12261
12262 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
12263
12264         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
12265         This is a performance improvement for 64-bit hosts: it causes the
12266         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
12267
12268 2011-07-31  Bruno Haible  <bruno@clisp.org>
12269
12270         stdioext: Add support for Minix.
12271         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
12272         * lib/fpurge.c (fpurge): Likewise.
12273         * lib/freadahead.c (freadahead): Likewise.
12274         * lib/freadable.c (freadable): Likewise.
12275         * lib/freading.c (freading): Likewise.
12276         * lib/freadptr.c (freadptr): Likewise.
12277         * lib/freadseek.c (freadptrinc): Likewise.
12278         * lib/fseeko.c (rpl_fseeko): Likewise.
12279         * lib/fseterr.c (fseterr): Likewise.
12280         * lib/fwritable.c (fwritable): Likewise.
12281         * lib/fwriting.c (fwriting): Likewise.
12282         * lib/fflush.c (clear_ungetc_buffer): Update comment.
12283         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
12284
12285 2011-07-31  Bruno Haible  <bruno@clisp.org>
12286
12287         errno: Port to Minix.
12288         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
12289         ECONNABORTED are defined.
12290         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
12291         GNULIB_defined_ECONNABORTED): New macros.
12292         * lib/strerror-override.h (strerror_override): Test also
12293         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
12294         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
12295         ECONNABORTED.
12296         * doc/posix-headers/errno.texi: Mention the Minix problem.
12297
12298 2011-07-31  Bruno Haible  <bruno@clisp.org>
12299
12300         Work around declaration collisions on Minix.
12301         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
12302         defined, set REPLACE_MBSINIT.
12303         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
12304         defined, set REPLACE_MBRTOWC.
12305         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
12306         set REPLACE_MBRLEN.
12307         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
12308         defined, set REPLACE_MBSRTOWCS.
12309         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
12310         defined, set REPLACE_WCRTOMB.
12311         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
12312         defined, set REPLACE_WCSRTOMBS.
12313
12314 2011-07-31  Bruno Haible  <bruno@clisp.org>
12315
12316         Add support for Minix with ACK compiler.
12317         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
12318         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
12319         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
12320
12321 2011-07-31  Bruno Haible  <bruno@clisp.org>
12322
12323         Documentation about Minix.
12324         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
12325         * doc/glibc-headers/*.texi: Likewise.
12326         * doc/posix-functions/*.texi: Likewise.
12327         * doc/glibc-functions/*.texi: Likewise.
12328
12329 2011-07-31  Bruno Haible  <bruno@clisp.org>
12330
12331         snippet/warn-on-use: Fix indentation.
12332         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
12333
12334 2011-07-25  Jim Meyering  <meyering@redhat.com>
12335
12336         tests: test-update-copyright.sh: remove unnecessary "rm" commands
12337         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
12338         commands.
12339
12340 2011-07-27  Jim Meyering  <meyering@redhat.com>
12341
12342         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
12343         * top/maint.mk (gl_extract_significant_defines_): Now that
12344         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
12345         gnulib/lib/signal.in.h, and now that we recommend to
12346         define-if-undefined those two symbols in application code,
12347         we must filter them out of the "significant" list.
12348         This avoids a "make syntax-check" failure in coreutils.
12349
12350 2011-07-26  Eric Blake  <eblake@redhat.com>
12351
12352         warnings: add comments about previous patch
12353         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
12354         * m4/include_next.m4: Likewise.
12355         * m4/warn-on-use.m4: Likewise.
12356         * m4/warnings.m4: Likewise, and simplify use.
12357         Suggested by Stefano Lattarini.
12358
12359         include-next, warnings: support older autoconf
12360         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
12361         AS_VAR_PUSHDEF in a way that works with older autoconf.
12362         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
12363         Reported by Daniel P. Berrange.
12364
12365 2011-07-25  Bruno Haible  <bruno@clisp.org>
12366
12367         fseek, ftell: Fix doc.
12368         * doc/posix-functions/fseek.texi: Reword statement about
12369         AC_SYS_LARGEFILE.
12370         * doc/posix-functions/ftell.texi: Likewise.
12371
12372 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12373             Bruno Haible  <bruno@clisp.org>
12374
12375         Add dependencies to the 'largefile' module.
12376         * modules/fopen (Depends-on): Add 'largefile'.
12377         * modules/freopen (Depends-on): Likewise.
12378         * modules/fseeko (Depends-on): Likewise.
12379         * modules/ftello (Depends-on): Likewise.
12380         * modules/glob (Depends-on): Likewise.
12381         * modules/lseek (Depends-on): Likewise.
12382         * modules/lstat (Depends-on): Likewise.
12383         * modules/mkostemp (Depends-on): Likewise.
12384         * modules/mkostemps (Depends-on): Likewise.
12385         * modules/mkstemp (Depends-on): Likewise.
12386         * modules/mkstemps (Depends-on): Likewise.
12387         * modules/open (Depends-on): Likewise.
12388         * modules/openat (Depends-on): Likewise.
12389         * modules/pread (Depends-on): Likewise.
12390         * modules/pwrite (Depends-on): Likewise.
12391         * modules/scandir (Depends-on): Likewise.
12392         * modules/stat (Depends-on): Likewise.
12393         * modules/tmpfile (Depends-on): Likewise.
12394         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
12395         since the containing module now depends on the largefile module.
12396         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
12397         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
12398         off_t is fixed by gnulib.
12399         * doc/posix-functions/freopen.texi: Likewise.
12400         * doc/posix-functions/fseeko.texi: Likewise.
12401         * doc/posix-functions/fstatat.texi: Likewise.
12402         * doc/posix-functions/ftello.texi: Likewise.
12403         * doc/posix-functions/glob.texi: Likewise.
12404         * doc/posix-functions/lseek.texi: Likewise.
12405         * doc/posix-functions/lstat.texi: Likewise.
12406         * doc/posix-functions/mkstemp.texi: Likewise.
12407         * doc/posix-functions/open.texi: Likewise.
12408         * doc/posix-functions/openat.texi: Likewise.
12409         * doc/posix-functions/pread.texi: Likewise.
12410         * doc/posix-functions/pwrite.texi: Likewise.
12411         * doc/posix-functions/scandir.texi: Likewise.
12412         * doc/posix-functions/stat.texi: Likewise.
12413         * doc/posix-functions/tmpfile.texi: Likewise.
12414         * doc/glibc-functions/mkostemp.texi: Likewise.
12415         * doc/glibc-functions/mkostemps.texi: Likewise.
12416         * doc/glibc-functions/mkstemps.texi: Likewise.
12417
12418 2011-07-25  Bruno Haible  <bruno@clisp.org>
12419
12420         fcntl: Move AC_LIBOBJ invocation to module description.
12421         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
12422         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
12423
12424         fcntl: Remove call-in from fchdir.m4.
12425         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
12426         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
12427
12428         dup3: Remove potential call-in from fchdir.m4.
12429         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
12430         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
12431
12432         dup2: Move AC_LIBOBJ invocation to module description.
12433         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
12434         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
12435         Don't invoke AC_LIBOBJ.
12436         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
12437
12438         dup2: Remove call-in from fchdir.m4.
12439         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
12440         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
12441
12442         fclose: Move AC_LIBOBJ invocation to module description.
12443         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
12444         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
12445         to 1.
12446         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
12447
12448         fclose: Remove call-in from close.m4.
12449         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
12450         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
12451
12452         close: Move AC_LIBOBJ invocation to module description.
12453         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
12454         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
12455         1.
12456         * modules/close (configure.ac): Invoke AC_LIBOBJ.
12457
12458         close: Remove call-in from fchdir.m4.
12459         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
12460         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
12461
12462         open: Move AC_LIBOBJ invocation to module description.
12463         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
12464         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
12465         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
12466
12467         open: Remove call-in from fchdir.m4.
12468         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
12469         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
12470
12471         fchdir: Start to remove gl_REPLACE_* idiom.
12472         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
12473         (gl_FUNC_FCHDIR): Invoke it.
12474
12475 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12476
12477         * lib/ftell.c (ftell): Comment out cast.
12478
12479         close: use gl_REPLACE_FCLOSE only if defined
12480         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
12481         is defined.  The close module doesn't depend on the fclose module
12482         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
12483         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
12484         I reproduced the problem with "./gnulib-tool --test close sys_socket".
12485
12486 2011-07-24  Jim Meyering  <meyering@redhat.com>
12487
12488         test-select.h: avoid warning when using gcc's -Wmissing-declarations
12489         * tests/test-select.h (test_function): Declare as "static".
12490
12491 2011-07-24  Bruno Haible  <bruno@clisp.org>
12492
12493         doc: Mention the effects of AC_SYS_LARGEFILE.
12494         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
12495         on this function.
12496         * doc/posix-functions/aio_error.texi: Likewise.
12497         * doc/posix-functions/aio_fsync.texi: Likewise.
12498         * doc/posix-functions/aio_read.texi: Likewise.
12499         * doc/posix-functions/aio_return.texi: Likewise.
12500         * doc/posix-functions/aio_suspend.texi: Likewise.
12501         * doc/posix-functions/aio_write.texi: Likewise.
12502         * doc/posix-functions/fgetpos.texi: Likewise.
12503         * doc/posix-functions/fopen.texi: Likewise.
12504         * doc/posix-functions/freopen.texi: Likewise.
12505         * doc/posix-functions/fsetpos.texi: Likewise.
12506         * doc/posix-functions/fstatvfs.texi: Likewise.
12507         * doc/posix-functions/ftruncate.texi: Likewise.
12508         * doc/posix-functions/ftw.texi: Likewise.
12509         * doc/posix-functions/getrlimit.texi: Likewise.
12510         * doc/posix-functions/glob.texi: Likewise.
12511         * doc/posix-functions/lio_listio.texi: Likewise.
12512         * doc/posix-functions/lockf.texi: Likewise.
12513         * doc/posix-functions/mkstemp.texi: Likewise.
12514         * doc/posix-functions/mmap.texi: Likewise.
12515         * doc/posix-functions/nftw.texi: Likewise.
12516         * doc/posix-functions/openat.texi: Likewise.
12517         * doc/posix-functions/opendir.texi: Likewise.
12518         * doc/posix-functions/posix_fadvise.texi: Likewise.
12519         * doc/posix-functions/posix_fallocate.texi: Likewise.
12520         * doc/posix-functions/pread.texi: Likewise.
12521         * doc/posix-functions/pwrite.texi: Likewise.
12522         * doc/posix-functions/readdir.texi: Likewise.
12523         * doc/posix-functions/readdir_r.texi: Likewise.
12524         * doc/posix-functions/rewinddir.texi: Likewise.
12525         * doc/posix-functions/scandir.texi: Likewise.
12526         * doc/posix-functions/seekdir.texi: Likewise.
12527         * doc/posix-functions/setrlimit.texi: Likewise.
12528         * doc/posix-functions/statvfs.texi: Likewise.
12529         * doc/posix-functions/telldir.texi: Likewise.
12530         * doc/posix-functions/tmpfile.texi: Likewise.
12531         * doc/posix-functions/truncate.texi: Likewise.
12532         * doc/glibc-functions/fallocate.texi: Likewise.
12533         * doc/glibc-functions/fstatfs.texi: Likewise.
12534         * doc/glibc-functions/fts_children.texi: Likewise.
12535         * doc/glibc-functions/fts_read.texi: Likewise.
12536         * doc/glibc-functions/getdirentries.texi: Likewise.
12537         * doc/glibc-functions/mkostemp.texi: Likewise.
12538         * doc/glibc-functions/mkostemps.texi: Likewise.
12539         * doc/glibc-functions/mkstemps.texi: Likewise.
12540         * doc/glibc-functions/preadv.texi: Likewise.
12541         * doc/glibc-functions/pwritev.texi: Likewise.
12542         * doc/glibc-functions/sendfile.texi: Likewise.
12543         * doc/glibc-functions/statfs.texi: Likewise.
12544
12545 2011-07-24  Bruno Haible  <bruno@clisp.org>
12546
12547         doc: Fix typo.
12548         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
12549
12550 2011-07-24  Bruno Haible  <bruno@clisp.org>
12551
12552         doc: Mention fsusage.
12553         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
12554
12555 2011-07-24  Bruno Haible  <bruno@clisp.org>
12556
12557         doc: Mention new glibc headers and functions.
12558         * doc/glibc-headers/gshadow.texi: New file.
12559         * doc/glibc-functions/endsgent.texi: New file.
12560         * doc/glibc-functions/fgetsgent.texi: New file.
12561         * doc/glibc-functions/fgetsgent_r.texi: New file.
12562         * doc/glibc-functions/getsgent.texi: New file.
12563         * doc/glibc-functions/getsgent_r.texi: New file.
12564         * doc/glibc-functions/getsgnam.texi: New file.
12565         * doc/glibc-functions/getsgnam_r.texi: New file.
12566         * doc/glibc-functions/putsgent.texi: New file.
12567         * doc/glibc-functions/setsgent.texi: New file.
12568         * doc/glibc-functions/sgetsgent.texi: New file.
12569         * doc/glibc-functions/sgetsgent_r.texi: New file.
12570         * doc/glibc-functions/malloc_info.texi: New file.
12571         * doc/glibc-functions/preadv.texi: New file.
12572         * doc/glibc-functions/pwritev.texi: New file.
12573         * doc/glibc-functions/register_printf_modifier.texi: New file.
12574         * doc/glibc-functions/register_printf_specifier.texi: New file.
12575         * doc/glibc-functions/register_printf_type.texi: New file.
12576         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
12577         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
12578         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
12579         * doc/glibc-functions/pthread_getname_np.texi: New file.
12580         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
12581         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
12582         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
12583         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
12584         * doc/glibc-functions/pthread_setname_np.texi: New file.
12585         * doc/glibc-functions/pthread_sigqueue.texi: New file.
12586         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
12587         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
12588         * doc/glibc-functions/qsort_r.texi: New file.
12589         * doc/glibc-functions/quick_exit.texi: New file.
12590         * doc/glibc-functions/syncfs.texi: New file.
12591         * doc/gnulib.texi: Include them.
12592         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
12593         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
12594         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
12595         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
12596         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
12597         * doc/glibc-functions/execvpe.texi: Likewise.
12598
12599 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12600
12601         ftell: don't include <unistd.h>
12602         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
12603         guaranteed to define off_t, and the ftell module depends on the
12604         stdio module.
12605
12606         ftell: do not assume wraparound signed arithmetic
12607         * lib/ftell.c: Include <limits.h>.
12608         (ftell): Don't assume wraparound signed arithmetic.
12609
12610 2011-07-24  Bruno Haible  <bruno@clisp.org>
12611
12612         close: No longer depend on module 'fclose'.
12613         * modules/close (Depends-on): Remove fclose.
12614         * NEWS: Mention the change.
12615         Suggested by Sam Steingold <sds@gnu.org>.
12616
12617 2011-07-24  Bruno Haible  <bruno@clisp.org>
12618
12619         fsusage: Enable large volume support on AIX >= 5.2.
12620         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
12621         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
12622         instead of STAT_STATVFS.
12623         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
12624
12625         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
12626         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
12627         f_blocks field only on MacOS X.
12628
12629         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
12630         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
12631         * modules/fsusage (Depends-on): Add largefile.
12632
12633 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12634
12635         * README: Modernize discussion of signed integers.
12636         Assuming overflow wraparound is no longer safe.
12637         Mention ones' complement and signed magnitude.
12638
12639 2011-07-22  Bruno Haible  <bruno@clisp.org>
12640
12641         select tests, pselect tests: Refactor.
12642         * tests/test-select.h: New file, extracted from tests/test-select.c.
12643         (select_fn): New type.
12644         (test, do_select, do_select_nowait, do_select_wait, test_tty,
12645         test_connect_first, test_accept_first, test_pair, test_socket_pair,
12646         test_pipe): Add my_select argument.
12647         (test_function): Renamed from main. Add my_select argument.
12648         * tests/test-select.c: Move most code to tests/test-select.h. Include
12649         test-select.h.
12650         * modules/select-tests (Files): Add tests/test-select.h.
12651         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
12652         (my_select, main): New functions.
12653         * modules/pselect-tests (Files): Add tests/test-select.h,
12654         tests/macros.h, tests/signature.h.
12655         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
12656         (configure.ac): Check for <sys/wait.h>.
12657
12658 2011-07-22  Bruno Haible  <bruno@clisp.org>
12659
12660         sys_select tests: Check the signature of FD_*.
12661         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
12662         signature tests from here...
12663         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
12664         here.
12665         * modules/sys_select-tests (Files): Add tests/signature.h.
12666
12667 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12668
12669         largefile: new module, replacing large-inode
12670         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
12671         * MODULES.html.sh: Add largefile, remove large-inode.
12672         * modules/largefile, m4/largefile.m4: New files.
12673         * modules/large-inode, m4/large-inode.m4: Remove.
12674
12675         fsusage: port to MacOS X 10.7 with 4 TiB file systems
12676         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
12677         implementations that use only 32 bits to count blocks.
12678         On typical hosts with 1024-byte blocks, this fails with file
12679         systems as small as 4 TiB.  Problem reported by Herb Wartens
12680         <http://debbugs.gnu.org/9140> and this should also fix a similar
12681         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
12682
12683         large-inode: New module
12684         * MODULES.html.sh: Add it.
12685         * modules/large-inode, m4/large-inode.m4: New files.
12686
12687         extensions: Enable extensions on MacOS X 10.5 and later.
12688         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
12689
12690 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
12691
12692         file-has-acl: use acl_extended_file_nofollow if available
12693         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
12694         (acl_extended_file): New macro.
12695         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
12696         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
12697
12698 2011-07-21  Bruno Haible  <bruno@clisp.org>
12699
12700         Declare system functions in a way that works with C++.
12701         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
12702         declare fdopendir as extern "C".
12703         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
12704         declare frexpl as extern "C".
12705         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
12706         declare gai_strerror as extern "C".
12707         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
12708         programs, declare gai_strerror as extern "C".
12709         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
12710         declare getlogin_r as extern "C".
12711         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
12712         as extern "C".
12713         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
12714         declare ldexpl as extern "C".
12715         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
12716         as extern "C".
12717         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
12718         program, declare getmntinfo as extern "C".
12719         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
12720         stpncpy as extern "C".
12721         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
12722         program, declare __xpg_strerror_r as extern "C".
12723         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
12724         strndup as extern "C".
12725         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
12726         declare memset and bzero as extern "C".
12727         Reported by Sam Steingold <sds@gnu.org>.
12728
12729 2011-07-12  Jim Meyering  <meyering@redhat.com>
12730
12731         maint.mk: prohibit inclusion of "verify.h" without use
12732         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
12733
12734 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12735
12736         timer-time: A new module to check for timer_settime()
12737         * m4/timer_time.m4: Check for the posix function.
12738         * modules/timer-time: Add the new module.
12739         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
12740         Mention it.
12741
12742 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
12743             Bruno Haible  <bruno@clisp.org>
12744
12745         pthread_sigmask: assume POSIX threads if --avoid=threadlib
12746         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
12747         not defined, assume POSIX threads and look for pthread_sigmask in
12748         $LIBS, without changing $CPPFLAGS.
12749
12750 2011-07-19  Bruno Haible  <bruno@clisp.org>
12751
12752         strstr: Update cross-compilation guess.
12753         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
12754         CPUs, guess no, in view of glibc
12755         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
12756         Suggested by Eric Blake. Reported by Reuben Thomas.
12757
12758 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12759
12760         getopt-gnu: suppress core dumps from detection code
12761         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
12762         to suppress core dumps that may well occur on glibc systems.
12763         * modules/getopt-gnu: Depend on nocrash.
12764
12765 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
12766
12767         pthread_sigmask: ensure usleep is declared
12768         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
12769         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
12770
12771 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12772
12773         doc: Document NonStop portability issues.
12774         * doc/posix-functions/sigaction.texi (sigaction):
12775         * doc/posix-headers/signal.texi (signal.h):
12776         Document NonStop.  See Joachim Schmitz in
12777         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
12778
12779 2011-07-15  Bruno Haible  <bruno@clisp.org>
12780
12781         ffsl, ffsll: Avoid unportable behaviour.
12782         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
12783
12784 2011-07-15  Bruno Haible  <bruno@clisp.org>
12785
12786         ffs: More tests.
12787         * tests/test-ffs.c (NBITS): New macro.
12788         (main): Add more tests.
12789         * tests/test-ffsl.c (NBITS): New macro.
12790         (main): Add more tests.
12791         * tests/test-ffsll.c (NBITS): New macro.
12792         (main): Add more tests.
12793
12794 2011-07-15  Eric Blake  <eblake@redhat.com>
12795
12796         ffsl, ffsll: new modules
12797         * modules/ffsl: New file.
12798         * modules/ffsll: Likewise.
12799         * m4/ffsl.m4: Likewise.
12800         * m4/ffsll.m4: Likewise.
12801         * lib/ffsl.c: Likewise.
12802         * lib/ffsl.h: Likewise.
12803         * lib/ffsll.c: Likewise.
12804         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
12805         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
12806         * modules/string (Makefile.am): Substitute witnesses.
12807         * lib/strings.in.h (ffsl, ffsll): Declare.
12808         * modules/ffsl-tests: New test file.
12809         * modules/ffsll-tests: Likewise.
12810         * tests/test-ffsl.c: Likewise.
12811         * tests/test-ffsll.c: Likewise.
12812         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12813         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
12814         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
12815
12816         ffs: fix m4 prerequisite
12817         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
12818
12819         ffs: avoid undefined behavior
12820         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
12821         * tests/test-ffs.c (naive, main): Avoid signed shifts.
12822         Reported by Bruno Haible.
12823
12824 2011-07-12  Bruno Haible  <bruno@clisp.org>
12825
12826         pthread_sigmask: Rely on module 'threadlib'.
12827         * modules/pthread_sigmask (Depends-on): Add threadlib.
12828         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
12829         is defined.
12830
12831 2011-07-12  Bruno Haible  <bruno@clisp.org>
12832
12833         regex: Depend on module 'strcase'.
12834         * modules/regex (Depends-on): Add strcase, for strcasecmp().
12835
12836 2011-07-12  Jim Meyering  <meyering@redhat.com>
12837
12838         warn-on-use: fix typo in file name
12839         * modules/snippet/warn-on-use (Files): Correct file name:
12840         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
12841
12842 2011-07-12  Bruno Haible  <bruno@clisp.org>
12843
12844         strings: Document module.
12845         * doc/posix-headers/strings.texi: Mention module 'strings'.
12846
12847 2011-07-12  Bruno Haible  <bruno@clisp.org>
12848
12849         Rename module '_Noreturn' to 'snippet/_Noreturn'.
12850         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
12851         (Files, Makefile.am): Update.
12852         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
12853         * modules/stdlib (Depends-on): Update.
12854
12855 2011-07-12  Bruno Haible  <bruno@clisp.org>
12856
12857         * NEWS: Mention the changes.
12858
12859         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
12860         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
12861         (Files, Makefile.am): Update.
12862         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
12863         * modules/arpa_inet (Depends-on): Update.
12864         * modules/ctype (Depends-on): Update.
12865         * modules/dirent (Depends-on): Update.
12866         * modules/fcntl-h (Depends-on): Update.
12867         * modules/glob (Depends-on): Update.
12868         * modules/iconv-h (Depends-on): Update.
12869         * modules/inttypes-incomplete (Depends-on): Update.
12870         * modules/langinfo (Depends-on): Update.
12871         * modules/locale (Depends-on): Update.
12872         * modules/math (Depends-on): Update.
12873         * modules/netdb (Depends-on): Update.
12874         * modules/poll-h (Depends-on): Update.
12875         * modules/pty (Depends-on): Update.
12876         * modules/search (Depends-on): Update.
12877         * modules/signal (Depends-on): Update.
12878         * modules/spawn (Depends-on): Update.
12879         * modules/stdio (Depends-on): Update.
12880         * modules/stdlib (Depends-on): Update.
12881         * modules/string (Depends-on): Update.
12882         * modules/strings (Depends-on): Update.
12883         * modules/sys_file (Depends-on): Update.
12884         * modules/sys_ioctl (Depends-on): Update.
12885         * modules/sys_select (Depends-on): Update.
12886         * modules/sys_socket (Depends-on): Update.
12887         * modules/sys_stat (Depends-on): Update.
12888         * modules/sys_time (Depends-on): Update.
12889         * modules/sys_times (Depends-on): Update.
12890         * modules/sys_utsname (Depends-on): Update.
12891         * modules/sys_wait (Depends-on): Update.
12892         * modules/termios (Depends-on): Update.
12893         * modules/time (Depends-on): Update.
12894         * modules/unistd (Depends-on): Update.
12895         * modules/wchar (Depends-on): Update.
12896         * modules/wctype-h (Depends-on): Update.
12897         * MODULES.html.sh (Support for building libraries and executables):
12898         Update.
12899
12900         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
12901         * modules/snippet/unused-parameter: Renamed from
12902         modules/unused-parameter.
12903         (Files, Makefile.am): Update.
12904         * build-aux/snippet/unused-parameter.h: Renamed from
12905         build-aux/unused-parameter.h.
12906         * modules/selinux-h (Depends-on): Update.
12907         * modules/unistr/base (Depends-on): Update.
12908         * MODULES.html.sh (Core language properties): Update.
12909
12910         Rename module 'link-warning' to 'snippet/link-warning'.
12911         * modules/snippet/link-warning: Renamed from modules/link-warning.
12912         (Files, Makefile.am): Update.
12913         * build-aux/snippet/link-warning.h: Renamed from
12914         build-aux/link-warning.h.
12915         * MODULES.html.sh (Support for building libraries and executables):
12916         Update.
12917
12918         Rename module 'c++defs' to 'snippet/c++defs'.
12919         * modules/snippet/c++defs: Renamed from modules/c++defs.
12920         (Files, Makefile.am): Update.
12921         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
12922         * modules/arpa_inet (Depends-on): Update.
12923         * modules/ctype (Depends-on): Update.
12924         * modules/dirent (Depends-on): Update.
12925         * modules/fcntl-h (Depends-on): Update.
12926         * modules/glob (Depends-on): Update.
12927         * modules/iconv-h (Depends-on): Update.
12928         * modules/langinfo (Depends-on): Update.
12929         * modules/locale (Depends-on): Update.
12930         * modules/math (Depends-on): Update.
12931         * modules/netdb (Depends-on): Update.
12932         * modules/poll-h (Depends-on): Update.
12933         * modules/pty (Depends-on): Update.
12934         * modules/search (Depends-on): Update.
12935         * modules/signal (Depends-on): Update.
12936         * modules/spawn (Depends-on): Update.
12937         * modules/stdio (Depends-on): Update.
12938         * modules/stdlib (Depends-on): Update.
12939         * modules/string (Depends-on): Update.
12940         * modules/strings (Depends-on): Update.
12941         * modules/sys_ioctl (Depends-on): Update.
12942         * modules/sys_select (Depends-on): Update.
12943         * modules/sys_socket (Depends-on): Update.
12944         * modules/sys_stat (Depends-on): Update.
12945         * modules/sys_time (Depends-on): Update.
12946         * modules/sys_wait (Depends-on): Update.
12947         * modules/termios (Depends-on): Update.
12948         * modules/time (Depends-on): Update.
12949         * modules/unistd (Depends-on): Update.
12950         * modules/wchar (Depends-on): Update.
12951         * modules/wctype-h (Depends-on): Update.
12952
12953         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
12954         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
12955         (Files, Makefile.am): Update.
12956         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
12957         * modules/argv-iter (Depends-on): Update.
12958         * modules/arpa_inet (Depends-on): Update.
12959         * modules/dirent (Depends-on): Update.
12960         * modules/fcntl-h (Depends-on): Update.
12961         * modules/fnmatch (Depends-on): Update.
12962         * modules/getopt-posix (Depends-on): Update.
12963         * modules/glob (Depends-on): Update.
12964         * modules/iconv-h (Depends-on): Update.
12965         * modules/inttypes-incomplete (Depends-on): Update.
12966         * modules/locale (Depends-on): Update.
12967         * modules/math (Depends-on): Update.
12968         * modules/netdb (Depends-on): Update.
12969         * modules/search (Depends-on): Update.
12970         * modules/signal (Depends-on): Update.
12971         * modules/spawn (Depends-on): Update.
12972         * modules/stdio (Depends-on): Update.
12973         * modules/stdlib (Depends-on): Update.
12974         * modules/string (Depends-on): Update.
12975         * modules/strings (Depends-on): Update.
12976         * modules/sys_socket (Depends-on): Update.
12977         * modules/sys_stat (Depends-on): Update.
12978         * modules/sys_time (Depends-on): Update.
12979         * modules/sys_times (Depends-on): Update.
12980         * modules/sys_utsname (Depends-on): Update.
12981         * modules/time (Depends-on): Update.
12982         * modules/unistd (Depends-on): Update.
12983         * modules/wchar (Depends-on): Update.
12984         * MODULES.html.sh (Support for building libraries and executables):
12985         Update.
12986
12987 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12988
12989         Improvements on _Noreturn and related modules.
12990
12991         modules/_Exit-tests: test _Noreturn too
12992         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
12993         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
12994         (main): Use them.
12995
12996         stdnoreturn, stdnoreturn-tests: remove modules
12997         They're not needed here and a bit premature for use elsewhere.  See
12998         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
12999         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
13000         * tests/test-stdnoreturn.c: Remove files.
13001         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
13002         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
13003         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
13004         and using noreturn.
13005         * modules/openat, modules/sigpipe-die, modules/xalloc:
13006         * modules/xmemdup0, modules/xstrtol:
13007         Remove dependency on stdnoreturn.
13008
13009         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
13010         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
13011         Reparenthesize to avoid GCC warning.
13012         Support Microsoft's syntax.
13013         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
13014
13015         _Noreturn-tests: remove module
13016         * modules/_Noreturn-tests: Remove.
13017         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
13018         * tests/test-_Noreturn.c: Remove.
13019         * tests/test-stdnoreturn.c: Merge from the old
13020         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
13021
13022 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
13023
13024         _Noreturn, stdnoreturn, and related modules.
13025
13026         * top/maint.mk: Adjust to new noreturn support.
13027         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
13028         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
13029
13030         xalloc: use stdnoreturn.h
13031         * lib/xalloc.h: Include <stdnoreturn.h>.
13032         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13033         * modules/xalloc (Depends-on): Add stdnoreturn.
13034
13035         xstrtol: use stdnoreturn.h
13036         * lib/xstrtol.h: Include <stdnoreturn.h>.
13037         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13038         * modules/xstrtol (Depends-on): Add stdnoreturn.
13039
13040         xmemdup0: use stdnoreturn.h
13041         * lib/xmemdup0.h: Include <stdnoreturn.h>.
13042         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13043         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
13044
13045         sigpipe-die: use stdnoreturn.h
13046         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
13047         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13048         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
13049
13050         openat: use stdnoreturn.h
13051         * lib/openat.h: Include <stdnoreturn.h>.
13052         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13053         * modules/openat (Depends-on): Add stdnoreturn.
13054
13055         * lib/openat-die.c (openat_save_fail): Modernize comment.
13056
13057         * lib/xalloc-die.c (xalloc_die): Modernize comment.
13058
13059         * lib/glthread/thread.h: Modernize comment.
13060
13061         obstack: use _Noreturn
13062         * lib/obstack.c (__attribute__): Remove macro.
13063         (print_and_abort): Use _Noreturn.
13064
13065         c-stack: use _Noreturn
13066         * lib/c-stack.c (die, overflow_handler, segv_handler):
13067         Use _Noreturn rather than __attribute__((noreturn)).
13068
13069         argmatch-tests, exclude_tests: use _Noreturn
13070         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
13071         Remove.
13072         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
13073
13074         stdlib: use _Noreturn
13075         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
13076         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
13077         * modules/stdlib (Depends-on): Add _Noreturn.
13078         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
13079
13080         stdnoreturn-tests: new module
13081         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
13082
13083         stdnoreturn: new module
13084         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
13085         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
13086
13087         _Noreturn-tests: new module
13088         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
13089
13090         _Noreturn: new module
13091         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
13092         New section, mentioning it.
13093         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
13094
13095         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
13096
13097 2011-07-11  Eric Blake  <eblake@redhat.com>
13098
13099         ffs: new module
13100         * modules/ffs: New file.
13101         * m4/ffs.m4: Likewise.
13102         * lib/ffs.c: Likewise.
13103         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
13104         * modules/strings (Makefile.am): Substitute witness.
13105         (Depends-on): Add c++defs.
13106         * lib/strings.in.h (ffs): Declare.
13107         * modules/ffs-tests: New test file.
13108         * tests/test-ffs.c: Test new module.
13109         * MODULES.html.sh (Integer arithmetic functions): Mention it.
13110         * doc/posix-functions/ffs.texi (ffs): Likewise.
13111
13112         regex: avoid compiler warning
13113         * lib/regex.c (includes): Include <strings.h>, for use of
13114         strcasecmp in regcomp.c.
13115         Reported by Joachim Schmitz.
13116
13117 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
13118
13119         stdint: respect system's intmax_t if INTMAX_MAX
13120         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
13121         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
13122         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
13123         long but int64_t is long long, and where we will clash with the
13124         system intmax_t if we override it.  See
13125         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
13126         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
13127         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
13128         similarly for UINTMAX_C.
13129
13130 2011-07-08  Bruno Haible  <bruno@clisp.org>
13131
13132         pthread_sigmask tests: Avoid a compiler warning.
13133         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
13134         non-zero.
13135
13136         sigprocmask tests: A better way to avoid a compiler warning.
13137         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
13138         (main): Complain if system() returns non-zero.
13139         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
13140
13141 2011-07-08  Bruno Haible  <bruno@clisp.org>
13142
13143         pthread_sigmask: Work around IRIX bug.
13144         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
13145         bug.
13146         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
13147         there may be unblocked pending signals.
13148         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
13149
13150 2011-07-08  Bruno Haible  <bruno@clisp.org>
13151
13152         pthread_sigmask: Work around Cygwin bug.
13153         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
13154         bug.
13155         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
13156         the system's pthread_sigmask function.
13157         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
13158
13159 2011-07-08  Bruno Haible  <bruno@clisp.org>
13160
13161         pthread_sigmask: Work around bug in single-threaded implementation.
13162         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
13163         FreeBSD, HP-UX, Solaris bug.
13164         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
13165         * lib/pthread_sigmask.c: Include <stddef.h>.
13166         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
13167         the system's pthread_sigmask function.
13168         * modules/pthread_sigmask (configure.ac): Invoke
13169         gl_PREREQ_PTHREAD_SIGMASK.
13170         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
13171         HP-UX, Solaris.
13172
13173 2011-07-08  Eric Blake  <eblake@redhat.com>
13174
13175         test-sigprocmask: avoid compiler warning
13176         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
13177         * tests/test-sigprocmask.c (main): Use it to silence warning.
13178         Reported by Jim Meyering.
13179
13180         test-snprintf: avoid compiler warning
13181         * tests/test-snprintf.c (main): Avoid shadowed declaration.
13182         * tests/test-vsnprintf.c (main): Likewise.
13183         Reported by Jim Meyering.
13184
13185 2011-07-08  Bruno Haible  <bruno@clisp.org>
13186
13187         Tests for module 'pthread_sigmask'.
13188         * modules/pthread_sigmask-tests: New file.
13189         * tests/test-pthread_sigmask1.c: New file, based on
13190         tests/test-sigprocmask.c.
13191         * tests/test-pthread_sigmask2.c: New file.
13192
13193 2011-07-08  Jim Meyering  <meyering@redhat.com>
13194
13195         test-getopt.h: avoid warning about an unused variable
13196         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
13197
13198 2011-07-07  Jim Meyering  <meyering@redhat.com>
13199
13200         maint: reduce list of files exempt from sc_prohibit_leading_TABs
13201         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
13202         now that it no longer contains leading TABs.
13203         Remove unused "url=FIXME" statement.
13204
13205 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
13206
13207         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
13208         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
13209         When gl_THREADLIB is not in use, assume that the POSIX sematics
13210         are desired.  This is better for Emacs, which uses POSIX semantics
13211         on GNUish and/or POSIXish platforms, and does not use threads at
13212         all otherwise.
13213
13214         pthread_sigmask: fix typo when testing for libraries
13215         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
13216         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
13217
13218 2011-07-08  Eric Blake  <eblake@redhat.com>
13219
13220         fts: introduce FTS_NOATIME
13221         * lib/fts_.h (FTS_NOATIME): New bit flag.
13222         (FTS_OPTIONMASK): Adjust.
13223         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
13224         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
13225
13226 2011-07-08  Bruno Haible  <bruno@clisp.org>
13227
13228         Tests for module 'thread'.
13229         * modules/thread-tests: New file.
13230         * tests/test-thread_self.c: New file.
13231         * tests/test-thread_create.cc: New file.
13232
13233 2011-07-08  Bruno Haible  <bruno@clisp.org>
13234
13235         thread: Avoid gcc warnings when using gl_thread_self().
13236         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
13237         'void *'.
13238         (gl_thread_self_pointer): Update.
13239
13240 2011-07-07  Bruno Haible  <bruno@clisp.org>
13241
13242         signal-c++-tests: Check declaration of pthread_sigmask.
13243         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
13244         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
13245         $(LIB_PTHREAD_SIGMASK).
13246
13247 2011-07-07  Bruno Haible  <bruno@clisp.org>
13248
13249         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
13250         * lib/signal.in.h (pthread_sigmask): Override if
13251         REPLACE_PTHREAD_SIGMASK is 1.
13252         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
13253         REPLACE_PTHREAD_SIGMASK.
13254         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
13255         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
13256         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
13257         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
13258         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
13259
13260 2011-07-07  Bruno Haible  <bruno@clisp.org>
13261
13262         pthread_sigmask: Ensure declaration in <signal.h>.
13263         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
13264         include <pthread.h>.
13265         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
13266         problem.
13267
13268 2011-07-07  Bruno Haible  <bruno@clisp.org>
13269
13270         pthread_sigmask: Document the module.
13271         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
13272
13273 2011-07-07  Bruno Haible  <bruno@clisp.org>
13274
13275         pthread_sigmask: Follow gnulib conventions.
13276         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
13277         gl_PTHREAD_SIGMASK.
13278         * modules/pthread_sigmask (configure.ac): Update.
13279
13280 2011-07-07  Bruno Haible  <bruno@clisp.org>
13281
13282         pthread_sigmask: Make declaration C++ safe.
13283         * lib/signal.in.h: In two special conditions, just do an #include_next.
13284         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
13285         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
13286         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
13287         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
13288         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
13289         not REPLACE_PTHREAD_MASK.
13290         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
13291         not REPLACE_PTHREAD_MASK.
13292         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
13293
13294 2011-07-07  Bruno Haible  <bruno@clisp.org>
13295
13296         pthread_sigmask: Fix return value.
13297         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
13298         * lib/pthread_sigmask.c: New file.
13299         * modules/pthread_sigmask (Files): Add it.
13300         (configure.ac): Invoke AC_LIBOBJ.
13301
13302 2011-07-07  Eric Blake  <eblake@redhat.com>
13303
13304         getopt: more portable argv creation
13305         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
13306         const, use char arrays rather than strings.
13307         Suggested by Paul Eggert.
13308
13309 2011-07-07  Bruno Haible  <bruno@clisp.org>
13310
13311         Tests for module 'sigprocmask'.
13312         * modules/sigprocmask-tests: New file.
13313         * tests/test-sigprocmask.c: New file.
13314
13315 2011-07-07  Bruno Haible  <bruno@clisp.org>
13316
13317         float tests: Tweak.
13318         * tests/test-float.c (main): Tweak skip message.
13319
13320 2011-07-07  Eric Blake  <eblake@redhat.com>
13321
13322         getopt: avoid compiler warning during configure
13323         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
13324         assigning string literals to non-const pointer.
13325
13326         getopt-gnu: avoid crash in glibc getopt
13327         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
13328         * tests/test-getopt.h (test_getopt): Enhance test.
13329         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13330         * doc/posix-functions/getopt.texi (getopt): Document it.
13331         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13332         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13333         Likewise.
13334
13335 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
13336
13337         getopt: handle W; without long options in getopt [BZ #12922]
13338         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
13339         but no long options are defined, just return 'W'.
13340
13341 2011-07-07  Bruno Haible  <bruno@clisp.org>
13342
13343         Avoid literal tabs.
13344         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
13345         variable containing a tab instead of a literal tab.
13346         Reported by Jim Meyering.
13347
13348 2011-07-07  Bruno Haible  <bruno@clisp.org>
13349
13350         Comments.
13351         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
13352
13353 2011-07-06  Bruno Haible  <bruno@clisp.org>
13354
13355         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
13356         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
13357         <winsock2.h>.
13358         (rpl_fd_isset, FD_ISSET): New definitions, copied from
13359         lib/sys_socket.in.h.
13360         (close, gethostname): Hide declarations from <winsock2.h>.
13361         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
13362         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
13363         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
13364         (select): Don't override if gnulib's <sys/select.h> was already
13365         included.
13366         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
13367         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
13368         setsockopt, shutdown, select): Tweak indentation.
13369
13370 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13371
13372         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
13373         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
13374         in an application that does not use the sys_select module.
13375
13376 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
13377
13378         poll: do not return 0 on timeout=-1
13379         * lib/poll.c: Loop with yield if no events occured
13380
13381 2011-07-06  Eric Blake  <eblake@redhat.com>
13382
13383         pthread_sigmask: always replace when not using pthread
13384         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
13385         replacement when using some threading other than pthread.  Fix
13386         logic bug.
13387
13388 2011-07-06  Bruno Haible  <bruno@clisp.org>
13389
13390         Comments.
13391         * m4/printf.m4: Update comments about mingw.
13392
13393 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13394
13395         sys_select: define sigset_t more portably
13396         * lib/sys_select.in.h: Always include <sys/types.h>, since
13397         we now need sigset_t and mingw defines it there.
13398         Include <signal.h> before split inclusion guard, to avoid
13399         mishaps on Solaris, whose <signal.h> eventually includes us.
13400         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
13401         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
13402         which come from ...
13403         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
13404         gl_CHECK_TYPE_SIGSET_T.
13405         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
13406         does the real work.
13407         * modules/sys_select (Depends-on): Add 'signal'.
13408
13409         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
13410         Suggested by Bruno Haible.
13411
13412         pselect: Use pthread_sigmask, not sigprocmask.
13413         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
13414         multithreaded apps better than sigprocmask does.
13415         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
13416         sigprocmask directly.
13417
13418 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
13419
13420         * lib/pselect.c (pselect): Use plain name, without "rpl_".
13421         Don't #undef,  since we don't need any underlying pselect.
13422         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
13423         (Depends-on): Add select.
13424         (Link): Add $(LIBSOCKET).
13425         These changes suggested by Bruno Haible.
13426
13427         pselect: document better
13428         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
13429         * doc/posix-functions/pselect.texi (pselect): Document new module.
13430
13431         pthread_sigmask: new module
13432         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
13433         * doc/posix-functions/pthread_sigmask.texi: Document new module.
13434         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
13435         This is done only as a macro; I don't know how well that'll
13436         work for C++.  Move <sys/types.h> include before the include_next,
13437         to avoid mishap on Solaris.
13438         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
13439         * modules/signal (Makefile.am): Substitute the check's results.
13440         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
13441
13442         test-pselect: new module
13443         * modules/pselect-tests, tests/test-pselect.c: New files.
13444         * tests/test-select.c, tests/test-sys_select-c++.cc:
13445         If TEST_PSELECT is defined, test pselect instead of testing select.
13446
13447         * tests/test-sys_select.c (sigset_t): Test for it, too.
13448         Suggested by Bruno Haible.
13449
13450 2011-07-05  Eric Blake  <eblake@redhat.com>
13451
13452         snprintf: guarantee %1$d, for libintl
13453         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
13454         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
13455         * doc/posix-functions/snprintf.texi (snprintf): Update.
13456         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13457         * tests/test-snprintf.c (main): Enhance test.
13458         * tests/test-vsnprintf.c (main): Likewise.
13459
13460 2011-07-05  Jim Meyering  <meyering@redhat.com>
13461
13462         maint: exempt stdio-read.c and stdio-write.c from the cppi check
13463         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
13464         per Bruno's request, to accommodate this idiom (no space after "#")
13465         even when the function is inside an #if block:
13466         char *
13467         gets (char *s)
13468         #undef gets
13469         {
13470           ...
13471         }
13472
13473 2011-07-04  Jim Meyering  <meyering@redhat.com>
13474
13475         maint: indent with spaces, not TABs, and add a rule to check this
13476         * tests/test-userspec.c: Indent with spaces, not TABs.
13477         * tests/test-argp.c: Likewise.
13478         * tests/test-c-stack2.sh: Likewise.
13479         * tests/test-parse-duration.sh: Likewise
13480         * m4/strtod.m4: Likewise.
13481         * m4/alloca.m4: Likewise.
13482         * m4/pselect.m4: Likewise.
13483         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
13484
13485 2011-07-03  Jim Meyering  <meyering@redhat.com>
13486
13487         maint.mk: correct omissions in prohibit_argmatch_without_use check
13488         This rule would mistakenly report that argmatch.h is included without
13489         use even when both the argmatch and invalid_arg macro were used.
13490         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
13491         of argmatch and invalid_arg.
13492
13493 2011-07-03  Bruno Haible  <bruno@clisp.org>
13494
13495         Comments about EINTR.
13496         * lib/safe-read.h: Explain the purpose of this module.
13497         * lib/safe-write.h: Likewise.
13498         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
13499         module.
13500         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
13501         module.
13502         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13503
13504 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
13505
13506         xnanosleep: Rewrite to use new dtotimespec module.
13507         It has the conversion code that used to be in xnanosleep.
13508         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
13509         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
13510         (TIME_T_MAX): Remove.
13511         (xnanosleep): Rewrite in terms of dtotimespec.
13512         * modules/xnanosleep (Depends-on): Add dtotimespec.
13513         Remove intprops, stdbool.
13514
13515         timespec-add, timespec-sub: new modules
13516         * lib/timespec.h (timespec_add, timespec_sub): New decls.
13517         * lib/timespec-add.c, lib/timespec-sub.c:
13518         * modules/timespec-add, modules/timespec-sub: New files.
13519
13520         dtotimespec: new module
13521         * lib/timespec.h (dtotimespec): New decl.
13522         * lib/dtotimespec.c, modules/dtotimespec: New files.
13523
13524         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
13525
13526         pselect: new module
13527         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
13528         (pselect): New decls.
13529         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
13530         since the standard pselect decl uses 'restrict'.
13531         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
13532         HAVE_PSELECT, REPLACE_PSELECT.
13533         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
13534         HAVE_PSELECT, REPLACE_PSELECT.
13535         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
13536
13537         sys_select: don't depend on sys_socket
13538         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
13539         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
13540         This fix works on GNU and GNU-like platforms, but has not been tested
13541         on native Windows.
13542         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
13543         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
13544         gl_HEADER_SYS_SOCKET.
13545         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
13546         gl_PREREQ_SYS_H_WINSOCK2.
13547
13548 2011-06-29  Eric Blake  <eblake@redhat.com>
13549
13550         pipe2: fix C89 compile problem
13551         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
13552         Reported by Bruno Haible.
13553
13554         pipe, pipe2: don't corrupt fd on error
13555         * lib/pipe.c (pipe): Leave fd unchanged on error.
13556         * lib/pipe2.c (pipe2): Likewise.
13557         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
13558         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
13559
13560 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
13561
13562         mmap-anon: do not use regular expressions inadvertently
13563         * m4/mmap-anon.m4: Remove trailing period from strings sought
13564         in the output.
13565
13566 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
13567
13568         nanosleep: fix integer overflow problem
13569         * lib/nanosleep.c (my_usleep): Don't assume signed integer
13570         arithmetic wraps around on overflow.
13571
13572         nanosleep: simplify carrying
13573         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
13574         first call to the underyling nanosleep, not for the last one.
13575         This doesn't fix any bugs, but it simplifies the computation of
13576         the remaining delay.  Found while auditing integer overflow issues.
13577
13578         dup2: remove test for existence of fcntl
13579         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
13580         "#if HAVE_FCNTL", in the configure-time test program.
13581         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
13582         and therefore speeds up "configure" a bit.  Found while
13583         adding the dup2 module to Emacs.
13584
13585 2011-06-24  Eric Blake  <eblake@redhat.com>
13586
13587         maint.mk: enhance useless header checks
13588         * top/maint.mk (_sc_header_without_use): Check both include
13589         styles.
13590         (sc_prohibit_assert_without_use)
13591         (sc_prohibit_close_stream_without_use)
13592         (sc_prohibit_getopt_without_use)
13593         (sc_prohibit_quotearg_without_use)
13594         (sc_prohibit_quote_without_use)
13595         (sc_prohibit_long_options_without_use)
13596         (sc_prohibit_inttostr_without_use)
13597         (sc_prohibit_ignore_value_without_use)
13598         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
13599         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
13600         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
13601         (sc_prohibit_hash_pjw_without_use)
13602         (sc_prohibit_safe_read_without_use)
13603         (sc_prohibit_argmatch_without_use)
13604         (sc_prohibit_canonicalize_without_use)
13605         (sc_prohibit_root_dev_ino_without_use)
13606         (sc_prohibit_openat_without_use)
13607         (sc_prohibit_c_ctype_without_use)
13608         (sc_prohibit_signal_without_use)
13609         (sc_prohibit_stdio--_without_use)
13610         (sc_prohibit_stdio-safer_without_use)
13611         (sc_prohibit_strings_without_use)
13612         (sc_prohibit_intprops_without_use)
13613         (sc_prohibit_stddef_without_use)
13614         (sc_prohibit_xfreopen_without_use): Update clients.
13615
13616 2011-06-24  Jim Meyering  <meyering@redhat.com>
13617
13618         syntax-check: keep one maint.mk rule in sync with its header
13619         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
13620         of the bug Eric has just fixed, with today's commit 25e4c2ec.
13621         I prefer to avoid temporary files here, so use <(...), but that
13622         is not supported by /bin/sh, so...
13623         (SHELL): Define to /bin/bash.
13624
13625 2011-06-24  Eric Blake  <eblake@redhat.com>
13626
13627         maint.mk: update sc_prohibit_intprops_without_use
13628         * top/maint.mk (_intprops_names): Match recent changes.
13629
13630 2011-06-24  Bruno Haible  <bruno@clisp.org>
13631
13632         strerror-override: No-op tweak.
13633         * lib/strerror-override.h (strerror_override): Reorder conditions,
13634         for consistency with lib/strerror-override.c.
13635
13636 2011-06-23  Eric Blake  <eblake@redhat.com>
13637
13638         maint.mk: test further PATH_MAX issues
13639         * top/maint.mk (sc_prohibit_path_max_array): Rename...
13640         (sc_prohibit_path_max_allocation): ...and also test alloca.
13641         Suggested by Jim Meyering.
13642
13643 2011-06-22  Eric Blake  <eblake@redhat.com>
13644
13645         maint.mk: add syntax-check to avoid char[PATH_MAX]
13646         * top/maint.mk (sc_prohibit_path_max_array): New rule.
13647
13648         stat: be robust to PATH_MAX definition
13649         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
13650         * modules/stat (Depends-on): Add verify.
13651
13652         link: work around IRIX bug
13653         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
13654         * lib/link.c (rpl_link): Work around it.
13655         * tests/test-link.h (test_link): Enhance test.
13656         * doc/posix-functions/link.texi (link): Document the bug.
13657
13658         getopt: silence clang warning
13659         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
13660         dereference.
13661         Reported by Gustavo Martin Domato.
13662
13663 2011-06-22  Jim Meyering  <meyering@redhat.com>
13664
13665         bootstrap: do not insert a blank line into each .gitignore file
13666         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
13667
13668 2011-06-21  Eric Blake  <eblake@redhat.com>
13669
13670         perror: test for output mismatch
13671         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
13672         perror on IRIX.
13673
13674         strerror_r: fix OpenBSD behavior on out-of-range
13675         * lib/strerror_r.c (strerror_r): Always use maximal string.
13676         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
13677
13678         strerror_r: fix OpenBSD behavior on 0
13679         * lib/strerror-override.c (strerror_override): Also override 0
13680         when needed.
13681         * lib/strerror-override.h (strerror_override): Likewise.
13682         * lib/strerror.c (strerror): Simplify, now that 0 override is done
13683         earlier.
13684         * lib/strerror_r.c (strerror_r): Likewise.
13685         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
13686         behavior...
13687         (gl_FUNC_STRERROR_0): ...into new macro.
13688         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
13689         is overridden.
13690         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
13691         * modules/strerror-override (Files): Add strerror.m4.
13692         (configure.ac): Also provide override for 0 when needed.
13693         * doc/posix-functions/strerror.texi (strerror): Document this.
13694         * doc/posix-functions/perror.texi (perror): Likewise.
13695
13696         perror: adjust array size
13697         * modules/perror (Depends-on): Add strerror-override.
13698         * lib/perror.c (perror): Use it to avoid magic number.
13699
13700         strerror-override: reduce size
13701         * lib/strerror-override.c (strerror_override): Use fewer lines.
13702
13703 2011-06-20  Bruno Haible  <bruno@clisp.org>
13704
13705         pathmax: Ensure correct value for PATH_MAX on HP-UX.
13706         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
13707
13708 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13709
13710         alloca: port to compilers that can optimize like GCC 4.6.0
13711         * lib/alloca.c (find_stack_direction): New signature, taken from
13712         Autoconf git.  This works with GCC 4.6.0.  This code should never
13713         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
13714         be used with other compilers that optimize as well as GCC 4.6.0 does.
13715         (alloca): Adjust to new signature.
13716         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
13717         New macro, which patches Autoconf in a similar way.
13718
13719         c-stack: stop worrying about stack direction
13720         * lib/c-stack.c (find_stack_direction): Remove.
13721         (segv_handler): Don't worry about stack direction growth, as it's
13722         too much of a pain to configure this correctly, given how compilers
13723         are optimizing-away our stack-growth detection code.  Instead, assume
13724         that any access to just before or just after the stack is OK.
13725         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
13726         Don't require AC_FUNC_ALLOCA; no longer needed.
13727
13728 2011-06-20  Eric Blake  <eblake@redhat.com>
13729
13730         test-stat: don't allocate PATH_MAX bytes
13731         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
13732         PATH_MAX-sized buffer.
13733         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
13734         * modules/stat-tests (Depends-on): Likewise.
13735         * tests/test-fstatat.c (includes): Drop pathmax.h.
13736         * tests/test-stat.c (includes): Likewise.
13737         Reported by Bruno Haible.
13738
13739 2011-06-20  Bruno Haible  <bruno@clisp.org>
13740
13741         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
13742         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
13743         * lib/float.c: New file.
13744         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
13745         REPLACE_FLOAT_LDBL.
13746         * modules/float (Files): Add lib/float.c.
13747         (configure.ac): Invoke AC_LIBOBJ.
13748         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
13749
13750 2011-06-20  Bruno Haible  <bruno@clisp.org>
13751
13752         Tests for module 'float'.
13753         * modules/float-tests: New file.
13754         * tests/test-float.c: New file.
13755
13756 2011-06-19  Bruno Haible  <bruno@clisp.org>
13757
13758         isinf: Coding style.
13759         * lib/isinf.c: Use GNU coding style.
13760
13761 2011-06-19  Bruno Haible  <bruno@clisp.org>
13762
13763         linkat test: Avoid test failure on AIX 7.1.
13764         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
13765         * tests/test-link.h (test_link): Likewise.
13766
13767 2011-06-19  Bruno Haible  <bruno@clisp.org>
13768
13769         pread test: Avoid test failure on OpenBSD 4.9.
13770         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
13771
13772 2011-06-19  Bruno Haible  <bruno@clisp.org>
13773
13774         sprintf-posix: Fix test failure on AIX 7.1.
13775         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
13776         * doc/posix-functions/dprintf.texi: Mention limited precision problem
13777         on AIX.
13778         * doc/posix-functions/fprintf.texi: Likewise.
13779         * doc/posix-functions/printf.texi: Likewise.
13780         * doc/posix-functions/snprintf.texi: Likewise.
13781         * doc/posix-functions/sprintf.texi: Likewise.
13782         * doc/posix-functions/vdprintf.texi: Likewise.
13783         * doc/posix-functions/vfprintf.texi: Likewise.
13784         * doc/posix-functions/vprintf.texi: Likewise.
13785         * doc/posix-functions/vsnprintf.texi: Likewise.
13786         * doc/posix-functions/vsprintf.texi: Likewise.
13787
13788 2011-06-19  Bruno Haible  <bruno@clisp.org>
13789
13790         roundl-ieee: Fix test failure on AIX 7.1.
13791         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
13792         * doc/posix-functions/roundl.texi: Mention problem with negative
13793         arguments.
13794
13795 2011-06-19  Bruno Haible  <bruno@clisp.org>
13796
13797         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13798         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
13799         * doc/posix-functions/round.texi: Mention problem with negative
13800         arguments.
13801         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
13802
13803 2011-06-19  Bruno Haible  <bruno@clisp.org>
13804
13805         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13806         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
13807         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
13808         * doc/posix-functions/roundf.texi: Mention problem with negative
13809         arguments.
13810         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
13811
13812 2011-06-19  Bruno Haible  <bruno@clisp.org>
13813
13814         ceilf-ieee: Work around bug on MacOS X 10.5.
13815         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
13816
13817         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
13818         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
13819         IEEE compliant, avoid compiler optimizations.
13820         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
13821         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13822         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
13823         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13824         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13825         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13826         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13827         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13828         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13829         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13830
13831 2011-06-19  Bruno Haible  <bruno@clisp.org>
13832
13833         ceilf-ieee: Work around bug on AIX 7.1.
13834         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
13835         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
13836
13837 2011-06-19  Bruno Haible  <bruno@clisp.org>
13838
13839         ceil-ieee: Work around bug on AIX 7.1.
13840         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
13841         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
13842
13843 2011-06-18  Bruno Haible  <bruno@clisp.org>
13844
13845         fsync test: Avoid test failure on MacOS X and AIX.
13846         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
13847         EINVAL.
13848
13849 2011-06-18  Bruno Haible  <bruno@clisp.org>
13850
13851         openat, fdopendir tests: Fix link errors.
13852         * modules/openat-tests (Depends-on): Add progname.
13853         * modules/fdopendir-tests (Depends-on): Likewise.
13854         * tests/test-fchownat.c: Include progname.h.
13855         (main): Call set_program_name.
13856         * tests/test-fstatat.c: Include progname.h.
13857         (main): Call set_program_name.
13858         * tests/test-mkdirat.c: Include progname.h.
13859         (main): Call set_program_name.
13860         * tests/test-openat.c: Include progname.h.
13861         (main): Call set_program_name.
13862         * tests/test-unlinkat.c: Include progname.h.
13863         (main): Call set_program_name.
13864         * tests/test-fdopendir.c: Include progname.h.
13865         (main): Call set_program_name.
13866
13867 2011-06-18  Bruno Haible  <bruno@clisp.org>
13868
13869         Doc update.
13870         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
13871         HP-UX.
13872         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
13873
13874 2011-06-18  Bruno Haible  <bruno@clisp.org>
13875
13876         getcwd tests: Avoid compilation error on HP-UX 11.31.
13877         * modules/getcwd-tests (Depends-on): Add pathmax.
13878         * tests/test-getcwd.c: Include pathmax.h.
13879
13880 2011-06-18  Bruno Haible  <bruno@clisp.org>
13881
13882         isfinite, isinf: Fix link error on AIX 6 and 7.
13883         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
13884         needed, also test the macro with a 'float' argument.
13885         * m4/isinf.m4 (gl_ISINF): Likewise.
13886
13887 2011-06-18  Bruno Haible  <bruno@clisp.org>
13888
13889         getloadavg: Don't clobber LIBS. Regression from previous commit.
13890         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
13891         AC_CHECK_LIB from here...
13892         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
13893         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
13894         gl_func_getloadavg_done.
13895         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13896
13897 2011-06-18  Bruno Haible  <bruno@clisp.org>
13898
13899         clean-temp: Improve documentation.
13900         * lib/clean-temp.h: Explain better how to use this module.
13901         Reported by John Darrington <john@darrington.wattle.id.au>.
13902
13903 2011-06-17  Bruno Haible  <bruno@clisp.org>
13904
13905         pread, pwrite: Avoid cc warning on AIX.
13906         * lib/unistd.in.h (pread): Undefine before defining as a macro.
13907         (pwrite): Likewise.
13908
13909 2011-06-17  Bruno Haible  <bruno@clisp.org>
13910
13911         spawn-pipe tests: Fix link error.
13912         * tests/test-spawn-pipe-child.c: Undefine fprintf.
13913         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13914
13915 2011-06-17  Bruno Haible  <bruno@clisp.org>
13916
13917         Tests: Remove unnecessary dependency.
13918         * modules/canonicalize-tests (Depends-on): Remove progname.
13919         * modules/chown-tests (Depends-on): Likewise.
13920         * modules/dirname-tests (Depends-on): Likewise.
13921         * modules/fdopendir-tests (Depends-on): Likewise.
13922         * modules/fdutimensat-tests (Depends-on): Likewise.
13923         * modules/hash-tests (Depends-on): Likewise.
13924         * modules/lchown-tests (Depends-on): Likewise.
13925         * modules/linkat-tests (Depends-on): Likewise.
13926         * modules/renameat-tests (Depends-on): Likewise.
13927         * modules/spawn-pipe-tests (Depends-on): Likewise.
13928         * modules/utimensat-tests (Depends-on): Likewise.
13929
13930 2011-06-17  Bruno Haible  <bruno@clisp.org>
13931
13932         spawn-pipe tests: Fix link error.
13933         * tests/test-spawn-pipe-child.c: Undefine fflush.
13934
13935 2011-06-17  Bruno Haible  <bruno@clisp.org>
13936
13937         Fix tests link errors.
13938         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
13939         * modules/chown-tests (Makefile.am): Don't link test-chown with
13940         LIBINTL.
13941         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
13942         LIBINTL.
13943         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
13944         LIBINTL.
13945         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
13946         LIBINTL.
13947
13948 2011-06-16  Bruno Haible  <bruno@clisp.org>
13949
13950         crypto/gc-sha1: Fix recent regression.
13951         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
13952         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
13953
13954         crypto/gc-md5: Fix recent regression.
13955         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
13956
13957         crypto/gc-md4: Fix recent regression.
13958         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
13959         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
13960
13961         crypto/gc-arctwo: Fix recent regression.
13962         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
13963         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
13964
13965         crypto/gc-rijndael: Fix recent regression.
13966         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
13967         (configure.ac): Invoke AC_LIBOBJ here.
13968         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
13969         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13970
13971         crypto/gc-hmac-sha1: Fix recent regression.
13972         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
13973         (configure.ac): Invoke AC_LIBOBJ here.
13974         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
13975         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13976
13977         crypto/gc-hmac-md5: Fix recent regression.
13978         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
13979         (configure.ac): Invoke AC_LIBOBJ here.
13980         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
13981         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13982
13983         crypto/gc-des: Fix recent regression.
13984         * modules/crypto/gc-des (Files): Remove m4/des.m4.
13985         (configure.ac): Invoke AC_LIBOBJ here.
13986         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
13987         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13988
13989         crypto/gc-arcfour: Fix recent regression.
13990         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
13991         (configure.ac): Invoke AC_LIBOBJ here.
13992         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
13993         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13994
13995 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
13996
13997         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
13998         After the 2011-05-21 change, this macro requires
13999         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
14000         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
14001
14002 2011-06-16  Bruno Haible  <bruno@clisp.org>
14003
14004         fprintftime: Move AC_LIBOBJ invocations to module description.
14005         * m4/fprintftime.m4: Remove file.
14006         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
14007         (configure.ac): Remove gl_FPRINTFTIME call.
14008         (Makefile.am): Augment lib_SOURCES.
14009         Reported by Jim Meyering.
14010
14011 2011-06-16  Bruno Haible  <bruno@clisp.org>
14012
14013         tmpfile-safer: Finish 2011-05-23 commit.
14014         * m4/stdio-safer.m4: Really remove file.
14015         Reported by Jim Meyering.
14016
14017 2011-06-16  Bruno Haible  <bruno@clisp.org>
14018
14019         syntax-check: Fix typo.
14020         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
14021         printf-posix.m4.
14022         Reported by Jim Meyering.
14023
14024 2011-06-13  Jim Meyering  <meyering@redhat.com>
14025
14026         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
14027         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
14028
14029 2011-05-23  Bruno Haible  <bruno@clisp.org>
14030
14031         yesno: Move AC_LIBOBJ invocations to module description.
14032         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
14033         * modules/yesno (Makefile.am): Augment lib_SOURCES.
14034
14035 2011-05-23  Bruno Haible  <bruno@clisp.org>
14036
14037         xstrtol: Move AC_LIBOBJ invocations to module description.
14038         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
14039         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
14040
14041 2011-05-23  Bruno Haible  <bruno@clisp.org>
14042
14043         xstrtold: Move AC_LIBOBJ invocations to module description.
14044         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
14045         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
14046
14047 2011-05-23  Bruno Haible  <bruno@clisp.org>
14048
14049         xstrtod: Move AC_LIBOBJ invocations to module description.
14050         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
14051         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
14052
14053 2011-05-23  Bruno Haible  <bruno@clisp.org>
14054
14055         xnanosleep: Move AC_LIBOBJ invocations to module description.
14056         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
14057         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
14058
14059 2011-05-23  Bruno Haible  <bruno@clisp.org>
14060
14061         xgetcwd: Move AC_LIBOBJ invocations to module description.
14062         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
14063         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
14064
14065 2011-05-23  Bruno Haible  <bruno@clisp.org>
14066
14067         xalloc: Move AC_LIBOBJ invocations to module description.
14068         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
14069         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
14070
14071 2011-05-23  Bruno Haible  <bruno@clisp.org>
14072
14073         write-any-file: Move AC_LIBOBJ invocations to module description.
14074         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
14075         invocation.
14076         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
14077
14078 2011-05-23  Bruno Haible  <bruno@clisp.org>
14079
14080         utimens: Move AC_LIBOBJ invocations to module description.
14081         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
14082         * modules/utimens (Makefile.am): Augment lib_SOURCES.
14083
14084 2011-05-23  Bruno Haible  <bruno@clisp.org>
14085
14086         utimecmp: Move AC_LIBOBJ invocations to module description.
14087         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
14088         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
14089
14090 2011-05-23  Bruno Haible  <bruno@clisp.org>
14091
14092         userspec: Move AC_LIBOBJ invocations to module description.
14093         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
14094         * modules/userspec (Makefile.am): Augment lib_SOURCES.
14095
14096 2011-05-23  Bruno Haible  <bruno@clisp.org>
14097
14098         unlinkdir: Move AC_LIBOBJ invocations to module description.
14099         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
14100         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
14101
14102 2011-05-23  Bruno Haible  <bruno@clisp.org>
14103
14104         unistd-safer: Move AC_LIBOBJ invocations to module description.
14105         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
14106         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
14107
14108 2011-05-23  Bruno Haible  <bruno@clisp.org>
14109
14110         tempname: Move AC_LIBOBJ invocations to module description.
14111         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
14112         * modules/tempname (Makefile.am): Augment lib_SOURCES.
14113
14114 2011-05-23  Bruno Haible  <bruno@clisp.org>
14115
14116         strftime: Move AC_LIBOBJ invocations to module description.
14117         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
14118         * modules/strftime (Makefile.am): Augment lib_SOURCES.
14119
14120 2011-05-23  Bruno Haible  <bruno@clisp.org>
14121
14122         stdlib-safer: Move AC_LIBOBJ invocations to module description.
14123         * m4/stdlib-safer.m4: Remove file.
14124         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
14125         (configure.ac): Remove gl_STDLIB_SAFER call.
14126         (Makefile.am): Augment lib_SOURCES.
14127
14128 2011-05-23  Bruno Haible  <bruno@clisp.org>
14129
14130         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
14131         * m4/stdio-safer.m4: Remove file.
14132         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
14133         (configure.ac): Remove gl_TMPFILE_SAFER call.
14134         (Makefile.am): Augment lib_SOURCES.
14135
14136 2011-05-23  Bruno Haible  <bruno@clisp.org>
14137
14138         popen-safer: Move AC_LIBOBJ invocations to module description.
14139         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
14140         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
14141         (configure.ac): Remove gl_POPEN_SAFER call.
14142         (Makefile.am): Augment lib_SOURCES.
14143
14144 2011-05-23  Bruno Haible  <bruno@clisp.org>
14145
14146         freopen-safer: Move AC_LIBOBJ invocations to module description.
14147         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
14148         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
14149         (configure.ac): Remove gl_FREOPEN_SAFER call.
14150         (Makefile.am): Augment lib_SOURCES.
14151
14152 2011-05-23  Bruno Haible  <bruno@clisp.org>
14153
14154         fopen-safer: Move AC_LIBOBJ invocations to module description.
14155         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
14156         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
14157         (configure.ac): Remove gl_FOPEN_SAFER call.
14158         (Makefile.am): Augment lib_SOURCES.
14159
14160 2011-05-23  Bruno Haible  <bruno@clisp.org>
14161
14162         crypto/sha512: Move AC_LIBOBJ invocations to module description.
14163         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
14164         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
14165
14166 2011-05-23  Bruno Haible  <bruno@clisp.org>
14167
14168         crypto/sha256: Move AC_LIBOBJ invocations to module description.
14169         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
14170         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
14171
14172 2011-05-23  Bruno Haible  <bruno@clisp.org>
14173
14174         crypto/sha1: Move AC_LIBOBJ invocations to module description.
14175         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
14176         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
14177
14178 2011-05-23  Bruno Haible  <bruno@clisp.org>
14179
14180         settime: Move AC_LIBOBJ invocations to module description.
14181         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
14182         * modules/settime (Makefile.am): Augment lib_SOURCES.
14183
14184 2011-05-23  Bruno Haible  <bruno@clisp.org>
14185
14186         savedir: Move AC_LIBOBJ invocations to module description.
14187         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
14188         * modules/savedir (Makefile.am): Augment lib_SOURCES.
14189
14190 2011-05-23  Bruno Haible  <bruno@clisp.org>
14191
14192         save-cwd: Move AC_LIBOBJ invocations to module description.
14193         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
14194         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
14195
14196 2011-05-23  Bruno Haible  <bruno@clisp.org>
14197
14198         same: Move AC_LIBOBJ invocations to module description.
14199         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
14200         * modules/same (Makefile.am): Augment lib_SOURCES.
14201
14202 2011-05-23  Bruno Haible  <bruno@clisp.org>
14203
14204         safe-write: Move AC_LIBOBJ invocations to module description.
14205         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
14206         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
14207         instead of gl_SAFE_WRITE.
14208         (Makefile.am): Augment lib_SOURCES.
14209
14210 2011-05-23  Bruno Haible  <bruno@clisp.org>
14211
14212         safe-read: Move AC_LIBOBJ invocations to module description.
14213         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
14214         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
14215         of gl_SAFE_READ.
14216         (Makefile.am): Augment lib_SOURCES.
14217
14218 2011-05-23  Bruno Haible  <bruno@clisp.org>
14219
14220         safe-alloc: Move AC_LIBOBJ invocations to module description.
14221         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
14222         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
14223
14224 2011-05-23  Bruno Haible  <bruno@clisp.org>
14225
14226         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
14227         * m4/rijndael.m4: Remove file.
14228         * modules/crypto/rijndael (Files): Remove it.
14229         (configure.ac): Remove gl_RIJNDAEL call.
14230         (Makefile.am): Augment lib_SOURCES.
14231
14232 2011-05-23  Bruno Haible  <bruno@clisp.org>
14233
14234         readtokens: Move AC_LIBOBJ invocations to module description.
14235         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
14236         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
14237
14238 2011-05-23  Bruno Haible  <bruno@clisp.org>
14239
14240         read-file: Move AC_LIBOBJ invocations to module description.
14241         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
14242         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
14243         of gl_FUNC_READ_FILE.
14244         (Makefile.am): Augment lib_SOURCES.
14245
14246 2011-05-23  Bruno Haible  <bruno@clisp.org>
14247
14248         quotearg: Move AC_LIBOBJ invocations to module description.
14249         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
14250         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
14251
14252 2011-05-23  Bruno Haible  <bruno@clisp.org>
14253
14254         quote: Move AC_LIBOBJ invocations to module description.
14255         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
14256         * modules/quote (Makefile.am): Augment lib_SOURCES.
14257
14258 2011-05-23  Bruno Haible  <bruno@clisp.org>
14259
14260         posixver: Move AC_LIBOBJ invocations to module description.
14261         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
14262         * modules/posixver (Makefile.am): Augment lib_SOURCES.
14263
14264 2011-05-23  Bruno Haible  <bruno@clisp.org>
14265
14266         posixtm: Move AC_LIBOBJ invocations to module description.
14267         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
14268         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
14269
14270 2011-05-23  Bruno Haible  <bruno@clisp.org>
14271
14272         physmem: Move AC_LIBOBJ invocations to module description.
14273         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
14274         * modules/physmem (Makefile.am): Augment lib_SOURCES.
14275
14276 2011-05-23  Bruno Haible  <bruno@clisp.org>
14277
14278         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
14279         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
14280         invocation.
14281         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
14282
14283 2011-05-23  Bruno Haible  <bruno@clisp.org>
14284
14285         mpsort: Move AC_LIBOBJ invocations to module description.
14286         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
14287         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
14288
14289 2011-05-23  Bruno Haible  <bruno@clisp.org>
14290
14291         modechange: Move AC_LIBOBJ invocations to module description.
14292         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
14293         * modules/modechange (Makefile.am): Augment lib_SOURCES.
14294
14295 2011-05-23  Bruno Haible  <bruno@clisp.org>
14296
14297         mkdir-p: Move AC_LIBOBJ invocations to module description.
14298         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
14299         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
14300
14301 2011-05-23  Bruno Haible  <bruno@clisp.org>
14302
14303         mkancesdirs: Move AC_LIBOBJ invocations to module description.
14304         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
14305         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
14306
14307 2011-05-23  Bruno Haible  <bruno@clisp.org>
14308
14309         mgetgroups: Move AC_LIBOBJ invocations to module description.
14310         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
14311         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
14312
14313 2011-05-23  Bruno Haible  <bruno@clisp.org>
14314
14315         memxor: Move AC_LIBOBJ invocations to module description.
14316         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
14317         * modules/memxor (Makefile.am): Augment lib_SOURCES.
14318
14319 2011-05-23  Bruno Haible  <bruno@clisp.org>
14320
14321         memcoll: Move AC_LIBOBJ invocations to module description.
14322         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
14323         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
14324
14325 2011-05-23  Bruno Haible  <bruno@clisp.org>
14326
14327         memcasecmp: Move AC_LIBOBJ invocations to module description.
14328         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
14329         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
14330
14331 2011-05-23  Bruno Haible  <bruno@clisp.org>
14332
14333         crypto/md5: Move AC_LIBOBJ invocations to module description.
14334         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
14335         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
14336
14337 2011-05-23  Bruno Haible  <bruno@clisp.org>
14338
14339         crypto/md4: Move AC_LIBOBJ invocations to module description.
14340         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
14341         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
14342
14343 2011-05-23  Bruno Haible  <bruno@clisp.org>
14344
14345         crypto/md2: Move AC_LIBOBJ invocations to module description.
14346         * m4/md2.m4: Remove file.
14347         * modules/crypto/md2 (Files): Remove it.
14348         (configure.ac): Remove gl_MD2 call.
14349         (Makefile.am): Augment lib_SOURCES.
14350
14351 2011-05-23  Bruno Haible  <bruno@clisp.org>
14352
14353         long-options: Move AC_LIBOBJ invocations to module description.
14354         * m4/long-options.m4: Remove file.
14355         * modules/long-options (Files): Remove it.
14356         (configure.ac): Remove gl_LONG_OPTIONS call.
14357         (Makefile.am): Augment lib_SOURCES.
14358
14359 2011-05-23  Bruno Haible  <bruno@clisp.org>
14360
14361         i-ring: Move AC_LIBOBJ invocations to module description.
14362         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
14363         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
14364
14365 2011-05-23  Bruno Haible  <bruno@clisp.org>
14366
14367         idcache: Move AC_LIBOBJ invocations to module description.
14368         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
14369         * modules/idcache (Makefile.am): Augment lib_SOURCES.
14370
14371 2011-05-23  Bruno Haible  <bruno@clisp.org>
14372
14373         human: Move AC_LIBOBJ invocations to module description.
14374         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
14375         * modules/human (Makefile.am): Augment lib_SOURCES.
14376
14377 2011-05-23  Bruno Haible  <bruno@clisp.org>
14378
14379         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
14380         * m4/hmac-sha1.m4: Remove file.
14381         * modules/crypto/hmac-sha1 (Files): Remove it.
14382         (configure.ac): Remove gl_HMAC_SHA1 call.
14383         (Makefile.am): Augment lib_SOURCES.
14384
14385 2011-05-23  Bruno Haible  <bruno@clisp.org>
14386
14387         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
14388         * m4/hmac-md5.m4: Remove file.
14389         * modules/crypto/hmac-md5 (Files): Remove it.
14390         (configure.ac): Remove gl_HMAC_MD5 call.
14391         (Makefile.am): Augment lib_SOURCES.
14392
14393 2011-05-23  Bruno Haible  <bruno@clisp.org>
14394
14395         hash: Move AC_LIBOBJ invocations to module description.
14396         * m4/hash.m4: Remove file.
14397         * modules/hash (Files): Remove it.
14398         (configure.ac): Remove gl_HASH call.
14399         (Makefile.am): Augment lib_SOURCES.
14400
14401 2011-05-23  Bruno Haible  <bruno@clisp.org>
14402
14403         hard-locale: Move AC_LIBOBJ invocations to module description.
14404         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
14405         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
14406
14407 2011-05-23  Bruno Haible  <bruno@clisp.org>
14408
14409         getugroups: Move AC_LIBOBJ invocations to module description.
14410         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
14411         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
14412
14413 2011-05-23  Bruno Haible  <bruno@clisp.org>
14414
14415         gettime: Move AC_LIBOBJ invocations to module description.
14416         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
14417         * modules/gettime (Makefile.am): Augment lib_SOURCES.
14418
14419 2011-05-23  Bruno Haible  <bruno@clisp.org>
14420
14421         getndelim2: Move AC_LIBOBJ invocations to module description.
14422         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
14423         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
14424
14425 2011-05-23  Bruno Haible  <bruno@clisp.org>
14426
14427         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
14428         * m4/gc-pbkdf2-sha1.m4: Remove file.
14429         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
14430         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
14431         (Makefile.am): Augment lib_SOURCES.
14432
14433 2011-05-23  Bruno Haible  <bruno@clisp.org>
14434
14435         fts: Move AC_LIBOBJ invocations to module description.
14436         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
14437         * modules/fts (configure.ac): ... to here.
14438
14439 2011-05-23  Bruno Haible  <bruno@clisp.org>
14440
14441         file-type: Move AC_LIBOBJ invocations to module description.
14442         * m4/file-type.m4: Remove file.
14443         * modules/file-type (Files): Remove it.
14444         (configure.ac): Remove gl_FILE_TYPE call.
14445         (Makefile.am): Augment lib_SOURCES.
14446
14447 2011-05-23  Bruno Haible  <bruno@clisp.org>
14448
14449         filenamecat*: Respect rules for use of AC_LIBOBJ.
14450         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
14451         Remove AC_LIBOBJ invocation.
14452         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
14453         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
14454
14455 2011-05-23  Bruno Haible  <bruno@clisp.org>
14456
14457         filemode: Move AC_LIBOBJ invocations to module description.
14458         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
14459         * modules/filemode (Makefile.am): Augment lib_SOURCES.
14460
14461 2011-05-23  Bruno Haible  <bruno@clisp.org>
14462
14463         openat-safer: Move AC_LIBOBJ invocations to module description.
14464         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
14465         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
14466
14467 2011-05-23  Bruno Haible  <bruno@clisp.org>
14468
14469         fcntl-safer: Move AC_LIBOBJ invocations to module description.
14470         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
14471         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
14472
14473 2011-05-23  Bruno Haible  <bruno@clisp.org>
14474
14475         exclude: Move AC_LIBOBJ invocations to module description.
14476         * m4/exclude.m4: Remove file.
14477         * modules/exclude (Files): Remove it.
14478         (configure.ac): Remove gl_EXCLUDE call.
14479         (Makefile.am): Augment lib_SOURCES.
14480
14481 2011-05-23  Bruno Haible  <bruno@clisp.org>
14482
14483         dirname*: Respect rules for use of AC_LIBOBJ.
14484         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
14485         invocations.
14486         * modules/dirname (Makefile.am): Augment lib_SOURCES.
14487         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
14488
14489 2011-05-23  Bruno Haible  <bruno@clisp.org>
14490
14491         dirent-safer: Move AC_LIBOBJ invocations to module description.
14492         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
14493         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
14494
14495 2011-05-23  Bruno Haible  <bruno@clisp.org>
14496
14497         crypto/des: Move AC_LIBOBJ invocations to module description.
14498         * m4/des.m4: Remove file.
14499         * modules/crypto/des (Files): Remove it.
14500         (configure.ac): Remove gl_DES call.
14501         (Makefile.am): Augment lib_SOURCES.
14502
14503 2011-05-23  Bruno Haible  <bruno@clisp.org>
14504
14505         cycle-check: Move AC_LIBOBJ invocations to module description.
14506         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
14507         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
14508
14509 2011-05-23  Bruno Haible  <bruno@clisp.org>
14510
14511         c-strtold: Move AC_LIBOBJ invocations to module description.
14512         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
14513         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
14514
14515 2011-05-23  Bruno Haible  <bruno@clisp.org>
14516
14517         c-strtod: Move AC_LIBOBJ invocations to module description.
14518         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
14519         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
14520
14521 2011-05-23  Bruno Haible  <bruno@clisp.org>
14522
14523         crc: Move AC_LIBOBJ invocations to module description.
14524         * m4/crc.m4: Remove file.
14525         * modules/crc (Files): Remove it.
14526         (configure.ac): Remove gl_CRC call.
14527         (Makefile.am): Augment lib_SOURCES.
14528
14529 2011-05-23  Bruno Haible  <bruno@clisp.org>
14530
14531         close-stream: Move AC_LIBOBJ invocations to module description.
14532         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
14533         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
14534
14535 2011-05-23  Bruno Haible  <bruno@clisp.org>
14536
14537         closeout: Move AC_LIBOBJ invocations to module description.
14538         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
14539         * modules/closeout (Makefile.am): Augment lib_SOURCES.
14540
14541 2011-05-23  Bruno Haible  <bruno@clisp.org>
14542
14543         closein: Move AC_LIBOBJ invocations to module description.
14544         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
14545         * modules/closein (Makefile.am): Augment lib_SOURCES.
14546
14547 2011-05-23  Bruno Haible  <bruno@clisp.org>
14548
14549         cloexec: Move AC_LIBOBJ invocations to module description.
14550         * m4/cloexec.m4: Remove file.
14551         * modules/cloexec (Files): Remove it.
14552         (configure.ac): Remove gl_CLOEXEC call.
14553         (Makefile.am): Augment lib_SOURCES.
14554
14555 2011-05-23  Bruno Haible  <bruno@clisp.org>
14556
14557         check-version: Move AC_LIBOBJ invocations to module description.
14558         * m4/check-version.m4: Remove file.
14559         * modules/check-version (Files): Remove it.
14560         (configure.ac): Remove gl_CHECK_VERSION call.
14561         (Makefile.am): Augment lib_SOURCES.
14562
14563 2011-05-23  Bruno Haible  <bruno@clisp.org>
14564
14565         chdir-safer: Move AC_LIBOBJ invocations to module description.
14566         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
14567         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
14568
14569 2011-05-23  Bruno Haible  <bruno@clisp.org>
14570
14571         canonicalize: Move AC_LIBOBJ invocations to module description.
14572         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
14573         AC_LIBOBJ invocation.
14574         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
14575
14576 2011-05-23  Bruno Haible  <bruno@clisp.org>
14577
14578         canon-host: Move AC_LIBOBJ invocations to module description.
14579         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
14580         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
14581         instead of gl_CANON_HOST.
14582         (Makefile.am): Augment lib_SOURCES.
14583
14584 2011-05-23  Bruno Haible  <bruno@clisp.org>
14585
14586         backupfile: Move AC_LIBOBJ invocations to module description.
14587         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
14588         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
14589
14590 2011-05-23  Bruno Haible  <bruno@clisp.org>
14591
14592         argmatch: Move AC_LIBOBJ invocations to module description.
14593         * m4/argmatch.m4: Remove file.
14594         * modules/argmatch (Files): Remove it.
14595         (configure.ac): Remove gl_ARGMATCH call.
14596         (Makefile.am): Augment lib_SOURCES.
14597
14598 2011-05-23  Bruno Haible  <bruno@clisp.org>
14599
14600         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
14601         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
14602         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
14603
14604 2011-05-23  Bruno Haible  <bruno@clisp.org>
14605
14606         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
14607         * m4/arcfour.m4: Remove file.
14608         * modules/crypto/arcfour (Files): Remove it.
14609         (configure.ac): Remove gl_ARCFOUR call.
14610         (Makefile.am): Augment lib_SOURCES.
14611
14612 2011-05-22  Bruno Haible  <bruno@clisp.org>
14613
14614         write: Move AC_LIBOBJ invocations to module description.
14615         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
14616         * modules/write (configure.ac): ... to here.
14617
14618 2011-05-22  Bruno Haible  <bruno@clisp.org>
14619
14620         wmemset: Move AC_LIBOBJ invocations to module description.
14621         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
14622         here...
14623         * modules/wmemset (configure.ac): ... to here.
14624
14625 2011-05-22  Bruno Haible  <bruno@clisp.org>
14626
14627         wmemmove: Move AC_LIBOBJ invocations to module description.
14628         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
14629         here...
14630         * modules/wmemmove (configure.ac): ... to here.
14631
14632 2011-05-22  Bruno Haible  <bruno@clisp.org>
14633
14634         wmemcpy: Move AC_LIBOBJ invocations to module description.
14635         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
14636         here...
14637         * modules/wmemcpy (configure.ac): ... to here.
14638
14639 2011-05-22  Bruno Haible  <bruno@clisp.org>
14640
14641         wmemcmp: Move AC_LIBOBJ invocations to module description.
14642         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
14643         here...
14644         * modules/wmemcmp (configure.ac): ... to here.
14645
14646 2011-05-22  Bruno Haible  <bruno@clisp.org>
14647
14648         wmemchr: Move AC_LIBOBJ invocations to module description.
14649         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
14650         here...
14651         * modules/wmemchr (configure.ac): ... to here.
14652
14653 2011-05-22  Bruno Haible  <bruno@clisp.org>
14654
14655         wcswidth: Move AC_LIBOBJ invocations to module description.
14656         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
14657         here...
14658         * modules/wcswidth (configure.ac): ... to here.
14659
14660 2011-05-22  Bruno Haible  <bruno@clisp.org>
14661
14662         wcwidth: Respect rules for use of AC_LIBOBJ.
14663         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
14664         invocation from here...
14665         * modules/wcwidth (configure.ac): ... to here.
14666         (Depends-on): Update conditions.
14667
14668 2011-05-22  Bruno Haible  <bruno@clisp.org>
14669
14670         wctype: Move AC_LIBOBJ invocations to module description.
14671         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
14672         invocation from here...
14673         * modules/wctype (configure.ac): ... to here.
14674         (Depends-on): Update conditions.
14675
14676 2011-05-22  Bruno Haible  <bruno@clisp.org>
14677
14678         wctrans: Move AC_LIBOBJ invocations to module description.
14679         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
14680         invocation from here...
14681         * modules/wctrans (configure.ac): ... to here.
14682
14683 2011-05-22  Bruno Haible  <bruno@clisp.org>
14684
14685         wctomb: Move AC_LIBOBJ invocations to module description.
14686         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
14687         invocations from here...
14688         * modules/wctomb (configure.ac): ... to here.
14689
14690 2011-05-22  Bruno Haible  <bruno@clisp.org>
14691
14692         wctob: Move AC_LIBOBJ invocations to module description.
14693         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
14694         gl_PREREQ_WCTOB invocations from here...
14695         * modules/wctob (configure.ac): ... to here.
14696         (Depends-on): Update conditions.
14697
14698 2011-05-22  Bruno Haible  <bruno@clisp.org>
14699
14700         wcsxfrm: Move AC_LIBOBJ invocations to module description.
14701         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
14702         here...
14703         * modules/wcsxfrm (configure.ac): ... to here.
14704
14705 2011-05-22  Bruno Haible  <bruno@clisp.org>
14706
14707         wcstok: Move AC_LIBOBJ invocations to module description.
14708         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
14709         * modules/wcstok (configure.ac): ... to here.
14710
14711 2011-05-22  Bruno Haible  <bruno@clisp.org>
14712
14713         wcsstr: Move AC_LIBOBJ invocations to module description.
14714         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
14715         * modules/wcsstr (configure.ac): ... to here.
14716
14717 2011-05-22  Bruno Haible  <bruno@clisp.org>
14718
14719         wcsspn: Move AC_LIBOBJ invocations to module description.
14720         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
14721         * modules/wcsspn (configure.ac): ... to here.
14722
14723 2011-05-22  Bruno Haible  <bruno@clisp.org>
14724
14725         wcsrtombs: Move AC_LIBOBJ invocations to module description.
14726         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
14727         gl_PREREQ_WCSRTOMBS invocations from here...
14728         * modules/wcsrtombs (configure.ac): ... to here.
14729
14730 2011-05-22  Bruno Haible  <bruno@clisp.org>
14731
14732         wcsrchr: Move AC_LIBOBJ invocations to module description.
14733         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
14734         here...
14735         * modules/wcsrchr (configure.ac): ... to here.
14736
14737 2011-05-22  Bruno Haible  <bruno@clisp.org>
14738
14739         wcspbrk: Move AC_LIBOBJ invocations to module description.
14740         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
14741         here...
14742         * modules/wcspbrk (configure.ac): ... to here.
14743
14744 2011-05-22  Bruno Haible  <bruno@clisp.org>
14745
14746         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
14747         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
14748         gl_PREREQ_WCSNRTOMBS invocations from here...
14749         * modules/wcsnrtombs (configure.ac): ... to here.
14750
14751 2011-05-22  Bruno Haible  <bruno@clisp.org>
14752
14753         wcsnlen: Move AC_LIBOBJ invocations to module description.
14754         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
14755         here...
14756         * modules/wcsnlen (configure.ac): ... to here.
14757
14758 2011-05-22  Bruno Haible  <bruno@clisp.org>
14759
14760         wcsncpy: Move AC_LIBOBJ invocations to module description.
14761         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
14762         here...
14763         * modules/wcsncpy (configure.ac): ... to here.
14764
14765 2011-05-22  Bruno Haible  <bruno@clisp.org>
14766
14767         wcsncmp: Move AC_LIBOBJ invocations to module description.
14768         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
14769         here...
14770         * modules/wcsncmp (configure.ac): ... to here.
14771
14772 2011-05-22  Bruno Haible  <bruno@clisp.org>
14773
14774         wcsncat: Move AC_LIBOBJ invocations to module description.
14775         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
14776         here...
14777         * modules/wcsncat (configure.ac): ... to here.
14778
14779 2011-05-22  Bruno Haible  <bruno@clisp.org>
14780
14781         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
14782         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
14783         from here...
14784         * modules/wcsncasecmp (configure.ac): ... to here.
14785
14786 2011-05-22  Bruno Haible  <bruno@clisp.org>
14787
14788         wcslen: Move AC_LIBOBJ invocations to module description.
14789         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
14790         * modules/wcslen (configure.ac): ... to here.
14791
14792 2011-05-22  Bruno Haible  <bruno@clisp.org>
14793
14794         wcsdup: Move AC_LIBOBJ invocations to module description.
14795         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
14796         * modules/wcsdup (configure.ac): ... to here.
14797
14798 2011-05-22  Bruno Haible  <bruno@clisp.org>
14799
14800         wcscspn: Move AC_LIBOBJ invocations to module description.
14801         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
14802         here...
14803         * modules/wcscspn (configure.ac): ... to here.
14804
14805 2011-05-22  Bruno Haible  <bruno@clisp.org>
14806
14807         wcscpy: Move AC_LIBOBJ invocations to module description.
14808         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
14809         * modules/wcscpy (configure.ac): ... to here.
14810
14811 2011-05-22  Bruno Haible  <bruno@clisp.org>
14812
14813         wcscoll: Move AC_LIBOBJ invocations to module description.
14814         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
14815         here...
14816         * modules/wcscoll (configure.ac): ... to here.
14817
14818 2011-05-22  Bruno Haible  <bruno@clisp.org>
14819
14820         wcscmp: Move AC_LIBOBJ invocations to module description.
14821         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
14822         * modules/wcscmp (configure.ac): ... to here.
14823
14824 2011-05-22  Bruno Haible  <bruno@clisp.org>
14825
14826         wcschr: Move AC_LIBOBJ invocations to module description.
14827         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
14828         * modules/wcschr (configure.ac): ... to here.
14829
14830 2011-05-22  Bruno Haible  <bruno@clisp.org>
14831
14832         wcscat: Move AC_LIBOBJ invocations to module description.
14833         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
14834         * modules/wcscat (configure.ac): ... to here.
14835
14836 2011-05-22  Bruno Haible  <bruno@clisp.org>
14837
14838         wcscasecmp: Move AC_LIBOBJ invocations to module description.
14839         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
14840         here...
14841         * modules/wcscasecmp (configure.ac): ... to here.
14842
14843 2011-05-22  Bruno Haible  <bruno@clisp.org>
14844
14845         wcrtomb: Move AC_LIBOBJ invocations to module description.
14846         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
14847         invocations from here...
14848         * modules/wcrtomb (configure.ac): ... to here.
14849
14850 2011-05-22  Bruno Haible  <bruno@clisp.org>
14851
14852         wcpncpy: Move AC_LIBOBJ invocations to module description.
14853         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
14854         here...
14855         * modules/wcpncpy (configure.ac): ... to here.
14856
14857 2011-05-22  Bruno Haible  <bruno@clisp.org>
14858
14859         wcpcpy: Move AC_LIBOBJ invocations to module description.
14860         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
14861         * modules/wcpcpy (configure.ac): ... to here.
14862
14863 2011-05-22  Bruno Haible  <bruno@clisp.org>
14864
14865         waitpid: Move AC_LIBOBJ invocations to module description.
14866         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
14867         invocation from here...
14868         * modules/waitpid (configure.ac): ... to here.
14869
14870 2011-05-22  Bruno Haible  <bruno@clisp.org>
14871
14872         utimensat: Move AC_LIBOBJ invocations to module description.
14873         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
14874         here...
14875         * modules/utimensat (configure.ac): ... to here.
14876
14877 2011-05-22  Bruno Haible  <bruno@clisp.org>
14878
14879         usleep: Move AC_LIBOBJ invocations to module description.
14880         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
14881         here...
14882         * modules/usleep (configure.ac): ... to here.
14883
14884 2011-05-22  Bruno Haible  <bruno@clisp.org>
14885
14886         unlockpt: Move AC_LIBOBJ invocations to module description.
14887         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
14888         gl_PREREQ_UNLOCKPT invocations from here...
14889         * modules/unlockpt (configure.ac): ... to here.
14890
14891 2011-05-22  Bruno Haible  <bruno@clisp.org>
14892
14893         unlink: Respect rules for use of AC_LIBOBJ.
14894         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
14895         * modules/unlink (configure.ac): ... to here.
14896
14897 2011-05-22  Bruno Haible  <bruno@clisp.org>
14898
14899         uname: Move AC_LIBOBJ invocations to module description.
14900         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
14901         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
14902         here...
14903         * modules/uname (configure.ac): ... to here.
14904
14905 2011-05-22  Bruno Haible  <bruno@clisp.org>
14906
14907         ttyname_r: Move AC_LIBOBJ invocations to module description.
14908         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
14909         gl_PREREQ_TTYNAME_R invocations from here...
14910         * modules/ttyname_r (configure.ac): ... to here.
14911
14912 2011-05-22  Bruno Haible  <bruno@clisp.org>
14913
14914         tsearch: Move AC_LIBOBJ invocations to module description.
14915         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
14916         invocations from here...
14917         * modules/tsearch (configure.ac): ... to here.
14918
14919 2011-05-22  Bruno Haible  <bruno@clisp.org>
14920
14921         towctrans: Move AC_LIBOBJ invocations to module description.
14922         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
14923         AC_LIBOBJ invocation from here...
14924         * modules/towctrans (configure.ac): ... to here.
14925
14926 2011-05-22  Bruno Haible  <bruno@clisp.org>
14927
14928         tmpfile: Move AC_LIBOBJ invocations to module description.
14929         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
14930         invocations from here...
14931         * modules/tmpfile (configure.ac): ... to here.
14932
14933 2011-05-22  Bruno Haible  <bruno@clisp.org>
14934
14935         times: Move AC_LIBOBJ invocations to module description.
14936         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
14937         * modules/times (configure.ac): ... to here.
14938
14939 2011-05-22  Bruno Haible  <bruno@clisp.org>
14940
14941         time_r: Move AC_LIBOBJ invocations to module description.
14942         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
14943         invocations from here...
14944         * modules/time_r (configure.ac): ... to here.
14945
14946 2011-05-22  Bruno Haible  <bruno@clisp.org>
14947
14948         timegm: Move AC_LIBOBJ invocations to module description.
14949         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
14950         invocations from here...
14951         * modules/timegm (configure.ac): ... to here.
14952
14953 2011-05-22  Bruno Haible  <bruno@clisp.org>
14954
14955         tcgetsid: Move AC_LIBOBJ invocations to module description.
14956         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
14957         and gl_PREREQ_TCGETSID invocations from here...
14958         * modules/tcgetsid (configure.ac): ... to here.
14959         (Depends-on): Update conditions.
14960
14961 2011-05-22  Bruno Haible  <bruno@clisp.org>
14962
14963         symlinkat: Move AC_LIBOBJ invocations to module description.
14964         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
14965         here...
14966         * modules/symlinkat (configure.ac): ... to here.
14967
14968 2011-05-22  Bruno Haible  <bruno@clisp.org>
14969
14970         symlink: Move AC_LIBOBJ invocations to module description.
14971         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
14972         here...
14973         * modules/symlink (configure.ac): ... to here.
14974
14975 2011-05-22  Bruno Haible  <bruno@clisp.org>
14976
14977         strverscmp: Move AC_LIBOBJ invocations to module description.
14978         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
14979         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
14980         from here...
14981         * modules/strverscmp (configure.ac): ... to here.
14982
14983 2011-05-22  Bruno Haible  <bruno@clisp.org>
14984
14985         strtok_r: Move AC_LIBOBJ invocations to module description.
14986         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
14987         and gl_PREREQ_STRTOK_R invocations from here...
14988         * modules/strtok_r (configure.ac): ... to here.
14989         (Depends-on): Update conditions.
14990
14991 2011-05-22  Bruno Haible  <bruno@clisp.org>
14992
14993         strtoumax: Move AC_LIBOBJ invocations to module description.
14994         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
14995         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
14996         from here...
14997         * modules/strtoumax (configure.ac): ... to here.
14998
14999 2011-05-22  Bruno Haible  <bruno@clisp.org>
15000
15001         strtoimax: Move AC_LIBOBJ invocations to module description.
15002         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
15003         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
15004         from here...
15005         * modules/strtoimax (configure.ac): ... to here.
15006
15007 2011-05-22  Bruno Haible  <bruno@clisp.org>
15008
15009         strtoull: Move AC_LIBOBJ invocations to module description.
15010         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
15011         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
15012         from here...
15013         * modules/strtoull (configure.ac): ... to here.
15014
15015 2011-05-22  Bruno Haible  <bruno@clisp.org>
15016
15017         strtoll: Move AC_LIBOBJ invocations to module description.
15018         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
15019         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
15020         here...
15021         * modules/strtoll (configure.ac): ... to here.
15022
15023 2011-05-22  Bruno Haible  <bruno@clisp.org>
15024
15025         strtoul: Move AC_LIBOBJ invocations to module description.
15026         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
15027         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
15028         * modules/strtoul (configure.ac): ... to here.
15029
15030 2011-05-22  Bruno Haible  <bruno@clisp.org>
15031
15032         strtol: Move AC_LIBOBJ invocations to module description.
15033         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
15034         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
15035         * modules/strtol (configure.ac): ... to here.
15036
15037 2011-05-22  Bruno Haible  <bruno@clisp.org>
15038
15039         strtod: Move AC_LIBOBJ invocations to module description.
15040         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
15041         invocations from here...
15042         * modules/strtod (configure.ac): ... to here.
15043
15044 2011-05-22  Bruno Haible  <bruno@clisp.org>
15045
15046         strstr*: Move AC_LIBOBJ invocations to module description.
15047         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
15048         invocations from here...
15049         * modules/strstr-simple (configure.ac): ... to here.
15050         * modules/strstr (configure.ac): ... and here.
15051
15052 2011-05-22  Bruno Haible  <bruno@clisp.org>
15053
15054         strsignal: Move AC_LIBOBJ invocations to module description.
15055         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
15056         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
15057         * modules/strsignal (configure.ac): ... to here.
15058         (Depends-on): Update conditions.
15059
15060 2011-05-22  Bruno Haible  <bruno@clisp.org>
15061
15062         strsep: Move AC_LIBOBJ invocations to module description.
15063         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
15064         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
15065         here...
15066         * modules/strsep (configure.ac): ... to here.
15067
15068 2011-05-22  Bruno Haible  <bruno@clisp.org>
15069
15070         strptime: Move AC_LIBOBJ invocations to module description.
15071         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
15072         gl_PREREQ_STRPTIME invocations from here...
15073         * modules/strptime (configure.ac): ... to here.
15074
15075 2011-05-22  Bruno Haible  <bruno@clisp.org>
15076
15077         strpbrk: Move AC_LIBOBJ invocations to module description.
15078         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
15079         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
15080         here...
15081         * modules/strpbrk (configure.ac): ... to here.
15082
15083 2011-05-22  Bruno Haible  <bruno@clisp.org>
15084
15085         strnlen: Move AC_LIBOBJ invocations to module description.
15086         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
15087         invocations from here...
15088         * modules/strnlen (configure.ac): ... to here.
15089
15090 2011-05-22  Bruno Haible  <bruno@clisp.org>
15091
15092         strndup: Move AC_LIBOBJ invocations to module description.
15093         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
15094         invocations from here...
15095         * modules/strndup (configure.ac): ... to here.
15096         (Depends-on): Update conditions.
15097
15098 2011-05-22  Bruno Haible  <bruno@clisp.org>
15099
15100         strncat: Move AC_LIBOBJ invocations to module description.
15101         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
15102         invocations from here...
15103         * modules/strncat (configure.ac): ... to here.
15104
15105 2011-05-22  Bruno Haible  <bruno@clisp.org>
15106
15107         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
15108         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
15109         invocations from here...
15110         * modules/strdup (configure.ac): ... to here.
15111         * modules/strdup-posix (configure.ac): ... and here.
15112
15113 2011-05-22  Bruno Haible  <bruno@clisp.org>
15114
15115         strcspn: Move AC_LIBOBJ invocations to module description.
15116         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
15117         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
15118         here...
15119         * modules/strcspn (configure.ac): ... to here.
15120
15121 2011-05-22  Bruno Haible  <bruno@clisp.org>
15122
15123         strchrnul: Move AC_LIBOBJ invocations to module description.
15124         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
15125         gl_PREREQ_STRCHRNUL invocations from here...
15126         * modules/strchrnul (configure.ac): ... to here.
15127
15128 2011-05-22  Bruno Haible  <bruno@clisp.org>
15129
15130         strcasestr*: Move AC_LIBOBJ invocations to module description.
15131         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
15132         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
15133         * modules/strcasestr-simple (configure.ac): ... to here.
15134         * modules/strcasestr (configure.ac): ... and here.
15135
15136 2011-05-22  Bruno Haible  <bruno@clisp.org>
15137
15138         strcase: Move AC_LIBOBJ invocations to module description.
15139         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
15140         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
15141         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
15142         gl_PREREQ_STRNCASECMP invocations from here...
15143         * modules/strcase (configure.ac): ... to here.
15144
15145 2011-05-22  Bruno Haible  <bruno@clisp.org>
15146
15147         stpncpy: Move AC_LIBOBJ invocations to module description.
15148         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
15149         here...
15150         * modules/stpncpy (configure.ac): ... to here.
15151
15152 2011-05-22  Bruno Haible  <bruno@clisp.org>
15153
15154         stpcpy: Move AC_LIBOBJ invocations to module description.
15155         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
15156         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
15157         here...
15158         * modules/stpcpy (configure.ac): ... to here.
15159
15160 2011-05-21  Bruno Haible  <bruno@clisp.org>
15161
15162         stat: Move AC_LIBOBJ invocations to module description.
15163         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
15164         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
15165         here...
15166         * modules/stat (configure.ac): ... to here.
15167
15168 2011-05-21  Bruno Haible  <bruno@clisp.org>
15169
15170         sleep: Move AC_LIBOBJ invocations to module description.
15171         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
15172         * modules/sleep (configure.ac): ... to here.
15173
15174 2011-05-21  Bruno Haible  <bruno@clisp.org>
15175
15176         signbit: Move AC_LIBOBJ invocations to module description.
15177         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
15178         * modules/signbit (configure.ac): ... to here.
15179
15180 2011-05-21  Bruno Haible  <bruno@clisp.org>
15181
15182         sigprocmask: Move AC_LIBOBJ invocations to module description.
15183         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
15184         gl_PREREQ_SIGPROMASK invocations from here...
15185         * modules/sigprocmask (configure.ac): ... to here.
15186
15187 2011-05-21  Bruno Haible  <bruno@clisp.org>
15188
15189         sigaction: Move AC_LIBOBJ invocations to module description.
15190         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
15191         gl_PREREQ_SIGACTION invocations from here...
15192         * modules/sigaction (configure.ac): ... to here.
15193
15194 2011-05-21  Bruno Haible  <bruno@clisp.org>
15195
15196         sig2str: Move AC_LIBOBJ invocations to module description.
15197         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
15198         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
15199         here...
15200         * modules/sig2str (configure.ac): ... to here.
15201
15202 2011-05-21  Bruno Haible  <bruno@clisp.org>
15203
15204         setlocale: Move AC_LIBOBJ invocations to module description.
15205         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
15206         gl_PREREQ_SETLOCALE invocations from here...
15207         * modules/setlocale (configure.ac): ... to here.
15208
15209 2011-05-21  Bruno Haible  <bruno@clisp.org>
15210
15211         unsetenv: Move AC_LIBOBJ invocations to module description.
15212         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
15213         and gl_PREREQ_UNSETENV invocations from here...
15214         * modules/unsetenv (configure.ac): ... to here.
15215         (Depends-on): Update.
15216
15217 2011-05-21  Bruno Haible  <bruno@clisp.org>
15218
15219         setenv: Move AC_LIBOBJ invocations to module description.
15220         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
15221         here...
15222         * modules/setenv (configure.ac): ... to here.
15223
15224 2011-05-21  Bruno Haible  <bruno@clisp.org>
15225
15226         selinux-h: Move AC_LIBOBJ invocations to module description.
15227         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
15228         AC_LIBOBJ invocation from here...
15229         * modules/selinux-h (configure.ac): ... to here.
15230
15231 2011-05-21  Bruno Haible  <bruno@clisp.org>
15232
15233         select: Respect rules for use of AC_LIBOBJ.
15234         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
15235         here...
15236         * modules/select (configure.ac): ... to here.
15237
15238 2011-05-21  Bruno Haible  <bruno@clisp.org>
15239
15240         scandir: Move AC_LIBOBJ invocations to module description.
15241         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
15242         invocations from here...
15243         * modules/scandir (configure.ac): ... to here.
15244
15245 2011-05-21  Bruno Haible  <bruno@clisp.org>
15246
15247         rpmatch: Move AC_LIBOBJ invocations to module description.
15248         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
15249         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
15250         here...
15251         * modules/rpmatch (configure.ac): ... to here.
15252
15253 2011-05-21  Bruno Haible  <bruno@clisp.org>
15254
15255         rmdir: Respect rules for use of AC_LIBOBJ.
15256         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
15257         * modules/rmdir (configure.ac): ... to here.
15258
15259 2011-05-21  Bruno Haible  <bruno@clisp.org>
15260
15261         renameat: Move AC_LIBOBJ invocations to module description.
15262         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
15263         here...
15264         * modules/renameat (configure.ac): ... to here.
15265
15266 2011-05-21  Bruno Haible  <bruno@clisp.org>
15267
15268         rename: Respect rules for use of AC_LIBOBJ.
15269         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
15270         here...
15271         * modules/rename (configure.ac): ... to here.
15272
15273 2011-05-21  Bruno Haible  <bruno@clisp.org>
15274
15275         remove: Move AC_LIBOBJ invocations to module description.
15276         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
15277         here...
15278         * modules/remove (configure.ac): ... to here.
15279
15280 2011-05-21  Bruno Haible  <bruno@clisp.org>
15281
15282         relocatable-lib: Move AC_LIBOBJ invocations to module description.
15283         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
15284         macro.
15285         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
15286         * modules/relocatable-lib (configure.ac): ... to here.
15287         * modules/relocatable-prog-wrapper (configure.ac): Invoke
15288         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
15289
15290 2011-05-21  Bruno Haible  <bruno@clisp.org>
15291
15292         relocatable-prog: Move AC_LIBOBJ invocations to module description.
15293         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
15294         here...
15295         * modules/relocatable-prog (configure.ac): ... to here.
15296
15297 2011-05-21  Bruno Haible  <bruno@clisp.org>
15298
15299         regex: Move AC_LIBOBJ invocations to module description.
15300         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
15301         invocations from here...
15302         * modules/regex (configure.ac): ... to here.
15303
15304 2011-05-21  Bruno Haible  <bruno@clisp.org>
15305
15306         realloc-*: Move AC_LIBOBJ invocations to module description.
15307         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
15308         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
15309         AC_LIBOBJ invocations from here...
15310         * modules/realloc-gnu (configure.ac): ... to here.
15311         * modules/realloc-posix (configure.ac): ... and here.
15312
15313 2011-05-21  Bruno Haible  <bruno@clisp.org>
15314
15315         readutmp: Move AC_LIBOBJ invocations to module description.
15316         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
15317         * modules/readutmp (configure.ac): ... to here.
15318
15319 2011-05-21  Bruno Haible  <bruno@clisp.org>
15320
15321         readlinkat: Move AC_LIBOBJ invocations to module description.
15322         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
15323         here...
15324         * modules/readlinkat (configure.ac): ... to here.
15325
15326 2011-05-21  Bruno Haible  <bruno@clisp.org>
15327
15328         readlink: Move AC_LIBOBJ invocations to module description.
15329         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
15330         gl_PREREQ_READLINK invocations from here...
15331         * modules/readlink (configure.ac): ... to here.
15332
15333 2011-05-21  Bruno Haible  <bruno@clisp.org>
15334
15335         readline: Move AC_LIBOBJ invocations to module description.
15336         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
15337         gl_PREREQ_READLINE invocations from here...
15338         * modules/readline (configure.ac): ... to here.
15339
15340 2011-05-21  Bruno Haible  <bruno@clisp.org>
15341
15342         read: Move AC_LIBOBJ invocations to module description.
15343         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
15344         * modules/read (configure.ac): ... to here.
15345
15346 2011-05-21  Bruno Haible  <bruno@clisp.org>
15347
15348         rawmemchr: Move AC_LIBOBJ invocations to module description.
15349         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
15350         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
15351         from here...
15352         * modules/rawmemchr (configure.ac): ... to here.
15353
15354 2011-05-21  Bruno Haible  <bruno@clisp.org>
15355
15356         random_r: Move AC_LIBOBJ invocations to module description.
15357         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
15358         gl_PREREQ_RANDOM_R invocations from here...
15359         * modules/random_r (configure.ac): ... to here.
15360
15361 2011-05-21  Bruno Haible  <bruno@clisp.org>
15362
15363         pwrite: Move AC_LIBOBJ invocations to module description.
15364         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
15365         * modules/pwrite (configure.ac): ... to here.
15366
15367 2011-05-21  Bruno Haible  <bruno@clisp.org>
15368
15369         putenv: Move AC_LIBOBJ invocations to module description.
15370         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
15371         * modules/putenv (configure.ac): ... to here.
15372
15373 2011-05-21  Bruno Haible  <bruno@clisp.org>
15374
15375         login_tty: Move AC_LIBOBJ invocations to module description.
15376         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
15377         * modules/login_tty (configure.ac): ... to here.
15378
15379 2011-05-21  Bruno Haible  <bruno@clisp.org>
15380
15381         openpty: Move AC_LIBOBJ invocations to module description.
15382         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
15383         * modules/openpty (configure.ac): ... to here.
15384
15385 2011-05-21  Bruno Haible  <bruno@clisp.org>
15386
15387         forkpty: Move AC_LIBOBJ invocations to module description.
15388         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
15389         * modules/forkpty (configure.ac): ... to here.
15390
15391 2011-05-21  Bruno Haible  <bruno@clisp.org>
15392
15393         ptsname: Move AC_LIBOBJ invocations to module description.
15394         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
15395         invocations from here...
15396         * modules/ptsname (configure.ac): ... to here.
15397
15398 2011-05-21  Bruno Haible  <bruno@clisp.org>
15399
15400         pread: Move AC_LIBOBJ invocations to module description.
15401         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
15402         * modules/pread (configure.ac): ... to here.
15403
15404 2011-05-21  Bruno Haible  <bruno@clisp.org>
15405
15406         posix_spawn*: Move AC_LIBOBJ invocations to module description.
15407         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
15408         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
15409         * modules/posix_spawn (configure.ac): ... to here.
15410         * modules/posix_spawnp (configure.ac): ... and here.
15411
15412 2011-05-21  Bruno Haible  <bruno@clisp.org>
15413
15414         popen: Move AC_LIBOBJ invocations to module description.
15415         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
15416         invocations from here...
15417         * modules/popen (configure.ac): ... to here.
15418
15419 2011-05-21  Bruno Haible  <bruno@clisp.org>
15420
15421         poll: Move AC_LIBOBJ invocations to module description.
15422         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
15423         invocations from here...
15424         * modules/poll (configure.ac): ... to here.
15425
15426 2011-05-21  Bruno Haible  <bruno@clisp.org>
15427
15428         pipe-posix: Move AC_LIBOBJ invocations to module description.
15429         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
15430         * modules/pipe-posix (configure.ac): ... to here.
15431
15432 2011-05-21  Bruno Haible  <bruno@clisp.org>
15433
15434         openat: Respect rules for use of AC_LIBOBJ.
15435         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
15436         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
15437         * modules/openat (configure.ac): ... to here.
15438
15439 2011-05-21  Bruno Haible  <bruno@clisp.org>
15440
15441         obstack-printf*: Move AC_LIBOBJ invocations to module description.
15442         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
15443         invocation from here...
15444         * modules/obstack-printf (configure.ac): ... to here.
15445         * modules/obstack-printf-posix (configure.ac): ... and here.
15446
15447 2011-05-21  Bruno Haible  <bruno@clisp.org>
15448
15449         nl_langinfo: Move AC_LIBOBJ invocations to module description.
15450         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
15451         from here...
15452         * modules/nl_langinfo (configure.ac): ... to here.
15453
15454 2011-05-21  Bruno Haible  <bruno@clisp.org>
15455
15456         nanosleep: Move AC_LIBOBJ invocations to module description.
15457         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
15458         gl_PREREQ_NANOSLEEP invocations from here...
15459         * modules/nanosleep (configure.ac): ... to here.
15460
15461 2011-05-21  Bruno Haible  <bruno@clisp.org>
15462
15463         mountlist: Move AC_LIBOBJ invocations to module description.
15464         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
15465         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
15466         * modules/mountlist (configure.ac): ... to here.
15467
15468 2011-05-21  Bruno Haible  <bruno@clisp.org>
15469
15470         mktime: Respect rules for use of AC_LIBOBJ.
15471         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
15472         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
15473         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
15474         (gl_FUNC_MKTIME_INTERNAL): ... and here...
15475         * modules/mktime (configure.ac): ... to here.
15476         * modules/mktime-internal (configure.ac): ... and here.
15477         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
15478
15479 2011-05-21  Bruno Haible  <bruno@clisp.org>
15480
15481         mkstemps: Move AC_LIBOBJ invocations to module description.
15482         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
15483         here...
15484         * modules/mkstemps (configure.ac): ... to here.
15485
15486 2011-05-21  Bruno Haible  <bruno@clisp.org>
15487
15488         mkstemp: Move AC_LIBOBJ invocations to module description.
15489         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
15490         gl_PREREQ_MKSTEMP invocations from here...
15491         * modules/mkstemp (configure.ac): ... to here.
15492
15493 2011-05-21  Bruno Haible  <bruno@clisp.org>
15494
15495         mkostemps: Move AC_LIBOBJ invocations to module description.
15496         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
15497         here...
15498         * modules/mkostemps (configure.ac): ... to here.
15499
15500 2011-05-21  Bruno Haible  <bruno@clisp.org>
15501
15502         mkostemp: Move AC_LIBOBJ invocations to module description.
15503         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
15504         gl_PREREQ_MKOSTEMP invocations from here...
15505         * modules/mkostemp (configure.ac): ... to here.
15506
15507 2011-05-21  Bruno Haible  <bruno@clisp.org>
15508
15509         mknod: Move AC_LIBOBJ invocations to module description.
15510         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
15511         * modules/mknod (configure.ac): ... to here.
15512
15513 2011-05-21  Bruno Haible  <bruno@clisp.org>
15514
15515         mkfifoat: Move AC_LIBOBJ invocations to module description.
15516         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
15517         here...
15518         * modules/mkfifoat (configure.ac): ... to here.
15519
15520 2011-05-21  Bruno Haible  <bruno@clisp.org>
15521
15522         mkfifo: Respect rules for use of AC_LIBOBJ.
15523         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
15524         here...
15525         * modules/mkfifo (configure.ac): ... to here.
15526
15527 2011-05-21  Bruno Haible  <bruno@clisp.org>
15528
15529         mkdtemp: Move AC_LIBOBJ invocations to module description.
15530         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
15531         invocations from here...
15532         * modules/mkdtemp (configure.ac): ... to here.
15533
15534 2011-05-21  Bruno Haible  <bruno@clisp.org>
15535
15536         mkdir: Move AC_LIBOBJ invocations to module description.
15537         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
15538         * modules/mkdir (configure.ac): ... to here.
15539
15540 2011-05-21  Bruno Haible  <bruno@clisp.org>
15541
15542         memset: Move AC_LIBOBJ invocations to module description.
15543         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
15544         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
15545         here...
15546         * modules/memset (configure.ac): ... to here.
15547
15548 2011-05-21  Bruno Haible  <bruno@clisp.org>
15549
15550         memrchr: Move AC_LIBOBJ invocations to module description.
15551         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
15552         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
15553         here...
15554         * modules/memrchr (configure.ac): ... to here.
15555
15556 2011-05-21  Bruno Haible  <bruno@clisp.org>
15557
15558         mempcpy: Move AC_LIBOBJ invocations to module description.
15559         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
15560         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
15561         here...
15562         * modules/mempcpy (configure.ac): ... to here.
15563
15564 2011-05-21  Bruno Haible  <bruno@clisp.org>
15565
15566         memmove: Move AC_LIBOBJ invocations to module description.
15567         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
15568         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
15569         here...
15570         * modules/memmove (configure.ac): ... to here.
15571
15572 2011-05-21  Bruno Haible  <bruno@clisp.org>
15573
15574         memmem*: Move AC_LIBOBJ invocations to module description.
15575         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
15576         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
15577         here...
15578         (gl_FUNC_MEMMEM): ... and here...
15579         * modules/memmem-simple (configure.ac): ... to here.
15580         * modules/memmem (configure.ac): ... and here.
15581
15582 2011-05-21  Bruno Haible  <bruno@clisp.org>
15583
15584         memcpy: Move AC_LIBOBJ invocations to module description.
15585         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
15586         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
15587         here...
15588         * modules/memcpy (configure.ac): ... to here.
15589
15590 2011-05-21  Bruno Haible  <bruno@clisp.org>
15591
15592         memcmp: Simplify autoconf macro.
15593         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
15594         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
15595         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
15596
15597 2011-05-21  Bruno Haible  <bruno@clisp.org>
15598
15599         memcmp: Move AC_LIBOBJ invocations to module description.
15600         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
15601         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
15602         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
15603         * modules/memcmp (configure.ac): ... to here.
15604         (Depends-on): Update conditions.
15605
15606 2011-05-21  Bruno Haible  <bruno@clisp.org>
15607
15608         memchr: Respect rules for use of AC_LIBOBJ.
15609         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
15610         invocations from here...
15611         * modules/memchr (configure.ac): ... to here.
15612
15613 2011-05-21  Bruno Haible  <bruno@clisp.org>
15614
15615         mbtowc: Move AC_LIBOBJ invocations to module description.
15616         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
15617         invocations from here...
15618         * modules/mbtowc (configure.ac): ... to here.
15619
15620 2011-05-21  Bruno Haible  <bruno@clisp.org>
15621
15622         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
15623         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
15624         gl_PREREQ_MBSRTOWCS invocations from here...
15625         * modules/mbsrtowcs (configure.ac): ... to here.
15626
15627 2011-05-21  Bruno Haible  <bruno@clisp.org>
15628
15629         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
15630         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
15631         gl_PREREQ_MBSNRTOWCS invocations from here...
15632         * modules/mbsnrtowcs (configure.ac): ... to here.
15633
15634 2011-05-21  Bruno Haible  <bruno@clisp.org>
15635
15636         mbsinit: Move AC_LIBOBJ invocations to module description.
15637         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
15638         invocations from here...
15639         * modules/mbsinit (configure.ac): ... to here.
15640
15641 2011-05-21  Bruno Haible  <bruno@clisp.org>
15642
15643         mbrlen: Move AC_LIBOBJ invocations to module description.
15644         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
15645         invocations from here...
15646         * modules/mbrlen (configure.ac): ... to here.
15647
15648 2011-05-21  Bruno Haible  <bruno@clisp.org>
15649
15650         mbrtowc: Respect rules for use of AC_LIBOBJ.
15651         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
15652         invocations from here...
15653         * modules/mbrtowc (configure.ac): ... to here.
15654
15655 2011-05-21  Bruno Haible  <bruno@clisp.org>
15656
15657         malloc-*: Move AC_LIBOBJ invocations to module description.
15658         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
15659         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
15660         AC_LIBOBJ invocations from here...
15661         * modules/malloc-gnu (configure.ac): ... to here.
15662         * modules/malloc-posix (configure.ac): ... and here.
15663
15664 2011-05-21  Bruno Haible  <bruno@clisp.org>
15665
15666         lstat, openat: Respect rules for use of AC_LIBOBJ.
15667         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
15668         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
15669         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
15670         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
15671         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
15672         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
15673         here.
15674         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
15675
15676 2011-05-21  Bruno Haible  <bruno@clisp.org>
15677
15678         lseek: Move AC_LIBOBJ invocations to module description.
15679         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
15680         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15681         * modules/lseek (configure.ac): ... to here.
15682
15683 2011-05-21  Bruno Haible  <bruno@clisp.org>
15684
15685         linkat: Move AC_LIBOBJ invocations to module description.
15686         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
15687         here...
15688         * modules/linkat (configure.ac): ... to here.
15689
15690 2011-05-21  Bruno Haible  <bruno@clisp.org>
15691
15692         link: Respect rules for use of AC_LIBOBJ.
15693         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
15694         * modules/link (configure.ac): ... to here.
15695
15696 2011-05-21  Bruno Haible  <bruno@clisp.org>
15697
15698         lchown: Move AC_LIBOBJ invocations to module description.
15699         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15700         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
15701         * modules/lchown (configure.ac): ... to here.
15702
15703 2011-05-21  Bruno Haible  <bruno@clisp.org>
15704
15705         iswctype: Move AC_LIBOBJ invocations to module description.
15706         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
15707         here...
15708         * modules/iswctype (configure.ac): ... to here.
15709
15710 2011-05-21  Bruno Haible  <bruno@clisp.org>
15711
15712         iswblank: Move AC_LIBOBJ invocations to module description.
15713         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
15714         here...
15715         * modules/iswblank (configure.ac): ... to here.
15716
15717 2011-05-21  Bruno Haible  <bruno@clisp.org>
15718
15719         atanl: Move AC_LIBOBJ invocations to module description.
15720         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
15721         * modules/atanl (configure.ac): ... to here.
15722
15723 2011-05-21  Bruno Haible  <bruno@clisp.org>
15724
15725         acosl: Move AC_LIBOBJ invocations to module description.
15726         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
15727         * modules/acosl (configure.ac): ... to here.
15728
15729 2011-05-21  Bruno Haible  <bruno@clisp.org>
15730
15731         asinl: Respect rules for use of AC_LIBOBJ.
15732         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
15733         * modules/asinl (configure.ac): ... to here.
15734
15735 2011-05-21  Bruno Haible  <bruno@clisp.org>
15736
15737         tanl: Move AC_LIBOBJ invocations to module description.
15738         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
15739         * modules/tanl (configure.ac): ... to here.
15740
15741 2011-05-21  Bruno Haible  <bruno@clisp.org>
15742
15743         cosl: Move AC_LIBOBJ invocations to module description.
15744         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
15745         * modules/cosl (configure.ac): ... to here.
15746
15747 2011-05-21  Bruno Haible  <bruno@clisp.org>
15748
15749         sinl: Move AC_LIBOBJ invocations to module description.
15750         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
15751         * modules/sinl (configure.ac): ... to here.
15752
15753 2011-05-21  Bruno Haible  <bruno@clisp.org>
15754
15755         logl: Move AC_LIBOBJ invocations to module description.
15756         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
15757         * modules/logl (configure.ac): ... to here.
15758
15759 2011-05-21  Bruno Haible  <bruno@clisp.org>
15760
15761         expl: Move AC_LIBOBJ invocations to module description.
15762         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
15763         * modules/expl (configure.ac): ... to here.
15764
15765 2011-05-21  Bruno Haible  <bruno@clisp.org>
15766
15767         roundl: Move AC_LIBOBJ invocations to module description.
15768         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
15769         * modules/roundl (configure.ac): ... to here.
15770
15771 2011-05-21  Bruno Haible  <bruno@clisp.org>
15772
15773         round: Move AC_LIBOBJ invocations to module description.
15774         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
15775         * modules/round (configure.ac): ... to here.
15776
15777 2011-05-21  Bruno Haible  <bruno@clisp.org>
15778
15779         roundf: Move AC_LIBOBJ invocations to module description.
15780         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
15781         * modules/roundf (configure.ac): ... to here.
15782
15783 2011-05-21  Bruno Haible  <bruno@clisp.org>
15784
15785         truncl: Move AC_LIBOBJ invocations to module description.
15786         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
15787         * modules/truncl (configure.ac): ... to here.
15788
15789 2011-05-21  Bruno Haible  <bruno@clisp.org>
15790
15791         trunc: Move AC_LIBOBJ invocations to module description.
15792         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
15793         * modules/trunc (configure.ac): ... to here.
15794
15795 2011-05-21  Bruno Haible  <bruno@clisp.org>
15796
15797         truncf: Move AC_LIBOBJ invocations to module description.
15798         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
15799         * modules/truncf (configure.ac): ... to here.
15800
15801 2011-05-21  Bruno Haible  <bruno@clisp.org>
15802
15803         ceill: Move AC_LIBOBJ invocations to module description.
15804         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
15805         * modules/ceill (configure.ac): ... to here.
15806
15807 2011-05-21  Bruno Haible  <bruno@clisp.org>
15808
15809         ceil: Move AC_LIBOBJ invocations to module description.
15810         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
15811         * modules/ceil (configure.ac): ... to here.
15812
15813 2011-05-21  Bruno Haible  <bruno@clisp.org>
15814
15815         ceilf: Move AC_LIBOBJ invocations to module description.
15816         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
15817         * modules/ceilf (configure.ac): ... to here.
15818
15819 2011-05-21  Bruno Haible  <bruno@clisp.org>
15820
15821         floorl: Respect rules for use of AC_LIBOBJ.
15822         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
15823         * modules/floorl (configure.ac): ... to here.
15824
15825 2011-05-21  Bruno Haible  <bruno@clisp.org>
15826
15827         floor: Respect rules for use of AC_LIBOBJ.
15828         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
15829         * modules/floor (configure.ac): ... to here.
15830
15831 2011-05-21  Bruno Haible  <bruno@clisp.org>
15832
15833         floorf: Move AC_LIBOBJ invocations to module description.
15834         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
15835         * modules/floorf (configure.ac): ... to here.
15836
15837 2011-05-20  Bruno Haible  <bruno@clisp.org>
15838
15839         sqrtl: Respect rules for use of AC_LIBOBJ.
15840         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
15841         * modules/sqrtl (configure.ac): ... to here.
15842
15843 2011-05-20  Bruno Haible  <bruno@clisp.org>
15844
15845         ldexpl: Respect rules for use of AC_LIBOBJ.
15846         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
15847         * modules/ldexpl (configure.ac): ... to here.
15848
15849 2011-05-20  Bruno Haible  <bruno@clisp.org>
15850
15851         frexpl*: Respect rules for use of AC_LIBOBJ.
15852         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
15853         invocation from here...
15854         * modules/frexpl (configure.ac): ... to here.
15855         * modules/frexpl-nolibm (configure.ac): ... and here.
15856
15857 2011-05-20  Bruno Haible  <bruno@clisp.org>
15858
15859         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
15860         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
15861         invocation from here...
15862         * modules/frexp (configure.ac): ... to here.
15863         * modules/frexp-nolibm (configure.ac): ... and here.
15864
15865 2011-05-20  Bruno Haible  <bruno@clisp.org>
15866
15867         isnan: Respect rules for use of AC_LIBOBJ.
15868         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
15869         invocations here.
15870         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
15871         REPLACE_ISNAN.
15872         * modules/isnand (configure.ac): Likewise.
15873         * modules/isnanl (configure.ac): Likewise.
15874
15875 2011-05-20  Bruno Haible  <bruno@clisp.org>
15876
15877         isnanl*: Respect rules for use of AC_LIBOBJ.
15878         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
15879         invocation from here...
15880         * modules/isnanl (configure.ac): ... to here.
15881         * modules/isnanl-nolibm (configure.ac): ... and here.
15882
15883 2011-05-20  Bruno Haible  <bruno@clisp.org>
15884
15885         isnand*: Move AC_LIBOBJ invocations to module description.
15886         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
15887         invocation from here...
15888         * modules/isnand (configure.ac): ... to here.
15889         * modules/isnand-nolibm (configure.ac): ... and here.
15890
15891 2011-05-20  Bruno Haible  <bruno@clisp.org>
15892
15893         isnanf*: Move AC_LIBOBJ invocations to module description.
15894         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
15895         invocation from here...
15896         * modules/isnanf (configure.ac): ... to here.
15897         * modules/isnanf-nolibm (configure.ac): ... and here.
15898
15899 2011-05-20  Bruno Haible  <bruno@clisp.org>
15900
15901         isnan*: Separate the AC_LIBOBJ invocations.
15902         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
15903         AC_LIBOBJ invocation.
15904         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
15905         here.
15906         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
15907         AC_LIBOBJ invocation.
15908         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
15909         here.
15910         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
15911         AC_LIBOBJ invocation.
15912         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
15913         here.
15914         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
15915
15916 2011-05-08  Bruno Haible  <bruno@clisp.org>
15917
15918         isinf: Move AC_LIBOBJ invocations to module description.
15919         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
15920         * modules/isinf (configure.ac): ... to here.
15921
15922 2011-05-08  Bruno Haible  <bruno@clisp.org>
15923
15924         isfinite: Move AC_LIBOBJ invocations to module description.
15925         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
15926         * modules/isfinite (configure.ac): ... to here.
15927
15928 2011-05-08  Bruno Haible  <bruno@clisp.org>
15929
15930         isblank: Move AC_LIBOBJ invocations to module description.
15931         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
15932         here...
15933         * modules/isblank (configure.ac): ... to here.
15934
15935 2011-05-08  Bruno Haible  <bruno@clisp.org>
15936
15937         isapipe: Move AC_LIBOBJ invocations to module description.
15938         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
15939         gl_PREREQ_ISAPIPE invocations from here...
15940         * modules/isapipe (configure.ac): ... to here.
15941         (Depends-on): Update condition.
15942
15943 2011-05-08  Bruno Haible  <bruno@clisp.org>
15944
15945         ioctl: Move AC_LIBOBJ invocations to module description.
15946         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
15947         invocations from here...
15948         * modules/ioctl (configure.ac): ... to here.
15949         (Depends-on): Update condition.
15950
15951 2011-05-08  Bruno Haible  <bruno@clisp.org>
15952
15953         imaxdiv: Move AC_LIBOBJ invocations to module description.
15954         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
15955         invocations from here...
15956         * modules/imaxdiv (configure.ac): ... to here.
15957
15958 2011-05-08  Bruno Haible  <bruno@clisp.org>
15959
15960         imaxabs: Move AC_LIBOBJ invocations to module description.
15961         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
15962         invocations from here...
15963         * modules/imaxabs (configure.ac): ... to here.
15964
15965 2011-05-08  Bruno Haible  <bruno@clisp.org>
15966
15967         getaddrinfo: Move AC_LIBOBJ invocations to module description.
15968         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
15969         AC_LIBOBJ invocations from here...
15970         * modules/getaddrinfo (configure.ac): ... to here.
15971         (Depends-on): Add conditions.
15972
15973 2011-05-08  Bruno Haible  <bruno@clisp.org>
15974
15975         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15976         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
15977         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15978         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
15979         (gl_PREREQ_INET_PTON): ... from here.
15980         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
15981         gl_PREREQ_INET_PTON here.
15982         (Depends-on): Update condition.
15983
15984 2011-05-08  Bruno Haible  <bruno@clisp.org>
15985
15986         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15987         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
15988         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15989         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
15990         (gl_PREREQ_INET_NTOP): ... from here.
15991         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
15992         gl_PREREQ_INET_NTOP here.
15993         (Depends-on): Update condition.
15994
15995 2011-05-08  Bruno Haible  <bruno@clisp.org>
15996
15997         iconv_open: Move AC_LIBOBJ invocations to module description.
15998         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
15999         AC_LIBOBJ invocations from here...
16000         * modules/iconv_open (configure.ac): ... to here.
16001
16002 2011-05-08  Bruno Haible  <bruno@clisp.org>
16003
16004         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
16005         If module 'iconv_open' is among the main modules and module
16006         'iconv_open-utf' is among the tests dependencies, then
16007         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
16008         return the special iconv_t values. Therefore iconv() and iconv_close()
16009         must support these special iconv_t values, already in lib, not only in
16010         tests.
16011         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
16012         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
16013         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
16014         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
16015         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
16016         (Depends-on): Add the dependencies of iconv_open-utf.
16017         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
16018         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
16019         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
16020
16021 2011-05-08  Bruno Haible  <bruno@clisp.org>
16022
16023         group-member: Move AC_LIBOBJ invocations to module description.
16024         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
16025         gl_PREREQ_GROUP_MEMBER invocations from here...
16026         * modules/group-member (configure.ac): ... to here.
16027
16028 2011-05-08  Bruno Haible  <bruno@clisp.org>
16029
16030         grantpt: Move AC_LIBOBJ invocations to module description.
16031         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
16032         invocations from here...
16033         * modules/grantpt (configure.ac): ... to here.
16034
16035 2011-05-08  Bruno Haible  <bruno@clisp.org>
16036
16037         glob: Move AC_LIBOBJ invocations to module description.
16038         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
16039         from here...
16040         * modules/glob (configure.ac): ... to here.
16041
16042 2011-05-08  Bruno Haible  <bruno@clisp.org>
16043
16044         getusershell: Move AC_LIBOBJ invocations to module description.
16045         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
16046         Move AC_LIBOBJ invocation from here...
16047         * modules/getusershell (configure.ac): ... to here.
16048         (Depends-on): Update condition.
16049
16050 2011-05-08  Bruno Haible  <bruno@clisp.org>
16051
16052         gettimeofday: Move AC_LIBOBJ invocations to module description.
16053         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
16054         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
16055         gl_PREREQ_GETTIMEOFDAY invocations from here...
16056         * modules/gettimeofday (configure.ac): ... to here.
16057
16058 2011-05-08  Bruno Haible  <bruno@clisp.org>
16059
16060         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
16061         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
16062         just gl_FUNC_TZSET.
16063         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
16064         (gl_FUNC_TZSET_CLOBBER): Remove actions.
16065         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
16066         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
16067
16068 2011-05-08  Bruno Haible  <bruno@clisp.org>
16069
16070         getsubopt: Move AC_LIBOBJ invocations to module description.
16071         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
16072         gl_PREREQ_GETSUBOPT invocations from here...
16073         * modules/getsubopt (configure.ac): ... to here.
16074
16075 2011-05-08  Bruno Haible  <bruno@clisp.org>
16076
16077         getpass-gnu: Move AC_LIBOBJ invocations to module description.
16078         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
16079         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
16080         * modules/getpass-gnu (configure.ac): ... to here.
16081
16082 2011-05-08  Bruno Haible  <bruno@clisp.org>
16083
16084         getpass: Move AC_LIBOBJ invocations to module description.
16085         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
16086         gl_PREREQ_GETPASS invocations from here...
16087         * modules/getpass (configure.ac): ... to here.
16088
16089 2011-05-08  Bruno Haible  <bruno@clisp.org>
16090
16091         getpagesize: Move AC_LIBOBJ invocations to module description.
16092         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
16093         from here...
16094         * modules/getpagesize (configure.ac): ... to here.
16095
16096 2011-05-08  Bruno Haible  <bruno@clisp.org>
16097
16098         getopt: Move AC_LIBOBJ invocations to module description.
16099         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
16100         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
16101         invocations from here...
16102         * modules/getopt-gnu (configure.ac): ... to here.
16103         * modules/getopt-posix (configure.ac): ... and here.
16104         (Depends-on): Update condition.
16105
16106 2011-05-08  Bruno Haible  <bruno@clisp.org>
16107
16108         getopt, argp: Respect rules for use of AC_LIBOBJ.
16109         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
16110         (gl_REPLACE_GETOPT_ALWAYS): New macro.
16111         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
16112         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
16113
16114 2011-05-08  Bruno Haible  <bruno@clisp.org>
16115
16116         getlogin_r: Move AC_LIBOBJ invocations to module description.
16117         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
16118         gl_PREREQ_GETLOGIN_R invocations from here...
16119         * modules/getlogin_r (configure.ac): ... to here.
16120
16121 2011-05-08  Bruno Haible  <bruno@clisp.org>
16122
16123         getlogin: Move AC_LIBOBJ invocations to module description.
16124         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
16125         here...
16126         * modules/getlogin (configure.ac): ... to here.
16127
16128 2011-05-08  Bruno Haible  <bruno@clisp.org>
16129
16130         getloadavg: Move AC_LIBOBJ invocations to module description.
16131         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
16132         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
16133         * modules/getloadavg (configure.ac): ... to here.
16134
16135 2011-05-08  Bruno Haible  <bruno@clisp.org>
16136
16137         gethrxtime: Move AC_LIBOBJ invocations to module description.
16138         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
16139         LIB_GETHRXTIME from here...
16140         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
16141         invocations from here...
16142         * modules/gethrxtime (configure.ac): ... to here.
16143
16144 2011-05-08  Bruno Haible  <bruno@clisp.org>
16145
16146         gethostname: Move AC_LIBOBJ invocations to module description.
16147         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
16148         gl_PREREQ_GETHOSTNAME invocations from here...
16149         * modules/gethostname (configure.ac): ... to here.
16150
16151 2011-05-08  Bruno Haible  <bruno@clisp.org>
16152
16153         getgroups: Move AC_LIBOBJ invocations to module description.
16154         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
16155         here...
16156         * modules/getgroups (configure.ac): ... to here.
16157
16158 2011-05-08  Bruno Haible  <bruno@clisp.org>
16159
16160         getdtablesize: Move AC_LIBOBJ invocations to module description.
16161         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
16162         invocation from here...
16163         * modules/getdtablesize (configure.ac): ... to here.
16164
16165 2011-05-08  Bruno Haible  <bruno@clisp.org>
16166
16167         getdomainname: Move AC_LIBOBJ invocations to module description.
16168         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
16169         gl_PREREQ_GETDOMAINNAME invocations from here...
16170         * modules/getdomainname (configure.ac): ... to here.
16171
16172 2011-05-08  Bruno Haible  <bruno@clisp.org>
16173
16174         getline: Move AC_LIBOBJ invocations to module description.
16175         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
16176         invocations from here...
16177         * modules/getline (configure.ac): ... to here.
16178
16179 2011-05-08  Bruno Haible  <bruno@clisp.org>
16180
16181         getline: Simplify.
16182         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
16183         It's already handled through the module dependency.
16184
16185 2011-05-08  Bruno Haible  <bruno@clisp.org>
16186
16187         getdelim: Move AC_LIBOBJ invocations to module description.
16188         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
16189         and gl_PREREQ_GETDELIM invocations from here...
16190         * modules/getdelim (configure.ac): ... to here.
16191         (Depends-on): Fix condition.
16192
16193 2011-05-08  Bruno Haible  <bruno@clisp.org>
16194
16195         getcwd: Move AC_LIBOBJ invocations to module description.
16196         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
16197         invocations from here...
16198         * modules/getcwd (configure.ac): ... to here.
16199
16200 2011-05-08  Bruno Haible  <bruno@clisp.org>
16201
16202         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
16203         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
16204         here...
16205         * modules/getcwd-lgpl (configure.ac): ... to here.
16206
16207 2011-05-07  Bruno Haible  <bruno@clisp.org>
16208
16209         crypto/gc: Move AC_LIBOBJ invocations to module description.
16210         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
16211         * modules/crypto/gc (configure.ac): ... to here.
16212
16213 2011-05-07  Bruno Haible  <bruno@clisp.org>
16214
16215         fwriting: Move AC_LIBOBJ invocations to module description.
16216         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
16217         here...
16218         * modules/fwriting (configure.ac): ... to here.
16219
16220 2011-05-07  Bruno Haible  <bruno@clisp.org>
16221
16222         fwritable: Move AC_LIBOBJ invocations to module description.
16223         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
16224         here...
16225         * modules/fwritable (configure.ac): ... to here.
16226
16227 2011-05-07  Bruno Haible  <bruno@clisp.org>
16228
16229         futimens: Move AC_LIBOBJ invocations to module description.
16230         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
16231         here...
16232         * modules/futimens (configure.ac): ... to here.
16233
16234 2011-05-07  Bruno Haible  <bruno@clisp.org>
16235
16236         ftruncate: Move AC_LIBOBJ invocations to module description.
16237         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
16238         gl_PREREQ_FTRUNCATE invocations from here...
16239         * modules/ftruncate (configure.ac): ... to here.
16240
16241 2011-05-07  Bruno Haible  <bruno@clisp.org>
16242
16243         fsync: Move AC_LIBOBJ invocations to module description.
16244         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
16245         invocations from here...
16246         * modules/fsync (configure.ac): ... to here.
16247
16248 2011-05-07  Bruno Haible  <bruno@clisp.org>
16249
16250         fsusage: Move AC_LIBOBJ invocations to module description.
16251         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
16252         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
16253         * modules/fsusage (configure.ac): ... to here.
16254
16255 2011-05-07  Bruno Haible  <bruno@clisp.org>
16256
16257         freopen: Move AC_LIBOBJ invocations to module description.
16258         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
16259         invocations from here...
16260         * modules/freopen (configure.ac): ... to here.
16261
16262 2011-05-07  Bruno Haible  <bruno@clisp.org>
16263
16264         free: Move AC_LIBOBJ invocations to module description.
16265         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
16266         invocations from here...
16267         * modules/free (configure.ac): ... to here.
16268
16269 2011-05-07  Bruno Haible  <bruno@clisp.org>
16270
16271         freadable: Move AC_LIBOBJ invocations to module description.
16272         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
16273         here...
16274         * modules/freadable (configure.ac): ... to here.
16275
16276 2011-05-07  Bruno Haible  <bruno@clisp.org>
16277
16278         fpurge: Move AC_LIBOBJ invocations to module description.
16279         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
16280         invocations from here...
16281         * modules/fpurge (configure.ac): ... to here.
16282
16283 2011-05-07  Bruno Haible  <bruno@clisp.org>
16284
16285         fpending: Move AC_LIBOBJ invocations to module description.
16286         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
16287         gl_FUNC_FPENDING.
16288         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
16289         invocations from here...
16290         * modules/fpending (configure.ac): ... to here.
16291
16292 2011-05-07  Bruno Haible  <bruno@clisp.org>
16293
16294         fopen: Move AC_LIBOBJ invocations to module description.
16295         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
16296         invocations from here...
16297         * modules/fopen (configure.ac): ... to here.
16298
16299 2011-05-07  Bruno Haible  <bruno@clisp.org>
16300
16301         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
16302         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
16303         gl_FUNC_FNMATCH_POSIX.
16304         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
16305         invocations from here...
16306         * modules/fnmatch (configure.ac): ... to here.
16307         * modules/fnmatch-gnu (configure.ac): ... and here.
16308
16309 2011-05-07  Bruno Haible  <bruno@clisp.org>
16310
16311         flock: Move AC_LIBOBJ invocations to module description.
16312         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
16313         invocations from here...
16314         * modules/flock (configure.ac): ... to here.
16315
16316 2011-05-07  Bruno Haible  <bruno@clisp.org>
16317
16318         fileblocks: Move AC_LIBOBJ invocations to module description.
16319         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
16320         gl_PREREQ_FILEBLOCKS invocations from here...
16321         * modules/fileblocks (configure.ac): ... to here.
16322
16323 2011-05-06  Bruno Haible  <bruno@clisp.org>
16324
16325         fflush: Move AC_LIBOBJ invocations to module description.
16326         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
16327         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
16328         invocations from here...
16329         * modules/fflush (configure.ac): ... to here.
16330
16331 2011-05-06  Bruno Haible  <bruno@clisp.org>
16332
16333         fdopendir: Move AC_LIBOBJ invocations to module description.
16334         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
16335         here...
16336         * modules/fdopendir (configure.ac): ... to here.
16337         (Depends-on): Improve conditions.
16338
16339 2011-05-06  Bruno Haible  <bruno@clisp.org>
16340
16341         _Exit: Move AC_LIBOBJ invocations to module description.
16342         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
16343         invocations from here...
16344         * modules/_Exit (configure.ac): ... to here.
16345
16346 2011-05-21  Bruno Haible  <bruno@clisp.org>
16347
16348         euidaccess: Respect rules for use of AC_LIBOBJ.
16349         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
16350         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
16351         from here...
16352         * modules/euidaccess (configure.ac): ... to here.
16353
16354 2011-05-06  Bruno Haible  <bruno@clisp.org>
16355
16356         error: Move AC_LIBOBJ invocations to module description.
16357         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
16358         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
16359         invocations from here...
16360         * modules/error (configure.ac): ... to here.
16361
16362 2011-05-06  Bruno Haible  <bruno@clisp.org>
16363
16364         duplocale: Move AC_LIBOBJ invocations to module description.
16365         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
16366         gl_PREREQ_DUPLOCALE invocations from here...
16367         * modules/duplocale (configure.ac): ... to here.
16368
16369 2011-05-05  Bruno Haible  <bruno@clisp.org>
16370
16371         dirfd: Move AC_LIBOBJ invocations to module description.
16372         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
16373         gl_FUNC_DIRFD.
16374         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
16375         here...
16376         * modules/dirfd (configure.ac): ... to here.
16377         (Depends-on): Fix condition.
16378
16379 2011-05-05  Bruno Haible  <bruno@clisp.org>
16380
16381         chown: Respect rules for use of AC_LIBOBJ.
16382         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
16383         * modules/chown (configure.ac): ... to here.
16384
16385 2011-05-05  Bruno Haible  <bruno@clisp.org>
16386
16387         chdir-long: Move AC_LIBOBJ invocations to module description.
16388         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
16389         gl_PREREQ_CHDIR_LONG invocations from here...
16390         * modules/chdir-long (configure.ac): ... to here.
16391
16392 2011-05-05  Bruno Haible  <bruno@clisp.org>
16393
16394         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
16395         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
16396         from here...
16397         * modules/canonicalize-lgpl (configure.ac): ... to here.
16398
16399 2011-05-05  Bruno Haible  <bruno@clisp.org>
16400
16401         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
16402         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
16403         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
16404         REPLACE_CALLOC.
16405         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
16406         * modules/calloc-gnu (configure.ac): Likewise.
16407
16408 2011-05-05  Bruno Haible  <bruno@clisp.org>
16409
16410         btowc: Move AC_LIBOBJ invocations to module description.
16411         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
16412         invocations from here...
16413         * modules/btowc (configure.ac): ... to here.
16414
16415 2011-05-21  Bruno Haible  <bruno@clisp.org>
16416
16417         atexit: Move AC_LIBOBJ invocations to module description.
16418         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
16419         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
16420         here...
16421         * modules/atexit (configure.ac): ... to here.
16422
16423 2011-05-05  Bruno Haible  <bruno@clisp.org>
16424
16425         atoll: Move AC_LIBOBJ invocations to module description.
16426         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
16427         invocations from here...
16428         * modules/atoll (configure.ac): ... to here.
16429
16430 2011-05-05  Bruno Haible  <bruno@clisp.org>
16431
16432         argz: Move AC_LIBOBJ invocations to module description.
16433         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
16434         * modules/argz (configure.ac): ... to here.
16435
16436 2011-05-05  Bruno Haible  <bruno@clisp.org>
16437
16438         alphasort: Move AC_LIBOBJ invocations to module description.
16439         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
16440         gl_PREREQ_ALPHASORT invocations from here...
16441         * modules/alphasort (configure.ac): ... to here.
16442
16443 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
16444
16445         verify: new macro verify_expr; verify_true deprecated
16446         * NEWS: Mention this.
16447         * doc/verify.texi (Compile-time Assertions): Document this.
16448         * lib/verify.h (verify_true): Deprecate.
16449         (verify_expr): New macro.
16450         * tests/test-verify.c (function): Test verify_expr.
16451
16452 2011-06-14  Jim Meyering  <meyering@redhat.com>
16453
16454         init.sh: give more portable redirection-related advice in a comment
16455         * tests/init.sh (stderr_fileno_): Update the advice in comments.
16456         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
16457         for lots of discussion.  Stefano Lattarini suggested the solution
16458         of putting "9>&2" after the command.  Reported by Bruno Haible.
16459
16460 2011-06-13  Bruno Haible  <bruno@clisp.org>
16461
16462         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
16463         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
16464         'none'.
16465
16466 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
16467
16468         ftoastr: use strtof only if HAVE_STRTOF
16469         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
16470         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
16471         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
16472         * modules/ftoastr (configure.ac): Check for strtof.
16473
16474 2011-06-13  Bruno Haible  <bruno@clisp.org>
16475
16476         gnulib-tool: Addendum to 2011-06-08 commit.
16477         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
16478         and --witness-c-macro have been given, augment AM_CPPFLAGS.
16479
16480 2011-06-13  Bruno Haible  <bruno@clisp.org>
16481
16482         fseeko: Provide a non-inline replacement of fseek().
16483         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
16484         * modules/fseeko (Depends-on): Add fseek.
16485         * modules/fseek (License): Change to LGPLv2+.
16486
16487 2011-06-13  Bruno Haible  <bruno@clisp.org>
16488
16489         ftello: Provide a non-inline replacement of ftell().
16490         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
16491         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
16492         not have ftello() (such as on mingw).
16493         * modules/ftello (Depends-on): Add ftell.
16494         * modules/ftell (License): Change to LGPLv2+.
16495
16496 2011-05-07  Bruno Haible  <bruno@clisp.org>
16497
16498         ftell: Move AC_LIBOBJ invocations to module description.
16499         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
16500         * modules/ftell (configure.ac): ... to here.
16501
16502 2011-05-07  Bruno Haible  <bruno@clisp.org>
16503
16504         ftello: Respect rules for use of AC_LIBOBJ.
16505         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
16506         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
16507         here...
16508         * modules/ftello (configure.ac): ... to here.
16509
16510 2011-05-07  Bruno Haible  <bruno@clisp.org>
16511
16512         fseeko: Simplify.
16513         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
16514         (gl_FUNC_FSEEKO): Inline it here.
16515
16516 2011-05-07  Bruno Haible  <bruno@clisp.org>
16517
16518         fseek: Move AC_LIBOBJ invocations to module description.
16519         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
16520         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
16521         * modules/fseek (configure.ac): ... to here.
16522
16523 2011-05-07  Bruno Haible  <bruno@clisp.org>
16524
16525         fseek: Respect rules for use of AC_LIBOBJ.
16526         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
16527         here...
16528         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
16529
16530 2011-05-07  Bruno Haible  <bruno@clisp.org>
16531
16532         fseeko: Respect rules for use of AC_LIBOBJ.
16533         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
16534         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
16535         here...
16536         * modules/fseeko (configure.ac): ... to here.
16537
16538 2011-06-13  Bruno Haible  <bruno@clisp.org>
16539
16540         gnulib-tool: Allow comments in the 'Depends-on' section.
16541         * doc/gnulib.texi (Module description): Mention comment syntax in the
16542         Depends-on section.
16543         * gnulib-tool (func_get_dependencies): Filter out comment lines.
16544
16545 2011-06-13  Bruno Haible  <bruno@clisp.org>
16546
16547         file-set.h: guard __attibute__ use, now that it's not always defined
16548         * lib/file-set.h (record_file): Use __attribute__ only with compiler
16549         versions that support it.  This fixes a coreutils build failure with
16550         the vendor cc on HP-UX 11.31.
16551
16552 2011-06-12  Bruno Haible  <bruno@clisp.org>
16553
16554         acl: Add support for HP-UX >= 11.11 JFS ACLs.
16555         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
16556         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
16557         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
16558         (acl, aclsort): New declarations.
16559         (aclv_nontrivial): New declaration.
16560         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
16561         (file_has_acl): Read also the second kind of HP-UX ACLs.
16562         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
16563         kind of HP-UX ACLs if the first kind fails.
16564         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
16565         second kind of HP-UX ACLs.
16566         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
16567         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
16568         agree.
16569         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
16570         hpuxjfs.
16571         Handle hpuxjfs.
16572         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
16573         hpuxjfs.
16574         Handle hpuxjfs.
16575         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
16576         (func_test_same_acls): Use both lsacl and getacl.
16577         Handle hpuxjfs.
16578         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
16579         (func_test_same_acls): Use both lsacl and getacl.
16580         Handle hpuxjfs.
16581
16582 2011-06-12  Bruno Haible  <bruno@clisp.org>
16583
16584         acl: Complete the 2010-08-10 fix.
16585         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
16586         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
16587         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
16588         explicitly.
16589         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
16590         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
16591
16592 2011-06-12  Bruno Haible  <bruno@clisp.org>
16593
16594         spawn-pipe tests: Comments.
16595         * tests/test-spawn-pipe-child.c (main): Update comment.
16596         Reported by James Youngman <jay@gnu.org>.
16597
16598 2011-06-11  James Youngman  <jay@gnu.org>
16599
16600         New module 'stat-size'.
16601         * modules/stat-size: New module.  Provides macros for accessing
16602         file size information in instances of struct stat.  Depends on the
16603         fileblocks module because it calls st_blocks.
16604         * lib/stat-size.h: New file, adapted from coreutils' system.h.
16605         * doc/gnulib.texi: Include stat-size.texi.
16606         * doc/stat-size.texi: Documentation for this module.
16607         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
16608         * m4/fileblocks.m4: Mention that stat-size depends on the call to
16609         AC_STRUCT_ST_BLOCKS.
16610
16611 2011-06-09  Bruno Haible  <bruno@clisp.org>
16612
16613         thread: Support pthreads-win32.
16614         * lib/glthread/thread.h (gl_thread_self): Define differently on
16615         pthreads-win32.
16616         (gl_null_thread): New declaration.
16617         (gl_thread_self_pointer): New macro.
16618         * lib/glthread/thread.c (gl_null_thread): New constant.
16619         * tests/test-lock.c: Use gl_thread_self_pointer instead of
16620         gl_thread_self.
16621         * tests/test-tls.c: Likewise.
16622         Suggested by Paul Eggert. Reported by Eric Blake.
16623
16624 2011-06-09  Bruno Haible  <bruno@clisp.org>
16625
16626         thread: Fix confusion between NULL and 0.
16627         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
16628         Reported by Paul Eggert.
16629
16630 2011-06-09  Bruno Haible  <bruno@clisp.org>
16631
16632         spawn-pipe tests: Avoid test failure on HP-UX 11.
16633         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
16634         is closed.
16635
16636 2011-06-09  Bruno Haible  <bruno@clisp.org>
16637
16638         acl tests: Fix compilation error on HP-UX 11.
16639         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
16640
16641 2011-06-09  Bruno Haible  <bruno@clisp.org>
16642
16643         rmdir: Avoid test failure on HP-UX 10.20.
16644         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
16645         EEXIST.
16646
16647 2011-06-08  Eric Blake  <eblake@redhat.com>
16648
16649         perror: fix test on mingw
16650         * modules/perror-tests (Depends-on): Add dup2.
16651
16652         strerror_r-posix: fix on MacOS
16653         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
16654         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
16655         logic bug.
16656         * lib/strerror_r.c (strerror_r): Fix the bug.
16657         * lib/strerror.c (strerror): Likewise.
16658         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16659         problem.
16660         * doc/posix-functions/strerror.texi (strerror): Likewise.
16661         * doc/posix-functions/perror.texi (perror): Likewise.
16662         * tests/test-strerror.c (main): Enhance test.
16663         * tests/test-strerror_r.c (main): Likewise.
16664
16665 2011-06-08  Bruno Haible  <bruno@clisp.org>
16666
16667         gnulib-tool: Better isolation between different gnulib-tool invocations.
16668         * gnulib-tool: New option --witness-c-macro.
16669         (witness_c_macro): New variable.
16670         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
16671         AM_CPPFLAGS define it as a C macro.
16672         (func_emit_tests_Makefile_am): Likewise.
16673         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
16674         read it from there.
16675         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
16676         m4_define, not AC_DEFUN.
16677         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
16678         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
16679         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
16680         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
16681         s|...|...|, to substitute the values of the GNULIB_* module indicator
16682         variables.
16683         * modules/dirent (Makefile.am): Likewise.
16684         * modules/fcntl-h (Makefile.am): Likewise.
16685         * modules/iconv-h (Makefile.am): Likewise.
16686         * modules/langinfo (Makefile.am): Likewise.
16687         * modules/locale (Makefile.am): Likewise.
16688         * modules/math (Makefile.am): Likewise.
16689         * modules/netdb (Makefile.am): Likewise.
16690         * modules/poll-h (Makefile.am): Likewise.
16691         * modules/pty (Makefile.am): Likewise.
16692         * modules/search (Makefile.am): Likewise.
16693         * modules/signal (Makefile.am): Likewise.
16694         * modules/spawn (Makefile.am): Likewise.
16695         * modules/stdio (Makefile.am): Likewise.
16696         * modules/stdlib (Makefile.am): Likewise.
16697         * modules/string (Makefile.am): Likewise.
16698         * modules/sys_ioctl (Makefile.am): Likewise.
16699         * modules/sys_select (Makefile.am): Likewise.
16700         * modules/sys_socket (Makefile.am): Likewise.
16701         * modules/sys_stat (Makefile.am): Likewise.
16702         * modules/sys_times (Makefile.am): Likewise.
16703         * modules/sys_utsname (Makefile.am): Likewise.
16704         * modules/sys_wait (Makefile.am): Likewise.
16705         * modules/termios (Makefile.am): Likewise.
16706         * modules/time (Makefile.am): Likewise.
16707         * modules/unistd (Makefile.am): Likewise.
16708         * modules/wchar (Makefile.am): Likewise.
16709
16710 2011-06-08  Eric Blake  <eblake@redhat.com>
16711
16712         strerror: simplify replacement
16713         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
16714         * modules/strerror (configure.ac): No prereqs needed here...
16715         * modules/strerror-override (configure.ac): ...but this needs it.
16716         (Files): Add file for needed prereq macro.
16717
16718 2011-06-08  Bruno Haible  <bruno@clisp.org>
16719
16720         strerror_r-posix: Tweaks.
16721         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
16722         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
16723         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
16724         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
16725         (gl_FUNC_STRERROR_R): ... to here.
16726         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
16727
16728 2011-06-07  Eric Blake  <eblake@redhat.com>
16729
16730         perror: document fixed bugs
16731         * doc/posix-functions/perror.texi (perror): Document recent
16732         patches.
16733
16734 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
16735
16736         stat-time: get_stat_birthtime failure is better-defined
16737         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
16738         return a timestamp whose tv_sec and tv_nsec values are both -1.
16739         Previously, the spec said only that the tv_nsec value was negative.
16740         This upward-compatible change simplifies GNU tar a bit.
16741
16742 2011-06-07  Eric Blake  <eblake@redhat.com>
16743
16744         strerror_r-posix: work around cygwin 1.7.9
16745         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
16746         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
16747         bug without replacing strerror_r.
16748         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
16749         strerror_r is buggy, but without requiring strerror_r compilation.
16750         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
16751
16752         test-perror: relax test to ignore cygwin bug
16753         * tests/test-perror2.c (main): Relax test on requiring detection
16754         of stream errors, and use unbuffered stream.
16755         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
16756         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
16757         * doc/posix-functions/fputc.texi (fputc): Likewise.
16758         * doc/posix-functions/fputs.texi (fputs): Likewise.
16759         * doc/posix-functions/fputws.texi (fputws): Likewise.
16760         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
16761         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
16762         * doc/posix-functions/getopt.texi (getopt): Likewise.
16763         * doc/posix-functions/perror.texi (perror): Likewise.
16764         * doc/posix-functions/printf.texi (printf): Likewise.
16765         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
16766         * doc/posix-functions/psignal.texi (psignal): Likewise.
16767         * doc/posix-functions/putc.texi (putc): Likewise.
16768         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
16769         Likewise.
16770         * doc/posix-functions/putchar.texi (putchar): Likewise.
16771         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
16772         Likewise.
16773         * doc/posix-functions/puts.texi (puts): Likewise.
16774         * doc/posix-functions/putwc.texi (putwc): Likewise.
16775         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16776         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16777         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16778         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
16779         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16780         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16781         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
16782         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
16783
16784 2011-05-22  Bruno Haible  <bruno@clisp.org>
16785
16786         strerror: Move AC_LIBOBJ invocations to module description.
16787         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
16788         gl_PREREQ_STRERROR invocations from here...
16789         * modules/strerror (configure.ac): ... to here.
16790
16791 2011-05-21  Bruno Haible  <bruno@clisp.org>
16792
16793         perror: Use common idiom.
16794         * modules/perror (configure.ac): Reorder statements.
16795
16796 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16797
16798         tests: fix usage message in 'mktempd_'
16799         * tests/init.sh (mktempd_): In the usage message, use literal
16800         'mktempd_', not '$ME' (which is even undefined), as the name of
16801         the subroutine.
16802
16803 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16804
16805         tests init: new function 'fatal_', for hard errors
16806         Before this patch, the only way offered by tests/init.sh to
16807         properly signal a hard error was the `framework_failure_'
16808         function.  But the error message issued by that function,
16809         as its name would suggest, refers to a set-up failure in the
16810         testsuite, while hard errors can obviously also be due to
16811         other reasons.  The best way to fix this inconsistency is to
16812         introduce a new function with a more general error message.
16813         * tests/init.sh (fatal_): New function.
16814
16815 2011-06-06  Eric Blake  <eblake@redhat.com>
16816
16817         canonicalize-lgpl: use common idiom
16818         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
16819         over newer POSIX -Rf.
16820         Reported by Bruno Haible.
16821
16822         canonicalize-lgpl: work around AIX realpath bug
16823         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
16824         * doc/posix-functions/realpath.texi (realpath): Document it.
16825         Reported by Bruno Haible.
16826
16827         strerror: work around FreeBSD bug
16828         * lib/strerror.c (strerror): Special case 0.
16829         Reported by Bruno Haible.
16830
16831         strerror-override: avoid bloating errno module
16832         * modules/errno (Files, configure.ac): Move replacement strings...
16833         * modules/strerror-override: ...to new module.
16834         * modules/strerror (Depends-on): Add strerror-override.
16835         * modules/strerror_r-posix (Depends-on): Likewise.
16836         * MODULES.html.sh: Document new module.
16837         Reported by Bruno Haible.
16838
16839 2011-06-06  Bruno Haible  <bruno@clisp.org>
16840
16841         spawn-pipe tests: Rename program.
16842         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
16843         * tests/test-spawn-pipe-child.c: Update comment.
16844         * tests/test-spawn-pipe.sh: Update.
16845         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
16846
16847         spawn-pipe tests: Link the child program only against libc.
16848         * tests/test-spawn-pipe-child.c: New file, extracted from
16849         tests/test-spawn-pipe.c.
16850         (main): Expect only one argument.
16851         (is_open): New function, copied from tests/test-pipe.c.
16852         * tests/test-spawn-pipe.c: Don't include <errno.h>.
16853         (child_main): Remove function.
16854         (test_pipe): Pass only one argument to the child program.
16855         (main): Remove child process code. Expect the child program's name as
16856         first argument.
16857         * tests/test-spawn-pipe.sh: Pass the child program's name as first
16858         argument.
16859         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
16860         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
16861         test-spawn-pipe-child against no libraries.
16862
16863 2011-06-06  Bruno Haible  <bruno@clisp.org>
16864
16865         careadlinkat: Avoid mismatch between ssize_t and int.
16866         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
16867         * lib/careadlinkat.c (careadlinkatcwd): Define always.
16868
16869 2011-06-06  Jim Meyering  <meyering@redhat.com>
16870
16871         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
16872         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
16873         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
16874
16875 2011-06-05  Bruno Haible  <bruno@clisp.org>
16876
16877         ansi-c++-opt: Interoperability with libtool.
16878         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
16879         set the variable to "no", not to ":".
16880         * NEWS: Mention the change.
16881
16882 2011-06-05  Bruno Haible  <bruno@clisp.org>
16883
16884         acl: Fix test failure on AIX 7.
16885         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
16886         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
16887
16888 2011-06-05  Bruno Haible  <bruno@clisp.org>
16889
16890         pipe-filter-ii: Fix test failure on AIX and IRIX.
16891         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
16892         with EAGAIN, retry with a smaller buffer size.
16893
16894 2011-06-05  Bruno Haible  <bruno@clisp.org>
16895
16896         localename: Fix link dependencies.
16897         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
16898         * modules/localename-tests (Makefile.am): Link test-localename with
16899         $(LIBTHREAD).
16900
16901 2011-06-05  Bruno Haible  <bruno@clisp.org>
16902
16903         error: Avoid gcc warning.
16904         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
16905
16906 2011-06-05  Bruno Haible  <bruno@clisp.org>
16907
16908         unsetenv: Avoid gcc warning.
16909         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
16910
16911 2011-06-05  Bruno Haible  <bruno@clisp.org>
16912
16913         setenv: Avoid gcc warning.
16914         * lib/setenv.c (setenv): Provide declaration if system lacks it.
16915
16916 2011-06-05  Bruno Haible  <bruno@clisp.org>
16917
16918         sys_select: Ensure memset is declared also on AIX 7.
16919         * lib/sys_select.in.h: Include <string.h> also on AIX.
16920         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
16921         self-contained also on AIX 7.1.
16922
16923 2011-06-04  Jim Meyering  <meyering@redhat.com>
16924
16925         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
16926         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
16927         function name, "error".
16928         (_gl_translatable_diag_func_re): New configurable variable.
16929
16930 2011-06-04  Bruno Haible  <bruno@clisp.org>
16931
16932         getopt: Avoid gcc warning.
16933         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
16934
16935 2011-06-04  Bruno Haible  <bruno@clisp.org>
16936
16937         strerror_r: Fix comments.
16938         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
16939         commit.
16940
16941 2011-06-04  Bruno Haible  <bruno@clisp.org>
16942
16943         perror: Fix compilation error.
16944         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
16945         Undefine fprintf, not sprintf.
16946         * modules/perror (Depends-on): Remove intprops, verify.
16947
16948 2011-06-04  Bruno Haible  <bruno@clisp.org>
16949
16950         setlocale: Enable replacement on Cygwin 1.5.
16951         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
16952         Cygwin 1.5.x.
16953         * doc/posix-functions/setlocale.texi: Mention that the problem with the
16954         LC_CTYPE category also exists on Cygwin 1.5.x.
16955
16956 2011-06-04  Bruno Haible  <bruno@clisp.org>
16957
16958         strerror-override: Don't disable symbol renamings.
16959         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
16960         * lib/strerror-override.c: Include config.h.
16961         (strerror_override): Don't undefine.
16962
16963 2011-06-03  Bruno Haible  <bruno@clisp.org>
16964
16965         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
16966         * lib/localename.h: Update copyright header.
16967         * lib/localename.c: Likewise.
16968         * lib/relocatable.h: Likewise.
16969         * lib/relocatable.c: Likewise.
16970
16971 2011-06-02  Bruno Haible  <bruno@clisp.org>
16972
16973         doc: Fix a module name.
16974         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
16975
16976 2011-06-02  Bruno Haible  <bruno@clisp.org>
16977
16978         pipe2: Remove dependency on 'nonblocking' module.
16979         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
16980         O_NONBLOCK is defined by gnulib.
16981         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
16982         is zero.
16983         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
16984         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
16985         defined by gnulib.
16986         (get_nonblocking_flag): New function.
16987         (main): Test O_NONBLOCK flag only if it is nonzero.
16988         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
16989
16990 2011-06-03  Jim Meyering  <meyering@redhat.com>
16991
16992         maint: three new prohibit-header-without-use rules
16993         Prohibit use of cloexec.h, posixver.h, same.h without use.
16994         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
16995         (sc_prohibit_posixver_without_use): Likewise.
16996         (sc_prohibit_same_without_use): Likewise.
16997
16998 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
16999
17000         allocator: 'die' routine is now given requested size
17001         * lib/allocator.h (struct allocator.die): New size arg.
17002         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
17003         If the actual problem is an ssize_t limitation, not a size_t or
17004         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
17005
17006 2011-06-01  Eric Blake  <eblake@redhat.com>
17007
17008         strerror: drop strerror_r dependency
17009         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
17010         * lib/strerror-override.c (strerror_override): ...to new file.
17011         * lib/strerror-override.h: Add prototype.
17012         * lib/strerror-impl.h: Delete.
17013         * lib/strerror.c (strerror): New implementation.
17014         * modules/errno (Files): Add new files.
17015         (configure.ac): Compile new file as appropriate.
17016         * modules/strerror (Files): Drop unused file.
17017         (Depends-on): Drop strerror_r-posix.
17018         * MODULES.html.sh: Document strerror_r-posix.
17019         Requested by Sam Steingold.
17020
17021         perror: call strerror_r directly
17022         * modules/perror (Files): Drop strerror-impl.h.
17023         * lib/perror.c (perror): Use our own stack buffer, rather than
17024         calling a wrapper that uses static storage.
17025         * doc/posix-functions/perror.texi (perror): Document a limitation
17026         of our replacement.
17027
17028         strerror_r: fix includes for FreeBSD
17029         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
17030         since we use abort on some platforms.
17031         Reported by Matthias Bolte.
17032
17033 2011-05-31  Bruno Haible  <bruno@clisp.org>
17034
17035         Fix link errors in tests: openat-die uses gettext-h.
17036         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
17037         against $(LIBINTL).
17038         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
17039         against $(LIBINTL).
17040         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
17041         $(LIBINTL).
17042         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
17043         against $(LIBINTL).
17044         * modules/linkat-tests (Makefile.am): Link test-linkat against
17045         $(LIBINTL).
17046         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
17047         $(LIBINTL).
17048         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
17049         against $(LIBINTL).
17050         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
17051         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
17052         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
17053         $(LIBINTL).
17054         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
17055         $(LIBINTL).
17056         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
17057         $(LIBINTL).
17058         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17059
17060 2011-05-31  Bruno Haible  <bruno@clisp.org>
17061
17062         Fix link errors in tests: wait-process uses gettext-h.
17063         * modules/nonblocking-pipe-tests (Makefile.am): Set
17064         test_nonblocking_pipe_main_LDADD.
17065         * modules/nonblocking-socket-tests (Makefile.am): Link
17066         test-nonblocking-socket-main against $(LIBINTL).
17067         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17068
17069 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
17070
17071         assert-h: work around 'verify' incompatibility
17072         * lib/verify.h: Use @...@ directives, not ifdef.
17073         * modules/assert-h (assert.h): Implement the directives.
17074         (assert.h): Substitute the symbol-prefix more consistently.
17075
17076 2011-05-29  Jim Meyering  <meyering@redhat.com>
17077
17078         trim: remove three superfluous assignments
17079         * lib/trim.c (trim2): Remove three superfluous assignments
17080         and correct brace positioning.
17081
17082 2011-05-29  Bruno Haible  <bruno@clisp.org>
17083
17084         wctype-h: Avoid namespace pollution on Solaris 2.6.
17085         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
17086         identifiers.
17087         * doc/posix-headers/wctype.texi: Mention the problem.
17088         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17089
17090 2011-05-28  Jim Meyering  <meyering@redhat.com>
17091
17092         parse-datetime.y: accommodate -Wstrict-overflow
17093         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
17094         placate -Wstrict-overflow.
17095
17096         trim: avoid a warning from -O2 -Wstrict-overflow
17097         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
17098
17099 2011-05-29  Bruno Haible  <bruno@clisp.org>
17100
17101         gnulib-tool: Fix bug in yesterday's commit.
17102         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
17103         twice.
17104
17105 2011-05-29  Bruno Haible  <bruno@clisp.org>
17106
17107         Allow multiple gnulib generated include files to be combined.
17108         * gnulib-tool (func_compute_include_guard_prefix): New function.
17109         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
17110         ${gl_include_guard_prefix} references.
17111         (func_import, func_create_testdir): Invoke
17112         func_compute_include_guard_prefix.
17113         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
17114         * lib/ctype.in.h: Likewise.
17115         * lib/dirent.in.h: Likewise.
17116         * lib/errno.in.h: Likewise.
17117         * lib/fcntl.in.h: Likewise.
17118         * lib/float.in.h: Likewise.
17119         * lib/getopt.in.h: Likewise.
17120         * lib/iconv.in.h: Likewise.
17121         * lib/langinfo.in.h: Likewise.
17122         * lib/locale.in.h: Likewise.
17123         * lib/math.in.h: Likewise.
17124         * lib/netdb.in.h: Likewise.
17125         * lib/netinet_in.in.h: Likewise.
17126         * lib/poll.in.h: Likewise.
17127         * lib/pthread.in.h: Likewise.
17128         * lib/pty.in.h: Likewise.
17129         * lib/sched.in.h: Likewise.
17130         * lib/se-selinux.in.h: Likewise.
17131         * lib/search.in.h: Likewise.
17132         * lib/signal.in.h: Likewise.
17133         * lib/spawn.in.h: Likewise.
17134         * lib/stdarg.in.h: Likewise.
17135         * lib/stddef.in.h: Likewise.
17136         * lib/stdint.in.h: Likewise.
17137         * lib/stdio.in.h: Likewise.
17138         * lib/stdlib.in.h: Likewise.
17139         * lib/string.in.h: Likewise.
17140         * lib/strings.in.h: Likewise.
17141         * lib/sys_file.in.h: Likewise.
17142         * lib/sys_ioctl.in.h: Likewise.
17143         * lib/sys_select.in.h: Likewise.
17144         * lib/sys_socket.in.h: Likewise.
17145         * lib/sys_stat.in.h: Likewise.
17146         * lib/sys_time.in.h: Likewise.
17147         * lib/sys_times.in.h: Likewise.
17148         * lib/sys_uio.in.h: Likewise.
17149         * lib/sys_utsname.in.h: Likewise.
17150         * lib/sys_wait.in.h: Likewise.
17151         * lib/sysexits.in.h: Likewise.
17152         * lib/termios.in.h: Likewise.
17153         * lib/time.in.h: Likewise.
17154         * lib/unistd.in.h: Likewise.
17155         * lib/wchar.in.h: Likewise.
17156         * lib/wctype.in.h: Likewise.
17157         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
17158         * modules/ctype (Makefile.am): Likewise.
17159         * modules/dirent (Makefile.am): Likewise.
17160         * modules/errno (Makefile.am): Likewise.
17161         * modules/fcntl-h (Makefile.am): Likewise.
17162         * modules/float (Makefile.am): Likewise.
17163         * modules/getopt-posix (Makefile.am): Likewise.
17164         * modules/iconv-h (Makefile.am): Likewise.
17165         * modules/langinfo (Makefile.am): Likewise.
17166         * modules/locale (Makefile.am): Likewise.
17167         * modules/math (Makefile.am): Likewise.
17168         * modules/netdb (Makefile.am): Likewise.
17169         * modules/netinet_in (Makefile.am): Likewise.
17170         * modules/poll-h (Makefile.am): Likewise.
17171         * modules/pthread (Makefile.am): Likewise.
17172         * modules/pty (Makefile.am): Likewise.
17173         * modules/sched (Makefile.am): Likewise.
17174         * modules/search (Makefile.am): Likewise.
17175         * modules/selinux-h (Makefile.am): Likewise.
17176         * modules/signal (Makefile.am): Likewise.
17177         * modules/spawn (Makefile.am): Likewise.
17178         * modules/stdarg (Makefile.am): Likewise.
17179         * modules/stddef (Makefile.am): Likewise.
17180         * modules/stdint (Makefile.am): Likewise.
17181         * modules/stdio (Makefile.am): Likewise.
17182         * modules/stdlib (Makefile.am): Likewise.
17183         * modules/string (Makefile.am): Likewise.
17184         * modules/strings (Makefile.am): Likewise.
17185         * modules/sys_file (Makefile.am): Likewise.
17186         * modules/sys_ioctl (Makefile.am): Likewise.
17187         * modules/sys_select (Makefile.am): Likewise.
17188         * modules/sys_socket (Makefile.am): Likewise.
17189         * modules/sys_stat (Makefile.am): Likewise.
17190         * modules/sys_time (Makefile.am): Likewise.
17191         * modules/sys_times (Makefile.am): Likewise.
17192         * modules/sys_uio (Makefile.am): Likewise.
17193         * modules/sys_utsname (Makefile.am): Likewise.
17194         * modules/sys_wait (Makefile.am): Likewise.
17195         * modules/sysexits (Makefile.am): Likewise.
17196         * modules/termios (Makefile.am): Likewise.
17197         * modules/time (Makefile.am): Likewise.
17198         * modules/unistd (Makefile.am): Likewise.
17199         * modules/wchar (Makefile.am): Likewise.
17200         * modules/wctype-h (Makefile.am): Likewise.
17201         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
17202
17203 2011-05-29  Bruno Haible  <bruno@clisp.org>
17204
17205         assert-h: Allow multiple gnulib generated replacements to coexist.
17206         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
17207
17208 2011-05-29  Bruno Haible  <bruno@clisp.org>
17209
17210         argp: Allow coexistence with strerror_r-posix module.
17211         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
17212         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
17213         by gnulib's <string.h> replacement), assume it has the POSIX signature,
17214         not the glibc signature.
17215
17216 2011-05-28  Bruno Haible  <bruno@clisp.org>
17217
17218         gnulib-tool: Alternative structure of testdirs, similar to --import.
17219         * gnulib-tool: New option --single-configure.
17220         (func_usage): Document it.
17221         (single_configure): New variable.
17222         (func_modules_transitive_closure_separately,
17223         func_modules_transitive_closure_separately,
17224         func_determine_use_libtests, func_modules_add_dummy_separately,
17225         func_modules_to_filelist_separately): New functions, extracted from
17226         func_import.
17227         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
17228         (func_import): Use the new functions.
17229         (func_create_testdir): Set final_modules. Handle $single_configure =
17230         true case.
17231
17232 2011-05-28  Bruno Haible  <bruno@clisp.org>
17233
17234         getloadavg: Remove an unreliable safety check.
17235         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
17236         getloadavg.c is in place.
17237         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
17238         Reported by Sam Steingold <sds@gnu.org>.
17239
17240 2011-05-28  Bruno Haible  <bruno@clisp.org>
17241
17242         doc: Cleanup yet another file produced by texinfo.tex.
17243         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
17244
17245 2011-05-28  Bruno Haible  <bruno@clisp.org>
17246
17247         Finish the conditional dependencies mechanism.
17248         * gnulib-tool: New option --no-conditional-dependencies.
17249         (func_usage): Document it. Don't mark --conditional-dependencies as
17250         experimental.
17251         (cond_dependencies): The possible values can now be true, false, empty.
17252         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
17253         (func_import): Store setting in gnulib-cache.m4 and read it from there.
17254         * doc/gnulib-tool.texi (Conditional dependencies): New section.
17255
17256 2011-05-28  Bruno Haible  <bruno@clisp.org>
17257
17258         doc: Use a recent texinfo.tex.
17259         * doc/Makefile (tex_opts): New variable.
17260         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
17261
17262 2011-05-28  Jim Meyering  <meyering@redhat.com>
17263
17264         intprops.h: adjust comment to match code change
17265         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
17266         only once, it *may* have side effects.  Also fix an unrelated typo.
17267         (_GL_INT_SIGNED): Likewise.
17268
17269 2011-05-26  Simon Josefsson  <simon@josefsson.org>
17270
17271         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
17272
17273 2011-05-26  Bruno Haible  <bruno@clisp.org>
17274
17275         mbsrchr: Avoid collision with system function on Interix.
17276         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
17277         Reported by Markus Duft <mduft@gentoo.org>.
17278
17279 2011-05-15  James Youngman  <jay@gnu.org>
17280
17281         getopt: for ambiguous options, enumerate the possibilities.
17282         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
17283         the ambiguous options when an ambiguous prefix is given. This was
17284         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
17285         glibc change was
17286         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
17287
17288 2011-05-25  Eric Blake  <eblake@redhat.com>
17289
17290         getcwd: work around mingw bug
17291         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
17292         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17293         Reported by Matthias Bolte.
17294
17295 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
17296
17297         test-intprops: disable -Wtype-limits diagnostics
17298         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
17299         diagnostics.  Otherwise, the integer overflow macros generate many
17300         diagnostics.  Reported by Jim Meyering in
17301         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
17302
17303         intprops: shorten, to pacify gcc -Woverlength-strings
17304         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
17305         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
17306         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
17307         likely to run afoul of C compiler limits for string constant lengths.
17308         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
17309
17310 2011-05-24  Eric Blake  <eblake@redhat.com>
17311
17312         docs: document recently fixed glibc printf bug
17313         * doc/posix-functions/fprintf.texi (fprintf): Document it.
17314         * doc/posix-functions/printf.texi (printf): Likewise.
17315         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17316         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17317
17318         closein-tests: convert to init.sh
17319         * modules/closein-tests (Files): Add init.sh
17320         * tests/test-closein.sh Use it.
17321
17322         yesno-tests: convert to init.sh
17323         * modules/yesno-tests (Files): Add init.sh.
17324         * tests/test-yesno.sh: Use it.
17325
17326         atexit-tests: ensure reliable exit status
17327         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
17328         Reported by Bruno Haible.
17329
17330 2011-05-24  Bruno Haible  <bruno@clisp.org>
17331
17332         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
17333         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
17334         gl_PREREQ_STRERROR_R invocations from here...
17335         * modules/strerror_r-posix (configure.ac): ... to here.
17336
17337 2011-05-24  Eric Blake  <eblake@redhat.com>
17338
17339         strerror_r: fix missing header
17340         * lib/strerror_r.c: Avoid compiler warning about snprintf.
17341
17342         strerror_r: fix AIX test failures
17343         * lib/strerror_r.c (strerror_r): Convert silent truncation to
17344         ERANGE failure.
17345
17346         strerror_r: fix Solaris test failures
17347         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
17348         failures.
17349         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
17350
17351         strerror_r: enforce POSIX recommendations
17352         * lib/strerror_r.c (safe_copy): New helper method.
17353         (strerror_r): Guarantee a non-empty string.
17354         * tests/test-strerror_r.c (main): Enhance tests to incorporate
17355         recent POSIX rulings and to match our strerror guarantees.
17356         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
17357
17358 2011-05-24  Jim Meyering  <meyering@redhat.com>
17359
17360         test-perror2.c: avoid warning about unused variable
17361         * tests/test-perror2.c (main): Remove declaration of unused "fp".
17362
17363 2011-05-24  Eric Blake  <eblake@redhat.com>
17364
17365         perror: avoid spurious test failure on HP-UX
17366         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
17367
17368         tests: fix logic bug in init.sh
17369         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
17370         shell.
17371
17372 2011-05-24  Jim Meyering  <meyering@redhat.com>
17373
17374         utimensat: do not reference an out-of-scope buffer
17375         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
17376         declared in an inner scope, yet "times" would be dereferenced outside
17377         the scope in which "ts" was valid.
17378         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
17379         of ts[2] "out/up", so that the use of aliased "times" (via
17380         "times = ts;") does not end up referencing an out-of-scope "ts"
17381
17382         opendir-safer.c: don't clobber errno; don't close negative FD
17383         * lib/opendir-safer.c (opendir_safer):
17384         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
17385         file descriptor, and more importantly, don't clobber the
17386         offending errno value with EINVAL.  Before, upon failure
17387         of dup_safer, we would pass the negative file descriptor to
17388         fdopendir, which would clobber errno.
17389
17390 2011-05-23  Bruno Haible  <bruno@clisp.org>
17391
17392         idcache: Fix module description.
17393         * modules/idcache (Include): Set to "idcache.h".
17394
17395 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
17396
17397         gnulib-tool: fix portability problem with MacOS sed
17398         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
17399         before the "}".  Problem reported by Leo in
17400         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
17401         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
17402         sed_extract_condition1, sed_extract_condition2.
17403
17404 2011-05-23  Bruno Haible  <bruno@clisp.org>
17405
17406         hash: Simplify autoconf macro.
17407         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
17408
17409 2011-05-23  Bruno Haible  <bruno@clisp.org>
17410
17411         getugroups: Fix module description.
17412         * modules/getugroups (Include): Set to "getugroups.h".
17413
17414 2011-05-23  Bruno Haible  <bruno@clisp.org>
17415
17416         linkat: Simplify autoconf macro.
17417         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
17418
17419 2011-05-23  Bruno Haible  <bruno@clisp.org>
17420             Eric Blake  <eblake@redhat.com>
17421
17422         linkat, renameat: Update dependencies.
17423         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
17424         * modules/linkat (Depends-on): Likewise. Remove also readlink,
17425         symlinkat.
17426
17427 2011-05-23  Jim Meyering  <meyering@redhat.com>
17428
17429         maint.mk: more tight_scope improvements
17430         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
17431         (_gl_TS_headers): Define only in if-0'd block.
17432         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
17433         sometimes we must *not* use it.  Adjust uses accordingly.
17434         (sc_tight_scope): Use much simpler grep-based test to determine
17435         whether we skip this rule.
17436
17437         maint.mk: generalize/improve the tight-scope rule
17438         * top/maint.mk: Emit a warning when the test is skipped.
17439         (_gl_TS_dir): Add $(srcdir)/ prefix.
17440         (_gl_TS_function_match): Simplify, rather than trying
17441         to enumerate common types.  Otherwise, it would fail to match an
17442         "extern unsigned char const *" declaration in idutils.
17443         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
17444         a way to support use of that type of macro.
17445         (_gl_TS_var_match): Simplify regexp.
17446         (_gl_TS_obj_files): New configurable variable.
17447         (_gl_TS_headers): Likewise.
17448
17449 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17450
17451         verify: fix bug when gnulib <assert.h> is also included
17452         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
17453         is defined, not if _GL_STATIC_ASSERT_H is not defined.
17454         Perhaps there's a better way, but this fixes the immediate problem.
17455         Problem reported by Bruno Haible in
17456         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
17457
17458 2011-05-22  Bruno Haible  <bruno@clisp.org>
17459
17460         xgetcwd: Simplify autoconf macro.
17461         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
17462
17463 2011-05-22  Bruno Haible  <bruno@clisp.org>
17464
17465         New module 'mktime-internal'.
17466         * modules/mktime-internal: New file.
17467         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
17468         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
17469         mktime_internal as a C macro if libc has __mktime_internal.
17470         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
17471         conditions.
17472         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
17473
17474 2011-05-22  Bruno Haible  <bruno@clisp.org>
17475
17476         timegm: Correct mktime replacement statements.
17477         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
17478         defining mktime as a C macro. This completes a 2009-07-28 commit.
17479
17480 2011-05-22  Bruno Haible  <bruno@clisp.org>
17481
17482         timegm: Simplify autoconf macro.
17483         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
17484
17485 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
17486
17487         clock-time: change to LGPLv2+.
17488         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
17489         BSD-like but we have no mark for that; this is good enough for now.
17490
17491 2011-05-21  Bruno Haible  <bruno@clisp.org>
17492
17493         strerror_r: Fix comments.
17494         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
17495
17496 2011-05-21  Bruno Haible  <bruno@clisp.org>
17497
17498         relocatable-prog-wrapper: Fix possible link error.
17499         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
17500         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
17501         (gl_FUNC_SETENV): ... to here.
17502         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
17503         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
17504
17505 2011-05-21  Bruno Haible  <bruno@clisp.org>
17506
17507         relocatable-prog-wrapper: Assume strerror() exists.
17508         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
17509         m4/strerror.m4.
17510         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
17511         * lib/relocwrapper.c: Remove mention of strerror module.
17512         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
17513         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
17514         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
17515         C macro.
17516
17517 2011-05-21  Bruno Haible  <bruno@clisp.org>
17518
17519         select: Simplify replacement idiom.
17520         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
17521         Win32 platforms.
17522         * lib/sys_select.in.h (select): Simplify accordingly.
17523         * modules/select (Depends-on): Likewise.
17524
17525 2011-05-21  Bruno Haible  <bruno@clisp.org>
17526
17527         mkdir-p: Simplify autoconf macro.
17528         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
17529         gl_FUNC_LCHOWN.
17530
17531 2011-05-21  Eric Blake  <eblake@redhat.com>
17532
17533         strerror_r: avoid clobbering strerror on cygwin
17534         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
17535         fall back instead to sys_errlist.
17536         * modules/strerror (configure.ac): Add witness.
17537         * tests/test-strerror_r.c (main): Enhance test.
17538         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17539         * tests/test-perror2.c (main): Free memory before exit.
17540
17541 2011-05-21  Bruno Haible  <bruno@clisp.org>
17542
17543         mkdtemp: Use gnulib naming conventions.
17544         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
17545         * modules/mkdtemp (configure.ac): Update.
17546
17547 2011-05-20  Eric Blake  <eblake@redhat.com>
17548
17549         strerror_r: avoid corrupting errno on Solaris
17550         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
17551         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17552
17553         strerror_r: avoid compiler warning
17554         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
17555
17556         strerror_r: simplify AIX code
17557         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
17558
17559         test-perror: avoid spurious failure on FreeBSD
17560         * modules/perror-tests (Depends-on): Add strerror, now that
17561         strerror_r no longer pulls it in.
17562
17563 2011-05-20  Bruno Haible  <bruno@clisp.org>
17564
17565         strerror_r-posix: Remove unused dependencies.
17566         * modules/strerror_r-posix (Depends-on): Remove strerror.
17567         Reported by Eric Blake.
17568
17569 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
17570
17571         intprops: remove assumption about A|B representation
17572         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
17573         is a valid integer if both A and B are.  Although this is true for
17574         all known practical hosts, the C standard doesn't guarantee it,
17575         and the code need not assume it.  Also, this change may work around
17576         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
17577         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
17578
17579 2011-05-20  Eric Blake  <eblake@redhat.com>
17580
17581         perror: work around FreeBSD bug
17582         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
17583         is broken.  Move AC_LIBOBJ...
17584         * modules/perror (configure.ac): Here.
17585         * doc/posix-functions/perror.texi (perror): Document this.
17586         * tests/test-perror2.c (main): Enhance test.
17587
17588         test-perror: check for strerror interactions
17589         * tests/macros.h (STREQ): Add macro.
17590         * modules/perror-tests (Files): Add second test.
17591         * tests/test-perror2.c (main): New file.
17592         * doc/posix-functions/perror.texi (perror): Document glibc bug.
17593
17594         test-perror: rewrite to use init script
17595         * modules/perror-tests (Files): Add init.sh.
17596         * tests/test-perror.sh: Use temporary directory.
17597
17598 2011-05-20  Jim Meyering  <meyering@redhat.com>
17599
17600         maint: replace misused "a" with "an"
17601         * doc/intprops.texi: "a integer"
17602         * doc/regex.texi: "a explanation"
17603         * lib/alignof.h: "a object"
17604         * lib/argmatch.h: "a explanation"
17605         * lib/argp-help.c: "a option" and "a OPTION_DOC"
17606         * lib/stdint.in.h: "a integer"
17607         * lib/userspec.c: "a owner"
17608         * doc/gnulib.texi: Fix "a idea", and reword.
17609
17610 2011-05-19  Jim Meyering  <meyering@redhat.com>
17611
17612         maint: correct misuse of "a" and "an"
17613         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
17614         * lib/argp-help.c: "an docum...": s/an/a/
17615         * lib/argp-parse.c: "An vector": s/An/A/
17616         * lib/execute.c: "an native": s/an/a/
17617         * lib/spawn-pipe.c: Likewise.
17618         * lib/gc.h: "an Gc_rc": s/an/a/
17619         * lib/unigbrk.in.h: "an grapheme": s/an/a/
17620         * lib/fts.c: "an stat.st_dev": s/an/a/
17621
17622 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17623
17624         intprops-tests: work around HP-UX 11.23 cc bug with constants
17625         * tests/test-intprops.c (VERIFY): New macro.
17626         (main): Use it, instead of verify, to work around the compiler bug; see
17627         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17628
17629         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
17630         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
17631         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
17632         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
17633         (_GL_REMAINDER_OVERFLOW): Use it.
17634
17635         intprops-tests: revert unsigned part of previous change
17636         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
17637         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
17638         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
17639         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
17640
17641 2011-05-19  Bruno Haible  <bruno@clisp.org>
17642
17643         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
17644         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
17645         strerror_r() returned without filling the buffer.
17646         Reported by Eric Blake.
17647
17648 2011-05-19  Eric Blake  <eblake@redhat.com>
17649
17650         strerror_r: guarantee unchanged errno
17651         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
17652         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
17653         failure.
17654         * tests/test-strerror_r.c (main): Enhance test.
17655
17656 2011-05-19  Bruno Haible  <bruno@clisp.org>
17657
17658         strerror_r: Reorder #if blocks.
17659         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
17660         for consistency with the previous commit.
17661
17662 2011-05-19  Bruno Haible  <bruno@clisp.org>
17663
17664         perror: Avoid clobbering the strerror buffer when possible.
17665         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
17666         * lib/strerror.c: Include it.
17667         * modules/strerror (Files): Add lib/strerror-impl.h.
17668         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
17669         (my_strerror): New function, defined through lib/strerror-impl.h.
17670         (perror): Use it instead of strerror.
17671         * modules/perror (Files): Add lib/strerror-impl.h.
17672         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
17673
17674 2011-05-19  Eric Blake  <eblake@redhat.com>
17675
17676         strerror_r: fix on newer cygwin
17677         * lib/strerror_r.c (strerror_r): Cygwin now has
17678         __xpg_strerror_r, use it.
17679
17680 2011-05-19  Bruno Haible  <bruno@clisp.org>
17681
17682         strerror_r: Avoid clobbering the strerror buffer when possible.
17683         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
17684         (sys_nerr, sys_errlist): New declarations.
17685         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
17686         HP-UX, native Win32, IRIX, and 32-bit Solaris.
17687         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
17688
17689 2011-05-19  Bruno Haible  <bruno@clisp.org>
17690
17691         strerror_r: Fix test failure on mingw.
17692         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
17693         EXTEND_STRERROR_R.
17694         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
17695         macros from errno.in.h instead.
17696
17697 2011-05-19  Eric Blake  <eblake@redhat.com>
17698
17699         strerror: relax test for Solaris
17700         * tests/test-strerror.c (main): Permit Solaris behavior.
17701         * tests/test-strerror_r.c (main): Likewise.
17702
17703         strerror: enforce POSIX ruling on strerror(0)
17704         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
17705         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17706         * lib/strerror_r.c (rpl_strerror_r): Work around it.
17707         * doc/posix-functions/strerror.texi (strerror): Document it.
17708         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
17709         * tests/test-strerror.c (main): Strengthen test.
17710         * tests/test-strerror_r.c (main): Likewise.
17711
17712 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17713
17714         intprop-tests: port to older and more-pedantic compilers
17715         * modules/intprops-tests (Files): Add tests/macros.h.
17716         * tests/test-intprops.c: Include macros.h.
17717         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
17718         it's no longer documented to expand to an integer constant expression.
17719         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
17720         argument is floating point, as it's no longer documented to expand
17721         to an integer constant expression in that case.
17722         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
17723         compiler bugs reported by Bruno Haible.  See
17724         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17725         (U0, U1): New constants, to work around the same bugs.  Also,
17726         in tests, use e.g., "(unsigned int) 39" rather than "39u".
17727
17728         intprops: work around C compiler bugs
17729         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
17730         bug in Sun C 5.11 2010/08/13 and other compilers; see
17731         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17732
17733         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
17734         * doc/intprops.texi (Integer Type Determination): Fix
17735         documentation for TYPE_IS_INTEGER: it returns an constant
17736         expression, not an integer constant expression.  Fix doc for
17737         TYPE_SIGNED: it returns an integer constant expression only if its
17738         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
17739         hardly worth documented that way....)
17740
17741 2011-05-18  Bruno Haible  <bruno@clisp.org>
17742
17743         strerror_r: Avoid clobbering the strerror buffer when possible.
17744         * lib/strerror_r.c (strerror_r): Merge the three implementations.
17745         Handle gnulib defined errno values here. When strerror() returns NULL
17746         or an empty string, return EINVAL.
17747         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
17748         gnulib defined errno values here.
17749         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
17750
17751 2011-05-18  Eric Blake  <eblake@redhat.com>
17752
17753         fnmatch: avoid compiler warning
17754         * lib/fnmatch_loop.c (FCT): Use correct type.
17755         Reported by Matthias Bolte.
17756
17757 2011-05-13  Jim Meyering  <meyering@redhat.com>
17758
17759         maint.mk: three new prohibit_<HDR>_without_use rules
17760         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
17761         (sc_prohibit_stdio-safer_without_use): Likewise.
17762         (sc_prohibit_xfreopen_without_use): Likewise.
17763
17764 2011-05-17  Jim Meyering  <meyering@redhat.com>
17765
17766         announce-gen: fail if the NEWS delta is empty
17767         If there's nothing noteworthy in NEWS, then either you forgot
17768         or you shouldn't be releasing.
17769         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
17770
17771 2011-05-17  Pádraig Brady <P@draigBrady.com>
17772
17773         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
17774         reserved symbols starting with double underscore from the check.
17775
17776 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
17777
17778         intprops: add doc
17779         * doc/intprops.texi: New file, documenting intprops.
17780         * doc/gnulib.texi (Particular Modules): Include it.
17781
17782         verify: add doc to gnulib manual and fix example
17783         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
17784         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
17785         (Compile-time Assertions): Fix example so it can't overflow.
17786
17787 2011-05-17  Jim Meyering  <meyering@redhat.com>
17788
17789         warnings.m4: don't usurp save_CPPFLAGS variable name
17790         * m4/warnings.m4: Prefix local temporary variable name with gl_.
17791
17792         doc: fix typo
17793         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
17794
17795 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17796             Bruno Haible  <bruno@clisp.org>
17797
17798         doc: Tweak recent change.
17799         * README (Portability guidelines): Tweak new text.
17800         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
17801         Interix 6.1.
17802
17803 2011-05-16  Eric Blake  <eblake@redhat.com>
17804
17805         inttypes: avoid autoconf warning
17806         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
17807         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17808
17809 2011-05-16  Sam Steingold <sds@gnu.org>
17810         and Eric Blake  <eblake@redhat.com>
17811
17812         vc-list-files: accept multiple directory operands
17813         * build-aux/vc-list-files: Iterate over all remaining operands.
17814
17815 2011-05-16  Bruno Haible  <bruno@clisp.org>
17816
17817         Fix confusion regarding deprecated modules.
17818         * modules/calloc (Status, Notice): Mark module as deprecated, not
17819         obsolete.
17820         * modules/fnmatch-posix (Status, Notice): Likewise.
17821         * modules/getdate (Status, Notice): Likewise.
17822         * modules/getopt (Status, Notice): Likewise.
17823         * modules/malloc (Status, Notice): Likewise.
17824         * modules/pipe (Status, Notice): Likewise.
17825         * modules/realloc (Status, Notice): Likewise.
17826         * modules/rename-dest-slash (Status, Notice): Likewise.
17827         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
17828         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
17829         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
17830         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
17831         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
17832
17833 2011-05-16  Bruno Haible  <bruno@clisp.org>
17834
17835         doc: List the target platforms.
17836         * doc/gnulib-intro.texi (Target Platforms): New section.
17837         * doc/gnulib.texi (Introduction): Update menu.
17838         * README (Portability guidelines): Refer to the new section. Update
17839         statement about oldest supported environment. Remove rationale why
17840         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
17841         unportable C89 function.
17842         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
17843         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
17844
17845 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17846
17847         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
17848
17849 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
17850
17851         intprops-tests: new module
17852         * modules/intprops-tests, tests/test-intprops.c: New files.
17853
17854         intprops: add safe, portable integer overflow checking
17855         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
17856         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
17857         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
17858         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
17859         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
17860         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
17861         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
17862         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
17863         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
17864         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
17865         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
17866
17867 2011-05-12  James Youngman  <jay@gnu.org>
17868
17869         Add a test for glibc's Bugzilla bug #12378.
17870         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
17871         doesn't allow the literal matching of a lone "[" (which is
17872         required by POSIX).
17873         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
17874
17875 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17876
17877         Sync glibc change fixing Bugzilla bug #12378.
17878         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
17879         beginning and fall back to matching as normal character if the
17880         string ends before the matching ']' is found.  This is what POSIX
17881         requires.
17882
17883 2011-05-13  Eric Blake  <eblake@redhat.com>
17884
17885         getcwd-lgpl: relax test for FreeBSD
17886         * doc/posix-functions/getcwd.texi (getcwd): Document portability
17887         issue.
17888         * tests/test-getcwd-lgpl.c (main): Relax test.
17889         Reported by Matthias Bolte.
17890
17891 2011-05-11  Eric Blake  <eblake@redhat.com>
17892
17893         test-fflush: silence compiler warning
17894         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
17895
17896 2011-05-11  Bruno Haible  <bruno@clisp.org>
17897
17898         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
17899         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
17900         * modules/canonicalize (Depends-on): Add 'nocrash'.
17901         * modules/canonicalize-lgpl (Depends-on): Likewise.
17902         * doc/posix-functions/realpath.texi: Update platforms list.
17903         Reported by Ryan Schmidt <ryandesign@macports.org>.
17904
17905 2011-05-11  Bruno Haible  <bruno@clisp.org>
17906
17907         group-member: Declare function in <unistd.h>.
17908         * lib/unistd.in.h (group_member): New declaration.
17909         * lib/group-member.h: Remove file.
17910         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
17911         * tests/test-unistd-c++.cc: Check signature of group_member.
17912         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
17913         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
17914         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
17915         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
17916         HAVE_GROUP_MEMBER.
17917         * modules/group-member (Files): Remove lib/group-member.h.
17918         (Depends-on): Add unistd. Specify conditions.
17919         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17920         (Include): Change to <unistd.h>.
17921         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
17922         HAVE_GROUP_MEMBER.
17923         * NEWS: Mention the change.
17924         * lib/euidaccess.c: Don't include group-member.h.
17925
17926 2011-05-11  Bruno Haible  <bruno@clisp.org>
17927
17928         group-member: Document module.
17929         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
17930         module.
17931
17932 2011-05-11  Bruno Haible  <bruno@clisp.org>
17933
17934         fclose: Fix mistake earlier today.
17935         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
17936
17937 2011-05-11  Eric Blake  <eblake@redhat.com>
17938
17939         fclose: preserve fflush errors
17940         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
17941         Reported by Jim Meyering.
17942
17943         bootstrap: support a prereq of 'rpcgen -' on RHEL5
17944         * build-aux/bootstrap (check_versions): When no specific version
17945         is required, merely check that the app produces an exit status
17946         that indicates its existence.
17947
17948         maint.mk: drop redundant check
17949         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
17950         the same but better.
17951
17952 2011-05-11  Bruno Haible  <bruno@clisp.org>
17953
17954         fclose: Fix possible link error.
17955         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
17956         unregister_shadow_fd. Improve comments.
17957         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
17958         Eric Blake.
17959
17960 2011-05-11  Jim Meyering  <meyering@redhat.com>
17961
17962         maint.mk: improve "can not" detection and generalize rule name
17963         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
17964         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
17965         Use the same technique as in sc_prohibit_doubled_word, so that
17966         we recognize "can not" also when the words are separated by a newline.
17967         Suggested by Eric Blake.
17968         (perl_filename_lineno_text_): Define.  Factored out of...
17969         (prohibit_doubled_word_): ...here.  Use the new definition.
17970         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
17971         (prohibit_undesirable_word_seq_RE_): New overridable variable.
17972         (ignore_undesirable_word_sequence_RE_): New overridable variable.
17973
17974 2011-05-10  Eric Blake  <eblake@redhat.com>
17975
17976         fclose: avoid double close race when possible
17977         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
17978         all but WINDOWS_SOCKETS.
17979
17980 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
17981
17982         openat: correct new comment
17983         * lib/openat-proc.c (openat_proc_name): Correct the comment.
17984
17985 2011-05-10  Jim Meyering  <meyering@redhat.com>
17986
17987         openat: add comments
17988         * lib/openat-proc.c (openat_proc_name): Add comments,
17989         mostly from Eric Blake.
17990
17991 2011-05-09  Eric Blake  <eblake@redhat.com>
17992
17993         openat: reduce syscalls in first probe of /proc
17994         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
17995         be a directory.  Simplify the probe for .. bugs.
17996         * modules/openat (Depends-on): Drop same-inode.
17997         Reported by Bastien ROUCARIES.
17998
17999 2011-05-09  Jim Meyering  <meyering@redhat.com>
18000
18001         maint.mk: change semantics/name of tight_scope variables
18002         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
18003         Rename variables to align with semantics that make them more useful.
18004
18005         maint.mk: tweak new rule's name not to impinge
18006         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
18007         (sc_tight_scope): Use new rule name rather than $@-0.
18008
18009         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
18010         * top/maint.mk (sc_tight_scope): New rule.
18011         (sc_tight_scope-0): New rule, ifdef'd out.
18012         (_gl_TS_dir): Default.
18013         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
18014         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
18015
18016 2011-05-09  Simon Josefsson  <simon@josefsson.org>
18017
18018         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
18019         Haible <bruno@clisp.org>.
18020
18021 2011-05-08  Bruno Haible  <bruno@clisp.org>
18022
18023         Comments.
18024         * m4/isnanf.m4: Add comment.
18025         * m4/isnanl.m4: Likewise.
18026
18027 2011-05-08  Bruno Haible  <bruno@clisp.org>
18028
18029         glob: Remove obsolete macro.
18030         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
18031
18032 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
18033
18034         intprops: Sun C 5.11 supports __typeof__
18035         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
18036         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
18037         which is new.
18038         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
18039
18040         intprops: switch to usual gnulib indenting and naming
18041         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
18042         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
18043
18044         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
18045
18046 2011-05-08  Jim Meyering  <meyering@redhat.com>
18047
18048         maint.mk: suppress "Entering/Leaving directory" diag in announcement
18049         * top/maint.mk (release-prep): Use make's --no-print-directory
18050         option when generating the announcement.  This eliminates the
18051         pesky "make[2]: Entering/Leaving directory" diagnostics in the
18052         generated announcement template.
18053
18054 2011-05-08  Bruno Haible  <bruno@clisp.org>
18055
18056         tzset: Fix gettimeofday wrapper on Solaris 2.6.
18057         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
18058         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
18059
18060 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
18061
18062         ignore-value, verify: Omit include files from lib_SOURCES.
18063         * modules/ignore-value, modules/verify (Makefile.am):
18064         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
18065         that leads Automake to duplicate use of am__objects_... variables
18066         in Makefile.in.  See
18067         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
18068
18069 2011-05-07  Bruno Haible  <bruno@clisp.org>
18070
18071         fclose: Simplify autoconf macro.
18072         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
18073         defined.
18074
18075 2011-05-07  Bruno Haible  <bruno@clisp.org>
18076
18077         canonicalize-lgpl: Fix autoconf macro ordering bug.
18078         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
18079         gl_STDLIB_H_DEFAULTS.
18080
18081 2011-05-06  Eric Blake  <eblake@redhat.com>
18082
18083         maintainer-makefile: make sc_po_check easier to tune
18084         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
18085         to probe for strings, such as an alternate location for gnulib.
18086
18087         fclose: guarantee behavior on seekable stdin
18088         * modules/fclose (Depends-on): Add fflush.
18089         * doc/posix-functions/fclose.texi (fclose): Document this.
18090         * tests/test-fclose.c (main): Make test for this unconditional.
18091
18092 2011-05-06  Bruno Haible  <bruno@clisp.org>
18093
18094         fflush, fpurge: Relicense under LGPLv2+.
18095         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
18096         * modules/fpurge (License): Likewise.
18097         With permission from Eric Blake and Jim Meyering.
18098         Suggested by Eric Blake.
18099
18100 2011-05-06  Karl Berry  <karl@gnu.org>
18101
18102         * MODULES.html.sh (func_all_modules): remove exit.
18103
18104 2011-05-06  Jim Meyering  <meyering@redhat.com>
18105
18106         maint.mk: use info-gnu@ as the default only for a stable release
18107         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
18108         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
18109         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
18110         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
18111
18112 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18113
18114         assert-h: new module, which supports C1X-style static_assert
18115         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
18116         * lib/verify.h: Revamp so that this can be copied into assert.h,
18117         while retaining the ability to use it standalone as before.
18118         Rename private identifiers so as not to encroach on the
18119         standard C namespace, since this is now used by assert.h.
18120         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
18121         the old verify_true.
18122         (_GL_VERIFY_TRUE): New macro, with much of the contents of
18123         the old verify_true.  Use _GL_VERIFY_TYPE.
18124         (_GL_VERIFY): New macro, with much of the contents of the old verify.
18125         (static_assert): New macro, if _GL_STATIC_ASSERT_H
18126         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
18127         defined when this file is copied into the replacement assert.h.
18128         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
18129         and _Static_assert is not built in.
18130         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
18131         defined, and use the new macros mentioned above.
18132         * doc/posix-headers/assert.texi: Document this.
18133
18134 2011-05-05  Bruno Haible  <bruno@clisp.org>
18135
18136         fclose, fflush: Respect rules for use of AC_LIBOBJ.
18137         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
18138         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
18139         gl_REPLACE_FCLOSE here.
18140         * modules/fflush (Depends-on): Remove fclose.
18141         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
18142         combination with module 'fclose'.
18143
18144 2011-05-05  Bruno Haible  <bruno@clisp.org>
18145
18146         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
18147         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
18148         gl_FUNC_FFLUSH.
18149         (gl_FUNC_FFLUSH): Use it.
18150         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
18151         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
18152         gl_REPLACE_FSEEKO here.
18153
18154 2011-05-05  Bruno Haible  <bruno@clisp.org>
18155
18156         tzset: Relicense under LGPL.
18157         * modules/tzset (License): Change to LGPL.
18158         No agreement needed; it's a no-op.
18159
18160         strtoimax, strtoumax: Relicense under LGPL.
18161         * modules/strtoimax (License): Change to LGPL.
18162         * modules/strtoumax (License): Likewise.
18163         With permission from Jim Meyering, Paul Eggert:
18164         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
18165         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
18166
18167         getgroups: Relicense under LGPL.
18168         * modules/getgroups (License): Change to LGPL.
18169         With permission from Jim Meyering, Paul Eggert, Eric Blake:
18170         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
18171         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
18172         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18173
18174         nanosleep: Relicense under LGPL.
18175         * modules/nanosleep (License): Change to LGPL.
18176         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
18177         Haible:
18178         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
18179         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
18180         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18181         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
18182
18183         futimens: Relicense under LGPL.
18184         * modules/futimens (License): Change to LGPL.
18185         With permission from Eric Blake:
18186         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18187
18188         fflush: Relicense under LGPL.
18189         * modules/fflush (License): Change to LGPL.
18190         With permission from Eric Blake, Bruno Haible, Jim Meyering:
18191         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18192         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
18193         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
18194
18195         tmpfile: Relicense under LGPL.
18196         * modules/tmpfile (License): Change to LGPL.
18197         With permission from Ben Pfaff:
18198         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
18199
18200         isfinite: Relicense under LGPL.
18201         * modules/isfinite (License): Change to LGPL.
18202         With permission from Ben Pfaff, Bruno Haible:
18203         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
18204         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
18205
18206         acosl..tanl: Relicense under LGPL.
18207         * modules/acosl (License): Change to LGPL.
18208         * modules/asinl (License): Likewise.
18209         * modules/atanl (License): Likewise.
18210         * modules/cosl (License): Likewise.
18211         * modules/expl (License): Likewise.
18212         * modules/logl (License): Likewise.
18213         * modules/sinl (License): Likewise.
18214         * modules/sqrtl (License): Likewise.
18215         * modules/tanl (License): Likewise.
18216         Source code originally from glibc and Paolo Bonzini. Agreements:
18217         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
18218         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
18219
18220 2011-05-05  Bruno Haible  <bruno@clisp.org>
18221
18222         signal: Define sighandler_t.
18223         * lib/signal.in.h (sighandler_t): New type.
18224         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
18225         whether sighandler_t is defined.
18226         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
18227         * modules/signal (Depends-on): Add extensions.
18228         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
18229         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
18230         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
18231
18232 2011-05-05  Eric Blake  <eblake@redhat.com>
18233
18234         maint: remove useless REPLACE_*_H macros
18235         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
18236         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
18237         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
18238         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
18239         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
18240         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
18241         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
18242         * m4/btowc.m4: Update callers.
18243         * m4/dirfd.m4: Likewise.
18244         * m4/duplocale.m4: Likewise.
18245         * m4/fchdir.m4: Likewise.
18246         * m4/fdopendir.m4: Likewise.
18247         * m4/inet_ntop.m4: Likewise.
18248         * m4/inet_pton.m4: Likewise.
18249         * m4/ioctl.m4: Likewise.
18250         * m4/mbrlen.m4: Likewise.
18251         * m4/mbrtowc.m4: Likewise.
18252         * m4/mbsinit.m4: Likewise.
18253         * m4/mbsnrtowcs.m4: Likewise.
18254         * m4/mbsrtowcs.m4: Likewise.
18255         * m4/poll.m4: Likewise.
18256         * m4/setlocale.m4: Likewise.
18257         * m4/wcrtomb.m4: Likewise.
18258         * m4/wcsnrtombs.m4: Likewise.
18259         * m4/wcsrtombs.m4: Likewise.
18260         * m4/wctob.m4: Likewise.
18261         * m4/wcwidth.m4: Likewise.
18262         * modules/posix_spawn: Likewise.
18263         * modules/posix_spawn_file_actions_addclose: Likewise.
18264         * modules/posix_spawn_file_actions_adddup2: Likewise.
18265         * modules/posix_spawn_file_actions_addopen: Likewise.
18266         * modules/posix_spawn_file_actions_destroy: Likewise.
18267         * modules/posix_spawn_file_actions_init: Likewise.
18268         * modules/posix_spawnattr_destroy: Likewise.
18269         * modules/posix_spawnattr_getflags: Likewise.
18270         * modules/posix_spawnattr_getpgroup: Likewise.
18271         * modules/posix_spawnattr_getschedparam: Likewise.
18272         * modules/posix_spawnattr_getschedpolicy: Likewise.
18273         * modules/posix_spawnattr_getsigdefault: Likewise.
18274         * modules/posix_spawnattr_getsigmask: Likewise.
18275         * modules/posix_spawnattr_init: Likewise.
18276         * modules/posix_spawnattr_setflags: Likewise.
18277         * modules/posix_spawnattr_setpgroup: Likewise.
18278         * modules/posix_spawnattr_setschedparam: Likewise.
18279         * modules/posix_spawnattr_setschedpolicy: Likewise.
18280         * modules/posix_spawnattr_setsigdefault: Likewise.
18281         * modules/posix_spawnattr_setsigmask: Likewise.
18282         * modules/posix_spawnp: Likewise.
18283
18284 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
18285
18286         Add option to do-release-commit-and-tag to specify branch.
18287         * build-aux/do-release-commit-and-tag: Add --branch.
18288
18289 2011-05-03  Bruno Haible  <bruno@clisp.org>
18290
18291         Avoid unnecessary compilation units, through conditional dependencies.
18292         * modules/accept (Depends-on): Add conditions to the dependencies.
18293         * modules/acosl (Depends-on): Likewise.
18294         * modules/argz (Depends-on): Likewise.
18295         * modules/asinl (Depends-on): Likewise.
18296         * modules/atanl (Depends-on): Likewise.
18297         * modules/atoll (Depends-on): Likewise.
18298         * modules/bind (Depends-on): Likewise.
18299         * modules/btowc (Depends-on): Likewise.
18300         * modules/canonicalize-lgpl (Depends-on): Likewise.
18301         * modules/ceil (Depends-on): Likewise.
18302         * modules/ceilf (Depends-on): Likewise.
18303         * modules/ceill (Depends-on): Likewise.
18304         * modules/chdir-long (Depends-on): Likewise.
18305         * modules/chown (Depends-on): Likewise.
18306         * modules/close (Depends-on): Likewise.
18307         * modules/connect (Depends-on): Likewise.
18308         * modules/cosl (Depends-on): Likewise.
18309         * modules/dirfd (Depends-on): Likewise.
18310         * modules/dprintf (Depends-on): Likewise.
18311         * modules/dprintf-posix (Depends-on): Likewise.
18312         * modules/error (Depends-on): Likewise.
18313         * modules/euidaccess (Depends-on): Likewise.
18314         * modules/expl (Depends-on): Likewise.
18315         * modules/faccessat (Depends-on): Likewise.
18316         * modules/fchdir (Depends-on): Likewise.
18317         * modules/fclose (Depends-on): Likewise.
18318         * modules/fcntl (Depends-on): Likewise.
18319         * modules/fdopendir (Depends-on): Likewise.
18320         * modules/fflush (Depends-on): Likewise.
18321         * modules/floor (Depends-on): Likewise.
18322         * modules/floorf (Depends-on): Likewise.
18323         * modules/floorl (Depends-on): Likewise.
18324         * modules/fnmatch (Depends-on): Likewise.
18325         * modules/fopen (Depends-on): Likewise.
18326         * modules/fprintf-posix (Depends-on): Likewise.
18327         * modules/frexp (Depends-on): Likewise.
18328         * modules/frexp-nolibm (Depends-on): Likewise.
18329         * modules/frexpl (Depends-on): Likewise.
18330         * modules/frexpl-nolibm (Depends-on): Likewise.
18331         * modules/fseek (Depends-on): Likewise.
18332         * modules/fsusage (Depends-on): Likewise.
18333         * modules/ftell (Depends-on): Likewise.
18334         * modules/ftello (Depends-on): Likewise.
18335         * modules/futimens (Depends-on): Likewise.
18336         * modules/getcwd (Depends-on): Likewise.
18337         * modules/getcwd-lgpl (Depends-on): Likewise.
18338         * modules/getdelim (Depends-on): Likewise.
18339         * modules/getdomainname (Depends-on): Likewise.
18340         * modules/getgroups (Depends-on): Likewise.
18341         * modules/gethostname (Depends-on): Likewise.
18342         * modules/getline (Depends-on): Likewise.
18343         * modules/getlogin_r (Depends-on): Likewise.
18344         * modules/getopt-posix (Depends-on): Likewise.
18345         * modules/getpeername (Depends-on): Likewise.
18346         * modules/getsockname (Depends-on): Likewise.
18347         * modules/getsockopt (Depends-on): Likewise.
18348         * modules/getsubopt (Depends-on): Likewise.
18349         * modules/getusershell (Depends-on): Likewise.
18350         * modules/glob (Depends-on): Likewise.
18351         * modules/grantpt (Depends-on): Likewise.
18352         * modules/iconv_open (Depends-on): Likewise.
18353         * modules/iconv_open-utf (Depends-on): Likewise.
18354         * modules/inet_ntop (Depends-on): Likewise.
18355         * modules/inet_pton (Depends-on): Likewise.
18356         * modules/ioctl (Depends-on): Likewise.
18357         * modules/isapipe (Depends-on): Likewise.
18358         * modules/isfinite (Depends-on): Likewise.
18359         * modules/isinf (Depends-on): Likewise.
18360         * modules/lchown (Depends-on): Likewise.
18361         * modules/ldexpl (Depends-on): Likewise.
18362         * modules/link (Depends-on): Likewise.
18363         * modules/linkat (Depends-on): Likewise.
18364         * modules/listen (Depends-on): Likewise.
18365         * modules/logl (Depends-on): Likewise.
18366         * modules/lstat (Depends-on): Likewise.
18367         * modules/mbrlen (Depends-on): Likewise.
18368         * modules/mbrtowc (Depends-on): Likewise.
18369         * modules/mbsinit (Depends-on): Likewise.
18370         * modules/mbsnrtowcs (Depends-on): Likewise.
18371         * modules/mbsrtowcs (Depends-on): Likewise.
18372         * modules/mbtowc (Depends-on): Likewise.
18373         * modules/memcmp (Depends-on): Likewise.
18374         * modules/mkdir (Depends-on): Likewise.
18375         * modules/mkdtemp (Depends-on): Likewise.
18376         * modules/mkfifo (Depends-on): Likewise.
18377         * modules/mkfifoat (Depends-on): Likewise.
18378         * modules/mknod (Depends-on): Likewise.
18379         * modules/mkostemp (Depends-on): Likewise.
18380         * modules/mkostemps (Depends-on): Likewise.
18381         * modules/mkstemp (Depends-on): Likewise.
18382         * modules/mkstemps (Depends-on): Likewise.
18383         * modules/mktime (Depends-on): Likewise.
18384         * modules/nanosleep (Depends-on): Likewise.
18385         * modules/open (Depends-on): Likewise.
18386         * modules/openat (Depends-on): Likewise.
18387         * modules/perror (Depends-on): Likewise.
18388         * modules/poll (Depends-on): Likewise.
18389         * modules/popen (Depends-on): Likewise.
18390         * modules/posix_spawn (Depends-on): Likewise.
18391         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
18392         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
18393         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
18394         * modules/posix_spawnp (Depends-on): Likewise.
18395         * modules/pread (Depends-on): Likewise.
18396         * modules/printf-posix (Depends-on): Likewise.
18397         * modules/ptsname (Depends-on): Likewise.
18398         * modules/putenv (Depends-on): Likewise.
18399         * modules/pwrite (Depends-on): Likewise.
18400         * modules/readline (Depends-on): Likewise.
18401         * modules/readlink (Depends-on): Likewise.
18402         * modules/readlinkat (Depends-on): Likewise.
18403         * modules/recv (Depends-on): Likewise.
18404         * modules/recvfrom (Depends-on): Likewise.
18405         * modules/regex (Depends-on): Likewise.
18406         * modules/remove (Depends-on): Likewise.
18407         * modules/rename (Depends-on): Likewise.
18408         * modules/renameat (Depends-on): Likewise.
18409         * modules/rmdir (Depends-on): Likewise.
18410         * modules/round (Depends-on): Likewise.
18411         * modules/roundf (Depends-on): Likewise.
18412         * modules/roundl (Depends-on): Likewise.
18413         * modules/rpmatch (Depends-on): Likewise.
18414         * modules/select (Depends-on): Likewise.
18415         * modules/send (Depends-on): Likewise.
18416         * modules/sendto (Depends-on): Likewise.
18417         * modules/setenv (Depends-on): Likewise.
18418         * modules/setlocale (Depends-on): Likewise.
18419         * modules/setsockopt (Depends-on): Likewise.
18420         * modules/shutdown (Depends-on): Likewise.
18421         * modules/sigaction (Depends-on): Likewise.
18422         * modules/signbit (Depends-on): Likewise.
18423         * modules/sigprocmask (Depends-on): Likewise.
18424         * modules/sinl (Depends-on): Likewise.
18425         * modules/sleep (Depends-on): Likewise.
18426         * modules/snprintf (Depends-on): Likewise.
18427         * modules/snprintf-posix (Depends-on): Likewise.
18428         * modules/socket (Depends-on): Likewise.
18429         * modules/sprintf-posix (Depends-on): Likewise.
18430         * modules/sqrtl (Depends-on): Likewise.
18431         * modules/stat (Depends-on): Likewise.
18432         * modules/strchrnul (Depends-on): Likewise.
18433         * modules/strdup-posix (Depends-on): Likewise.
18434         * modules/strerror (Depends-on): Likewise.
18435         * modules/strerror_r-posix (Depends-on): Likewise.
18436         * modules/strndup (Depends-on): Likewise.
18437         * modules/strnlen (Depends-on): Likewise.
18438         * modules/strptime (Depends-on): Likewise.
18439         * modules/strsep (Depends-on): Likewise.
18440         * modules/strsignal (Depends-on): Likewise.
18441         * modules/strstr-simple (Depends-on): Likewise.
18442         * modules/strtod (Depends-on): Likewise.
18443         * modules/strtoimax (Depends-on): Likewise.
18444         * modules/strtok_r (Depends-on): Likewise.
18445         * modules/strtoumax (Depends-on): Likewise.
18446         * modules/symlink (Depends-on): Likewise.
18447         * modules/symlinkat (Depends-on): Likewise.
18448         * modules/tanl (Depends-on): Likewise.
18449         * modules/tcgetsid (Depends-on): Likewise.
18450         * modules/tmpfile (Depends-on): Likewise.
18451         * modules/trunc (Depends-on): Likewise.
18452         * modules/truncf (Depends-on): Likewise.
18453         * modules/truncl (Depends-on): Likewise.
18454         * modules/uname (Depends-on): Likewise.
18455         * modules/unlink (Depends-on): Likewise.
18456         * modules/unlockpt (Depends-on): Likewise.
18457         * modules/unsetenv (Depends-on): Likewise.
18458         * modules/usleep (Depends-on): Likewise.
18459         * modules/utimensat (Depends-on): Likewise.
18460         * modules/vasprintf (Depends-on): Likewise.
18461         * modules/vdprintf (Depends-on): Likewise.
18462         * modules/vdprintf-posix (Depends-on): Likewise.
18463         * modules/vfprintf-posix (Depends-on): Likewise.
18464         * modules/vprintf-posix (Depends-on): Likewise.
18465         * modules/vsnprintf (Depends-on): Likewise.
18466         * modules/vsnprintf-posix (Depends-on): Likewise.
18467         * modules/vsprintf-posix (Depends-on): Likewise.
18468         * modules/wcrtomb (Depends-on): Likewise.
18469         * modules/wcscasecmp (Depends-on): Likewise.
18470         * modules/wcscspn (Depends-on): Likewise.
18471         * modules/wcsdup (Depends-on): Likewise.
18472         * modules/wcsncasecmp (Depends-on): Likewise.
18473         * modules/wcsnrtombs (Depends-on): Likewise.
18474         * modules/wcspbrk (Depends-on): Likewise.
18475         * modules/wcsrtombs (Depends-on): Likewise.
18476         * modules/wcsspn (Depends-on): Likewise.
18477         * modules/wcsstr (Depends-on): Likewise.
18478         * modules/wcstok (Depends-on): Likewise.
18479         * modules/wcswidth (Depends-on): Likewise.
18480         * modules/wctob (Depends-on): Likewise.
18481         * modules/wctomb (Depends-on): Likewise.
18482         * modules/wctype (Depends-on): Likewise.
18483         * modules/wcwidth (Depends-on): Likewise.
18484         * modules/write (Depends-on): Likewise.
18485
18486 2011-05-03  Bruno Haible  <bruno@clisp.org>
18487
18488         Support for conditional dependencies.
18489         * doc/gnulib.texi (Module description): Document the syntax of
18490         conditional dependencies.
18491         * gnulib-tool: New option --conditional-dependencies.
18492         (func_usage): Document it.
18493         (cond_dependencies): New variable.
18494         (func_get_automake_snippet_conditional,
18495         func_get_automake_snippet_unconditional): New functions, extracted from
18496         func_get_automake_snippet.
18497         (func_get_automake_snippet): Use them.
18498         (sed_first_32_chars): New variable.
18499         (func_module_shellfunc_name): New function.
18500         (func_module_shellvar_name): New function.
18501         (func_module_conditional_name): New function.
18502         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
18503         func_cond_module_condition): New functions.
18504         (func_modules_transitive_closure): Add support for conditional
18505         dependencies.
18506         (func_emit_lib_Makefile_am): For a conditional module, enclose the
18507         conditional automake snippet in an automake conditional.
18508         (func_emit_autoconf_snippets): Emit shell functions that contain the
18509         code for conditional modules.
18510         (func_import, func_create_testdir): Update specification.
18511
18512 2011-05-03  Eric Blake  <eblake@redhat.com>
18513
18514         test-getaddrinfo: report error information
18515         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
18516
18517 2011-05-03  Jim Meyering  <meyering@redhat.com>
18518
18519         bootstrap: avoid build failure when $GZIP is set
18520         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
18521         program name.  If defined at all, it is supposed to list gzip options.
18522         Reported by Alan Curry in http://debbugs.gnu.org/8609
18523
18524 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
18525
18526         readme-release: new module with release instructions
18527         * modules/readme-release: New module.
18528         * top/README-release: New file, from coreutils, grep, diffutils.
18529         * MODULES.html.sh (Support for maintaining and releasing): Add it.
18530
18531 2011-05-02  Eric Blake  <eblake@redhat.com>
18532
18533         fflush: also replace fclose when fixing fflush
18534         * modules/fflush (Depends-on): Add fclose.
18535         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
18536         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
18537         memstreams with no backing fd.
18538         * doc/posix-functions/fclose.texi (fclose): Document the use of
18539         fflush module to fix the bug.
18540         * tests/test-fclose.c (main): Relax test when fclose is used in
18541         isolation.
18542
18543         fclose: add some tests
18544         * modules/fclose-tests: New test module.
18545         * tests/test-fclose.c: New file.
18546         * doc/posix-functions/fclose.texi (fclose): Document the bug.
18547
18548         fclose: reduced dependencies
18549         * modules/fclose (Depends-on): Switch from fflush/fseeko to
18550         simpler lseek.
18551         * lib/fclose.c (rpl_fclose): Likewise.
18552         Reported by Simon Josefsson.
18553
18554         exit: drop remaining clients
18555         * modules/argmatch (Depends-on): Replace exit with stdlib.
18556         * modules/copy-file (Depends-on): Likewise.
18557         * modules/execute (Depends-on): Likewise.
18558         * modules/exitfail (Depends-on): Likewise.
18559         * modules/obstack (Depends-on): Likewise.
18560         * modules/pagealign_alloc (Depends-on): Likewise.
18561         * modules/pipe-filter-gi (Depends-on): Likewise.
18562         * modules/pipe-filter-ii (Depends-on): Likewise.
18563         * modules/savewd (Depends-on): Likewise.
18564         * modules/spawn-pipe (Depends-on): Likewise.
18565         * modules/wait-process (Depends-on): Likewise.
18566         * modules/xsetenv (Depends-on): Likewise.
18567         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
18568         * modules/git-merge-changelog (Depends-on): Likewise.
18569         * modules/long-options (Depends-on): Likewise.
18570         * modules/pt_chown (Depends-on): Likewise.
18571         * modules/sysexits (Depends-on): Likewise.
18572
18573         freading: relax license from LGPLv3+ to LGPLv2+
18574         * modules/freading (License): Relax LGPL version.
18575
18576 2011-05-02  Bruno Haible  <bruno@clisp.org>
18577
18578         fchdir: Remove unused dependencies.
18579         * modules/fchdir (Depends-on): Remove include_next.
18580
18581 2011-05-02  Bruno Haible  <bruno@clisp.org>
18582
18583         gnulib-tool: Refactor.
18584         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
18585         from func_emit_autoconf_snippets.
18586         (func_emit_autoconf_snippets): Use it.
18587
18588 2011-05-02  Simon Josefsson  <simon@josefsson.org>
18589
18590         * NEWS: Document removal of 'exit'.
18591         * modules/exit: Remove file.
18592
18593 2011-05-01  Bruno Haible  <bruno@clisp.org>
18594
18595         Update DEPENDENCIES.
18596         * DEPENDENCIES (gettext): Recommend the newest release.
18597         Reported by Simon Josefsson.
18598
18599 2011-05-01  Bruno Haible  <bruno@clisp.org>
18600
18601         gnulib-tool: Reduce code duplication.
18602         * gnulib-tool (func_emit_autoconf_snippets): New function.
18603         (func_import, func_create_testdir): Use it.
18604
18605 2011-04-30  Eric Blake  <eblake@redhat.com>
18606
18607         fclose: don't fail on non-seekable input stream
18608         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
18609         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
18610         since fflush is allowed to fail in that case.
18611
18612 2011-04-30  Bruno Haible  <bruno@clisp.org>
18613
18614         dup3: cleanup
18615         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
18616
18617 2011-04-30  Bruno Haible  <bruno@clisp.org>
18618
18619         netdb: Make it work in C++ mode.
18620         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
18621         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
18622         module.
18623         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
18624         gl_MODULE_INDICATOR_FOR_TESTS.
18625         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
18626         * modules/netdb-c++-tests: New file.
18627         * tests/test-netdb-c++.cc: New file.
18628
18629 2011-04-30  Bruno Haible  <bruno@clisp.org>
18630
18631         New modules 'vfscanf', 'vscanf'.
18632         * modules/vfscanf: New file.
18633         * modules/vscanf: New file.
18634         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
18635         here.
18636         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
18637         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
18638
18639 2011-04-30  Bruno Haible  <bruno@clisp.org>
18640
18641         passfd: Add comments.
18642         * lib/passfd.c: Add comments about platforms.
18643
18644 2011-04-30  Bruno Haible  <bruno@clisp.org>
18645
18646         sys_uio: Make <sys/uio.h> self-contained.
18647         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
18648         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
18649
18650 2011-04-30  Bruno Haible  <bruno@clisp.org>
18651
18652         sys_socket: Ensure 'struct iovec' definition.
18653         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
18654         <sys/socket.h>.
18655         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
18656
18657 2011-04-30  Bruno Haible  <bruno@clisp.org>
18658
18659         sys_uio: Protect definition of 'struct iovec'.
18660         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
18661         it as a C struct.
18662
18663 2011-04-30  Bruno Haible  <bruno@clisp.org>
18664
18665         manywarnings: fix indentation
18666         * m4/manywarnings.m4: Indent by 2 spaces consistently.
18667
18668 2011-04-30  Pádraig Brady <P@draigBrady.com>
18669
18670         manywarnings: add -Wno-missing-field-initializers if needed.
18671         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
18672         option if it's needed to allow initialization with { 0, }
18673
18674 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
18675
18676         announce-gen: cosmetic improvement
18677         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
18678
18679 2011-04-29  Jim Meyering  <meyering@redhat.com>
18680
18681         vc-list-files: indent with spaces, not TABs
18682         * build-aux/vc-list-files: Convert leading TABs to spaces,
18683         to match the style of most other files in gnulib.
18684
18685         announce-gen: indent with spaces, not TABs
18686         * build-aux/announce-gen: Convert all TABs to spaces, to match
18687         the style of most other files in gnulib.
18688
18689 2011-04-29  Eric Blake  <eblake@redhat.com>
18690
18691         quotearg: avoid uninitialized variable use
18692         * lib/quotearg.c (quoting_options_from_style): Initialize
18693         remaining fields, and ensure that custom styles are only used via
18694         quoting_options rather than quoting_style.
18695
18696 2011-04-29  Jim Meyering  <meyering@redhat.com>
18697
18698         maint.mk: remove unused VC-tag variable
18699         * top/maint.mk (VC-tag): Remove unused variable.
18700
18701 2011-04-29  Bruno Haible  <bruno@clisp.org>
18702
18703         netdb: fix gai_strerror replacements
18704         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
18705         * modules/netdb: Substitute it.
18706
18707 2011-04-29  Jim Meyering  <meyering@redhat.com>
18708
18709         test-getcwd.c: avoid new set-but-not-used warning
18710         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
18711         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
18712         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
18713         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
18714
18715         test-hash.c: avoid a new shadowing warning
18716         * tests/test-hash.c (main): Don't shadow "dup".
18717
18718 2011-04-28  Eric Blake  <eblake@redhat.com>
18719
18720         getaddrinfo: fix gai_strerror signature
18721         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
18722         and work around mingw with UNICODE defined.
18723         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
18724         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
18725         * modules/netdb (Makefile.am): Substitute it.
18726         * lib/netdb.in.h (gai_strerror): Declare replacement.
18727         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
18728         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
18729         the fix.
18730
18731         getsockopt: avoid compiler warning
18732         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
18733         Reported by Matthias Bolte.
18734
18735         tests: drop unused link dependency
18736         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
18737         * modules/dirent-safer-tests (Makefile.am): Likewise.
18738         * modules/fdopendir-tests (Makefile.am): Likewise.
18739         * modules/mkfifoat-tests (Makefile.am): Likewise.
18740         * modules/openat-safer-tests (Makefile.am): Likewise.
18741         * modules/openat-tests (Makefile.am): Likewise.
18742         * modules/readlinkat-tests (Makefile.am): Likewise.
18743         * modules/symlinkat-tests (Makefile.am): Likewise.
18744         * modules/linkat-tests (Makefile.am): Likewise.
18745         (Depends-on): Switch to filenamecat-lgpl.
18746         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
18747         LIBINTL.
18748         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
18749         * tests/test-linkat.c (main): Don't require xalloc.
18750
18751         hash, mgetgroups: drop xalloc dependency
18752         * lib/hash.c (includes): Adjust includes.
18753         * lib/mgetgroups.c (includes): Likewise.
18754         (xgetgroups): Move...
18755         * lib/xgetgroups.c: ...to new file.
18756         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
18757         * modules/xgetgroups: New file, split from...
18758         * modules/mgetgroups: ...here.
18759         (Depends-on): Add xalloc-oversized.
18760         * modules/hash (Depends-on): Likewise.
18761         * modules/hash-tests (Depends-on): Drop xalloc.
18762         (test_hash_LDADD): Drop unused library.
18763         * tests/test-hash.c (main): Break xalloc dependency.
18764         (includes): Drop unused include.
18765
18766         xalloc-oversized: new module
18767         * modules/xalloc-oversized: New module.
18768         * modules/xalloc (Depends-on): Add it.
18769         * lib/xalloc.h (xalloc_oversized): Move...
18770         * lib/xalloc-oversized.h: ...into new file.
18771
18772         utimecmp: drop dependency on xmalloc
18773         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
18774         due to memory pressure.
18775         * modules/utimecmp (Depends-on): Drop xalloc.
18776
18777 2011-04-27  Eric Blake  <eblake@redhat.com>
18778
18779         getcwd: fix mingw bugs
18780         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
18781         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
18782         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
18783
18784 2011-04-27  Bruno Haible  <bruno@clisp.org>
18785
18786         mkstemps: Ensure declaration on MacOS X 10.5.
18787         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
18788         * doc/glibc-functions/mkstemps.texi: Document header file problem on
18789         MacOS X.
18790
18791 2011-04-27  Bruno Haible  <bruno@clisp.org>
18792
18793         mkstemp: More documentation.
18794         * doc/posix-functions/mkstemp.texi: Document header file problem on
18795         MacOS X.
18796
18797 2011-04-27  Bruno Haible  <bruno@clisp.org>
18798
18799         mkstemp: Tweak configure message when cross-compiling.
18800         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
18801         result as a guess.
18802
18803 2011-04-27  Bruno Haible  <bruno@clisp.org>
18804
18805         clean-temp: Clarify what it does.
18806         * lib/clean-temp.h: Add more comments.
18807         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
18808         module.
18809         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
18810         * doc/glibc-functions/mkstemps.texi: Likewise.
18811         * doc/glibc-functions/mkostemps.texi: Likewise.
18812
18813 2011-04-27  Eric Blake  <eblake@redhat.com>
18814
18815         fchdir: avoid extra chdir and fix test
18816         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
18817         getcwd-lgpl.
18818         * lib/fchdir.c (get_name): Any absolute name will do; it does not
18819         have to be canonical.
18820         (canonicalize_file_name): Drop unused macro.
18821         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
18822
18823         filenamecat-lgpl: fix licence
18824         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
18825         when it was first created.
18826
18827         linkat, renameat: add missing dependency
18828         * modules/linkat (Depends-on): Require getcwd-lgpl.
18829         * modules/renameat (Depends-on): Likewise.
18830
18831         tests: reduce dependencies
18832         * tests/test-linkat.c (main): Use lighter-weight getcwd.
18833         * tests/test-renameat.c (main): Likewise.
18834         * modules/linkat-tests (Depends-on): Relax dependency.
18835         * modules/renameat-tests (Depends-on): Likewise.
18836         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
18837         dependency explicit.
18838
18839         save-cwd: reduce default dependency
18840         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
18841         * lib/save-cwd.c: Update comments.
18842         * NEWS: Document the semantic change.
18843
18844         getcwd: enhance tests
18845         * tests/test-getcwd-lgpl.c: New file, taken from...
18846         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
18847         repeat long path stress tests from m4 probe.
18848         * modules/getcwd-lgpl-tests: New module.
18849         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
18850         * m4/getcwd-abort-bug.m4: Update comment.
18851         * m4/getcwd-path-max.m4: Likewise.
18852
18853         getcwd-lgpl: new module
18854         * modules/getcwd-lgpl: New module.
18855         * lib/getcwd-lgpl.c: New file.
18856         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18857         * MODULES.html.sh (lacking POSIX:2008): Likewise.
18858         * modules/getcwd (configure.ac): Set C witness.
18859         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
18860
18861         getcwd: tweak comments
18862         * m4/getcwd-abort-bug.m4: Fix comments.
18863         * m4/getcwd-path-max.m4: Likewise.
18864         * m4/getcwd.m4: Likewise.
18865
18866 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18867         and Eric Blake  <eblake@redhat.com>
18868
18869         mkstemp: replace if system version uses wrong permissions
18870         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
18871         read/write mode bits set in file created by mkstemp.
18872         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
18873
18874 2011-04-27  Eric Blake  <eblake@redhat.com>
18875
18876         passfd: avoid compiler warning
18877         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
18878         Reported by Laine Stump.
18879
18880 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
18881
18882         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
18883         required by the NetBSD (and perhaps other 4.4BSD derived) join.
18884
18885 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18886         and Eric Blake  <eblake@redhat.com>
18887
18888         mkstemp: mention clean-temp module
18889         * lib/mkstemp.c: Add comment.
18890         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
18891
18892 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
18893
18894         inttypes: also provide default values for 32-bit tests
18895         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
18896         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
18897
18898 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
18899
18900         strtoumax: remove dependency on strtoimax
18901         This is like the strtoull change of yesterday.
18902         * modules/strtoumax (Files): Add lib/strtoimax.c.
18903         (Depends-on): Remove strtoimax and add verify.
18904
18905         inttypes-incomplete: new module
18906         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
18907         all but the PRI* and SCN* parts of gl_INTTYPES_H.
18908         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
18909         of gl_INTTYPES_H.
18910         (gl_INTTYPES_H): Rewrite in terms of these new macros.
18911         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
18912         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
18913         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
18914         * modules/strtoumax, modules/xstrtol (Depends-on):
18915         Depend on inttypes-incomplete, not inttypes.
18916         * modules/inttypes-incomplete: New module, containing the contents
18917         of the old modules/inttypes module, except that the Files: section
18918         omits m4/inttypes-pri.m4, and the configure.ac section invokes
18919         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
18920         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
18921         (Depends-on): Depend only on inttypes-incomplete.
18922         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
18923
18924         inttypes: omit now-redundant strtoimax and strtoumax work
18925         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
18926         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
18927
18928         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
18929         This supports apps that need pointers to strtoimax and strtoumax,
18930         and ports to HP-UX 11.00 64.bit, which has macros that expand to
18931         nonexistent functions.  See
18932         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
18933         et seq.
18934         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
18935         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
18936         a macro.
18937         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18938
18939 2011-04-25  Simon Josefsson  <simon@josefsson.org>
18940
18941         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
18942
18943 2011-04-25  Bruno Haible  <bruno@clisp.org>
18944
18945         strtol, strtoul: Mark modules as obsolete.
18946         * modules/strtol (Status, Notice): New sections.
18947         * modules/strtoul (Status, Notice): New sections.
18948
18949 2011-04-25  Bruno Haible  <bruno@clisp.org>
18950
18951         strtod: Remove check for strtod, unless supporting old platforms.
18952         * modules/strtod-obsolete: New file.
18953         * m4/strtod-obsolete.m4: New file.
18954         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
18955         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
18956         * modules/strtod (Depends-on): Add strtod-obsolete.
18957         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
18958
18959 2011-04-25  Bruno Haible  <bruno@clisp.org>
18960
18961         strcase: Make module obsolete.
18962         * modules/strcase (Status, Notice): New sections.
18963
18964 2011-04-25  Bruno Haible  <bruno@clisp.org>
18965
18966         dup2: Remove check for dup2, unless supporting old obsolete platforms.
18967         * modules/dup2-obsolete: New file.
18968         * m4/dup2-obsolete.m4: New file.
18969         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
18970         gl_FUNC_DUP2_OBSOLETE is not also defined.
18971         * modules/dup2 (Depends-on): Add dup2-obsolete.
18972         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
18973
18974 2011-04-25  Bruno Haible  <bruno@clisp.org>
18975
18976         strnlen: Avoid memchr related link error on old obsolete platforms.
18977         * modules/memchr-obsolete: New file.
18978         * m4/memchr-obsolete.m4: New file.
18979         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
18980         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
18981         * modules/memchr (Depends-on): Add memchr-obsolete.
18982         * modules/strnlen (Depends-on): Likewise.
18983         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
18984
18985 2011-04-25  Jim Meyering  <meyering@redhat.com>
18986
18987         maint.mk: makefile_at_at_check extend and clean up
18988         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
18989         in addition to */Makefile.am.
18990         Exempt legitimate uses of @VAR@ notation, e.g.,
18991         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
18992         Remove obsolete coreutils-specific comment.
18993         Prompted by discussion here:
18994         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
18995
18996 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
18997
18998         strtoul: remove dependency on strtol
18999         This is so that 'configure' need not check for strtol merely because
19000         the application needs strtoul.
19001         * modules/strtoul (Files): Add lib/strtol.c.
19002         (Depends-on): Remove strtol.
19003
19004         strtoull: remove dependency on strtoul
19005         This is like the strtoll change.
19006         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
19007         (Depends-on): Remove strtoul.
19008
19009         strtoll: remove dependency on strtol
19010         This is so that 'configure' need not check for strtol merely because
19011         the application needs strtoll.
19012         * modules/strtoll (Files): Add lib/strtol.c.
19013         (Depends-on): Remove strtol.
19014
19015 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19016
19017         inttypes: Move some configure check to module 'imaxdiv'.
19018         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
19019         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
19020         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
19021
19022 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19023
19024         inttypes: Move some configure check to module 'imaxabs'.
19025         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
19026         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
19027         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
19028
19029 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19030
19031         inttypes: Remove configure tests that are not needed since 2009-12-31.
19032         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
19033         gl_cv_header_working_inttypes_h.
19034
19035 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19036
19037         * modules/strnlen (Depends-on): Remove memchr.
19038         The strnlen implementation doesn't need the memchr module's fixes; see
19039         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
19040
19041         strtol: remove dependency on wchar
19042         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
19043         * modules/strtol (Depends-on): Remove wchar.
19044
19045 2011-04-21  Eric Blake  <eblake@redhat.com>
19046
19047         passfd: fix test regression on Linux
19048         * modules/passfd-tests (configure.ac): Correct socketpair check.
19049
19050         passfd: speed up configure and drop unused code
19051         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
19052         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
19053         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
19054         Instead of probing at configure for unix_scm_rights_bsd44_way,
19055         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
19056         check to a struct member probe.
19057         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
19058         (sendfd, recvfd): Update preprocessor checks.
19059         * modules/passfd (Files): Reflect rename, and drop unused file.
19060         (Depends-on): Drop unused dependency.
19061
19062         passfd: allow compilation on mingw
19063         * modules/sys_socket (Depends-on): Add sys_uio.
19064         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
19065         iovec and a minimal struct msghdr.
19066         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
19067         * tests/test-sys_socket.c (main): Enhance test.
19068         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
19069         guaranteed to provide what we need.
19070         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
19071         * modules/passfd-tests (Depends-on): Add sys_wait.
19072         * tests/test-passfd.c (main): Skip test on mingw, for now.
19073         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
19074         partial 'struct msghdr' implementation.
19075
19076         sys_uio: new module
19077         * modules/sys_uio: New module.
19078         * modules/sys_uio-tests: Likewise.
19079         * lib/sys_uio.in.h: New file.
19080         * m4/sys_uio_h.m4: Likewise.
19081         * tests/test-sys_uio.c: Likewise.
19082         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
19083         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
19084
19085 2011-04-20  Jim Meyering  <meyering@redhat.com>
19086
19087         useless-if-before-free: avoid false-positive
19088         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
19089         disjunct so that it too requires a terminating ";".  Without that,
19090         this script would identify as useless one statement from gcc that
19091         was not:
19092           if (aligned_ptr)
19093             free (((void **) aligned_ptr) [-1]);
19094
19095 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
19096
19097         doc: update users.txt.
19098         * users.txt: Add barcode.
19099
19100 2011-04-19  Bruno Haible  <bruno@clisp.org>
19101
19102         ioctl: Remove link dependency on native Windows.
19103         * lib/fd-hook.h: Renamed from lib/close-hook.h.
19104         (gl_close_fn, gl_ioctl_fn): New types.
19105         (struct fd_hook): Renamed from struct close_hook. Change type of
19106         private_close_fn field. Add private_ioctl_fn field.
19107         (close_hook_fn): Add parameter for primary close method.
19108         (execute_close_hooks, execute_all_close_hooks): Likewise.
19109         (ioctl_hook_fn): New type.
19110         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
19111         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
19112         argument.
19113         (unregister_fd_hook): Renamed from unregister_close_hook.
19114         * lib/fd-hook.c: Renamed from lib/close-hook.c.
19115         Don't include <unistd.h>.
19116         (close): Remove undef.
19117         (anchor): Update.
19118         (execute_close_hooks): Add argument for primary close method.
19119         (execute_all_close_hooks): Likewise.
19120         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
19121         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
19122         argument. Allow each argument to be NULL.
19123         (unregister_fd_hook): Renamed from unregister_close_hook.
19124         * lib/close.c (rpl_close): Pass 'close' function pointer to
19125         execute_all_close_hooks.
19126         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
19127         (primary_ioctl): New function.
19128         (ioctl): Don't call ioctlsocket here. Instead, call
19129         execute_all_ioctl_hooks.
19130         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
19131         close method.
19132         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
19133         (fd_sockets_hook): Renamed from close_sockets_hook.
19134         (gl_sockets_startup, gl_sockets_cleanup): Update.
19135         * modules/fd-hook: Renamed from modules/close-hook. Update.
19136         * modules/close (Depends-on): Add fd-hook, remove close-hook.
19137         * modules/sockets (Depends-on): Likewise.
19138         * modules/ioctl (Depends-on): Add fd-hook.
19139         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
19140         GNULIB_SOCKET.
19141
19142 2011-04-19  Bruno Haible  <bruno@clisp.org>
19143
19144         Move the support of O_NONBLOCK in open() to the 'open' module.
19145         * modules/nonblocking (Depends-on): Remove 'open'.
19146         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
19147         gl_cv_have_open_O_NONBLOCK.
19148         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
19149         O_NONBLOCK support.
19150         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
19151
19152 2011-04-17  Bruno Haible  <bruno@clisp.org>
19153
19154         pipe2: Simplify code.
19155         * lib/pipe2.c (pipe2): Reduce code duplication.
19156
19157 2011-04-17  Bruno Haible  <bruno@clisp.org>
19158
19159         nonblocking: Add comment.
19160         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
19161
19162 2011-04-17  Bruno Haible  <bruno@clisp.org>
19163
19164         nonblocking: Add tests for sockets.
19165         * tests/test-nonblocking-socket.sh: New file.
19166         * tests/test-nonblocking-socket-main.c: New file.
19167         * tests/test-nonblocking-socket-child.c: New file.
19168         * tests/test-nonblocking-socket.h: New file.
19169         * tests/socket-server.h: New file.
19170         * tests/socket-client.h: New file.
19171         * modules/nonblocking-socket-tests: New file.
19172         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
19173
19174 2011-04-17  Bruno Haible  <bruno@clisp.org>
19175
19176         nonblocking: Add tests for pipes.
19177         * tests/test-nonblocking-pipe.sh: New file.
19178         * tests/test-nonblocking-pipe-main.c: New file.
19179         * tests/test-nonblocking-pipe-child.c: New file.
19180         * tests/test-nonblocking-pipe.h: New file.
19181         * tests/test-nonblocking-writer.h: New file.
19182         * tests/test-nonblocking-reader.h: New file.
19183         * tests/test-nonblocking-misc.h: New file.
19184         * modules/nonblocking-pipe-tests: New file.
19185         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
19186
19187 2011-04-16  Bruno Haible  <bruno@clisp.org>
19188
19189         gettext: Clarify the needed programmer actions.
19190         * modules/gettext (Notice): New field.
19191         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
19192
19193 2011-04-16  Bruno Haible  <bruno@clisp.org>
19194
19195         strchrnul: Tweak last commit.
19196         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
19197         bug.
19198         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
19199         as in _GL_FUNCDECL_SYS.
19200         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
19201         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
19202
19203 2011-04-15  Eric Blake  <eblake@redhat.com>
19204
19205         strchrnul: work around cygwin bug
19206         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
19207         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
19208         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
19209         * modules/string (Makefile.am): Substitute it.
19210         * lib/string.in.h (strchrnul): Use it.
19211
19212 2011-04-15  Bruno Haible  <bruno@clisp.org>
19213
19214         Don't require lib/stdio-write.c when only module 'stdio' is used.
19215         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
19216         invocation.
19217         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
19218
19219 2011-04-14  Bruno Haible  <bruno@clisp.org>
19220
19221         Support non-blocking pipe I/O in read() on native Windows.
19222         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
19223         (read): New declaration.
19224         * lib/read.c: New file.
19225         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
19226         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
19227         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
19228         vscanf): New declarations.
19229         * lib/stdio-read.c: New file.
19230         * m4/read.m4: New file.
19231         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
19232         REPLACE_READ.
19233         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
19234         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19235         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
19236         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
19237         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
19238         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19239         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
19240         * modules/read: New file.
19241         * modules/nonblocking (Files): Add lib/stdio-read.c.
19242         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
19243         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
19244         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19245         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
19246         * modules/pread (Depends-on): Add read.
19247         * modules/safe-read (Depends-on): Likewise.
19248         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
19249         gets, scanf, vfscanf, vscanf): Verify signatures.
19250         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
19251         problem with non-blocking pipes.
19252         * doc/posix-functions/fgetc.texi: Likewise.
19253         * doc/posix-functions/fgets.texi: Likewise.
19254         * doc/posix-functions/fread.texi: Likewise.
19255         * doc/posix-functions/fscanf.texi: Likewise.
19256         * doc/posix-functions/getc.texi: Likewise.
19257         * doc/posix-functions/getchar.texi: Likewise.
19258         * doc/posix-functions/gets.texi: Likewise.
19259         * doc/posix-functions/scanf.texi: Likewise.
19260         * doc/posix-functions/vfscanf.texi: Likewise.
19261         * doc/posix-functions/vscanf.texi: Likewise.
19262
19263 2011-04-14  Bruno Haible  <bruno@clisp.org>
19264
19265         Support non-blocking pipe I/O in write() on native Windows.
19266         * lib/write.c (rpl_write): Split a write request that failed merely
19267         because the byte count was larger than the pipe buffer's size.
19268         * doc/posix-functions/write.texi: Mention the problem with large byte
19269         counts.
19270
19271 2011-04-14  Bruno Haible  <bruno@clisp.org>
19272
19273         wchar: Ensure that wchar_t gets defined on uClibc.
19274         * lib/wchar.in.h: On uClibc, include <stddef.h>.
19275         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
19276
19277 2011-04-13  Bruno Haible  <bruno@clisp.org>
19278
19279         safe-write, full-read: Avoid unnecessary compilation units.
19280         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
19281         (Depends-on): Remove safe-read. Add ssize_t.
19282         * modules/full-read (Files): Add lib/full-write.c.
19283         (Depends-on): Add full-write.
19284
19285 2011-04-13  Bruno Haible  <bruno@clisp.org>
19286
19287         Support non-blocking pipe I/O and SIGPIPE in pwrite().
19288         * modules/pwrite (Depends-on): Add 'write'.
19289
19290 2011-04-13  Bruno Haible  <bruno@clisp.org>
19291
19292         Support non-blocking pipe I/O in write() on native Windows.
19293         * lib/unistd.in.h (write): Enable replacement also if
19294         GNULIB_UNISTD_H_NONBLOCKING is 1.
19295         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
19296         (rpl_write): When failing to write on a non-blocking pipe, change
19297         errno from ENOSPC to EAGAIN.
19298         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
19299         putchar, puts, vfprintf, vprintf): Enable replacement also if
19300         GNULIB_STDIO_H_NONBLOCKING is 1.
19301         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
19302         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
19303         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
19304         CALL_WITH_SIGPIPE_EMULATION.
19305         (CALL_WITH_SIGPIPE_EMULATION): Use them.
19306         * m4/nonblocking.m4: New file.
19307         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
19308         for non-blocking I/O support.
19309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19310         GNULIB_UNISTD_H_NONBLOCKING.
19311         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
19312         required for non-blocking I/O support.
19313         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
19314         * modules/nonblocking (Files): Add m4/nonblocking.m4,
19315         lib/stdio-write.c, m4/asm-underscore.m4.
19316         (Depends-on): Add stdio, unistd.
19317         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
19318         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
19319         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
19320         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
19321         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
19322         problem with non-blocking pipes.
19323         * doc/posix-functions/fputc.texi: Likewise.
19324         * doc/posix-functions/fputs.texi: Likewise.
19325         * doc/posix-functions/fwrite.texi: Likewise.
19326         * doc/posix-functions/printf.texi: Likewise.
19327         * doc/posix-functions/putc.texi: Likewise.
19328         * doc/posix-functions/putchar.texi: Likewise.
19329         * doc/posix-functions/puts.texi: Likewise.
19330         * doc/posix-functions/vfprintf.texi: Likewise.
19331         * doc/posix-functions/vprintf.texi: Likewise.
19332         * doc/posix-functions/write.texi: Likewise.
19333
19334 2011-04-10  Jim Meyering  <meyering@redhat.com>
19335
19336         maint.mk: prohibit doubled words
19337         Detect them also when they're separated by a newline.
19338         There are 3 ways to customize it:
19339           - disable the test on a per file basis, as usual with rules using
19340             $(VC_LIST_EXCEPT)
19341           - replace the default doubled-word-selecting regexp (affects all files)
19342           - ignore a particular file-vs-doubled-word match
19343         I nearly used that last one to ignore the "is is" match in
19344         coreutils' NEWS file, since the text was "ls -is is ..."
19345         To do that, I would have added this line to cfg.mk:
19346           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
19347         but it would have ignored any "is is" match in NEWS.
19348         Low probability, but still...
19349         Instead, I changed the text, slightly:
19350           -  ls -is is now consistent with ls -lis in ignoring values returned
19351           +  "ls -is" is now consistent with ls -lis in ignoring values returned
19352         * top/maint.mk (prohibit_double_word_RE_): Provide default.
19353         (prohibit_doubled_word_): Define.
19354         (sc_prohibit_doubled_word): New rule.
19355         (sc_prohibit_the_the): Remove.  Subsumed by the above.
19356
19357 2011-04-10  Jim Meyering  <meyering@redhat.com>
19358
19359         maint: fix doubled-word typo in comment
19360         * m4/gethostname.m4: s/is is/it is/
19361         * m4/getdomainname.m4: Likewise.
19362
19363 2011-04-10  Jim Meyering  <meyering@redhat.com>
19364
19365         maint: remove doubled word: s/it it/it/
19366         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
19367
19368 2011-04-10  Jim Meyering  <meyering@redhat.com>
19369
19370         maint.mk: remove useless semicolon and backslash
19371         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
19372         semicolon and backslash.
19373
19374 2011-04-10  Bruno Haible  <bruno@clisp.org>
19375
19376         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
19377         * modules/stdint-tests (Depends-on): Add wchar.
19378
19379 2011-04-10  Jim Meyering  <meyering@redhat.com>
19380
19381         maint: remove doubled words in comments, e.g., s/a a/a/
19382         * lib/strptime.c (day_of_the_week): s/the the/the/
19383         * tests/test-chown.h (test_chown): s/a a/a/
19384
19385         test-chown.h: correct a cast
19386         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
19387         when the destination is a stat.st_gid.
19388
19389 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
19390
19391         getaddrinfo: Fix test for sa_len member.
19392         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
19393         include <sys/types.h> before <sys/socket.h>.
19394
19395 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
19396
19397         maint: change "can not" to "cannot"
19398         * doc/posix-functions/iconv.texi (iconv): This one crossed line
19399         boundaries.
19400
19401 2011-04-09  Jim Meyering  <meyering@redhat.com>
19402
19403         maint: change "a a" to "a"
19404         * tests/test-lchown.h (test_lchown): s/a a/a/
19405
19406         maint.mk: prohibit \<the the\>
19407         * top/maint.mk (sc_prohibit_the_the): New rule.
19408
19409         maint: fix "the the" in comment
19410         * lib/count-one-bits.h: s/the the/the/
19411
19412         maint: change "can not" to "cannot"
19413         But do not change the occurrences in maintain.texi or in
19414         build-aux/po/Makefile.in.in, which I presume comes from gettext.
19415         * doc/gnulib-tool.texi: s/can not/cannot/
19416         * doc/posix-functions/accept.texi (accept): Likewise.
19417         * doc/posix-functions/socket.texi (socket): Likewise.
19418         * lib/mbrtowc.c: Likewise.
19419
19420         maint.mk: prohibit use of "can not"
19421         * top/maint.mk (sc_prohibit_can_not): New rule.
19422         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
19423
19424 2011-04-09  Bruno Haible  <bruno@clisp.org>
19425
19426         careadlinkat: Guard against misuse of careadlinkatcwd.
19427         * lib/careadlinkat.c: Include <stdlib.h>.
19428         (careadlinkatcwd): Check that the fd argument is as expected.
19429
19430 2011-04-09  Bruno Haible  <bruno@clisp.org>
19431
19432         careadlinkat: Use common coding style.
19433         * lib/careadlinkat.c: Move gnulib includes after system includes.
19434
19435 2011-04-09  Bruno Haible  <bruno@clisp.org>
19436
19437         careadlinkat: Clarify specification.
19438         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
19439         (careadlinkatcwd): Add comment.
19440         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
19441
19442 2011-04-09  Bruno Haible  <bruno@clisp.org>
19443
19444         areadlinkat: Avoid link error on many platforms.
19445         * modules/areadlinkat (Depends-on): Add areadlink.
19446
19447 2011-04-09  Bruno Haible  <bruno@clisp.org>
19448
19449         allocator, careadlinkat: Fix double-inclusion guard.
19450         * lib/allocator.h: Fix double-inclusion guard.
19451         * lib/careadlinkat.h: Likewise.
19452
19453 2011-04-09  Bruno Haible  <bruno@clisp.org>
19454
19455         relocatable-prog-wrapper: Update after module 'areadlink' changed.
19456         * lib/relocwrapper.c: Update dependencies hierarchy.
19457         * build-aux/install-reloc: Update list of files to be compiled.
19458         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
19459         lib/allocator.[hc].
19460
19461 2011-04-08  Eric Blake  <eblake@redhat.com>
19462
19463         strftime: silence gnulib-tool warning
19464         * modules/strftime-tests (Depends-on): Drop automatic dependency.
19465
19466 2011-04-08  Bruno Haible  <bruno@clisp.org>
19467
19468         verify: Fix syntax error with GCC 4.6 in C++ mode.
19469         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
19470         (HAVE_STATIC_ASSERT): New macro.
19471         (verify_true, verify): Use 'static_assert' if it is supported and
19472         '_Static_assert' is not supported.
19473
19474 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
19475
19476         allocator: New module.
19477         * modules/allocator, lib/allocator.c: New files.
19478         * lib/allocator.h (stdlib_allocator): New decl.
19479         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
19480         Remove.  Do not include <stdlib.h>.
19481         (careadlinkat): Use stdlib_allocator instead of rolling our own.
19482         * modules/careadlinkat (Files): Remove lib/allocator.h.
19483         (Depends-on): Add allocator.
19484
19485         stdlib: let modules use system malloc, realloc
19486         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
19487         if !_GL_USE_STDLIB_ALLOC.
19488         (malloc, realloc): Limit this change to a smaller scope.
19489
19490         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
19491         (malloc, realloc): Don't #undef; no longer needed.
19492         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19493         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19494         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
19495         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19496         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19497         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19498         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19499         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
19500
19501         careadlinkat: rename members to avoid problem
19502         * lib/allocator.h (struct allocator): Rename members from
19503         malloc/realloc to allocate/reallocate, to avoid problems if malloc
19504         and realloc are #define'd.  Reported by Eric Blake in
19505         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
19506         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
19507
19508 2011-04-08  Eric Blake  <eblake@redhat.com>
19509
19510         nonblocking: reduce dependency
19511         * tests/test-nonblocking.c: Only test sockets when in use.
19512         * modules/nonblocking-tests (Depends-on): Drop socket.
19513         (Makefile.am): Link even if sockets are not present.
19514         * modules/pipe2-tests (Makefile.am): Likewise.
19515         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
19516
19517         pipe2: fix O_NONBLOCK support on mingw
19518         * modules/pipe2 (Depends-on): Add nonblocking.
19519         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
19520         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
19521         * tests/test-nonblocking.c (main): Likewise.
19522         * modules/pipe2-tests (Makefile.am): Avoid link failure.
19523
19524         fcntl-h: fix O_ACCMODE on cygwin
19525         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
19526         * lib/fcntl.in.h (O_ACCMODE): Fix it.
19527
19528         pipe-filter: drop O_NONBLOCK workarounds
19529         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
19530         * modules/pipe-filter-ii (Depends-on): Likewise.
19531         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
19532
19533         nonblocking: provide O_NONBLOCK for mingw
19534         * modules/nonblocking (Depends-on): Add open.
19535         (configure.ac): Set new witness macro.
19536         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
19537         * modules/fcntl-h (Makefile.am): Substitute it.
19538         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
19539         nonblocking module is in use.
19540         * lib/nonblocking.c: Adjust portability test.
19541         * lib/open.c (open): Don't let native open see gnulib flag.
19542         * tests/test-fcntl-h.c (main): Enhance test.
19543         * tests/test-open.h (test_open): Likewise.
19544         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
19545
19546         careadlinkat: fix compilation error on mingw
19547         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
19548         within struct allocator.
19549
19550 2011-04-06  Eric Blake  <eblake@redhat.com>
19551
19552         binary-io: relicense under LGPLv2+
19553         * modules/binary-io (License): Relax to LGPLv2+.
19554         Requested for libvirt, and required by pipe2.
19555
19556 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
19557
19558         verify: use _Static_assert if available
19559         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
19560         (verify_true, verify): Use it if available.  This generates better
19561         diagnostics with GCC 4.6.0 and later.
19562
19563 2011-04-05  Bruno Haible  <bruno@clisp.org>
19564
19565         Remove leftover generated .h files after config.status changed.
19566
19567         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
19568         GL_GENERATE_ALLOCA_H.
19569         * modules/alloca-opt (Makefile.am): Remove alloca.h if
19570         GL_GENERATE_ALLOCA_H evaluates to false.
19571
19572         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
19573         GL_GENERATE_ARGZ_H.
19574         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
19575         evaluates to false.
19576
19577         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
19578         GL_GENERATE_BYTESWAP_H.
19579         * modules/byteswap (Makefile.am): Remove byteswap.h if
19580         GL_GENERATE_BYTESWAP_H evaluates to false.
19581
19582         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
19583         GL_GENERATE_ERRNO_H.
19584         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
19585         evaluates to false.
19586
19587         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
19588         GL_GENERATE_FLOAT_H.
19589         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
19590         evaluates to false.
19591
19592         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
19593         GL_GENERATE_FNMATCH_H.
19594         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
19595         GL_GENERATE_FNMATCH_H evaluates to false.
19596
19597         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
19598         GL_GENERATE_GLOB_H.
19599         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
19600         evaluates to false.
19601
19602         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
19603         automake conditional GL_GENERATE_ICONV_H.
19604         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
19605         evaluates to false.
19606
19607         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
19608         GL_GENERATE_NETINET_IN_H.
19609         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
19610         GL_GENERATE_NETINET_IN_H evaluates to false.
19611
19612         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
19613         conditional GL_GENERATE_PTHREAD_H.
19614         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
19615         * modules/pthread (Makefile.am): Remove pthread.h if
19616         GL_GENERATE_PTHREAD_H evaluates to false.
19617
19618         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
19619         GL_GENERATE_SCHED_H.
19620         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
19621         evaluates to false.
19622
19623         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
19624         conditional GL_GENERATE_SELINUX_CONTEXT_H.
19625         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
19626         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
19627
19628         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
19629         GL_GENERATE_STDARG_H.
19630         * modules/stdarg (Makefile.am): Remove stdarg.h if
19631         GL_GENERATE_STDARG_H evaluates to false.
19632
19633         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
19634         GL_GENERATE_STDBOOL_H.
19635         * modules/stdbool (Makefile.am): Remove stdbool.h if
19636         GL_GENERATE_STDBOOL_H evaluates to false.
19637
19638         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
19639         conditional GL_GENERATE_STDDEF_H.
19640         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
19641         * modules/stddef (Makefile.am): Remove stddef.h if
19642         GL_GENERATE_STDDEF_H evaluates to false.
19643
19644         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
19645         GL_GENERATE_STDINT_H.
19646         * modules/stdint (Makefile.am): Remove stdint.h if
19647         GL_GENERATE_STDINT_H evaluates to false.
19648
19649         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
19650         GL_GENERATE_SYSEXITS_H.
19651         * modules/sysexits (Makefile.am): Remove sysexits.h if
19652         GL_GENERATE_SYSEXITS_H evaluates to false.
19653
19654         Reported by Karl Berry and Ralf Wildenhues.
19655
19656 2011-04-05  Bruno Haible  <bruno@clisp.org>
19657
19658         Ensure to rebuild generated .h files when config.status has changed.
19659         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
19660         config.status.
19661         * modules/ctype (Makefile.am): Likewise.
19662         * modules/dirent (Makefile.am): Likewise.
19663         * modules/errno (Makefile.am): Likewise.
19664         * modules/fcntl-h (Makefile.am): Likewise.
19665         * modules/float (Makefile.am): Likewise.
19666         * modules/getopt-posix (Makefile.am): Likewise.
19667         * modules/glob (Makefile.am): Likewise.
19668         * modules/iconv-h (Makefile.am): Likewise.
19669         * modules/inttypes (Makefile.am): Likewise.
19670         * modules/langinfo (Makefile.am): Likewise.
19671         * modules/locale (Makefile.am): Likewise.
19672         * modules/math (Makefile.am): Likewise.
19673         * modules/netdb (Makefile.am): Likewise.
19674         * modules/netinet_in (Makefile.am): Likewise.
19675         * modules/poll-h (Makefile.am): Likewise.
19676         * modules/pthread (Makefile.am): Likewise.
19677         * modules/pty (Makefile.am): Likewise.
19678         * modules/sched (Makefile.am): Likewise.
19679         * modules/search (Makefile.am): Likewise.
19680         * modules/selinux-h (Makefile.am): Likewise.
19681         * modules/signal (Makefile.am): Likewise.
19682         * modules/spawn (Makefile.am): Likewise.
19683         * modules/stdarg (Makefile.am): Likewise.
19684         * modules/stdbool (Makefile.am): Likewise.
19685         * modules/stddef (Makefile.am): Likewise.
19686         * modules/stdint (Makefile.am): Likewise.
19687         * modules/stdio (Makefile.am): Likewise.
19688         * modules/stdlib (Makefile.am): Likewise.
19689         * modules/string (Makefile.am): Likewise.
19690         * modules/strings (Makefile.am): Likewise.
19691         * modules/sys_file (Makefile.am): Likewise.
19692         * modules/sys_ioctl (Makefile.am): Likewise.
19693         * modules/sys_select (Makefile.am): Likewise.
19694         * modules/sys_socket (Makefile.am): Likewise.
19695         * modules/sys_stat (Makefile.am): Likewise.
19696         * modules/sys_time (Makefile.am): Likewise.
19697         * modules/sys_times (Makefile.am): Likewise.
19698         * modules/sys_utsname (Makefile.am): Likewise.
19699         * modules/sys_wait (Makefile.am): Likewise.
19700         * modules/sysexits (Makefile.am): Likewise.
19701         * modules/termios (Makefile.am): Likewise.
19702         * modules/time (Makefile.am): Likewise.
19703         * modules/unistd (Makefile.am): Likewise.
19704         * modules/wchar (Makefile.am): Likewise.
19705         * modules/wctype-h (Makefile.am): Likewise.
19706         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
19707
19708 2011-04-05  Bruno Haible  <bruno@clisp.org>
19709
19710         pipe2: Relicense under LGPLv2+.
19711         * modules/pipe2 (License): Change to LGPLv2+.
19712         Requested by Eric Blake, for libvirt.
19713
19714 2011-04-05  Bruce Korb  <bkorb@gnu.org>
19715
19716         bootstrap: compute gnulib_extra_files after updating build_aux
19717         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
19718         change build_aux or also supply gnulib_extra_files.  Handle correctly.
19719
19720 2011-04-05  Eric Blake  <eblake@redhat.com>
19721
19722         bootstrap: preserve git whitelist item sorting
19723         * build-aux/bootstrap (sort_patterns): New function.
19724         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
19725
19726 2011-04-05  Simon Josefsson  <simon@josefsson.org>
19727
19728         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
19729         sc_space_tab check.
19730
19731 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
19732
19733         areadlink, areadlinkat: rewrite in terms of careadlinkat
19734         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
19735         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
19736         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
19737         (malloc, realloc): Remove #undefs.
19738         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
19739         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
19740         readlink, ssize_t, stdint, unistd.
19741         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
19742         areadlink, stdint.
19743
19744         careadlinkat: new module
19745         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
19746         * modules/careadlinkat: New files, written by me with
19747         a review and feedback from Ben Pfaff in
19748         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
19749
19750 2011-04-01  Bruno Haible  <bruno@clisp.org>
19751
19752         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
19753         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
19754         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
19755         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
19756         Reported by Bruce Korb <bruce.korb@gmail.com>.
19757
19758 2011-04-01  Bruno Haible  <bruno@clisp.org>
19759
19760         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
19761         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
19762         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
19763         * modules/wcpcpy (Depends-on): Add extensions.
19764         * modules/wcpncpy (Depends-on): Likewise.
19765         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
19766         systems.
19767         * doc/posix-functions/wcpncpy.texi: Likewise.
19768         * doc/posix-functions/wcwidth.texi: Likewise.
19769
19770 2011-03-31  Eric Blake  <eblake@redhat.com>
19771
19772         nonblocking: fix mingw test failures
19773         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
19774         non-blocking flag on regular file.
19775         (get_nonblocking_flag): Set errno on invalid fd.
19776         * tests/test-nonblocking.c (main): Avoid test failure on
19777         directories if fchdir is not active.
19778         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
19779
19780 2011-03-31  Bruno Haible  <bruno@clisp.org>
19781
19782         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
19783         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
19784         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
19785         Reported by Simon Josefsson <simon@josefsson.org>.
19786
19787 2011-03-31  Bruno Haible  <bruno@clisp.org>
19788         and Eric Blake  <eblake@redhat.com>
19789
19790         nonblocking: new module
19791         * modules/nonblocking: New module.
19792         * modules/nonblocking-tests: Likewise.
19793         * lib/nonblocking.h: New file.
19794         * lib/nonblocking.c: Likewise.
19795         * tests/test-nonblocking.c: New test.
19796         * lib/ioctl.c (ioctl) [mingw]: Update comment.
19797
19798 2011-03-30  Bruno Haible  <bruno@clisp.org>
19799
19800         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
19801         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
19802         instead of 'printf' format for GCC >= 4.4.
19803         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
19804         (fprintf, printf, vfprintf, vprintf): Declare with
19805         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
19806         the system's vfprintf() function.
19807         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
19808
19809 2011-03-30  Eric Blake  <eblake@redhat.com>
19810
19811         passfd: fix scoping bug
19812         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
19813         before sendmsg/recvmsg.
19814
19815         passfd: standardize coding conventions
19816         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
19817         can be learned at compile time.
19818         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
19819         ifdefs.
19820         (sendfd, recvfd): Follow gnulib code conventions.
19821
19822         passfd: fix incorrect sendmsg arguments
19823         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
19824         incorrect msg_controllen value.
19825         * modules/passfd-tests (Depends-on): Check for alarm.
19826         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
19827         Reported by Bastien ROUCARIES.
19828
19829 2011-03-30  Bruno Haible  <bruno@clisp.org>
19830
19831         c-strcasestr: Relicense under LGPLv2+.
19832         * modules/c-strcasestr (License): Change to LGPLv2+.
19833         Requested by Eric Blake, for libvirt.
19834
19835 2011-03-30  Simon Josefsson  <simon@josefsson.org>
19836
19837         * users.txt: Add libidn2.  Fix libtasn1 link.
19838
19839 2011-03-30  Jim Meyering  <meyering@redhat.com>
19840
19841         tests: readlink* ("",... fails with EINVAL on newer kernels
19842         readlink and readlinkat have typically failed with ENOENT for
19843         the invalid, empty file name,  "".  However, with the advent
19844         of linux-2.6.39, they fail with EINVAL.
19845         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
19846         when operating on the empty file name.
19847         * tests/test-readlink.h (test_readlink): Likewise.
19848
19849 2011-03-29  Bruno Haible  <bruno@clisp.org>
19850
19851         Relicense some modules under LGPLv2+, for libidn2.
19852         * modules/array-mergesort (License): Change to LGPLv2+.
19853         * modules/c-strcaseeq (License): Likewise.
19854         * modules/striconveh (License): Likewise.
19855         * modules/striconveha (License): Likewise.
19856         * modules/uniconv/base (License): Likewise.
19857         * modules/uniconv/u8-conv-from-enc (License): Likewise.
19858         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
19859         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
19860         * modules/unictype/base (License): Likewise.
19861         * modules/unictype/bidiclass-of (License): Likewise.
19862         * modules/unictype/category-M (License): Likewise.
19863         * modules/unictype/category-none (License): Likewise.
19864         * modules/unictype/category-of (License): Likewise.
19865         * modules/unictype/category-test (License): Likewise.
19866         * modules/unictype/category-test-withtable (License): Likewise.
19867         * modules/unictype/combining-class (License): Likewise.
19868         * modules/unictype/joiningtype-of (License): Likewise.
19869         * modules/unictype/scripts (License): Likewise.
19870         * modules/uninorm/base (License): Likewise.
19871         * modules/uninorm/canonical-decomposition (License): Likewise.
19872         * modules/uninorm/composition (License): Likewise.
19873         * modules/uninorm/decompose-internal (License): Likewise.
19874         * modules/uninorm/decomposition-table (License): Likewise.
19875         * modules/uninorm/nfc (License): Likewise.
19876         * modules/uninorm/nfd (License): Likewise.
19877         * modules/uninorm/u32-normalize (License): Likewise.
19878         * modules/unistr/base (License): Likewise.
19879         * modules/unistr/u32-cpy (License): Likewise.
19880         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
19881         * modules/unistr/u32-to-u8 (License): Likewise.
19882         * modules/unistr/u32-uctomb (License): Likewise.
19883         * modules/unistr/u8-check (License): Likewise.
19884         * modules/unistr/u8-mblen (License): Likewise.
19885         * modules/unistr/u8-mbtouc (License): Likewise.
19886         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
19887         * modules/unistr/u8-mbtoucr (License): Likewise.
19888         * modules/unistr/u8-prev (License): Likewise.
19889         * modules/unistr/u8-strlen (License): Likewise.
19890         * modules/unistr/u8-to-u32 (License): Likewise.
19891         * modules/unistr/u8-uctomb (License): Likewise.
19892         * modules/unitypes (License): Likewise.
19893         Requested by Simon Josefsson.
19894
19895 2011-03-29  Simon Josefsson  <simon@josefsson.org>
19896
19897         lib-symbol-visibility: Add a notice.
19898         * modules/lib-symbol-visibility (Notice): New field.
19899
19900 2011-03-29  Bruno Haible  <bruno@clisp.org>
19901
19902         getaddrinfo: Doc fix.
19903         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
19904         section "fixed in Gnulib".
19905
19906 2011-03-28  Simon Josefsson  <simon@josefsson.org>
19907
19908         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
19909         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
19910
19911 2011-03-26  Bruno Haible  <bruno@clisp.org>
19912
19913         unictype/property-byname: Reduce the number of load-time relocations.
19914         * lib/unictype/pr_byname.c: Include <stdlib.h>.
19915         (UC_PROPERTY_INDEX_*): New enumeration values.
19916         (uc_property_byname): Convert an index from the lookup table to an
19917         uc_property_t.
19918         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
19919         values.
19920
19921 2011-03-26  Bruno Haible  <bruno@clisp.org>
19922
19923         unictype/property-byname: Allow omitted word separators and aliases.
19924         * lib/unictype/pr_byname.gperf: Add property names without word
19925         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
19926         for 'space'.
19927
19928 2011-03-26  Bruno Haible  <bruno@clisp.org>
19929
19930         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
19931         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
19932         also hyphens to space.
19933         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
19934         without spaces.
19935         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
19936
19937 2011-03-26  Bruno Haible  <bruno@clisp.org>
19938
19939         unictype/joiningtype-byname: Recognize long names as well.
19940         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
19941         a long name.
19942         * lib/unictype/joiningtype_byname.c: Include <string.h>,
19943         unictype/joiningtype_byname.h.
19944         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
19945         * lib/unictype/joiningtype_byname.gperf: New file.
19946         * modules/unictype/joiningtype-byname (Files): Add
19947         lib/unictype/joiningtype_byname.gperf.
19948         (Depends-on): Add gperf.
19949         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
19950         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
19951         long names.
19952
19953         Tests for module 'unictype/joiningtype-longname'.
19954         * modules/unictype/joiningtype-longname-tests: New file.
19955         * tests/unictype/test-joiningtype_longname.c: New file.
19956
19957         New module 'unictype/joiningtype-longname'.
19958         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
19959         * lib/unictype/joiningtype_longname.c: New file.
19960         * modules/unictype/joiningtype-longname: New file.
19961         * modules/unictype/joiningtype-all (Depends-on): Add
19962         unictype/joiningtype-longname.
19963
19964 2011-03-26  Bruno Haible  <bruno@clisp.org>
19965
19966         unictype/bidiclass-byname: Recognize long names as well.
19967         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
19968         name.
19969         * lib/unictype/bidi_byname.c: Include <string.h>,
19970         unictype/bidi_byname.h.
19971         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
19972         * lib/unictype/bidi_byname.gperf: New file.
19973         * modules/unictype/bidiclass-byname (Files): Add
19974         lib/unictype/bidi_byname.gperf.
19975         (Depends-on): Add gperf.
19976         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
19977         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
19978         long names.
19979
19980         Tests for module 'unictype/bidiclass-longname'.
19981         * modules/unictype/bidiclass-longname-tests: New file.
19982         * tests/unictype/test-bidi_longname.c: New file.
19983
19984         New module 'unictype/bidiclass-longname'.
19985         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
19986         * lib/unictype/bidi_longname.c: New file.
19987         * modules/unictype/bidiclass-longname: New file.
19988         * modules/unictype/bidiclass-all (Depends-on): Add
19989         unictype/bidiclass-longname.
19990
19991 2011-03-26  Bruno Haible  <bruno@clisp.org>
19992
19993         unictype/bidi*: Rename modules.
19994         * modules/unictype/bidiclass-all: Renamed from
19995         modules/unictype/bidicategory-all.
19996         * modules/unictype/bidiclass-name: Renamed from
19997         modules/unictype/bidiclass-name.
19998         (Description): Update.
19999         * modules/unictype/bidiclass-name-tests: Renamed from
20000         modules/unictype/bidicategory-name-tests.
20001         * modules/unictype/bidiclass-byname: Renamed from
20002         modules/unictype/bidicategory-byname.
20003         (Description): Update.
20004         * modules/unictype/bidiclass-byname-tests: Renamed from
20005         modules/unictype/bidicategory-byname-tests.
20006         * modules/unictype/bidiclass-of: Renamed from
20007         modules/unictype/bidicategory-of.
20008         (Description): Update.
20009         * modules/unictype/bidiclass-of-tests: Renamed from
20010         modules/unictype/bidicategory-of-tests.
20011         * modules/unictype/bidiclass-test: Renamed from
20012         modules/unictype/bidicategory-test.
20013         (Description): Update.
20014         * modules/unictype/bidiclass-test-tests: Renamed from
20015         modules/unictype/bidicategory-test-tests.
20016         * modules/unictype/bidicategory-all: New file, a simple redirection.
20017         * modules/unictype/bidicategory-name: Likewise.
20018         * modules/unictype/bidicategory-byname: Likewise.
20019         * modules/unictype/bidicategory-of: Likewise.
20020         * modules/unictype/bidicategory-test: Likewise.
20021         * modules/unictype/property-bidi-* (Dependencies): Update.
20022         * lib/unictype/bidi_*.c: Update comment.
20023
20024 2011-03-26  Bruno Haible  <bruno@clisp.org>
20025
20026         unictype/bidi*: Rename functions, part 2.
20027         * modules/unictype/bidicategory-name (configure.ac): Update required
20028         libunistring version.
20029         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
20030
20031 2011-03-25  Bruno Haible  <bruno@clisp.org>
20032
20033         New module 'unictype/combining-class-all'.
20034         * modules/unictype/combining-class-all: New file.
20035
20036         Tests for module 'unictype/combining-class-byname'.
20037         * modules/unictype/combining-class-byname-tests: New file.
20038         * tests/unictype/test-combiningclass_byname.c: New file.
20039
20040         New module 'unictype/combining-class-byname'.
20041         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
20042         * lib/unictype/combiningclass_byname.c: New file.
20043         * lib/unictype/combiningclass_byname.gperf: New file.
20044         * modules/unictype/combining-class-byname: New file.
20045
20046         Tests for module 'unictype/combining-class-longname'.
20047         * modules/unictype/combining-class-longname-tests: New file.
20048         * tests/unictype/test-combiningclass_longname.c: New file.
20049
20050         New module 'unictype/combining-class-longname'.
20051         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
20052         * lib/unictype/combiningclass_longname.c: New file.
20053         * modules/unictype/combining-class-longname: New file.
20054
20055         Tests for module 'unictype/combining-class-name'.
20056         * modules/unictype/combining-class-name-tests: New file.
20057         * tests/unictype/test-combiningclass_name.c: New file.
20058
20059         New module 'unictype/combining-class-name'.
20060         * lib/unictype.in.h (uc_combining_class_name): New declaration.
20061         * lib/unictype/combiningclass_name.c: New file.
20062         * modules/unictype/combining-class-name: New file.
20063
20064 2011-03-25  Bruno Haible  <bruno@clisp.org>
20065
20066         unictype/combining-class: Rename source files.
20067         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
20068         of unictype/combining.h.
20069         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
20070         Update.
20071         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
20072         * modules/unictype/combining-class (Description): Fix.
20073         (Files, Makefile.am): Update.
20074         * tests/unictype/test-combiningclass.c: Renamed from
20075         tests/unictype/test-combining.c.
20076         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
20077
20078 2011-03-25  Bruno Haible  <bruno@clisp.org>
20079
20080         unictype: Update list of canonical combining classes.
20081         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
20082
20083 2011-03-25  Bruno Haible  <bruno@clisp.org>
20084
20085         unictype/category-byname: Recognize long names as well.
20086         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
20087         a long name.
20088         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
20089         unictype/categ_byname.h.
20090         (UC_CATEGORY_INDEX_*): New enumeration values.
20091         (uc_general_category_byname): Use uc_general_category_lookup and
20092         convert from index to value.
20093         * lib/unictype/categ_byname.gperf: New file.
20094         * modules/unictype/category-byname (Files): Add
20095         lib/unictype/categ_byname.gperf.
20096         (Depends-on): Add gperf.
20097         (Makefile.am): Add rule for generating unictype/categ_byname.h.
20098         * tests/unictype/test-categ_byname.c (main): Test the recognition of
20099         long names.
20100
20101         Tests for module 'unictype/category-longname'.
20102         * modules/unictype/category-longname-tests: New file.
20103         * tests/unictype/test-categ_longname.c: New file.
20104
20105         New module 'unictype/category-longname'.
20106         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
20107         * lib/unictype/categ_longname.c: New file.
20108         * modules/unictype/category-longname: New file.
20109         * modules/unictype/category-all (Depends-on): Add it.
20110
20111 2011-03-25  Bruno Haible  <bruno@clisp.org>
20112
20113         Tests for module 'unictype/category-LC'.
20114         * modules/unictype/category-LC-tests: New file.
20115         * tests/unictype/test-categ_LC.c: New file, automatically generated.
20116
20117         New module 'unictype/category-LC'.
20118         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
20119         (UC_CATEGORY_LC): New declaration.
20120         (UC_CASED_LETTER): New macro.
20121         * lib/gen-uni-tables.c (is_category_LC): New function.
20122         (output_categories): Also handle category LC.
20123         (UC_CATEGORY_MASK_LC): New enumeration value.
20124         (general_category_byname): Also handle category LC.
20125         * lib/unictype/categ_LC.c: New file.
20126         * lib/unictype/categ_LC.h: New file, automatically generated.
20127         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
20128         category LC.
20129         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
20130         * modules/unictype/category-LC: New file.
20131         * modules/unictype/category-byname (Depends-on): Add
20132         unictype/category-LC.
20133         * modules/unictype/category-all (Depends-on): Likewise.
20134
20135 2011-03-25  Eric Blake  <eblake@redhat.com>
20136
20137         xmalloc: revert yesterday's regression
20138         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
20139         realloc's underlying behavior (allowing allocation of zero-size
20140         objects, especially if malloc-gnu is also in use).
20141
20142 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
20143
20144         maint.mk: add missing version to VC-tag
20145         * top/maint.mk: git tag was missing actual tag name; add it.
20146
20147         valgrind: do leak checking, and exit with code 1 on error (not 0)
20148         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
20149         to VALGRIND.
20150
20151 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
20152
20153         posix-modules: say what it does.
20154         * posix-modules: Add a line to the --help output saying what it does.
20155
20156 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
20157
20158         xmalloc: Do not leak if underlying realloc is C99 compatible.
20159         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
20160         This avoids a leak on C99-based systems.  See
20161         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
20162
20163 2011-03-24  Eric Blake  <eblake@redhat.com>
20164
20165         realloc: document portability problem
20166         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
20167         passing 0 size to realloc.
20168
20169 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
20170
20171         doc: update users.txt
20172         * users.txt: Add cvsps, tmpwatch
20173
20174 2011-03-23  Matt Rice  <ratmice@gmail.com>
20175
20176         doc: update users.txt
20177         * users.txt: Add gdb.
20178
20179 2011-03-23  Jim Meyering  <meyering@redhat.com>
20180
20181         doc: update users.txt
20182         Looking through matches up to the following URL (there are still
20183         several more pages), I found several projects that use gnulib:
20184         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
20185         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
20186         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
20187
20188 2011-03-22  Bruno Haible  <bruno@clisp.org>
20189
20190         unictype/bidi*: Rename functions.
20191         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
20192         uc_bidi_class, uc_is_bidi_class): New declarations.
20193         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
20194         uc_bidi_category_byname.
20195         (uc_bidi_category_byname): New function.
20196         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
20197         u_bidi_category_name.
20198         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
20199         (uc_bidi_category_name): New function.
20200         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
20201         uc_bidi_category.
20202         (uc_bidi_category): New function.
20203         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
20204         uc_is_bidi_category. Invoke uc_bidi_class.
20205         (uc_is_bidi_category): New function.
20206         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
20207         instead of uc_bidi_category_byname.
20208         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
20209         instead of uc_bidi_category_name.
20210         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
20211         uc_bidi_category.
20212         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
20213         instead of uc_is_bidi_category.
20214
20215 2011-03-21  Bruno Haible  <bruno@clisp.org>
20216
20217         New module 'unictype/joininggroup-all'.
20218         * modules/unictype/joininggroup-all: New file.
20219
20220         Tests for module 'unictype/joininggroup-of'.
20221         * modules/unictype/joininggroup-of-tests: New file.
20222         * tests/unictype/test-joininggroup_of.c: New file.
20223         * tests/unictype/test-joininggroup_of.h: New file, automatically
20224         generated by gen-uni-tables.
20225
20226         New module 'unictype/joininggroup-of'.
20227         * modules/unictype/joininggroup-of: New file.
20228         * lib/unictype/joininggroup_of.c: New file.
20229         * lib/unictype/joininggroup_of.h: New file, automatically generated by
20230         gen-uni-tables.
20231
20232         Tests for module 'unictype/joininggroup-byname'.
20233         * modules/unictype/joininggroup-byname-tests: New file.
20234         * tests/unictype/test-joininggroup_byname.c: New file.
20235
20236         New module 'unictype/joininggroup-byname'.
20237         * modules/unictype/joininggroup-byname: New file.
20238         * lib/unictype/joininggroup_byname.c: New file.
20239         * lib/unictype/joininggroup_byname.gperf: New file.
20240
20241         Tests for module 'unictype/joininggroup-name'.
20242         * modules/unictype/joininggroup-name-tests: New file.
20243         * tests/unictype/test-joininggroup_name.c: New file.
20244
20245         New module 'unictype/joininggroup-name'.
20246         * modules/unictype/joininggroup-name: New file.
20247         * lib/unictype/joininggroup_name.c: New file.
20248         * lib/unictype/joininggroup_name.h: New file.
20249
20250         New module 'unictype/joiningtype-all'.
20251         * modules/unictype/joiningtype-all: New file.
20252
20253         Tests for module 'unictype/joiningtype-of'.
20254         * modules/unictype/joiningtype-of-tests: New file.
20255         * tests/unictype/test-joiningtype_of.c: New file.
20256         * tests/unictype/test-joiningtype_of.h: New file, automatically
20257         generated by gen-uni-tables.
20258
20259         New module 'unictype/joiningtype-of'.
20260         * modules/unictype/joiningtype-of: New file.
20261         * lib/unictype/joiningtype_of.c: New file.
20262         * lib/unictype/joiningtype_of.h: New file, automatically generated by
20263         gen-uni-tables.
20264
20265         Tests for module 'unictype/joiningtype-byname'.
20266         * modules/unictype/joiningtype-byname-tests: New file.
20267         * tests/unictype/test-joiningtype_byname.c: New file.
20268
20269         New module 'unictype/joiningtype-byname'.
20270         * modules/unictype/joiningtype-byname: New file.
20271         * lib/unictype/joiningtype_byname.c: New file.
20272
20273         Tests for module 'unictype/joiningtype-name'.
20274         * modules/unictype/joiningtype-name-tests: New file.
20275         * tests/unictype/test-joiningtype_name.c: New file.
20276
20277         New module 'unictype/joiningtype-name'.
20278         * modules/unictype/joiningtype-name: New file.
20279         * lib/unictype/joiningtype_name.c: New file.
20280
20281         unictype: Add support for Arabic shaping properties.
20282         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
20283         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
20284         declarations.
20285         (UC_JOINING_GROUP_*): New enumeration values.
20286         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
20287         declarations.
20288         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
20289         (unicode_joining_type): New variable.
20290         (UC_JOINING_GROUP_*): New enumeration values.
20291         (unicode_joining_group): New variable.
20292         (fill_arabicshaping, joining_type_as_c_identifier,
20293         output_joining_type_test, output_joining_type,
20294         joining_group_as_c_identifier, output_joining_group_test,
20295         output_joining_group): New functions.
20296         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
20297         fill_arabicshaping and output_joining_type_test, output_joining_type,
20298         output_joining_group_test, output_joining_group.
20299         Reported by Simon Josefsson.
20300
20301 2011-03-21  Jim Meyering  <meyering@redhat.com>
20302
20303         strftime: fix a bug in yesterday's change
20304         * lib/strftime.c (add): Accommodate width's initial value of -1.
20305         Otherwise, nstrftime would copy uninitialized data into
20306         the result buffer.
20307
20308 2011-03-21  Jim Meyering  <meyering@redhat.com>
20309
20310         tests: add strftime-tests module
20311         * tests/test-strftime.c: New file.
20312         * modules/strftime-tests: New module.
20313
20314 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20315
20316         strftime: don't assume a byte count fits in 'int'
20317         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
20318         found this problem by static analysis, using gcc -Wstrict-overflow
20319         (GCC 4.5.2, x86-64).  This reported an optimization that depended
20320         on an integer overflow having undefined behavior, but it turns out
20321         that the argument is a size, which might not fit in 'int' anyway,
20322
20323 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20324
20325         stdio: don't require ignore_value around fwrite
20326
20327         This patch works around libc bug 11959
20328         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
20329         Without this patch, applications must often write
20330         ignore_value (fwrite (...)) even though the ignore_value is
20331         not helpful here.  It's common to write many objects, using
20332         fwrite/printf/etc., and then use ferror to detect output error.
20333
20334         I considered making this patch optional, but decided against it,
20335         because libc is obviously being inconsistent here: there is no
20336         reason libc should insist that user code must inspect fwrite
20337         return's value without also insisting that it inspect printf's,
20338         putchar's, etc.  If user code wants to have a strict style where
20339         all these functions' values are checked (so that ferror need not
20340         be checked), we could add support for that style in a new gnulib
20341         module, but in the meantime it's better to be consistent and to
20342         support common usage.
20343
20344         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
20345         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
20346         that we are compiling in checking mode, and if not C++, and
20347         if not already wrapping fwrite for some other reason.
20348         (fwrite): #define to rpl_fwrite if the latter is defined.
20349
20350 2011-03-20  Bruno Haible  <bruno@clisp.org>
20351
20352         verror: Fix compilation error introduced on 2011-02-13.
20353         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
20354         instead of __attribute__.
20355         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20356
20357 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20358             Bruno Haible  <bruno@clisp.org>
20359
20360         socklen: do not depend on sys_socket
20361         While trying to modify Emacs to use gnulib's socklen module,
20362         I discovered a circular dependency: socklen depends on sys_socket
20363         and vice versa.  Emacs can use socklen, but it does not need
20364         sys_socket because it has its own substitute for sys/socket.h.
20365         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
20366         gl_TYPE_SOCKLEN_T.
20367         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
20368         gl_PREREQ_SYS_H_SOCKET.
20369         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
20370         gl_PREREQ_SYS_H_SOCKET.
20371         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
20372         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
20373         * modules/socklen (Depends-on): Do not depend on sys_socket.
20374         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
20375
20376 2011-03-20  Jim Meyering  <meyering@redhat.com>
20377
20378         maint.mk: sort file names *after* new transformation
20379         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
20380         prefix would have led to an unwarranted failure in GNU parted.
20381         Sort after that transformation.
20382
20383 2011-03-19  Jim Meyering  <meyering@redhat.com>
20384
20385         maint.mk: fix po-file syntax-check rule
20386         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
20387         Patch by Bruno Haible.
20388
20389 2011-03-19  Bruno Haible  <bruno@clisp.org>
20390
20391         socklen: Update comment.
20392         * m4/socklen.m4: Update comment about platforms.
20393
20394 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20395             Bruno Haible  <bruno@clisp.org>
20396
20397         inet_ntop, inet_pton: Simplify.
20398         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
20399         documented to provide socklen_t and we already depend on sys_socket.
20400         * modules/inet_pton (Depends-on): Likewise.
20401         * lib/arpa_inet.in.h: Adjust comment.
20402
20403 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20404             Bruno Haible  <bruno@clisp.org>
20405
20406         netdb: Simplify.
20407         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
20408         documented to provide socklen_t and we already depend on sys_socket.
20409         * lib/netdb.in.h: Adjust comment.
20410
20411 2011-03-19  Bruno Haible  <bruno@clisp.org>
20412
20413         sys_socket, netdb: Document problem with socklen_t.
20414         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
20415         platforms.
20416         * doc/posix-headers/netdb.texi: Likewise.
20417
20418 2011-03-18  Eric Blake  <eblake@redhat.com>
20419
20420         maint.mk: let po check work in VPATH build
20421         * top/maint.mk (po_file): Allow cfg.mk override.
20422         (sc_po_check): Allow VPATH use.
20423         Reported by Jiri Denemark.
20424
20425 2011-03-16  Jim Meyering  <meyering@redhat.com>
20426
20427         maint.mk: allow fine-grained syntax-check exclusion via Make variables
20428         Before, you would have had to create one .x-sc_ file per rule in order
20429         to exempt offending files.  Now, you may instead use a Make variable --
20430         usually defined in cfg.mk -- whose name identifies the affected rule.
20431         * top/maint.mk (_sc_excl): Define.
20432         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
20433         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
20434
20435 2011-03-13  Bruno Haible  <bruno@clisp.org>
20436
20437         ignore-value tests: Avoid warnings.
20438         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
20439         empty for gcc < 3.4.
20440
20441 2011-03-13  Bruno Haible  <bruno@clisp.org>
20442
20443         passfd: Fix link error on Solaris.
20444         * modules/passfd (Description): Correct.
20445         (Depends-on): Add socketlib.
20446         (Link): New section.
20447         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
20448
20449 2011-03-13  Bruno Haible  <bruno@clisp.org>
20450
20451         passfd: Fix link error on AIX 5.2.
20452         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
20453
20454 2011-03-13  Bruno Haible  <bruno@clisp.org>
20455
20456         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
20457         * lib/sys_socket.in.h: Include <stddef.h>.
20458         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
20459         CMSG_FIRSTHDR. Remove unused variable.
20460
20461 2011-03-13  Bruno Haible  <bruno@clisp.org>
20462
20463         passfd: Fix compilation error on OpenBSD.
20464         * lib/passfd.c: Include <sys/uio.h>.
20465
20466 2011-03-13  Bruno Haible  <bruno@clisp.org>
20467
20468         passfd test: Fix warnings.
20469         * tests/test-passfd.c: Include <sys/wait.h>.
20470         (main): Fix typo.
20471
20472 2011-03-13  Bruno Haible  <bruno@clisp.org>
20473
20474         passfd module, part 4, tweaks.
20475         * tests/test-passfd.c: Reorder includes.
20476         (main): Fix perror and printf calls.
20477
20478 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20479
20480         passfd module, part 4.
20481         * modules/passfd-tests: New file.
20482         * tests/test-passfd.c: New file.
20483
20484 2011-03-13  Jim Meyering  <meyering@redhat.com>
20485
20486         Makefile: rely on GNU make; derive syntax-check rule names
20487         Rather than requiring that each sc_ rule be listed as a dependent
20488         of "check", use features of GNU make to derive the list.
20489         * Makefile (syntax-check-rules): Define.
20490         (check): Depend on the new variable, not the hard-coded list.
20491
20492 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
20493             Bruno Haible  <bruno@clisp.org>
20494
20495         passfd module, part 3.
20496         * lib/passfd.h (recvfd): Add a flags argument.
20497         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
20498         (recvfd): Add a flags argument.
20499         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
20500         exists.
20501         * modules/passfd (Depends-on): Add cloexec.
20502         Suggested by Eric Blake.
20503
20504 2011-03-13  Bruno Haible  <bruno@clisp.org>
20505
20506         passfd module, part 2, tweaks.
20507         * modules/passfd (Files): Reorder.
20508         (Depends-on): Remove errno.
20509         (Include): Remove <sys/socket.h>, <sys/un.h>.
20510         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
20511         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
20512         specification header. Include <sys/socket.h> always. Don't include
20513         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
20514         (sendfd): Clarify that it sets errno when it fails.
20515         (recvfd): Fix specification.
20516
20517 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20518
20519         passfd module, part 2.
20520         * modules/passfd: New file.
20521         * lib/passfd.h: New file.
20522         * lib/passfd.c: New file.
20523
20524 2011-03-12  Bruno Haible  <bruno@clisp.org>
20525
20526         wcswidth, mbswidth: Avoid integer overflow.
20527         * lib/wcswidth.c: Include <limits.h>.
20528         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
20529         * lib/mbswidth.c: Include <limits.h>.
20530         (mbsnwidth): Avoid 'int' overflow.
20531         Reported by Jim Meyering.
20532
20533 2011-03-12  Bruno Haible  <bruno@clisp.org>
20534
20535         futimens, utimensat: Avoid endless recursion on Solaris 10.
20536         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
20537         Solaris.
20538         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
20539         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
20540
20541 2011-03-11  Jim Meyering  <meyering@redhat.com>
20542
20543         maint.mk: relax a regexp to accommodate other formatting styles
20544         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
20545         between "ngettext" and the following "(".
20546
20547 2011-03-11  Pádraig Brady <P@draigBrady.com>
20548
20549         maint.mk: suppress a false positive warning
20550         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
20551         diagnostics are marked with ngettext.
20552
20553 2011-03-10  Eric Blake  <eblake@redhat.com>
20554
20555         wchar: add explicit dependencies, for Tru64
20556         * modules/mbmemcasecoll (Depends-on): Add wchar.
20557         * modules/mbtowc (Depends-on): Likewise.
20558         * modules/vasnprintf (Depends-on): Likewise.
20559         * modules/unistdio/u-printf-args (Depends-on): Likewise.
20560         * modules/wctomb (Depends-on): Likewise.
20561         Reported by Peter O'Gorman.
20562
20563 2011-03-08  Bruno Haible  <bruno@clisp.org>
20564
20565         passfd module, part 1, tweaks.
20566         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
20567         Improve indentation. Improve AC_MSG_CHECKING messages.
20568         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
20569         gl_SOCKET_FAMILIES.
20570
20571 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20572
20573         passfd module, part 1.
20574         * m4/afunix.m4: New file.
20575         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
20576         sockets.
20577
20578 2011-03-08  Bruno Haible  <bruno@clisp.org>
20579
20580         regex-quote: New API.
20581         * lib/regex-quote.h: Include <stdbool.h>.
20582         (struct regex_quote_spec): New type.
20583         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
20584         New declarations.
20585         (regex_quote_length, regex_quote_copy, regex_quote): Take a
20586         'const struct regex_quote_spec *' argument.
20587         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
20588         (pcre_special): New constant.
20589         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
20590         New functions.
20591         (regex_quote_length, regex_quote_copy, regex_quote): Take a
20592         'const struct regex_quote_spec *' argument.
20593         * modules/regex-quote (Depends-on): Add stdbool.
20594         * tests/test-regex-quote.c (check): Update for new API. Add test for
20595         anchored results.
20596         * NEWS: Mention the API change.
20597         Reported by Reuben Thomas and Eric Blake.
20598
20599 2011-03-06  Bruno Haible  <bruno@clisp.org>
20600
20601         regex-quote: Fix creation of POSIX extended regular expressions.
20602         * lib/regex-quote.c (ere_special): Add grouping and alternation
20603         operators.
20604
20605 2011-03-05  Bruno Haible  <bruno@clisp.org>
20606
20607         doc: Improve doc regarding autopoint vs. gnulib.
20608         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
20609         disable autopoint while running autoreconf.
20610         Suggested by Ralf Wildenhues.
20611
20612 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20613
20614         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
20615         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
20616
20617 2011-03-03  Bruce Korb  <bkorb@gnu.org>
20618
20619         parse-duration: remove xalloc.h dependency
20620         * lib/parse-duration.c (parse_period): handle NULL return from
20621         strdup instead of calling xstrdup().
20622         * modules/parse-duration: remove "xalloc" dependency
20623
20624 2011-03-03  Matthew Booth  <mbooth@redhat.com>
20625
20626         bootstrap: honor m4_base when running aclocal
20627         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
20628
20629 2011-03-02  Jim Meyering  <meyering@redhat.com>
20630
20631         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
20632         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
20633         on request from Matt Booth.
20634
20635 2011-03-01  Eric Blake  <eblake@redhat.com>
20636
20637         test-link: work on Hurd
20638         * tests/test-link.h (test_link): Hurd rejects linking directories
20639         with EISDIR instead of the POSIX-mandated EPERM.
20640
20641 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
20642
20643         stdio: simplify by moving files to printf-posix, sigpipe
20644         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
20645         since this symbol is needed only if printf is replaced.
20646         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
20647         Require gl_ASM_SYMBOL_PREFIX.
20648         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
20649         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
20650         (Depends-on): Add 'raise'.
20651         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
20652         * modules/stdio (Files): Remove lib/stdio-write.c,
20653         m4/asm-underscore.m4.
20654         (Depends-on): Remove 'raise'.
20655
20656         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
20657         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
20658         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
20659         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
20660
20661 2011-02-28  Bruno Haible  <bruno@clisp.org>
20662
20663         localcharset: Assume ANSI C behaviour of free().
20664         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
20665         calling free().
20666         Suggested by Simon Josefsson <simon@josefsson.org>.
20667
20668 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
20669             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
20670             Bruno Haible  <bruno@clisp.org>  (tiny change)
20671
20672         On Cygwin, use /proc file system instead of win32 API.
20673         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
20674         Win32 file names.
20675         (DllMain): Simplify by removing Cygwin specific code.
20676         (find_shared_library_fullname): Use Linux specific implementation also
20677         for Cygwin.
20678         (get_shared_library_fullname): Update accordingly.
20679         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
20680         Win32 file names.
20681         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
20682         Cygwin specific code.
20683
20684 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
20685             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
20686
20687         Fix OpenMP flag detection for various Fortran compilers.
20688         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
20689         OpenMP-conditional compilation construct, to force compile
20690         failure with missing OpenMP flag.
20691         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
20692
20693 2011-02-25  Eric Blake  <eblake@redhat.com>
20694
20695         strstr: expand test coverage
20696         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
20697         compilation.
20698         * tests/test-memmem.c (main): Duplicate tests.
20699         * tests/test-strcasestr.c (main): Likewise.
20700         * tests/test-c-strcasestr.c (main): Likewise.
20701
20702 2011-02-25  Jim Meyering  <meyering@redhat.com>
20703
20704         maint.mk: detect missing-NL-at-EOF, too
20705         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
20706         it also detects when a file lacks a newline at EOF.
20707         (require_exactly_one_NL_at_EOF_): Renamed from
20708         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
20709         since people may well have .x-sc_... file names tied to the
20710         existing name.  Suggested by Eric Blake.
20711
20712 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
20713
20714         dirname: move m4/dos.m4 functionality into lib/dosname.h
20715
20716         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
20717         extracts symbols from it, puts them into config.h; but it's much
20718         easier to use the symbols directly.  filename.h already does this,
20719         but it disagrees with dos.m4 in some respects.  This patch
20720         introduces a different include file dosname.h that packages up
20721         dos.m4, and then later we can work on merging filename.h and
20722         dosname.h.  Applications that need only the easy-to-configure
20723         symbols should consider including dosname.h rather than dirname.h.
20724         * NEWS: Mention incompatible changes.
20725         * m4/dos.m4: Remove.
20726         * lib/dosname.h, modules/dosname: New files.
20727         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
20728         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
20729         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
20730         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
20731         Include dosname.h, not dirname.h.
20732         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
20733         Include dosname.h, for definitions of symbols like ISSLASH
20734         that used to be in config.h.
20735         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
20736         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20737         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20738         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20739         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
20740         * modules/rmdir (Files): Likewise.
20741         * modules/stat (Files): Likewise.
20742         * modules/unlink (Files): Likewise.
20743         * modules/dirname-lgpl (Depends-on): Add dosname.
20744         * modules/lstat (Depends-on): Likewise.
20745         * modules/openat (Depends-on): Likewise.
20746         * modules/rmdir (Depends-on): Likewise.
20747         * modules/savewd (Depends-on): Likewise.
20748         * modules/stat (Depends-on): Likewise.
20749         * modules/unlink (Depends-on): Likewise.
20750         * modules/openat (Depends-on): Remove dirname-lgpl.
20751         * modules/savewd (Depends-on): Likewise.
20752         * tests/test-dirname.c: Do not use removed symbols like
20753         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
20754         the remaining symbols, e.g., ISSLASH ('\\').
20755
20756 2011-02-25  Eric Blake  <eblake@redhat.com>
20757
20758         strstr: revert patches that introduced bug and pessimization
20759         * lib/str-two-way.h: Add another reference.
20760         (two_way_short_needle, two_way_long_needle): Revert changes from
20761         2011-02-24; they pessimize search speed.
20762         (critical_factorization): Partially revert changes from
20763         2010-06-22; they violate the requirement that the left half of the
20764         needle be smaller than the period of the needle.
20765
20766 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
20767
20768         filenamecat: remove unnecessary dependency on dirname-lgpl
20769         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
20770         is no direct dependency, just an indirect one via filenamecat-lgpl.
20771
20772         remove: remove unnecessary use of m4/dos.m4
20773         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
20774         * modules/remove (FILES): Remove m4/dos.m4.
20775
20776         * lib/openat-proc.c: Don't include dirname.h; not needed.
20777
20778         backupfile: remove unnecessary use of m4/dos.m4
20779         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
20780         of its symbols are used by the backupfile code.  backupfile.c does
20781         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
20782         for the rare case of programs that want all their backup file
20783         names to live within 8+3 limits, and dos.m4 doesn't address that.
20784         * modules/backupfile (Files): Remove m4/dos.m4.
20785
20786 2011-02-24  Jim Meyering  <meyering@redhat.com>
20787
20788         strstr: fix a bug whereby strstr would mistakenly return NULL
20789         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
20790         in period calculation.
20791         (two_way_long_needle): Likewise.
20792         The original problem was reported by Mike Stump in
20793         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
20794         Ralf Wildenhues provided the short needle and haystack.
20795         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
20796         Add a more involved test to trigger the bug in two_way_long_needle.
20797
20798 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20799
20800         gnulib-tool: remove use of bold display in help screen
20801         * gnulib-tool (func_usage): Do not use bold display anymore in the
20802         help screen.  That was just meant to be a temporary emphasis for a
20803         backward-incompatible change.
20804
20805 2011-02-23  Bruno Haible  <bruno@clisp.org>
20806
20807         Fix misindentation of preprocessor directives.
20808         * lib/argp-namefrob.h: Reindent preprocessor directives.
20809         * lib/getopt_int.h (struct _getopt_data): Likewise.
20810         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
20811         * lib/vasnprintf.c (decode_long_double): Likewise.
20812         * tests/test-argmatch.c: Insert blank lines, for clarity.
20813         * tests/test-exclude.c: Likewise.
20814
20815 2011-02-22  Bruno Haible  <bruno@clisp.org>
20816
20817         ioctl: Fix for MacOS X in 64-bit mode.
20818         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
20819         value.
20820         Suggested by Eric Blake.
20821         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
20822
20823 2011-02-22  Jim Meyering  <meyering@redhat.com>
20824
20825         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
20826         * Makefile (sc_cpp_indent_check): Don't limit the check to files
20827         in lib/.
20828
20829 2011-02-22  Eric Blake  <eblake@redhat.com>
20830
20831         maint: avoid any CDPATH issue
20832         * Makefile (sc_cpp_indent_check): Anchor cd argument.
20833
20834         maint: adjust cpp indentation for my modules, as well
20835         * Makefile (sc_cpp_indent_check): Add my name.
20836         * lib/fbufmode.c: Filter through cppi.
20837         * lib/fpurge.c: Likewise.
20838         * lib/freadable.c: Likewise.
20839         * lib/freading.c: Likewise.
20840         * lib/fwritable.c: Likewise.
20841         * lib/fwriting.c: Likewise.
20842         * lib/sigaction.c: Likewise.
20843
20844 2011-02-22  Jim Meyering  <meyering@redhat.com>
20845
20846         maint: adjust cpp indentation to reflect nesting depth
20847         I.e., in a block of code that begins with an unnested "#if",
20848         put one space between the "#" in column 1 and following token.
20849         For example,
20850         -#include <sys/vfs.h>
20851         +# include <sys/vfs.h>
20852         Do this only in .c files that are part of a module I maintain.
20853         * lib/linkat.c: Filter through cppi.
20854         * lib/nanosleep.c: Likewise.
20855         * lib/openat.c: Likewise.
20856         * lib/openat-die.c: Likewise.
20857         * lib/dup3.c: Likewise.
20858         * lib/fchownat.c: Likewise.
20859         * lib/flock.c: Likewise.
20860         * lib/fsync.c: Likewise.
20861         * lib/fts.c: Likewise.
20862         * lib/getpass.c: Likewise.
20863         * lib/gettimeofday.c: Likewise.
20864         * lib/userspec.c: Likewise.
20865         * Makefile (sc_cpp_indent_check): New rule, to check this.
20866
20867 2011-02-22  Bruno Haible  <bruno@clisp.org>
20868
20869         New module 'wctomb'.
20870         * lib/stdlib.in.h (wctomb): New declaration.
20871         * lib/wctomb.c: New file.
20872         * lib/wctomb-impl.h: New file.
20873         * m4/wctomb.m4: New file.
20874         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
20875         REPLACE_WCTOMB.
20876         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
20877         REPLACE_WCTOMB.
20878         * modules/wctomb: New file.
20879         * tests/test-stdlib-c++.cc: Test signature of wctomb.
20880         * doc/posix-functions/wctomb.texi: Mention the new module.
20881         * modules/wctob (Depends-on): Add wctomb.
20882
20883 2011-02-22  Bruno Haible  <bruno@clisp.org>
20884
20885         New module 'mbtowc'.
20886         * lib/stdlib.in.h (mbtowc): New declaration.
20887         * lib/mbtowc.c: New file.
20888         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
20889         * m4/mbtowc.m4: New file.
20890         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
20891         REPLACE_MBTOWC.
20892         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
20893         REPLACE_MBTOWC.
20894         * modules/mbtowc: New file.
20895         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
20896         * doc/posix-functions/mbtowc.texi: Mention the new module.
20897         * modules/btowc (Depends-on): Add mbtowc.
20898
20899 2011-02-22  Bruno Haible  <bruno@clisp.org>
20900
20901         wcrtomb: Add more tests for native Windows platforms.
20902         * tests/test-wcrtomb-w32-1.sh: New file.
20903         * tests/test-wcrtomb-w32-2.sh: New file.
20904         * tests/test-wcrtomb-w32-3.sh: New file.
20905         * tests/test-wcrtomb-w32-4.sh: New file.
20906         * tests/test-wcrtomb-w32-5.sh: New file.
20907         * tests/test-wcrtomb-w32.c: New file.
20908         * modules/wcrtomb-tests (Files): Add them.
20909         (Makefile.am): Arrange to run these tests.
20910         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
20911         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
20912
20913 2011-02-20  Bruno Haible  <bruno@clisp.org>
20914
20915         wcrtomb: Enhance test.
20916         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
20917
20918 2011-02-20  Bruno Haible  <bruno@clisp.org>
20919
20920         mbrtowc: Tiny optimization.
20921         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
20922
20923 2011-02-20  Jim Meyering  <meyering@redhat.com>
20924
20925         test-exclude.c: remove unmatched #endif
20926         * tests/test-exclude.c: Remove stray #endif, left over from
20927         the change of a week ago.
20928
20929 2011-02-19  Jim Meyering  <meyering@redhat.com>
20930
20931         git-version-gen: skip "-dirty" check when appropriate
20932         * build-aux/git-version-gen: Don't run any git commands when the
20933         version string comes from .tarball-version.  Prior to this, we
20934         would run git update-index --refresh even from a just-unpacked
20935         tarball directory, and that could affect a .git/ directory in a
20936         parent of the build directory.  Reported by Mike Frysinger.
20937
20938 2011-02-19  Bruno Haible  <bruno@clisp.org>
20939
20940         unictype/property-byname: Reduce the size of the 'data' segment.
20941         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
20942
20943 2011-02-19  Bruno Haible  <bruno@clisp.org>
20944
20945         unictype/scripts: Reduce the size of the 'data' segment.
20946         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
20947         '%pic'.
20948         * lib/unictype/scripts_byname.gperf: Regenerated.
20949
20950 2011-02-19  Bruno Haible  <bruno@clisp.org>
20951
20952         stdint: Update documentation.
20953         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
20954
20955 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
20956
20957         stdint: omit redundant check for wchar.h
20958         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
20959         always tests whether wchar.h exists, so remove the now-redundant test.
20960
20961 2011-02-18  Bruno Haible  <bruno@clisp.org>
20962
20963         stdint: Cut dependency to module 'wchar'.
20964         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
20965         include the necessary prerequisites.
20966         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
20967         * modules/stdint (Depends-on): Remove wchar.
20968         (Makefile.am): Substitute HAVE_WCHAR_H.
20969         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
20970
20971 2011-02-18  Eric Blake  <eblake@redhat.com>
20972
20973         longlong: skip, rather than fail, on cross-compilation
20974         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
20975         when cross-compiling; regression from 2011-02-16.
20976
20977 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20978
20979         * NEWS: Mention 2011-02-08 change to stdlib.
20980
20981 2011-02-17  Bruno Haible  <bruno@clisp.org>
20982
20983         getloadavg: Add comments about platforms.
20984         * m4/getloadavg.m4: Add comment.
20985         * lib/getloadavg.c: Likewise.
20986
20987 2011-02-17  Bruno Haible  <bruno@clisp.org>
20988
20989         getloadavg: Fix link error on Solaris 2.6.
20990         * modules/getloadavg (Link): New section.
20991         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
20992         linking test-getloadavg.
20993         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
20994         getloadavg.
20995
20996 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20997
20998         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
20999         It was 'int', but this doesn't match the IRIX 6.5 manual.
21000         Suggested by Bruno Haible in
21001         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
21002
21003 2011-02-17  Bruno Haible  <bruno@clisp.org>
21004
21005         havelib: Fix comments.
21006         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
21007         change.
21008
21009 2011-02-17  Bruno Haible  <bruno@clisp.org>
21010
21011         havelib: Update config.rpath.
21012         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
21013
21014 2011-02-17  Bruno Haible  <bruno@clisp.org>
21015
21016         getloadavg test: Add some plausibility checks.
21017         * tests/test-getloadavg.c (check_avg): Print a warning when the value
21018         is improbable.
21019
21020 2011-02-16  Eric Blake  <eblake@redhat.com>
21021
21022         maintainer-makefile: make syntax-check a no-op from tarballs
21023         * top/maint.mk (no-vc-detected): New rule.
21024         (local-checks-available): Use it to avoid hanging if someone tries
21025         'make syntax-check' from a tarball.  Also append to any non-syntax
21026         checks already defined in cfg.mk.
21027
21028 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
21029
21030         longlong: tune, particularly for common case of c99
21031
21032         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
21033         or running anything if c99, or if unsigned long long int does not
21034         work.  In either case, we know the answer without further tests.
21035         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
21036         it at most once, and use its results for both long long int and
21037         unsigned long long int.  This is more likely to be efficient in
21038         the common case where the program wants to check for both long
21039         long int and unsigned long long int.
21040         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
21041         since the answer is already known.
21042
21043 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
21044
21045         getloadavg: set errno
21046         * lib/getloadavg.c: Set errno when returning -1.  If no other
21047         error number looks appropriate, set it to ENOSYS if the getloadavg
21048         looks like it can't possibly ever work, ENOTSUP otherwise.
21049         Suggested by Bruno Haible in
21050         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
21051
21052         getloadavg: trim unused parts and speed up 'configure'
21053         * NEWS: Document this.
21054         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
21055         always compiled if getloadavg is absent.
21056         Move test code to ...
21057         * tests/test-getloadavg.c: New file, containing previous
21058         contents of test from lib/getloadavg.c.  It also contains
21059         suggestions by Bruno Haible in
21060         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
21061         * modules/getloadavg-tests: New file.
21062         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
21063         Do tests in the same order as they're needed for getloadavg.c.
21064         Omit setgid-related tests that generate symbols KMEM_GROUP,
21065         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
21066         Do only the tests that are needed to see whether the system has
21067         getloadavg, moving the other tests into ...
21068         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
21069         NLIST_NAME_UNION; nobody should be using it.  Do not define
21070         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
21071         relevant, as the user of this module shouldn't care how getloadavg
21072         is implemented.
21073
21074         getloadavg: omit unused var
21075         * lib/getloadavg.c (getloadavg): Omit unused local variable.
21076
21077 2011-02-15  Jim Meyering  <meyering@redhat.com>
21078
21079         doc: update users.txt
21080         * users.txt: Update iwhd's URL.
21081
21082 2011-02-13  Bruno Haible  <bruno@clisp.org>
21083
21084         Consistent macro naming for macros that use GCC __attribute__.
21085         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
21086         _ATTRIBUTE_NONNULL_.
21087         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
21088         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
21089         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
21090         ATTRIBUTE_DEPRECATED.
21091         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
21092         ATTRIBUTE_NORETURN.
21093         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21094         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21095         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21096         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21097         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
21098         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
21099         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
21100         ATTRIBUTE_SENTINEL.
21101         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
21102         ATTRIBUTE_RETURN_CHECK.
21103         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
21104         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
21105         ATTRIBUTE_NORETURN.
21106         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
21107         Reported by Paul Eggert.
21108
21109 2011-02-13  Bruno Haible  <bruno@clisp.org>
21110
21111         Don't interfere with a program's definition of __attribute__.
21112         * lib/argp.h (__attribute__): Remove definition.
21113         (_GL_ATTRIBUTE_FORMAT): New macro.
21114         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
21115         * lib/argp-fmtstream.h (__attribute__): Remove definition.
21116         (_GL_ATTRIBUTE_FORMAT): New macro.
21117         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
21118         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
21119         GCC 3 or newer.
21120         * lib/error.h (__attribute__): Remove definition.
21121         (_GL_ATTRIBUTE_FORMAT): New macro.
21122         (error, error_at_line): Use it.
21123         * lib/hash.h (__attribute__): Remove definition.
21124         (ATTRIBUTE_WUR): Update definition. Define always.
21125         * lib/openat.h (__attribute__): Remove definition.
21126         (ATTRIBUTE_NORETURN): Update definition. Define always.
21127         * lib/sigpipe-die.h (__attribute__): Remove definition.
21128         (ATTRIBUTE_NORETURN): Update definition. Define always.
21129         * lib/vasnprintf.h (__attribute__): Remove definition.
21130         (_GL_ATTRIBUTE_FORMAT): New macro.
21131         (asnprintf, vasnprintf): Use it.
21132         * lib/xalloc.h (__attribute__): Remove definition.
21133         (ATTRIBUTE_NORETURN): Update definition. Define always.
21134         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
21135         * lib/xmemdup0.h (__attribute__): Remove definition.
21136         (ATTRIBUTE_NORETURN): Update definition. Define always.
21137         * lib/xprintf.h (__attribute__): Remove definition.
21138         (_GL_ATTRIBUTE_FORMAT): New macro.
21139         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
21140         * lib/xstrtol.h (__attribute__): Remove definition.
21141         (ATTRIBUTE_NORETURN): Update definition. Define always.
21142         * lib/xvasprintf.h (__attribute__): Remove definition.
21143         (_GL_ATTRIBUTE_FORMAT): New macro.
21144         (xasprintf, xvasprintf): Use it.
21145         * tests/test-argmatch.c (__attribute__): Remove definition.
21146         (ATTRIBUTE_NORETURN): Update definition. Define always.
21147         * tests/test-exclude.c (__attribute__): Remove definition.
21148         (ATTRIBUTE_NORETURN): Update definition. Define always.
21149         Reported by Paul Eggert.
21150
21151 2011-02-13  Bruno Haible  <bruno@clisp.org>
21152
21153         mbrtowc: Add more tests for native Windows platforms.
21154         * tests/test-mbrtowc-w32-1.sh: New file.
21155         * tests/test-mbrtowc-w32-2.sh: New file.
21156         * tests/test-mbrtowc-w32-3.sh: New file.
21157         * tests/test-mbrtowc-w32-4.sh: New file.
21158         * tests/test-mbrtowc-w32-5.sh: New file.
21159         * tests/test-mbrtowc-w32.c: New file.
21160         * modules/mbrtowc-tests (Files): Add them.
21161         (Makefile.am): Arrange to run these tests.
21162         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
21163         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
21164
21165 2011-02-13  Bruno Haible  <bruno@clisp.org>
21166
21167         mbrtowc: Work around native Windows bug.
21168         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
21169         guess when no suitable locale for testing was found.
21170         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
21171
21172 2011-02-13  Bruno Haible  <bruno@clisp.org>
21173
21174         mbsinit: Work around mingw bug.
21175         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
21176         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
21177         Windows.
21178         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
21179
21180 2011-02-13  Bruno Haible  <bruno@clisp.org>
21181
21182         mbsinit: Don't crash for a NULL argument.
21183         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
21184         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
21185
21186 2011-02-13  Bruno Haible  <bruno@clisp.org>
21187
21188         Don't interfere with a program's definition of __attribute__.
21189         * lib/stdio.in.h (__attribute__): Remove definition.
21190         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
21191         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
21192         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
21193         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
21194         * lib/string.in.h (__attribute__): Remove definition.
21195         Reported by Paul Eggert.
21196
21197 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
21198
21199         stdlib: don't get in the way of non-GCC __attribute__
21200         See thread starting at
21201         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
21202         Revert previous stdlib change, installing the following instead:
21203         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
21204         to get in the way of a non-GCC compiler that supports __attribute__.
21205         (_GL_ATTRIBUTE_RETURN): New macro.
21206         (_Exit): Use it instead of __attribute__.
21207
21208 2011-02-12  Bruno Haible  <bruno@clisp.org>
21209
21210         quotearg test: Avoid test failure on mingw.
21211         * tests/test-quotearg.sh: Convert the locale identifier from native
21212         Windows syntax to Unix syntax.
21213
21214 2011-02-12  Bruno Haible  <bruno@clisp.org>
21215
21216         setlocale: Prefer gnulib's override over libintl's override.
21217         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
21218         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
21219         GNULIB_defined_setlocale is set.
21220
21221 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
21222
21223         stdlib: support non-GCC __attribute__
21224
21225         Fix a serious and tricky problem encountered when attempting to
21226         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
21227         5.5, but it crashed due to memory corruption on Solaris 10 with
21228         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
21229         bits that are otherwise zero.  This tagging is optional inside
21230         Emacs but is preferred and is used when __attribute__ ((__aligned
21231         (8))) works, as it does with both recent-enough GCC and with Sun C
21232         5.11.  However, Sun C 5.11 is not GCC and does not #define
21233         __GNUC__ and __GNUC_MINOR__.
21234
21235         When I added the getloadavg module to Emacs, it brought in
21236         stdlib.in.h, which contained this fragment:
21237
21238            #ifndef __attribute__
21239            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
21240            #  define __attribute__(Spec)   /* empty */
21241            # endif
21242            #endif
21243
21244         When files that include <stdlib.h> were compiled with Sun C 5.11,
21245         the above code disabled __attribute__ ((__aligned (8))), which
21246         caused variables to not be properly aligned, which eventually led
21247         to the pointer corruption mentioned above.  (This was a bit hard
21248         to diagnose, unfortunately.)
21249
21250         Several "#define __attribute__(X) /* empty */" code snippets need
21251         to be eradicated from Gnulib to work with non-GCC compilers that
21252         support __attribute__.  The Autoconf way to do this is to test for
21253         each kind of attribute that we want support for, and selectively
21254         enable that in source code.
21255
21256         Fix this problem just for stdlib.h, by adding a test for the
21257         __noreturn__ attribute, and change stdlib.in.h to use that test
21258         when needed.  This technique can be easily generalized to the
21259         other *.in.h files and attributes, and a similar technique can be
21260         used for *.h and *.c files.  This patch is enough to solve the
21261         problem for Emacs + getloadavg, and I thought I'd publish it for
21262         feedback before undertaking further, similar fixes in other
21263         modules.
21264
21265         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
21266         because it's not needed for stdlib.h.  It merely substitutes the
21267         value directly into stdlib.h.  We may well need to #define it, or
21268         similar symbols, for other modules, but it's nice to also have an
21269         option to not #define it for applications like Emacs that do not
21270         need it.
21271
21272         * lib/stdlib.in.h (__attribute__): Do not #define.
21273         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
21274         be defined only if the _Exit module is also used.
21275         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
21276         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
21277         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
21278         platforms.
21279         * modules/_Exit (Files): Add m4/attribute.m4.
21280         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
21281         * m4/attribute.m4: New file.
21282
21283 2011-02-12  Bruno Haible  <bruno@clisp.org>
21284
21285         wcsrtombs: Work around bug on native Windows.
21286         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
21287         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
21288         instead of len.
21289         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
21290
21291 2011-02-12  Bruno Haible  <bruno@clisp.org>
21292
21293         mbsrtowcs: Work around bug on native Windows.
21294         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
21295         against mingw bug.
21296         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
21297
21298 2011-02-12  Bruno Haible  <bruno@clisp.org>
21299
21300         Avoid setlocale bugs in tests.
21301         * modules/btowc (Dependencies): Add setlocale.
21302         * modules/c-strcase (Dependencies): Likewise.
21303         * modules/mbmemcasecmp (Dependencies): Likewise.
21304         * modules/mbmemcasecoll (Dependencies): Likewise.
21305         * modules/mbrtowc (Dependencies): Likewise.
21306         * modules/mbscasecmp (Dependencies): Likewise.
21307         * modules/mbscasestr (Dependencies): Likewise.
21308         * modules/mbschr (Dependencies): Likewise.
21309         * modules/mbscspn (Dependencies): Likewise.
21310         * modules/mbsinit (Dependencies): Likewise.
21311         * modules/mbsncasecmp (Dependencies): Likewise.
21312         * modules/mbsnrtowcs (Dependencies): Likewise.
21313         * modules/mbspbrk (Dependencies): Likewise.
21314         * modules/mbspcasecmp (Dependencies): Likewise.
21315         * modules/mbsrchr (Dependencies): Likewise.
21316         * modules/mbsrtowcs (Dependencies): Likewise.
21317         * modules/mbsspn (Dependencies): Likewise.
21318         * modules/mbsstr (Dependencies): Likewise.
21319         * modules/nl_langinfo (Dependencies): Likewise.
21320         * modules/quotearg (Dependencies): Likewise.
21321         * modules/unicase/locale-language (Dependencies): Likewise.
21322         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
21323         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
21324         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
21325         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
21326         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
21327         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
21328         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
21329         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
21330         * modules/vasnprintf-posix (Dependencies): Likewise.
21331         * modules/wcrtomb (Dependencies): Likewise.
21332         * modules/wcsnrtombs (Dependencies): Likewise.
21333         * modules/wcsrtombs (Dependencies): Likewise.
21334
21335 2011-02-12  Bruno Haible  <bruno@clisp.org>
21336
21337         setlocale: Workaround native Windows bug.
21338         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
21339         succeeds but sets LC_CTYPE to "C", report a failure.
21340         * tests/test-setlocale2.sh: New file.
21341         * tests/test-setlocale2.c: New file.
21342         * modules/setlocale-tests (Files): Add the new files.
21343         (Makefile.am): Enable test-setlocale2.sh test.
21344         * doc/posix-functions/setlocale.texi: Mention workaround.
21345
21346 2011-02-11  Bruno Haible  <bruno@clisp.org>
21347
21348         Tests for module 'setlocale'.
21349         * modules/setlocale-tests: New file.
21350         * tests/test-setlocale1.sh: New file.
21351         * tests/test-setlocale1.c: New file.
21352
21353         New module 'setlocale'.
21354         * lib/locale.in.h (setlocale): New declaration.
21355         * lib/setlocale.c: New file, based on
21356         gettext/gettext-runtime/intl/setlocale.c.
21357         * m4/setlocale.m4: New file.
21358         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
21359         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
21360         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
21361         REPLACE_SETLOCALE.
21362         * modules/setlocale: New file.
21363         * tests/test-locale-c++.cc: Test the declaration of setlocale.
21364         * doc/posix-functions/setlocale.texi: Mention the new module.
21365
21366 2011-02-11  Bruno Haible  <bruno@clisp.org>
21367
21368         Prepare for locale dependent tests on mingw.
21369         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
21370         because it has the wrong locale encoding.
21371         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
21372         French_France.1252 instead of "fr".
21373         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
21374         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
21375         because it has the wrong locale encoding.
21376         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
21377         native Windows, try Turkish_Turkey.65001.
21378         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
21379         Chinese_China.54936.
21380
21381         Prepare for locale dependent tests on mingw.
21382         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
21383         differently.
21384         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
21385         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
21386         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
21387         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21388
21389 2011-02-11  Eric Blake  <eblake@redhat.com>
21390
21391         strptime: avoid compiler warnings
21392         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
21393         compiler warnings about dead code.
21394         Reported by Daniel P. Berrange.
21395
21396 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
21397
21398         doc: update users.txt
21399         * users.txt: Add rcs.
21400
21401 2011-02-10  John W. Eaton  <jwe@gnu.org>
21402
21403         doc: update users.txt
21404         * users.txt: Add octave.
21405
21406 2011-02-10  Jim Meyering  <meyering@redhat.com>
21407
21408         doc: update users.txt
21409         * users.txt: Add iwhd.
21410
21411 2011-02-09  Bruno Haible  <bruno@clisp.org>
21412
21413         gnulib-tool: Make copyright notice adjustment more robust.
21414         * gnulib-tool (func_import): In sed_transform_main_lib_file,
21415         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
21416         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
21417         License".
21418         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
21419
21420 2011-02-06  Bruno Haible  <bruno@clisp.org>
21421
21422         New module 'towctrans'.
21423         * modules/towctrans: New file.
21424         * lib/wctype.in.h (towctrans): New declaration.
21425         * lib/towctrans.c: New file.
21426         * lib/towctrans-impl.h: New file.
21427         * m4/towctrans.m4: New file.
21428         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
21429         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
21430         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
21431         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
21432         * doc/posix-functions/towctrans.texi: Mention the new module.
21433
21434 2011-02-06  Bruno Haible  <bruno@clisp.org>
21435
21436         New module 'wctrans'.
21437         * modules/wctrans: New file.
21438         * lib/wctype.in.h (wctrans): New declaration.
21439         * lib/wctrans.c: New file.
21440         * lib/wctrans-impl.h: New file.
21441         * m4/wctrans.m4: New file.
21442         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
21443         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
21444         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
21445         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
21446         * doc/posix-functions/wctrans.texi: Mention the new module.
21447
21448 2011-02-06  Bruno Haible  <bruno@clisp.org>
21449
21450         New module 'iswctype'.
21451         * modules/iswctype: New file.
21452         * lib/wctype.in.h (iswctype): New declaration.
21453         * lib/iswctype.c: New file.
21454         * lib/iswctype-impl.h: New file.
21455         * m4/iswctype.m4: New file.
21456         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
21457         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
21458         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
21459         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
21460         * doc/posix-functions/iswctype.texi: Mention the new module and the
21461         HP-UX 11.00 problem.
21462
21463 2011-02-06  Bruno Haible  <bruno@clisp.org>
21464
21465         New module 'wctype'.
21466         * modules/wctype: Change to represent the wctype() substitute.
21467         * lib/wctype.in.h (wctype): New declaration.
21468         * lib/wctype.c: New file.
21469         * lib/wctype-impl.h: New file.
21470         * m4/wctype.m4: New file.
21471         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
21472         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
21473         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
21474         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
21475         * doc/posix-functions/wctype.texi: Mention the new module and the
21476         HP-UX 11.00 problem.
21477
21478 2011-02-06  Bruno Haible  <bruno@clisp.org>
21479
21480         wctype-h: Ensure wctype_t and wctrans_t are defined.
21481         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
21482         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
21483         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
21484         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
21485         HAVE_WCTRANS_T.
21486         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
21487
21488 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
21489
21490         flock: fix license typo
21491
21492         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
21493         omitted.
21494
21495 2011-02-08  Bruno Haible  <bruno@clisp.org>
21496
21497         Split large sed scripts, for HP-UX sed.
21498         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
21499         to avoid HP-UX limit of 99 commands, in the near future.
21500         * modules/stdlib (Makefile.am): Likewise.
21501         * modules/unistd (Makefile.am): Likewise.
21502         * modules/wchar (Makefile.am): Likewise.
21503         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21504         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
21505         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
21506
21507 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21508             Bruno Haible  <bruno@clisp.org>
21509
21510         stdlib: improve random_r modularization
21511         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
21512         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
21513         you also need the random_r module to get this material right.
21514         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
21515         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
21516         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
21517
21518 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21519
21520         stdlib: don't depend on stdint
21521         * lib/stdlib.in.h: Don't include <stdint.h> merely because
21522         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
21523         be independent of whether stdint.h is needed.
21524         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
21525         here, instead of ...
21526         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
21527         struct random_data should be using the random_r module, not just
21528         the stdlib module (which wouldn't make sense: what package needs
21529         just struct random_data without also needing random_r?).
21530         * modules/stdlib (Depends-on): Remove stdint.
21531
21532         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
21533         See the thread rooted at
21534         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
21535         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
21536         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
21537         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
21538         __VMS)); previously it was always included (via fcntl--.h).
21539         (getloadavg): Do not use c_strtod.  Instead, approximate it by
21540         hand; this is good enough for load averages.  Also, do not use
21541         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
21542         flags directly if available and don't bother otherwise.  (Packages
21543         that need the extra reliability should use the modules that define
21544         these flags on older platforms that lack them.)
21545         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
21546         fcntl-safer.
21547
21548 2011-02-08  Jim Meyering  <meyering@redhat.com>
21549
21550         di-set.h, ino-map.h: add multiple-inclusion guard
21551         Technically, the guard is required only for ino-map.h, due to its
21552         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
21553         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
21554         * lib/ino-map.h: Likewise.
21555
21556 2011-02-06  Bruno Haible  <bruno@clisp.org>
21557
21558         iswblank: Ensure declaration on glibc systems.
21559         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
21560         * modules/iswblank (Dependencies): Add 'extensions'.
21561         * doc/posix-functions/iswblank.texi: Document the glibc problem.
21562
21563 2011-02-06  Bruno Haible  <bruno@clisp.org>
21564
21565         New module 'iswblank'.
21566         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
21567         * modules/iswblank: New file.
21568         * modules/wctype-h (Files): Remove lib/iswblank.c.
21569         (Makefile.am): Substitute GNULIB_ISWBLANK.
21570         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
21571         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
21572         (gl_WCTYPE_H_DEFAULTS): New macro.
21573         (gl_WCTYPE_H): Require it. Remove iswblank related code.
21574         * modules/iswblank-tests: New file.
21575         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
21576         * tests/test-wctype-h.c (main): Remove iswblank tests.
21577         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
21578         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
21579         of 'wctype-h'.
21580         * NEWS: Mention the change.
21581         * modules/mbchar (Depends-on): Add iswblank.
21582
21583 2011-02-08  Bruno Haible  <bruno@clisp.org>
21584
21585         di-set tests: Refactor.
21586         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
21587         unnecessary includes.
21588         (ASSERT): Remove macro.
21589         (main): Make C90 compliant by avoiding variable declaration after
21590         statement.
21591         * modules/di-set-tests (Files): Add tests/macros.h.
21592
21593 2011-02-08  Bruno Haible  <bruno@clisp.org>
21594
21595         ino-map tests: Refactor.
21596         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
21597         unnecessary includes.
21598         (ASSERT): Remove macro.
21599         (main): Make C90 compliant by avoiding variable declaration after
21600         statement.
21601         * modules/ino-map-tests (Files): Add tests/macros.h.
21602
21603 2011-02-08  Jim Meyering  <meyering@redhat.com>
21604
21605         di-set: add "const" to a cast
21606         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
21607         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
21608
21609 2011-02-06  Bruno Haible  <bruno@clisp.org>
21610
21611         Rename module 'wctype' to 'wctype-h'.
21612         * modules/wctype-h: Renamed from modules/wctype.
21613         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
21614         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
21615         (Files, Depends-on, Makefile.am): Update.
21616         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
21617         (Files, Makefile.am): Update.
21618         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
21619         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
21620         * doc/posix-headers/wctype.texi: Update.
21621         * doc/posix-functions/iswalnum.texi: Update.
21622         * doc/posix-functions/iswalpha.texi: Update.
21623         * doc/posix-functions/iswblank.texi: Update.
21624         * doc/posix-functions/iswcntrl.texi: Update.
21625         * doc/posix-functions/iswdigit.texi: Update.
21626         * doc/posix-functions/iswgraph.texi: Update.
21627         * doc/posix-functions/iswlower.texi: Update.
21628         * doc/posix-functions/iswprint.texi: Update.
21629         * doc/posix-functions/iswpunct.texi: Update.
21630         * doc/posix-functions/iswspace.texi: Update.
21631         * doc/posix-functions/iswupper.texi: Update.
21632         * doc/posix-functions/iswxdigit.texi: Update.
21633         * doc/posix-functions/towlower.texi: Update.
21634         * doc/posix-functions/towupper.texi: Update.
21635         * NEWS: Mention the change.
21636         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
21637         * modules/mbchar (Dependencies): Likewise.
21638         * modules/mbswidth (Dependencies): Likewise.
21639         * modules/quotearg (Dependencies): Likewise.
21640         * modules/regex (Dependencies): Likewise.
21641         * modules/wcscasecmp (Dependencies): Likewise.
21642         * modules/wcsncasecmp (Dependencies): Likewise.
21643         * modules/wcwidth (Dependencies): Likewise.
21644
21645 2011-02-06  Bruno Haible  <bruno@clisp.org>
21646
21647         New module 'wcswidth'.
21648         * modules/wcswidth: New file.
21649         * lib/wchar.in.h (wcswidth): New declaration.
21650         * lib/wcswidth.c: New file.
21651         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
21652         * m4/wcswidth.m4: New file.
21653         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
21654         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
21655         REPLACE_WCSWIDTH.
21656         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
21657         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
21658         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
21659         * doc/posix-functions/wcswidth.texi: Mention the new module.
21660
21661 2011-02-06  Bruno Haible  <bruno@clisp.org>
21662
21663         New module 'wcstok'.
21664         * modules/wcstok: New file.
21665         * lib/wchar.in.h (wcstok): New declaration.
21666         * lib/wcstok.c: New file.
21667         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
21668         * m4/wcstok.m4: New file.
21669         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
21670         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
21671         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
21672         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
21673         * doc/posix-functions/wcstok.texi: Mention the new module.
21674
21675 2011-02-06  Bruno Haible  <bruno@clisp.org>
21676
21677         New module 'wcsstr'.
21678         * modules/wcsstr: New file.
21679         * lib/wchar.in.h (wcsstr): New declaration.
21680         * lib/wcsstr.c: New file.
21681         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
21682         * m4/wcsstr.m4: New file.
21683         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
21684         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
21685         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
21686         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
21687         * doc/posix-functions/wcsstr.texi: Mention the new module.
21688
21689 2011-02-06  Bruno Haible  <bruno@clisp.org>
21690
21691         New module 'wcspbrk'.
21692         * modules/wcspbrk: New file.
21693         * lib/wchar.in.h (wcspbrk): New declaration.
21694         * lib/wcspbrk.c: New file.
21695         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
21696         * m4/wcspbrk.m4: New file.
21697         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
21698         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
21699         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
21700         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
21701         * doc/posix-functions/wcspbrk.texi: Mention the new module.
21702
21703 2011-02-06  Bruno Haible  <bruno@clisp.org>
21704
21705         New module 'wcsspn'.
21706         * modules/wcsspn: New file.
21707         * lib/wchar.in.h (wcsspn): New declaration.
21708         * lib/wcsspn.c: New file.
21709         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
21710         * m4/wcsspn.m4: New file.
21711         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
21712         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
21713         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
21714         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
21715         * doc/posix-functions/wcsspn.texi: Mention the new module.
21716
21717 2011-02-06  Bruno Haible  <bruno@clisp.org>
21718
21719         New module 'wcscspn'.
21720         * modules/wcscspn: New file.
21721         * lib/wchar.in.h (wcscspn): New declaration.
21722         * lib/wcscspn.c: New file.
21723         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
21724         * m4/wcscspn.m4: New file.
21725         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
21726         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
21727         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
21728         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
21729         * doc/posix-functions/wcscspn.texi: Mention the new module.
21730
21731 2011-02-06  Bruno Haible  <bruno@clisp.org>
21732
21733         New module 'wcsrchr'.
21734         * modules/wcsrchr: New file.
21735         * lib/wchar.in.h (wcsrchr): New declaration.
21736         * lib/wcsrchr.c: New file.
21737         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
21738         * m4/wcsrchr.m4: New file.
21739         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
21740         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
21741         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
21742         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
21743         * doc/posix-functions/wcsrchr.texi: Mention the new module.
21744
21745 2011-02-06  Bruno Haible  <bruno@clisp.org>
21746
21747         New module 'wcschr'.
21748         * modules/wcschr: New file.
21749         * lib/wchar.in.h (wcschr): New declaration.
21750         * lib/wcschr.c: New file.
21751         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
21752         * m4/wcschr.m4: New file.
21753         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
21754         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
21755         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
21756         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
21757         * doc/posix-functions/wcschr.texi: Mention the new module.
21758
21759 2011-02-06  Bruno Haible  <bruno@clisp.org>
21760
21761         New module 'wcsdup'.
21762         * modules/wcsdup: New file.
21763         * lib/wchar.in.h (wcsdup): New declaration.
21764         * lib/wcsdup.c: New file.
21765         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
21766         * m4/wcsdup.m4: New file.
21767         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
21768         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
21769         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
21770         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
21771         * doc/posix-functions/wcsdup.texi: Mention the new module.
21772
21773 2011-02-06  Bruno Haible  <bruno@clisp.org>
21774
21775         New module 'wcsxfrm'.
21776         * modules/wcsxfrm: New file.
21777         * lib/wchar.in.h (wcsxfrm): New declaration.
21778         * lib/wcsxfrm.c: New file.
21779         * lib/wcsxfrm-impl.h: New file.
21780         * m4/wcsxfrm.m4: New file.
21781         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
21782         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
21783         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
21784         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
21785         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
21786
21787 2011-02-06  Bruno Haible  <bruno@clisp.org>
21788
21789         New module 'wcscoll'.
21790         * modules/wcscoll: New file.
21791         * lib/wchar.in.h (wcscoll): New declaration.
21792         * lib/wcscoll.c: New file.
21793         * lib/wcscoll-impl.h: New file.
21794         * m4/wcscoll.m4: New file.
21795         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
21796         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
21797         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
21798         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
21799         * doc/posix-functions/wcscoll.texi: Mention the new module.
21800
21801 2011-02-06  Bruno Haible  <bruno@clisp.org>
21802
21803         New module 'wcsncasecmp'.
21804         * modules/wcsncasecmp: New file.
21805         * lib/wchar.in.h (wcsncasecmp): New declaration.
21806         * lib/wcsncasecmp.c: New file.
21807         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
21808         * m4/wcsncasecmp.m4: New file.
21809         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
21810         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
21811         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
21812         HAVE_WCSNCASECMP.
21813         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
21814         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
21815
21816 2011-02-06  Bruno Haible  <bruno@clisp.org>
21817
21818         New module 'wcscasecmp'.
21819         * modules/wcscasecmp: New file.
21820         * lib/wchar.in.h (wcscasecmp): New declaration.
21821         * lib/wcscasecmp.c: New file.
21822         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
21823         * m4/wcscasecmp.m4: New file.
21824         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
21825         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
21826         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
21827         HAVE_WCSCASECMP.
21828         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
21829         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
21830
21831 2011-02-05  Bruno Haible  <bruno@clisp.org>
21832
21833         New module 'wcsncmp'.
21834         * modules/wcsncmp: New file.
21835         * lib/wchar.in.h (wcsncmp): New declaration.
21836         * lib/wcsncmp.c: New file.
21837         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
21838         * m4/wcsncmp.m4: New file.
21839         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
21840         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
21841         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
21842         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
21843         * doc/posix-functions/wcsncmp.texi: Mention the new module.
21844
21845 2011-02-05  Bruno Haible  <bruno@clisp.org>
21846
21847         New module 'wcscmp'.
21848         * modules/wcscmp: New file.
21849         * lib/wchar.in.h (wcscmp): New declaration.
21850         * lib/wcscmp.c: New file.
21851         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
21852         * m4/wcscmp.m4: New file.
21853         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
21854         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
21855         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
21856         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
21857         * doc/posix-functions/wcscmp.texi: Mention the new module.
21858
21859 2011-02-05  Bruno Haible  <bruno@clisp.org>
21860
21861         New module 'wcsncat'.
21862         * modules/wcsncat: New file.
21863         * lib/wchar.in.h (wcsncat): New declaration.
21864         * lib/wcsncat.c: New file.
21865         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
21866         * m4/wcsncat.m4: New file.
21867         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
21868         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
21869         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
21870         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
21871         * doc/posix-functions/wcsncat.texi: Mention the new module.
21872
21873 2011-02-05  Bruno Haible  <bruno@clisp.org>
21874
21875         New module 'wcscat'.
21876         * modules/wcscat: New file.
21877         * lib/wchar.in.h (wcscat): New declaration.
21878         * lib/wcscat.c: New file.
21879         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
21880         * m4/wcscat.m4: New file.
21881         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
21882         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
21883         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
21884         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
21885         * doc/posix-functions/wcscat.texi: Mention the new module.
21886
21887 2011-02-05  Bruno Haible  <bruno@clisp.org>
21888
21889         New module 'wcpncpy'.
21890         * modules/wcpncpy: New file.
21891         * lib/wchar.in.h (wcpncpy): New declaration.
21892         * lib/wcpncpy.c: New file.
21893         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
21894         * m4/wcpncpy.m4: New file.
21895         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
21896         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
21897         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
21898         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
21899         * doc/posix-functions/wcpncpy.texi: Mention the new module.
21900
21901 2011-02-05  Bruno Haible  <bruno@clisp.org>
21902
21903         New module 'wcsncpy'.
21904         * modules/wcsncpy: New file.
21905         * lib/wchar.in.h (wcsncpy): New declaration.
21906         * lib/wcsncpy.c: New file.
21907         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
21908         * m4/wcsncpy.m4: New file.
21909         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
21910         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
21911         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
21912         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
21913         * doc/posix-functions/wcsncpy.texi: Mention the new module.
21914
21915 2011-02-05  Bruno Haible  <bruno@clisp.org>
21916
21917         New module 'wcpcpy'.
21918         * modules/wcpcpy: New file.
21919         * lib/wchar.in.h (wcpcpy): New declaration.
21920         * lib/wcpcpy.c: New file.
21921         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
21922         * m4/wcpcpy.m4: New file.
21923         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
21924         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
21925         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
21926         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
21927         * doc/posix-functions/wcpcpy.texi: Mention the new module.
21928
21929 2011-02-05  Bruno Haible  <bruno@clisp.org>
21930
21931         New module 'wcscpy'.
21932         * modules/wcscpy: New file.
21933         * lib/wchar.in.h (wcscpy): New declaration.
21934         * lib/wcscpy.c: New file.
21935         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
21936         * m4/wcscpy.m4: New file.
21937         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
21938         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
21939         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
21940         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
21941         * doc/posix-functions/wcscpy.texi: Mention the new module.
21942
21943 2011-02-05  Bruno Haible  <bruno@clisp.org>
21944
21945         New module 'wcsnlen'.
21946         * modules/wcsnlen: New file.
21947         * lib/wchar.in.h (wcsnlen): New declaration.
21948         * lib/wcsnlen.c: New file.
21949         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
21950         * m4/wcsnlen.m4: New file.
21951         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
21952         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
21953         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
21954         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
21955         * doc/posix-functions/wcsnlen.texi: Mention the new module.
21956
21957 2011-02-05  Bruno Haible  <bruno@clisp.org>
21958
21959         New module 'wcslen'.
21960         * modules/wcslen: New file.
21961         * lib/wchar.in.h (wcslen): New declaration.
21962         * lib/wcslen.c: New file.
21963         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
21964         * m4/wcslen.m4: New file.
21965         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
21966         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
21967         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
21968         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
21969         * doc/posix-functions/wcslen.texi: Mention the new module.
21970
21971 2011-02-05  Bruno Haible  <bruno@clisp.org>
21972
21973         New module 'wmemset'.
21974         * modules/wmemset: New file.
21975         * lib/wchar.in.h (wmemset): New declaration.
21976         * lib/wmemset.c: New file.
21977         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
21978         * m4/wmemset.m4: New file.
21979         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
21980         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
21981         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
21982         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
21983         * doc/posix-functions/wmemset.texi: Mention the new module.
21984
21985 2011-02-05  Bruno Haible  <bruno@clisp.org>
21986
21987         New module 'wmemmove'.
21988         * modules/wmemmove: New file.
21989         * lib/wchar.in.h (wmemmove): New declaration.
21990         * lib/wmemmove.c: New file.
21991         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
21992         * m4/wmemmove.m4: New file.
21993         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
21994         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
21995         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
21996         HAVE_WMEMMOVE.
21997         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
21998         * doc/posix-functions/wmemmove.texi: Mention the new module.
21999
22000 2011-02-05  Bruno Haible  <bruno@clisp.org>
22001
22002         New module 'wmemcpy'.
22003         * modules/wmemcpy: New file.
22004         * lib/wchar.in.h (wmemcpy): New declaration.
22005         * lib/wmemcpy.c: New file.
22006         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
22007         * m4/wmemcpy.m4: New file.
22008         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
22009         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
22010         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
22011         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
22012         * doc/posix-functions/wmemcpy.texi: Mention the new module.
22013
22014 2011-02-05  Bruno Haible  <bruno@clisp.org>
22015
22016         New module 'wmemcmp'.
22017         * modules/wmemcmp: New file.
22018         * lib/wchar.in.h (wmemcmp): New declaration.
22019         * lib/wmemcmp.c: New file.
22020         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
22021         * m4/wmemcmp.m4: New file.
22022         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
22023         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
22024         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
22025         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
22026         * doc/posix-functions/wmemcmp.texi: Mention the new module.
22027
22028 2011-02-07  Jim Meyering  <meyering@redhat.com>
22029
22030         di-set, ino-map: new modules, from coreutils
22031         * lib/di-set.c: New file.
22032         * lib/di-set.h: Likewise.
22033         * lib/ino-map.c: Likewise.
22034         * lib/ino-map.h: Likewise.
22035         * modules/di-set: Likewise.
22036         * modules/di-set-tests: Likewise.
22037         * modules/ino-map: Likewise.
22038         * modules/ino-map-tests: Likewise.
22039         * tests/test-di-set.c: Likewise.
22040         * tests/test-ino-map.c: Likewise.
22041
22042 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
22043
22044         getloadavg: merge minor changes from Emacs
22045
22046         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
22047         (getloadavg): Use memset, not bzero.
22048
22049         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
22050         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
22051         clash (bug#86).
22052
22053 2010-11-14  Bruno Haible  <bruno@clisp.org>
22054
22055         Allow multiple gnulib generated replacements to coexist.
22056         * lib/getopt.in.h (struct option): Avoid identical redefinition.
22057         * lib/inttypes.in.h (imaxdiv_t): Likewise.
22058         * lib/langinfo.in.h (nl_item): Likewise.
22059         * lib/math.in.h (_NaN, NAN): Likewise.
22060         * lib/netdb.in.h (struct addrinfo): Likewise.
22061         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
22062         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
22063         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
22064         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
22065         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
22066         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
22067         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
22068         pthread_mutexattr_init, pthread_mutexattr_settype,
22069         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
22070         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
22071         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
22072         pthread_spin_trylock, pthread_spin_unlock): Likewise.
22073         * lib/sched.in.h (struct sched_param): Likewise.
22074         * lib/se-selinux.in.h (security_class_t, security_context_t,
22075         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
22076         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
22077         lsetfilecon, fsetfilecon, security_check_context,
22078         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
22079         Likewise.
22080         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
22081         Likewise.
22082         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
22083         _gl_function_taking_int_returning_void_t, union sigval,
22084         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
22085         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
22086         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
22087         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
22088         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
22089         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
22090         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
22091         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
22092         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
22093         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
22094         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
22095         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
22096         socklen_t, rpl_fd_isset): Likewise.
22097         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
22098         * lib/sys_time.in.h (struct timeval): Likewise.
22099         * lib/sys_times.in.h (struct tms): Likewise.
22100         * lib/sys_utsname.in.h (struct utsname):
22101         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
22102         * lib/unistd.in.h (getpagesize): Likewise.
22103         * lib/wchar.in.h (mbstate_t): Likewise.
22104         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
22105         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
22106         towlower, towupper): Likewise.
22107         Reported by Sam Steingold <sds@gnu.org>.
22108
22109 2011-02-05  Eric Blake  <eblake@redhat.com>
22110
22111         unsetenv: work around Haiku issues
22112         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
22113         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
22114
22115 2010-12-30  Bruce Korb  <bkorb@gnu.org>
22116
22117         libposix: avoid calling error() within libposix
22118         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
22119         is defined.
22120
22121 2011-02-05  Eric Blake  <eblake@redhat.com>
22122
22123         strerror_r-posix: port to cygwin
22124         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
22125         implementation.
22126         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
22127         * tests/test-strerror_r.c (main): Fix test.
22128         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
22129         issue.
22130
22131 2011-02-05  Bruno Haible  <bruno@clisp.org>
22132
22133         New module 'wmemchr'.
22134         * modules/wmemchr: New file.
22135         * lib/wchar.in.h (wmemchr): New declaration.
22136         * lib/wmemchr.c: New file.
22137         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
22138         * m4/wmemchr.m4: New file.
22139         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
22140         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
22141         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
22142         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
22143         * doc/posix-functions/wmemchr.texi: Mention the new module.
22144
22145 2011-02-04  Eric Blake  <eblake@redhat.com>
22146
22147         fdopendir: detect FreeBSD bug
22148         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
22149         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
22150
22151 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
22152
22153         stdbool: do not define HAVE_STDBOOL_H
22154         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
22155         AC_HEADER_STDBOOL.  All uses changed.  Do not define
22156         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
22157         imported from the latest Autoconf git.  It was motivated by Emacs,
22158         which uses gnulib but does not need HAVE_STDBOOL_H.
22159
22160 2011-02-04  Bruno Haible  <bruno@clisp.org>
22161
22162         wcsnrtombs: Prepare for new module wwcsnrtombs.
22163         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
22164         * lib/wcsnrtombs.c: Include it.
22165         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
22166
22167         wcsrtombs: Prepare for new module wwcsrtombs.
22168         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
22169         * lib/wcsrtombs.c: Include it.
22170         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
22171
22172         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
22173         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
22174         * lib/mbsnrtowcs.c: Include it.
22175         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
22176
22177         mbsrtowcs: Prepare for new module mbsrtowwcs.
22178         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
22179         * lib/mbsrtowcs.c: Include it.
22180         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
22181
22182 2011-02-04  Bruno Haible  <bruno@clisp.org>
22183
22184         vasnprintf: Reduce use of malloc for small format strings.
22185         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
22186         (arguments): Add room for the first 7 arguments.
22187         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
22188         (char_directives, u8_directives, u16_directives, u32_directives): Add
22189         room for the first 7 directives.
22190         * lib/printf-parse.c: Include <string.h>.
22191         (PRINTF_PARSE): Change memory handling code so that it uses the first
22192         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
22193         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
22194         Reported by Pádraig Brady <P@draigbrady.com>.
22195
22196 2011-01-31  Eric Blake  <eblake@redhat.com>
22197
22198         dup2: work around Haiku bug
22199         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
22200         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
22201         * doc/posix-functions/dup2.texi (dup2): Document the bug.
22202         * tests/test-dup2.c (main): Enhance test.
22203
22204 2011-01-31  Simon Josefsson  <simon@josefsson.org>
22205
22206         doc: off_t is not available in eglibc 2.11.2 stdio.h.
22207         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
22208         declared by eglibc 2.11.2.
22209         * lib/stdio.in.h: Likewise.
22210
22211 2011-01-31  Eric Blake  <eblake@redhat.com>
22212
22213         ignore-value: add missing test dependency
22214         * tests/test-ignore-value.c: Revert previous change; stdio.h
22215         provides off_t.
22216         * modules/ignore-value-tests (Depends-on): Add missing dependency.
22217
22218 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
22219
22220         mktime: clarify long_int width checking
22221         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
22222         the top level, to make it clearer that the assumption about
22223         long_int width is being checked.  See
22224         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
22225
22226 2011-01-30  Simon Josefsson  <simon@josefsson.org>
22227
22228         ignore-value: Fix self-test.
22229         * tests/test-ignore-value.c: Include sys/types.h for off_t.
22230
22231 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
22232
22233         TYPE_MAXIMUM: avoid theoretically undefined behavior
22234         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
22235         negative number, which the C Standard says has undefined behavior.
22236         In practice this is not a problem, but might as well do it by the book.
22237         Reported by Rich Felker and Eric Blake; see
22238         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
22239         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
22240         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
22241         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22242         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
22243         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22244         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
22245
22246         mktime: #undef mktime before #defining it
22247         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
22248
22249         mktime: systematically normalize tm_isdst comparisons
22250         * lib/mktime.c (isdst_differ): New function.
22251         (__mktime_internal): Use it systematically for all isdst comparisons.
22252         This completes the fix for libc BZ #6723, and removes the need for
22253         normalizing tm_isdst.  See
22254         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
22255         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
22256
22257         mktime: fix some integer overflow issues and sidestep the rest
22258
22259         This was prompted by a bug report by Benjamin Lindner for MinGW
22260         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
22261         His bug is due to signed integer overflow (0 - INT_MIN), and I
22262         I scanned through mktime.c looking for other integer overflow
22263         problems, fixing all the bugs I found.
22264
22265         Although the C Standard says the resulting code is still not safe
22266         in the presence of integer overflow, in practice it should be good
22267         enough for all real-world two's-complement implementations, except
22268         for debugging environments that deliberately trap on integer
22269         overflow (e.g., gcc -ftrapv).
22270
22271         * lib/mktime.c (WRAPV): New macro.
22272         (SHR): Also check that long_int and time_t shift right in the
22273         usual way, before using the fast-but-unportable method.
22274         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
22275         used.  The code already assumed two's complement, so there's
22276         no need to test for alternatives.  All uses removed.
22277         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
22278         the C standard.  Problem reported by Rich Felker in
22279         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
22280         (twos_complement_arithmetic): Also check long_int and time_t.
22281         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
22282         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
22283         (__mktime_internal): Avoid integer overflow with unary subtraction
22284         in two instances where -1 - X is an adequate replacement for -X,
22285         since the calculations are approximate.
22286
22287 2011-01-29  Eric Blake  <eblake@redhat.com>
22288
22289         mktime: avoid infinite loop
22290         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
22291         type; behavior is still undefined but portable to all known targets.
22292         Reported by Rich Felker.
22293
22294 2011-01-29  Simon Josefsson  <simon@josefsson.org>
22295
22296         rename, unlink, same-inode: Relicense.
22297         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
22298         * modules/unlink (License): Likewise.
22299         * modules/same-inode (License): Likewise.
22300
22301 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
22302
22303         mktime: avoid problems on NetBSD 5 / i386
22304         * lib/mktime.c (long_int): New type.  This works around a problem
22305         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
22306         but time_t is 64 bits, and where I expect the existing code is
22307         wrong in some cases.
22308         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
22309         (ydhms_diff): Bring back the compile-time check for wide-enough
22310         year and yday.
22311
22312         mktime: fix misspelling in comment
22313         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
22314         This merges all recent glibc changes of importance.
22315
22316 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22317
22318         move-if-change: cope with concurrent mv of identical file.
22319         * build-aux/move-if-change (CMPPROG): Accept environment
22320         variable as an override for `cmp'.
22321         (usage): Document CMPPROG.
22322         Adjust comparison to drop stdout.  Cope with failure of mv if
22323         the target file exists and is identical to the source, for
22324         parallel builds.
22325         Report from H.J. Lu against binutils in PR binutils/12283.
22326
22327 2011-01-28  Bruce Korb  <bkorb@gnu.org>
22328
22329         * users.txt: Mention sharutils.
22330
22331 2011-01-28  Simon Josefsson  <simon@josefsson.org>
22332
22333         * users.txt: Mention OATH Toolkit.
22334
22335 2011-01-27  Bruno Haible  <bruno@clisp.org>
22336
22337         Prepare for supporting FreeBSD 10.
22338         * build-aux/config.libpath: Remove handling of freebsd1*.
22339
22340 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
22341
22342         Prepare for supporting FreeBSD 10.
22343         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
22344         match FreeBSD 10.0.
22345
22346 2011-01-27  Bruno Haible  <bruno@clisp.org>
22347
22348         vma-iter, get-rusage-as: Add OpenBSD support.
22349         * modules/vma-iter (configure.ac): Test for mquery.
22350         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
22351         * lib/vma-iter.c: Include <sys/mman.h>.
22352         (vma_iterate): Add an implementation based on mquery().
22353         * lib/resource-ext.h (get_rusage_as): Update comments.
22354         * lib/get-rusage-as.c: Likewise.
22355         * lib/get-rusage-data.c: Likewise.
22356
22357 2011-01-26  Karl Berry  <karl@gnu.org>
22358
22359         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
22360         variables to make it easier to override the makeinfo program used.
22361
22362 2011-01-26  Eric Blake  <eblake@redhat.com>
22363
22364         fcntl: work around Haiku F_DUPFD bugs
22365         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
22366         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
22367         cloexec bit on duplication.
22368         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
22369
22370 2011-01-26  Bruno Haible  <bruno@clisp.org>
22371
22372         Enable memory leak tests on AIX.
22373         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
22374         * tests/test-fprintf-posix3.c (main): Likewise.
22375
22376 2011-01-26  Bruno Haible  <bruno@clisp.org>
22377
22378         Tests for module 'get-rusage-data'.
22379         * modules/get-rusage-data-tests: New file.
22380         * tests/test-get-rusage-data.c: New file.
22381
22382         New module 'get-rusage-data'.
22383         * lib/resource-ext.h (get_rusage_data): New declaration.
22384         * lib/get-rusage-data.c: New file.
22385         * modules/get-rusage-data: New file.
22386
22387 2011-01-25  Bruno Haible  <bruno@clisp.org>
22388
22389         get-rusage-as: Allow for easier testing.
22390         * lib/resource-ext.h (get_rusage_as): Add comment.
22391         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
22392         (main): New function for interactive testing.
22393
22394 2011-01-25  Bruno Haible  <bruno@clisp.org>
22395
22396         vma-iter: Treat Haiku like BeOS.
22397         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
22398         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
22399
22400 2011-01-25  Eric Blake  <eblake@redhat.com>
22401
22402         c-stack: fix regression on cygwin when libsigsegv is present
22403         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
22404
22405 2011-01-24  Bruno Haible  <bruno@clisp.org>
22406
22407         vma-iter: Avoid empty intervals.
22408         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
22409         on an empty interval.
22410
22411 2011-01-24  Jim Meyering  <meyering@redhat.com>
22412
22413         u64: remove unnecessary #include
22414         * lib/u64.h: Don't include <stddef.h>.  It was not used.
22415
22416 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22417
22418         Allow the user to avoid the HAVE_RAW_DECL_* macros.
22419         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
22420
22421 2011-01-23  Bruno Haible  <bruno@clisp.org>
22422
22423         New module 'vma-iter'.
22424         * lib/vma-iter.h: New file.
22425         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
22426         * modules/vma-iter: New file.
22427         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
22428         for get_rusage_as_via_iterator.
22429         (vma_iterate_callback): New function.
22430         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
22431         * modules/get-rusage-as (Depends-on): Add vma-iter.
22432
22433 2011-01-23  Bruno Haible  <bruno@clisp.org>
22434
22435         uninorm: Tweak includes.
22436         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
22437         Reported by Jim Meyering.
22438
22439 2011-01-23  Bruno Haible  <bruno@clisp.org>
22440
22441         get-rusage-as: Improve on NetBSD.
22442         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
22443         /proc, like on FreeBSD.
22444
22445 2011-01-23  Jim Meyering  <meyering@redhat.com>
22446
22447         xreadlink.h: remove unnecessary #include
22448         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
22449
22450         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
22451         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
22452
22453 2011-01-23  Bruno Haible  <bruno@clisp.org>
22454
22455         get-rusage-as: Fix bug.
22456         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
22457         original limit when aborting the first loop.
22458
22459 2011-01-23  Bruno Haible  <bruno@clisp.org>
22460
22461         wctype: Ensure valid C syntax.
22462         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
22463         unconditionally, instead of gl_NEXT_HEADERS conditionally.
22464
22465 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
22466
22467         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
22468         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
22469         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
22470         as they are needed only for configure's test case.
22471         This removes two unnecessary symbols from config.h.
22472
22473         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
22474         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
22475         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
22476         AC_CHECK_HEADERS_ONCE on a header that we also invoke
22477         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
22478         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
22479         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
22480         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
22481         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22482         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22483         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
22484         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22485         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22486         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22487         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
22488         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22489         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
22490         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22491
22492 2011-01-21  Eric Blake  <eblake@redhat.com>
22493
22494         maintainer-makefile: work with older git for submodule check
22495         * top/maint.mk (public-submodule-commit): Rewrite to avoid
22496         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
22497         Reported by Matthias Bolte.
22498
22499         bootstrap: minor portability fixes
22500         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
22501         (usage): Omit leading capital and trailing . on help phrases, per
22502         GNU Coding Standards.
22503         (check_versions, top level): Prefix messages with script name.
22504
22505 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
22506
22507         bootstrap: support --no-git option
22508         * build-aux/bootstrap: Add --no-git option, to be used when
22509         --gnulib-srcdir points to the exact desired checkout.
22510
22511 2011-01-21  Eric Blake  <eblake@redhat.com>
22512
22513         strerror_r-posix: work with glibc 2.13
22514         * lib/strerror_r.c (strerror_r): Fix return type.
22515
22516 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22517             Bruno Haible  <bruno@clisp.org>
22518
22519         uN_strstr: New unit tests.
22520         * modules/unistr/u8-strstr-tests: New file.
22521         * modules/unistr/u16-strstr-tests: New file.
22522         * modules/unistr/u32-strstr-tests: New file.
22523         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
22524         * tests/unistr/test-u8-strstr.c: New file.
22525         * tests/unistr/test-u16-strstr.c: New file.
22526         * tests/unistr/test-u32-strstr.c: New file.
22527
22528 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22529             Bruno Haible  <bruno@clisp.org>
22530
22531         Make uN_strstr functions O(n) worst-case.
22532         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
22533         16-bit and 32-bit unit cases, use the unibyte algorithm from
22534         lib/mbsstr.c.
22535         * lib/unistr/u8-strstr.c: Include <string.h>.
22536         (UNIT_IS_UINT8_T): New macro.
22537         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
22538         (U_STRLEN, U_STRNLEN): New macros.
22539         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
22540         (U_STRLEN, U_STRNLEN): New macros.
22541         * modules/unistr/u8-strstr (Depends-on): Add strstr.
22542         (configure.ac): Update required libunistring version.
22543         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
22544         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
22545         malloca.
22546         (configure.ac): Update required libunistring version.
22547         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
22548         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
22549         malloca.
22550         (configure.ac): Update required libunistring version.
22551
22552 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22553             Bruno Haible  <bruno@clisp.org>
22554
22555         Prepare for faster uN_strstr functions.
22556         * lib/str-kmp.h: Support definable UNITs.
22557         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
22558         needle_len argument.
22559         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
22560         * lib/mbscasestr.c (mbscasestr): Likewise.
22561
22562 2011-01-21  Pádraig Brady <P@draigBrady.com>
22563
22564         malloca-tests: make faster by unsetting MALLOC_PERTURB_
22565         * tests/test-malloca.c (main): Unset the environment variable
22566         to greatly speed up the test.
22567         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
22568         * modules/malloca-tests: Depend on unsetenv.
22569
22570 2011-01-21  Pádraig Brady <P@draigBrady.com>
22571
22572         ignore-value: remove stdint dependency
22573         * lib/ignore-value.h: Remove <stdint.h>
22574         * modules/ignore-value: Remove stdint dependency.
22575
22576 2011-01-21  Jim Meyering  <meyering@redhat.com>
22577
22578         maint.mk: adjust variable name to be consistent with other gl_ vars
22579         * top/maint.mk (gl_public_submodule_commit): Rename the variable
22580         to be lower case.
22581
22582 2011-01-20  Jim Meyering  <meyering@redhat.com>
22583
22584         maint.mk: make "check" depend on public-submodule-commit by default
22585         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
22586
22587 2011-01-20  Bruno Haible  <bruno@clisp.org>
22588
22589         mbfile, mbiter: Complete change from 2008-12-21.
22590         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
22591         * m4/mbiter.m4 (gl_MBITER): Likewise.
22592
22593 2011-01-20  Jim Meyering  <meyering@redhat.com>
22594
22595         init.sh: insert space between each function name and "()"
22596         * tests/init.sh: Make it a little easier to see that a function's
22597         name is "warn_", and not "warn" when looking at the first part of
22598         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
22599
22600 2011-01-20  Jim Meyering  <meyering@redhat.com>
22601
22602         mountlist: clean up code formatting
22603         * lib/mountlist.c (read_file_system_list): Split a long line,
22604         correct bracing style, use NULL in place of "(struct statfs *)0",
22605         don't parenthesize return value, add spaces around "=" and after
22606         ";-in-for-stmt".
22607
22608 2011-01-14  Markus Duft <mduft@gentoo.org>
22609
22610         mountlist: add support for Interix
22611         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
22612         Apply statvfs to all entries of /dev/fs.
22613         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
22614         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
22615
22616 2011-01-20  Jim Meyering  <meyering@redhat.com>
22617
22618         maint.mk: improve the public-submodule-commit rule
22619         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
22620         to suppress printing of its commands... unless V=1.
22621         Add git submodule's --quiet option to suppress printing of e.g.,
22622         "Entering gnulib" output.
22623         "cd" into $(srcdir) before running git submodule.
22624
22625 2011-01-20  Bruno Haible  <bruno@clisp.org>
22626
22627         include_next: Fix bug introduced on 2011-01-18.
22628         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
22629         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
22630         ac_cv_header_... variable if the second argument is not 'check'.
22631         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
22632         gl_NEXT_HEADERS_INTERNAL.
22633
22634 2011-01-20  Bruno Haible  <bruno@clisp.org>
22635
22636         Allow the user to avoid the GNULIB_TEST_* macros.
22637         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
22638         Suggested by Paul Eggert.
22639
22640 2011-01-14  Jim Meyering  <meyering@redhat.com>
22641
22642         bootstrap: avoid failure when there is no .gitmodules file
22643         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
22644         has been assigned to, even when its value is the empty string.
22645         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
22646         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
22647         Reported by John W. Eaton <jwe@gnu.org>.
22648
22649 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
22650
22651         assume <ctype.h>, ..., <time.h> exist
22652         For years gnulib has been assuming the existence of the headers
22653         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
22654         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
22655         them, since they don't appear to be needed.
22656         * README (Portability guidelines): Document this.
22657         * lib/flock.c: Assume <fcntl.h> exists.
22658         * lib/regex_internal.h: Assume <locale.h> exists.
22659         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
22660         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
22661         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
22662         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
22663         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
22664         * m4/regex.m4 (gl_REGEX): Likewise.
22665         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
22666         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
22667         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
22668         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
22669         * tests/test-argp.c: Likewise.
22670         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
22671
22672         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
22673         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
22674         AA_APPLE_UNIVERSAL_BUILD.  See
22675         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
22676         * NEWS: Document this.
22677
22678 2011-01-19  Eric Blake  <eblake@redhat.com>
22679
22680         c-stack: assume stack overflow if SA_SIGINFO unsupported
22681         * lib/c-stack.c (SIGACTION_WORKS): Rename...
22682         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
22683         sigaction will work.
22684         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
22685         behavior match Linux.
22686         * tests/test-c-stack.c (main): Prefer NULL for pointers.
22687
22688         stdbool-tests: accommodate Haiku
22689         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
22690
22691         binary-io: fix O_TEXT on Haiku
22692         * modules/binary-io (Depends-on): Add fcntl-h.
22693         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
22694         than blindly undefining O_TEXT.
22695         Reported by Scott McCreary.
22696
22697 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22698
22699         include_next: do not check for standard headers like stddef.h
22700
22701         I found this problem when modifying Emacs to use gnulib.
22702         I noticed that it added HAVE_STDDEF_H to config.h, even though
22703         gnulib always assumes <stddef.h> exists as per README and this
22704         symbol is unnecessary.
22705         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
22706         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
22707         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
22708         faster for headers like stddef.h that are known to exist.
22709         (gl_CHECK_NEXT_HEADERS): Use it.
22710         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
22711         rather than gl_CHECK_NEXT_HEADERS.
22712         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
22713         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
22714
22715 2011-01-18  Eric Blake  <eblake@redhat.com>
22716
22717         ansi-c++-opt: skip C++ dependency style if C++ is unused
22718         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
22719         tests when we know C++ compilation is not desired.
22720         Reported by Scott McCreary.
22721
22722 2011-01-18  Bruno Haible  <bruno@clisp.org>
22723
22724         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
22725         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
22726         (main): Perform test also when getrlimit and setrlimit don't exist or
22727         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
22728         limiting the address space size using setrlimit, compare the address
22729         space size before and after the the test.
22730         * tests/test-dprintf-posix2.c: Likewise.
22731         * tests/test-fprintf-posix3.sh: Update skip messages.
22732         * tests/test-dprintf-posix2.sh: Likewise.
22733         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
22734         * modules/dprintf-posix-tests (Depends-on): Likewise.
22735         Reported by Bruce Korb <bkorb@gnu.org> and
22736         Gary V. Vaughan <gary@gnu.org>.
22737
22738 2011-01-18  Bruno Haible  <bruno@clisp.org>
22739
22740         get-rusage-as: Improvement for Cygwin.
22741         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
22742         areas that are merely reserved.
22743
22744 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22745
22746         strftime: remove dependencies on multibyte modules
22747
22748         strftime depended on mbrlen, mbsinit, and wchar, but these modules
22749         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
22750         only if __osf__ is defined, and I suspect OSF doesn't need these
22751         other modules.  If my guess is wrong, we'll need to come up with a
22752         variant of strftime that doesn't need the multibyte modules.
22753
22754         I discovered this problem when attempting modify Emacs to use the
22755         strftime module.  With the previous gnulib, this caused Emacs to
22756         need 31 new files, ranging from lib/config.charset to
22757         m4/wint_t.m4.  This was overkill and I expect would be offputting
22758         to the Emacs maintainers.  After this change, only 6 new files are
22759         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
22760         stdbool.m4, and tm_gmtoff.m4.
22761
22762         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
22763         Suggested by Bruno Haible in
22764         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
22765         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
22766         and do not check for wchar.h.
22767         * modules/strftime (Files): Remove m4/mbstate_t.m4.
22768         (Depends-on): Remove mbrlen, mbsinit, wchar.
22769
22770 2011-01-18  Bruno Haible  <bruno@clisp.org>
22771
22772         Tests for module 'get-rusage-as'.
22773         * modules/get-rusage-as-tests: New file.
22774         * tests/test-get-rusage-as.c: New file.
22775
22776         New module 'get-rusage-as'.
22777         * modules/get-rusage-as: New file.
22778         * lib/resource-ext.h: New file.
22779         * lib/get-rusage-as.c: New file.
22780
22781 2011-01-17  Eric Blake  <eblake@redhat.com>
22782
22783         sigaction: relax license from LGPLv3+ to LGPLv2+
22784         * modules/sigaction (License): Relax to LGPLv2+.
22785
22786 2011-01-14  Bruno Haible  <bruno@clisp.org>
22787
22788         filemode: Make function declarations usable in C++ mode.
22789         * lib/filemode.h: Enclose function declarations in extern "C" block.
22790         Reported by John W. Eaton <jwe@gnu.org>.
22791
22792 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
22793
22794         save-cwd: no longer include "xgetcwd.h"
22795         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
22796         This avoids a compilation failure in projects that use save-cwd
22797         without also using the xgetcwd module.
22798
22799 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22800
22801         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
22802         This is so that a program like Emacs, which needs only dtoastr,
22803         does not have to bother with distributing and compiling ftoastr
22804         and ldtoastr.
22805         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
22806         * modules/dtoastr, modules/ldtoastr: New files.
22807         * modules/ftoastr: Now works just for 'float'.
22808         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
22809         (Makefile.am): Remove ftoastr.h (not needed and no effect),
22810         dtoastr.c, ldtoastr.c.
22811
22812 2011-01-11  Jim Meyering  <meyering@redhat.com>
22813
22814         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
22815         There is no need to work around the lack of the fchdir function,
22816         since gnulib can now provide a replacement when required.
22817         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
22818         * modules/save-cwd (Depends-on): Add fchdir.
22819
22820 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22821
22822         openat, save-cwd: avoid xmalloc
22823
22824         This removes a direct (but undocumented) dependency of openat on
22825         xalloc, along with an indirect dependency via save-cwd.  It also
22826         removes a dependency of save-cwd on xgetcwd, and thereby
22827         indirectly on xalloc.  This change causes the openat substitute
22828         to fall back on save_cwd when memory is tight, and for save_cwd to
22829         fail instead of dying when memory is tight, but that's good enough.
22830         Problem and initial idea for fix reported by Bastien Roucaries in
22831         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
22832
22833         * lib/openat-proc.c: Include stdlib.h (for malloc), not
22834         xalloc.h (for xmalloc).
22835         (openat_proc_name): Use malloc, not xmalloc.
22836         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
22837         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
22838
22839         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
22840         This avoids heap allocation for file names whose lengths are in
22841         the range 512..1023, with the upper bound increasing to at most
22842         4031 depending on the platform's PATH_MAX.  (We do not want
22843         pathmax.h here as it might supply a non-constant PATH_MAX.)
22844         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
22845         Perhaps they should be moved to malloca.h?
22846         (OPENAT_BUFFER_SIZE): Use them.
22847
22848 2011-01-10  Bruno Haible  <bruno@clisp.org>
22849
22850         doc: Update users.txt.
22851         * users.txt: Add recutils.
22852
22853 2011-01-09  Karl Berry  <karl@gnu.org>
22854
22855         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
22856
22857         * doc/configmake.texi: New file.
22858         * doc/gnulib.texi: Include it.
22859         * modules/configmake: Move documentation from here.
22860
22861 2011-01-09  Bruno Haible  <bruno@clisp.org>
22862
22863         Update to Unicode 6.0.0.
22864         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
22865         (get_lbp): Update for Unicode 6.0.0.
22866         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
22867         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
22868         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
22869         U+11001, U+11038..U+11046. Remove U+06DE.
22870         (uc_width): Fix bounds of planes.
22871         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22872         lib/uniwidth/width.c.
22873         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
22874         trailing whitespace removed.
22875         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
22876         without comments, but with the original copyright notice.
22877         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
22878         * lib/unicase/ignorable.h: Likewise.
22879         * lib/unicase/tocasefold.h: Likewise.
22880         * lib/unicase/tolower.h: Likewise.
22881         * lib/unicase/totitle.h: Likewise.
22882         * lib/unicase/toupper.h: Likewise.
22883         * lib/unictype/bidi_of.h: Likewise.
22884         * lib/unictype/blocks.h: Likewise.
22885         * lib/unictype/categ_C.h: Likewise.
22886         * lib/unictype/categ_Cn.h: Likewise.
22887         * lib/unictype/categ_L.h: Likewise.
22888         * lib/unictype/categ_Ll.h: Likewise.
22889         * lib/unictype/categ_Lm.h: Likewise.
22890         * lib/unictype/categ_Lo.h: Likewise.
22891         * lib/unictype/categ_Lu.h: Likewise.
22892         * lib/unictype/categ_M.h: Likewise.
22893         * lib/unictype/categ_Mc.h: Likewise.
22894         * lib/unictype/categ_Me.h: Likewise.
22895         * lib/unictype/categ_Mn.h: Likewise.
22896         * lib/unictype/categ_N.h: Likewise.
22897         * lib/unictype/categ_Nd.h: Likewise.
22898         * lib/unictype/categ_No.h: Likewise.
22899         * lib/unictype/categ_P.h: Likewise.
22900         * lib/unictype/categ_Po.h: Likewise.
22901         * lib/unictype/categ_S.h: Likewise.
22902         * lib/unictype/categ_Sc.h: Likewise.
22903         * lib/unictype/categ_Sk.h: Likewise.
22904         * lib/unictype/categ_Sm.h: Likewise.
22905         * lib/unictype/categ_So.h: Likewise.
22906         * lib/unictype/categ_of.h: Likewise.
22907         * lib/unictype/combining.h: Likewise.
22908         * lib/unictype/ctype_alnum.h: Likewise.
22909         * lib/unictype/ctype_alpha.h: Likewise.
22910         * lib/unictype/ctype_graph.h: Likewise.
22911         * lib/unictype/ctype_lower.h: Likewise.
22912         * lib/unictype/ctype_print.h: Likewise.
22913         * lib/unictype/ctype_punct.h: Likewise.
22914         * lib/unictype/ctype_upper.h: Likewise.
22915         * lib/unictype/decdigit.h: Likewise.
22916         * lib/unictype/digit.h: Likewise.
22917         * lib/unictype/numeric.h: Likewise.
22918         * lib/unictype/pr_alphabetic.h: Likewise.
22919         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22920         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22921         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22922         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22923         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22924         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22925         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22926         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22927         * lib/unictype/pr_case_ignorable.h: Likewise.
22928         * lib/unictype/pr_cased.h: Likewise.
22929         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
22930         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
22931         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
22932         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
22933         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
22934         * lib/unictype/pr_combining.h: Likewise.
22935         * lib/unictype/pr_composite.h: Likewise.
22936         * lib/unictype/pr_currency_symbol.h: Likewise.
22937         * lib/unictype/pr_decimal_digit.h: Likewise.
22938         * lib/unictype/pr_deprecated.h: Likewise.
22939         * lib/unictype/pr_format_control.h: Likewise.
22940         * lib/unictype/pr_grapheme_base.h: Likewise.
22941         * lib/unictype/pr_grapheme_extend.h: Likewise.
22942         * lib/unictype/pr_grapheme_link.h: Likewise.
22943         * lib/unictype/pr_id_continue.h: Likewise.
22944         * lib/unictype/pr_id_start.h: Likewise.
22945         * lib/unictype/pr_ideographic.h: Likewise.
22946         * lib/unictype/pr_lowercase.h: Likewise.
22947         * lib/unictype/pr_math.h: Likewise.
22948         * lib/unictype/pr_numeric.h: Likewise.
22949         * lib/unictype/pr_other_alphabetic.h: Likewise.
22950         * lib/unictype/pr_other_id_continue.h: Likewise.
22951         * lib/unictype/pr_other_math.h: Likewise.
22952         * lib/unictype/pr_punctuation.h: Likewise.
22953         * lib/unictype/pr_sentence_terminal.h: Likewise.
22954         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22955         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22956         * lib/unictype/pr_unified_ideograph.h: Likewise.
22957         * lib/unictype/pr_uppercase.h: Likewise.
22958         * lib/unictype/pr_xid_continue.h: Likewise.
22959         * lib/unictype/pr_xid_start.h: Likewise.
22960         * lib/unictype/scripts.h: Likewise.
22961         * lib/unictype/scripts_byname.gperf: Likewise.
22962         * lib/unictype/sy_java_ident.h: Likewise.
22963         * lib/unigbrk/gbrkprop.h: Likewise.
22964         * lib/unilbrk/lbrkprop1.h: Likewise.
22965         * lib/unilbrk/lbrkprop2.h: Likewise.
22966         * lib/uninorm/decomposition-table2.h: Likewise.
22967         * lib/uniwbrk/wbrkprop.h: Likewise.
22968         * tests/unicase/test-cased.c: Likewise.
22969         * tests/unicase/test-ignorable.c: Likewise.
22970         * tests/unicase/test-uc_tolower.c: Likewise.
22971         * tests/unicase/test-uc_totitle.c: Likewise.
22972         * tests/unicase/test-uc_toupper.c: Likewise.
22973         * tests/unictype/test-categ_C.c: Likewise.
22974         * tests/unictype/test-categ_Cn.c: Likewise.
22975         * tests/unictype/test-categ_L.c: Likewise.
22976         * tests/unictype/test-categ_Ll.c: Likewise.
22977         * tests/unictype/test-categ_Lm.c: Likewise.
22978         * tests/unictype/test-categ_Lo.c: Likewise.
22979         * tests/unictype/test-categ_Lu.c: Likewise.
22980         * tests/unictype/test-categ_M.c: Likewise.
22981         * tests/unictype/test-categ_Mc.c: Likewise.
22982         * tests/unictype/test-categ_Me.c: Likewise.
22983         * tests/unictype/test-categ_Mn.c: Likewise.
22984         * tests/unictype/test-categ_N.c: Likewise.
22985         * tests/unictype/test-categ_Nd.c: Likewise.
22986         * tests/unictype/test-categ_No.c: Likewise.
22987         * tests/unictype/test-categ_P.c: Likewise.
22988         * tests/unictype/test-categ_Po.c: Likewise.
22989         * tests/unictype/test-categ_S.c: Likewise.
22990         * tests/unictype/test-categ_Sc.c: Likewise.
22991         * tests/unictype/test-categ_Sk.c: Likewise.
22992         * tests/unictype/test-categ_Sm.c: Likewise.
22993         * tests/unictype/test-categ_So.c: Likewise.
22994         * tests/unictype/test-ctype_alnum.c: Likewise.
22995         * tests/unictype/test-ctype_alpha.c: Likewise.
22996         * tests/unictype/test-ctype_graph.c: Likewise.
22997         * tests/unictype/test-ctype_lower.c: Likewise.
22998         * tests/unictype/test-ctype_print.c: Likewise.
22999         * tests/unictype/test-ctype_punct.c: Likewise.
23000         * tests/unictype/test-ctype_upper.c: Likewise.
23001         * tests/unictype/test-decdigit.h: Likewise.
23002         * tests/unictype/test-digit.h: Likewise.
23003         * tests/unictype/test-numeric.h: Likewise.
23004         * tests/unictype/test-pr_alphabetic.c: Likewise.
23005         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
23006         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
23007         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
23008         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
23009         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
23010         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
23011         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
23012         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
23013         * tests/unictype/test-pr_case_ignorable.c: Likewise.
23014         * tests/unictype/test-pr_cased.c: Likewise.
23015         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
23016         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
23017         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
23018         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
23019         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
23020         * tests/unictype/test-pr_combining.c: Likewise.
23021         * tests/unictype/test-pr_composite.c: Likewise.
23022         * tests/unictype/test-pr_currency_symbol.c: Likewise.
23023         * tests/unictype/test-pr_decimal_digit.c: Likewise.
23024         * tests/unictype/test-pr_deprecated.c: Likewise.
23025         * tests/unictype/test-pr_format_control.c: Likewise.
23026         * tests/unictype/test-pr_grapheme_base.c: Likewise.
23027         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
23028         * tests/unictype/test-pr_grapheme_link.c: Likewise.
23029         * tests/unictype/test-pr_id_continue.c: Likewise.
23030         * tests/unictype/test-pr_id_start.c: Likewise.
23031         * tests/unictype/test-pr_ideographic.c: Likewise.
23032         * tests/unictype/test-pr_lowercase.c: Likewise.
23033         * tests/unictype/test-pr_math.c: Likewise.
23034         * tests/unictype/test-pr_numeric.c: Likewise.
23035         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
23036         * tests/unictype/test-pr_other_id_continue.c: Likewise.
23037         * tests/unictype/test-pr_other_math.c: Likewise.
23038         * tests/unictype/test-pr_punctuation.c: Likewise.
23039         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
23040         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
23041         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
23042         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
23043         * tests/unictype/test-pr_uppercase.c: Likewise.
23044         * tests/unictype/test-pr_xid_continue.c: Likewise.
23045         * tests/unictype/test-pr_xid_start.c: Likewise.
23046         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
23047         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
23048         changes.
23049         * lib/unictype/categ_Cc.h: Likewise.
23050         * lib/unictype/categ_Cf.h: Likewise.
23051         * lib/unictype/categ_Co.h: Likewise.
23052         * lib/unictype/categ_Cs.h: Likewise.
23053         * lib/unictype/categ_Lt.h: Likewise.
23054         * lib/unictype/categ_Nl.h: Likewise.
23055         * lib/unictype/categ_Pc.h: Likewise.
23056         * lib/unictype/categ_Pd.h: Likewise.
23057         * lib/unictype/categ_Pe.h: Likewise.
23058         * lib/unictype/categ_Pf.h: Likewise.
23059         * lib/unictype/categ_Pi.h: Likewise.
23060         * lib/unictype/categ_Ps.h: Likewise.
23061         * lib/unictype/categ_Z.h: Likewise.
23062         * lib/unictype/categ_Zl.h: Likewise.
23063         * lib/unictype/categ_Zp.h: Likewise.
23064         * lib/unictype/categ_Zs.h: Likewise.
23065         * lib/unictype/ctype_blank.h: Likewise.
23066         * lib/unictype/ctype_cntrl.h: Likewise.
23067         * lib/unictype/ctype_digit.h: Likewise.
23068         * lib/unictype/ctype_space.h: Likewise.
23069         * lib/unictype/ctype_xdigit.h: Likewise.
23070         * lib/unictype/mirror.h: Likewise.
23071         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
23072         * lib/unictype/pr_bidi_block_separator.h: Likewise.
23073         * lib/unictype/pr_bidi_common_separator.h: Likewise.
23074         * lib/unictype/pr_bidi_control.h: Likewise.
23075         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
23076         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
23077         * lib/unictype/pr_bidi_european_digit.h: Likewise.
23078         * lib/unictype/pr_bidi_pdf.h: Likewise.
23079         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
23080         * lib/unictype/pr_bidi_whitespace.h: Likewise.
23081         * lib/unictype/pr_dash.h: Likewise.
23082         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
23083         * lib/unictype/pr_diacritic.h: Likewise.
23084         * lib/unictype/pr_extender.h: Likewise.
23085         * lib/unictype/pr_hex_digit.h: Likewise.
23086         * lib/unictype/pr_hyphen.h: Likewise.
23087         * lib/unictype/pr_ids_binary_operator.h: Likewise.
23088         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
23089         * lib/unictype/pr_ignorable_control.h: Likewise.
23090         * lib/unictype/pr_iso_control.h: Likewise.
23091         * lib/unictype/pr_join_control.h: Likewise.
23092         * lib/unictype/pr_left_of_pair.h: Likewise.
23093         * lib/unictype/pr_line_separator.h: Likewise.
23094         * lib/unictype/pr_logical_order_exception.h: Likewise.
23095         * lib/unictype/pr_non_break.h: Likewise.
23096         * lib/unictype/pr_not_a_character.h: Likewise.
23097         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
23098         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
23099         * lib/unictype/pr_other_id_start.h: Likewise.
23100         * lib/unictype/pr_other_lowercase.h: Likewise.
23101         * lib/unictype/pr_other_uppercase.h: Likewise.
23102         * lib/unictype/pr_paired_punctuation.h: Likewise.
23103         * lib/unictype/pr_paragraph_separator.h: Likewise.
23104         * lib/unictype/pr_pattern_syntax.h: Likewise.
23105         * lib/unictype/pr_pattern_white_space.h: Likewise.
23106         * lib/unictype/pr_private_use.h: Likewise.
23107         * lib/unictype/pr_quotation_mark.h: Likewise.
23108         * lib/unictype/pr_radical.h: Likewise.
23109         * lib/unictype/pr_soft_dotted.h: Likewise.
23110         * lib/unictype/pr_space.h: Likewise.
23111         * lib/unictype/pr_titlecase.h: Likewise.
23112         * lib/unictype/pr_variation_selector.h: Likewise.
23113         * lib/unictype/pr_white_space.h: Likewise.
23114         * lib/unictype/pr_zero_width.h: Likewise.
23115         * lib/unictype/sy_c_ident.h: Likewise.
23116         * lib/unictype/sy_c_whitespace.h: Likewise.
23117         * lib/unictype/sy_java_whitespace.h: Likewise.
23118         * lib/uninorm/composition-table.gperf: Likewise.
23119         * lib/uninorm/decomposition-table1.h: Likewise.
23120         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
23121         LB8.
23122         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23123         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23124         * modules/unictype/*: Bump version number of expected libunistring
23125         version.
23126
23127 2011-01-09  Bruno Haible  <bruno@clisp.org>
23128
23129         Update to Unicode 5.2.0.
23130         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
23131         trailing whitespace removed.
23132
23133 2011-01-09  Bruno Haible  <bruno@clisp.org>
23134
23135         New Unicode character properties, from Unicode 5.2.0.
23136         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
23137         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
23138         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
23139         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
23140         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
23141         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
23142         uc_is_property_cased, uc_is_property_case_ignorable,
23143         uc_is_property_changes_when_lowercased,
23144         uc_is_property_changes_when_uppercased,
23145         uc_is_property_changes_when_titlecased,
23146         uc_is_property_changes_when_casefolded,
23147         uc_is_property_changes_when_casemapped): New declarations.
23148         * lib/unictype/pr_byname.gperf: Add the new properties.
23149         * modules/unictype/property-byname (Depends-on): Depend on the new
23150         properties modules.
23151         * modules/unictype/property-all (Depends-on): Likewise.
23152         * MODULES.html.sh (Unicode string functions): Add
23153         unictype/property-case-ignorable, unictype/property-cased,
23154         unictype/property-changes-when-casefolded,
23155         unictype/property-changes-when-casemapped,
23156         unictype/property-changes-when-lowercased,
23157         unictype/property-changes-when-titlecased,
23158         unictype/property-changes-when-uppercased.
23159
23160         New module 'unictype/property-changes-when-casemapped'.
23161         * modules/unictype/property-changes-when-casemapped: New file.
23162         * lib/unictype/pr_changes_when_casemapped.c: New file.
23163         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
23164         generated by gen-uni-tables.
23165         * modules/unictype/property-changes-when-casemapped-tests: New file.
23166         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
23167         automatically generated by gen-uni-tables.
23168
23169         New module 'unictype/property-changes-when-casefolded'.
23170         * modules/unictype/property-changes-when-casefolded: New file.
23171         * lib/unictype/pr_changes_when_casefolded.c: New file.
23172         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
23173         generated by gen-uni-tables.
23174         * modules/unictype/property-changes-when-casefolded-tests: New file.
23175         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
23176         automatically generated by gen-uni-tables.
23177
23178         New module 'unictype/property-changes-when-titlecased'.
23179         * modules/unictype/property-changes-when-titlecased: New file.
23180         * lib/unictype/pr_changes_when_titlecased.c: New file.
23181         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
23182         generated by gen-uni-tables.
23183         * modules/unictype/property-changes-when-titlecased-tests: New file.
23184         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
23185         automatically generated by gen-uni-tables.
23186
23187         New module 'unictype/property-changes-when-uppercased'.
23188         * modules/unictype/property-changes-when-uppercased: New file.
23189         * lib/unictype/pr_changes_when_uppercased.c: New file.
23190         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
23191         generated by gen-uni-tables.
23192         * modules/unictype/property-changes-when-uppercased-tests: New file.
23193         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
23194         automatically generated by gen-uni-tables.
23195
23196         New module 'unictype/property-changes-when-lowercased'.
23197         * modules/unictype/property-changes-when-lowercased: New file.
23198         * lib/unictype/pr_changes_when_lowercased.c: New file.
23199         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
23200         generated by gen-uni-tables.
23201         * modules/unictype/property-changes-when-lowercased-tests: New file.
23202         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
23203         automatically generated by gen-uni-tables.
23204
23205         New module 'unictype/property-case-ignorable'.
23206         * modules/unictype/property-case-ignorable: New file.
23207         * lib/unictype/pr_case_ignorable.c: New file.
23208         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
23209         by gen-uni-tables.
23210         * modules/unictype/property-case-ignorable-tests: New file.
23211         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
23212         generated by gen-uni-tables.
23213
23214         New module 'unictype/property-cased'.
23215         * modules/unictype/property-cased: New file.
23216         * lib/unictype/pr_cased.c: New file.
23217         * lib/unictype/pr_cased.h: New file, automatically generated by
23218         gen-uni-tables.
23219         * modules/unictype/property-cased-tests: New file.
23220         * tests/unictype/test-pr_cased.c: New file, automatically generated by
23221         gen-uni-tables.
23222
23223 2011-01-09  Bruno Haible  <bruno@clisp.org>
23224
23225         Update to Unicode 5.2.0.
23226         * lib/gen-uni-tables.c (output_predicate, output_category,
23227         output_combclass, output_bidi_category, output_decimal_digit_test,
23228         output_decimal_digit, output_digit_test, output_digit,
23229         output_numeric_test, output_numeric, output_mirror, output_scripts,
23230         output_scripts_byname, output_blocks, output_ident_category): Fix
23231         comment header.
23232         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
23233         get_wbp.
23234         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
23235         items.
23236         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
23237         Changes_When_Lowercased, Changes_When_Uppercased,
23238         Changes_When_Titlecased, Changes_When_Casefolded,
23239         Changes_When_Casemapped.
23240         (is_property_alphabetic, is_property_default_ignorable_code_point):
23241         Update for Unicode 5.2.0.
23242         (is_property_cased, is_property_case_ignorable,
23243         is_property_changes_when_lowercased,
23244         is_property_changes_when_uppercased,
23245         is_property_changes_when_titlecased,
23246         is_property_changes_when_casefolded,
23247         is_property_changes_when_casemapped): New functions.
23248         (output_properties): Output also the properties cased, case_ignorable,
23249         changes_when_lowercased, changes_when_uppercased,
23250         changes_when_titlecased, changes_when_casefolded,
23251         changes_when_casemapped.
23252         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
23253         Unicode TR#11 revision 17 -> 19.
23254         (LBP_CP): New enumeration value.
23255         (LBP_*): Adjust values accordingly.
23256         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
23257         TR#14 revision 22 -> 24.
23258         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
23259         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
23260         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
23261         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
23262         is_WBP_MIDLETTER.
23263         (output_composition_tables): Allow for 24 bits instead of 16 bits in
23264         the code1 and code2 of each composition rule.
23265         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
23266         * lib/unicase/ignorable.h: Likewise.
23267         * lib/unicase/tocasefold.h: Likewise.
23268         * lib/unicase/tolower.h: Likewise.
23269         * lib/unicase/totitle.h: Likewise.
23270         * lib/unicase/toupper.h: Likewise.
23271         * lib/unictype/bidi_of.h: Likewise.
23272         * lib/unictype/blocks.h: Likewise.
23273         * lib/unictype/categ_C.h: Likewise.
23274         * lib/unictype/categ_Cf.h: Likewise.
23275         * lib/unictype/categ_Cn.h: Likewise.
23276         * lib/unictype/categ_L.h: Likewise.
23277         * lib/unictype/categ_Ll.h: Likewise.
23278         * lib/unictype/categ_Lm.h: Likewise.
23279         * lib/unictype/categ_Lo.h: Likewise.
23280         * lib/unictype/categ_Lu.h: Likewise.
23281         * lib/unictype/categ_M.h: Likewise.
23282         * lib/unictype/categ_Mc.h: Likewise.
23283         * lib/unictype/categ_Mn.h: Likewise.
23284         * lib/unictype/categ_N.h: Likewise.
23285         * lib/unictype/categ_Nd.h: Likewise.
23286         * lib/unictype/categ_Nl.h: Likewise.
23287         * lib/unictype/categ_No.h: Likewise.
23288         * lib/unictype/categ_P.h: Likewise.
23289         * lib/unictype/categ_Pd.h: Likewise.
23290         * lib/unictype/categ_Po.h: Likewise.
23291         * lib/unictype/categ_S.h: Likewise.
23292         * lib/unictype/categ_Sc.h: Likewise.
23293         * lib/unictype/categ_So.h: Likewise.
23294         * lib/unictype/categ_of.h: Likewise.
23295         * lib/unictype/combining.h: Likewise.
23296         * lib/unictype/ctype_alnum.h: Likewise.
23297         * lib/unictype/ctype_alpha.h: Likewise.
23298         * lib/unictype/ctype_graph.h: Likewise.
23299         * lib/unictype/ctype_lower.h: Likewise.
23300         * lib/unictype/ctype_print.h: Likewise.
23301         * lib/unictype/ctype_punct.h: Likewise.
23302         * lib/unictype/ctype_upper.h: Likewise.
23303         * lib/unictype/decdigit.h: Likewise.
23304         * lib/unictype/digit.h: Likewise.
23305         * lib/unictype/numeric.h: Likewise.
23306         * lib/unictype/pr_alphabetic.h: Likewise.
23307         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
23308         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
23309         * lib/unictype/pr_bidi_european_digit.h: Likewise.
23310         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
23311         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
23312         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
23313         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
23314         * lib/unictype/pr_combining.h: Likewise.
23315         * lib/unictype/pr_composite.h: Likewise.
23316         * lib/unictype/pr_currency_symbol.h: Likewise.
23317         * lib/unictype/pr_dash.h: Likewise.
23318         * lib/unictype/pr_decimal_digit.h: Likewise.
23319         * lib/unictype/pr_deprecated.h: Likewise.
23320         * lib/unictype/pr_diacritic.h: Likewise.
23321         * lib/unictype/pr_extender.h: Likewise.
23322         * lib/unictype/pr_grapheme_base.h: Likewise.
23323         * lib/unictype/pr_grapheme_extend.h: Likewise.
23324         * lib/unictype/pr_grapheme_link.h: Likewise.
23325         * lib/unictype/pr_id_continue.h: Likewise.
23326         * lib/unictype/pr_id_start.h: Likewise.
23327         * lib/unictype/pr_ideographic.h: Likewise.
23328         * lib/unictype/pr_ignorable_control.h: Likewise.
23329         * lib/unictype/pr_logical_order_exception.h: Likewise.
23330         * lib/unictype/pr_lowercase.h: Likewise.
23331         * lib/unictype/pr_numeric.h: Likewise.
23332         * lib/unictype/pr_other_alphabetic.h: Likewise.
23333         * lib/unictype/pr_punctuation.h: Likewise.
23334         * lib/unictype/pr_sentence_terminal.h: Likewise.
23335         * lib/unictype/pr_terminal_punctuation.h: Likewise.
23336         * lib/unictype/pr_unassigned_code_value.h: Likewise.
23337         * lib/unictype/pr_unified_ideograph.h: Likewise.
23338         * lib/unictype/pr_uppercase.h: Likewise.
23339         * lib/unictype/pr_xid_continue.h: Likewise.
23340         * lib/unictype/pr_xid_start.h: Likewise.
23341         * lib/unictype/pr_zero_width.h: Likewise.
23342         * lib/unictype/scripts.h: Likewise.
23343         * lib/unictype/scripts_byname.gperf: Likewise.
23344         * lib/unictype/sy_java_ident.h: Likewise.
23345         * lib/unigbrk/gbrkprop.h: Likewise.
23346         * lib/unilbrk/lbrkprop1.h: Likewise.
23347         * lib/unilbrk/lbrkprop2.h: Likewise.
23348         * lib/unilbrk/lbrktables.h: Likewise.
23349         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
23350         LBP_CP. Implement rule LB30.
23351         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
23352         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
23353         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
23354         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
23355         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
23356         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
23357         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
23358         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
23359         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
23360         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
23361         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
23362         bits instead of 16 bits in the code1 and code2 of each composition
23363         rule.
23364         (uc_composition): Update for Unicode 5.2.0.
23365         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
23366         * lib/uninorm/decomposition-table2.h: Likewise.
23367         * lib/uniwbrk/wbrkprop.h: Likewise.
23368         * tests/unicase/test-cased.c: Likewise.
23369         * tests/unicase/test-ignorable.c: Likewise.
23370         * tests/unicase/test-uc_tolower.c: Likewise.
23371         * tests/unicase/test-uc_totitle.c: Likewise.
23372         * tests/unicase/test-uc_toupper.c: Likewise.
23373         * tests/unictype/test-categ_C.c: Likewise.
23374         * tests/unictype/test-categ_Cf.c: Likewise.
23375         * tests/unictype/test-categ_Cn.c: Likewise.
23376         * tests/unictype/test-categ_L.c: Likewise.
23377         * tests/unictype/test-categ_Ll.c: Likewise.
23378         * tests/unictype/test-categ_Lm.c: Likewise.
23379         * tests/unictype/test-categ_Lo.c: Likewise.
23380         * tests/unictype/test-categ_Lu.c: Likewise.
23381         * tests/unictype/test-categ_M.c: Likewise.
23382         * tests/unictype/test-categ_Mc.c: Likewise.
23383         * tests/unictype/test-categ_Mn.c: Likewise.
23384         * tests/unictype/test-categ_N.c: Likewise.
23385         * tests/unictype/test-categ_Nd.c: Likewise.
23386         * tests/unictype/test-categ_Nl.c: Likewise.
23387         * tests/unictype/test-categ_No.c: Likewise.
23388         * tests/unictype/test-categ_P.c: Likewise.
23389         * tests/unictype/test-categ_Pd.c: Likewise.
23390         * tests/unictype/test-categ_Po.c: Likewise.
23391         * tests/unictype/test-categ_S.c: Likewise.
23392         * tests/unictype/test-categ_Sc.c: Likewise.
23393         * tests/unictype/test-categ_So.c: Likewise.
23394         * tests/unictype/test-ctype_alnum.c: Likewise.
23395         * tests/unictype/test-ctype_alpha.c: Likewise.
23396         * tests/unictype/test-ctype_graph.c: Likewise.
23397         * tests/unictype/test-ctype_lower.c: Likewise.
23398         * tests/unictype/test-ctype_print.c: Likewise.
23399         * tests/unictype/test-ctype_punct.c: Likewise.
23400         * tests/unictype/test-ctype_upper.c: Likewise.
23401         * tests/unictype/test-decdigit.h: Likewise.
23402         * tests/unictype/test-digit.h: Likewise.
23403         * tests/unictype/test-numeric.h: Likewise.
23404         * tests/unictype/test-pr_alphabetic.c: Likewise.
23405         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
23406         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
23407         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
23408         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
23409         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
23410         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
23411         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
23412         * tests/unictype/test-pr_combining.c: Likewise.
23413         * tests/unictype/test-pr_composite.c: Likewise.
23414         * tests/unictype/test-pr_currency_symbol.c: Likewise.
23415         * tests/unictype/test-pr_dash.c: Likewise.
23416         * tests/unictype/test-pr_decimal_digit.c: Likewise.
23417         * tests/unictype/test-pr_deprecated.c: Likewise.
23418         * tests/unictype/test-pr_diacritic.c: Likewise.
23419         * tests/unictype/test-pr_extender.c: Likewise.
23420         * tests/unictype/test-pr_grapheme_base.c: Likewise.
23421         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
23422         * tests/unictype/test-pr_grapheme_link.c: Likewise.
23423         * tests/unictype/test-pr_id_continue.c: Likewise.
23424         * tests/unictype/test-pr_id_start.c: Likewise.
23425         * tests/unictype/test-pr_ideographic.c: Likewise.
23426         * tests/unictype/test-pr_ignorable_control.c: Likewise.
23427         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
23428         * tests/unictype/test-pr_lowercase.c: Likewise.
23429         * tests/unictype/test-pr_numeric.c: Likewise.
23430         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
23431         * tests/unictype/test-pr_punctuation.c: Likewise.
23432         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
23433         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
23434         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
23435         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
23436         * tests/unictype/test-pr_uppercase.c: Likewise.
23437         * tests/unictype/test-pr_xid_continue.c: Likewise.
23438         * tests/unictype/test-pr_xid_start.c: Likewise.
23439         * tests/unictype/test-pr_zero_width.c: Likewise.
23440         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
23441         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
23442         changed behaviour: line breaking is now disallowed between a letter
23443         or '=' and '('.
23444         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23445         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23446         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23447         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
23448         * tests/uniwidth/test-uc_width2.sh: Same updates as in
23449         lib/uniwidth/width.c.
23450         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
23451         without comments, but with the original copyright notice.
23452         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
23453         changes.
23454         * lib/unictype/categ_Cc.h: Likewise.
23455         * lib/unictype/categ_Co.h: Likewise.
23456         * lib/unictype/categ_Cs.h: Likewise.
23457         * lib/unictype/categ_Lt.h: Likewise.
23458         * lib/unictype/categ_Me.h: Likewise.
23459         * lib/unictype/categ_Pc.h: Likewise.
23460         * lib/unictype/categ_Pe.h: Likewise.
23461         * lib/unictype/categ_Pf.h: Likewise.
23462         * lib/unictype/categ_Pi.h: Likewise.
23463         * lib/unictype/categ_Ps.h: Likewise.
23464         * lib/unictype/categ_Sk.h: Likewise.
23465         * lib/unictype/categ_Sm.h: Likewise.
23466         * lib/unictype/categ_Z.h: Likewise.
23467         * lib/unictype/categ_Zl.h: Likewise.
23468         * lib/unictype/categ_Zp.h: Likewise.
23469         * lib/unictype/categ_Zs.h: Likewise.
23470         * lib/unictype/ctype_blank.h: Likewise.
23471         * lib/unictype/ctype_cntrl.h: Likewise.
23472         * lib/unictype/ctype_digit.h: Likewise.
23473         * lib/unictype/ctype_space.h: Likewise.
23474         * lib/unictype/ctype_xdigit.h: Likewise.
23475         * lib/unictype/mirror.h: Likewise.
23476         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
23477         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
23478         * lib/unictype/pr_bidi_block_separator.h: Likewise.
23479         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
23480         * lib/unictype/pr_bidi_common_separator.h: Likewise.
23481         * lib/unictype/pr_bidi_control.h: Likewise.
23482         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
23483         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
23484         * lib/unictype/pr_bidi_pdf.h: Likewise.
23485         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
23486         * lib/unictype/pr_bidi_whitespace.h: Likewise.
23487         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
23488         * lib/unictype/pr_format_control.h: Likewise.
23489         * lib/unictype/pr_hex_digit.h: Likewise.
23490         * lib/unictype/pr_hyphen.h: Likewise.
23491         * lib/unictype/pr_ids_binary_operator.h: Likewise.
23492         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
23493         * lib/unictype/pr_iso_control.h: Likewise.
23494         * lib/unictype/pr_join_control.h: Likewise.
23495         * lib/unictype/pr_left_of_pair.h: Likewise.
23496         * lib/unictype/pr_line_separator.h: Likewise.
23497         * lib/unictype/pr_math.h: Likewise.
23498         * lib/unictype/pr_non_break.h: Likewise.
23499         * lib/unictype/pr_not_a_character.h: Likewise.
23500         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
23501         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
23502         * lib/unictype/pr_other_id_continue.h: Likewise.
23503         * lib/unictype/pr_other_id_start.h: Likewise.
23504         * lib/unictype/pr_other_lowercase.h: Likewise.
23505         * lib/unictype/pr_other_math.h: Likewise.
23506         * lib/unictype/pr_other_uppercase.h: Likewise.
23507         * lib/unictype/pr_paired_punctuation.h: Likewise.
23508         * lib/unictype/pr_paragraph_separator.h: Likewise.
23509         * lib/unictype/pr_pattern_syntax.h: Likewise.
23510         * lib/unictype/pr_pattern_white_space.h: Likewise.
23511         * lib/unictype/pr_private_use.h: Likewise.
23512         * lib/unictype/pr_quotation_mark.h: Likewise.
23513         * lib/unictype/pr_radical.h: Likewise.
23514         * lib/unictype/pr_soft_dotted.h: Likewise.
23515         * lib/unictype/pr_space.h: Likewise.
23516         * lib/unictype/pr_titlecase.h: Likewise.
23517         * lib/unictype/pr_variation_selector.h: Likewise.
23518         * lib/unictype/pr_white_space.h: Likewise.
23519         * lib/unictype/sy_c_ident.h: Likewise.
23520         * lib/unictype/sy_c_whitespace.h: Likewise.
23521         * lib/unictype/sy_java_whitespace.h: Likewise.
23522         * modules/uni*/*: Bump version number of expected libunistring version.
23523         Reported by Simon Josefsson.
23524
23525 2011-01-09  Karl Heuer  <kwzh@gnu.org>
23526
23527         useless-if-before-free: fix typo in --help and make the internal,
23528         automatic version date update process work once again.
23529         --help output contained a NUL character instead of the
23530         backslash-zero that was intended.  Also, the "must lie within
23531         the first 8 lines" line is on line 9, and hence not getting
23532         automatically updated.
23533         * build-aux/useless-if-before-free: Fix the former by adding a
23534         backslash, and the latter by condensing the three lines of what-it-does
23535         to a single line, leaving one line of slack for the future.
23536
23537 2011-01-09  Bruno Haible  <bruno@clisp.org>
23538
23539         uniwidth/width: Fix width of U+1D173..U+1D17A.
23540         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
23541         symbolic_width, output_width_property_test): New functions.
23542         (main): Invoke output_nonspacing_property, output_width_property_test.
23543         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
23544         U+1D173..U+1D17A.
23545         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
23546         1.
23547         * modules/uniwidth/*: Bump version number of expected libunistring
23548         version.
23549         * modules/unilbrk/*: Likewise.
23550
23551 2011-01-08  Bruno Haible  <bruno@clisp.org>
23552
23553         uninorm tests: Preserve copyright of Unicode data file.
23554         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
23555         Mention modifications.
23556
23557 2011-01-08  Bruno Haible  <bruno@clisp.org>
23558
23559         gen-uni-tables: Prepare for Unicode 5.2.0.
23560         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
23561         (debug_output_lbp, output_lbp): Update.
23562
23563 2011-01-08  Bruno Haible  <bruno@clisp.org>
23564
23565         unilbrk: Clarify gen-uni-tables.c code.
23566         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
23567         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
23568         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
23569
23570 2011-01-07  Bruno Haible  <bruno@clisp.org>
23571
23572         strtod: Restore errno when successfully parsing Infinity or NaN.
23573         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
23574         restore the original errno.
23575
23576 2011-01-07  Bruno Haible  <bruno@clisp.org>
23577
23578         remove test: Avoid failure on HP-UX 11.
23579         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
23580
23581 2011-01-07  Bruno Haible  <bruno@clisp.org>
23582
23583         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
23584         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
23585         error code.
23586
23587 2011-01-07  Pádraig Brady <P@draigBrady.com>
23588
23589         ignore-value: fixup comments, and add Eric Blake
23590         as an author since he rewrote the macros.
23591         * lib/ignore-value.h (ignore_value):  State that
23592         we now support aggregates.  Also specify exactly
23593         when the GCC warn_unused_result feature was added.
23594
23595 2011-01-06  Eric Blake  <eblake@redhat.com>
23596
23597         ignore-value: support aggregate types
23598         * lib/ignore-value.h (ignore_value): Provide separate gcc
23599         definition.
23600         * modules/ignore-value-tests: New test module.
23601         * tests/test-ignore-value.c: New test.
23602
23603         maint.mk: improve sc_prohibit_strcmp regex
23604         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
23605         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
23606         definition of STRNEQ.
23607
23608         signal: work around Haiku issue with SIGBUS
23609         * lib/siglist.h: Add comment.
23610         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
23611         strsignal's favoring of SIGSEGV.
23612         * tests/test-signal.c (main): Avoid test failure.
23613         * doc/posix-headers/signal.texi (signal.h): Document the issue.
23614         Reported by Scott McCreary.
23615
23616         maint.mk: add pre-release check to ensure submodule commits are public
23617         * top/maint.mk (public-submodule-commit): New rule.
23618         (submodule-checks): New variable.
23619         (alpha beta stable): Depend on the variable.
23620
23621 2011-01-05  Pádraig Brady <P@draigBrady.com>
23622         and Jim Meyering  <meyering@redhat.com>
23623
23624         ignore-value: make ignore_value more generic; deprecate ignore_ptr
23625         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
23626         (ATTRIBUTE_DEPRECATED): Define.
23627         (_ignore_case): New function.
23628         (ignore_value): New macro, to replace the old function.
23629         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
23630         * modules/ignore-value (Depends-on): Add stdint.
23631
23632 2011-01-04  Eric Blake  <eblake@redhat.com>
23633
23634         doc: regenerate INSTALL
23635         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
23636         @firstparagraphindent support, now that autoconf dropped it.
23637         (INSTALL_PRELUDE): Reinstate old macro.
23638         * doc/install.texi: Resync from autoconf.
23639         * doc/INSTALL: Reflect recent autoconf update.
23640         * doc/INSTALL.ISO: Likewise.
23641         * doc/INSTALL.UTF-8: Likewise.
23642         Reported by Karl Berry.
23643
23644 2011-01-04  Bruce Korb  <address@hidden>
23645
23646         git-version-gen: avoid a sub-shell
23647         * build-aux/git-version-gen: Redirect stderr in `...` via
23648         "exec 2>...", rather than via an added sub-shell.
23649
23650 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
23651
23652         git-version-gen: use (...) rather than sh -c '...'
23653         * build-aux/git-version-gen: Rather than hard-coding a shell's name
23654         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
23655
23656 2011-01-03  Jim Meyering  <meyering@redhat.com>
23657
23658         git-version-gen: convert leading TABs to spaces
23659         * build-aux/git-version-gen: Expand leading TABs.
23660
23661         git-version-gen: handle failed "git rev-list"
23662         * build-aux/git-version-gen: Rather than leaking a "fatal" error
23663         from git and proceeding as if it had succeeded but printed no SHA1
23664         checksums, suppress the diagnostic and handle the failure.
23665         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
23666
23667         git-version-gen: include command name in one more diagnostic
23668         * build-aux/git-version-gen: When the required .tarball-version file
23669         was missing or unreadable, you might see the diagnostic from "cat",
23670         but no trace of the name of the invoking script.  Now, you still see
23671         the diagnostic from cat, but also get one from "git-version-gen: ".
23672         Inspired by a patch from Bruce Korb.
23673
23674         update-copyright: adjust test to match changed code
23675         * tests/test-update-copyright.sh: Change test's expected output
23676         to match new actual output.
23677
23678 2011-01-02  Bruno Haible  <bruno@clisp.org>
23679
23680         getlogin_r: Avoid test failure on HP-UX 11.
23681         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
23682         ERANGE when the second argument is zero.
23683         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
23684         portability problem.
23685
23686 2011-01-02  Bruce Korb  <bkorb@gnu.org>
23687
23688         * build-aux/update-copyright: doc Simon's changes
23689
23690 2011-01-02  Simon Josefsson  <simon@josefsson.org>
23691
23692         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
23693         environment variable.
23694
23695 2011-01-02  Bruno Haible  <bruno@clisp.org>
23696
23697         unigbrk: Avoid gcc warnings.
23698         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
23699         unused variable.
23700         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
23701         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
23702         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
23703         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
23704         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
23705         Change type of first argument to 'const char *'.
23706         (main): Remove unused variable.
23707         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
23708         type of first argument to 'const char *'.
23709         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
23710         Likewise.
23711         (main): Change type of variable 's'.
23712         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
23713         to 'int'.
23714
23715 2011-01-02  Bruno Haible  <bruno@clisp.org>
23716
23717         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
23718         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
23719         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
23720         bug.
23721         * lib/pwrite.c: Undo 2010-12-31 patch.
23722         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
23723
23724 2011-01-02  Bruno Haible  <bruno@clisp.org>
23725
23726         pread: Fix test whether it works.
23727         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
23728
23729 2011-01-02  Bruno Haible  <bruno@clisp.org>
23730
23731         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
23732         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
23733         ends in "6". Don't require a specific month name. Try also the locale
23734         names found on HP-UX 11 and Solaris 7.
23735
23736 2011-01-02  Bruno Haible  <bruno@clisp.org>
23737
23738         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
23739         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
23740         C linkage.
23741         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
23742
23743 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23744
23745         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
23746         for consistency, since the "cluster" term is not used elsewhere.
23747         * lib/unigbrk.in.h: Update name.
23748         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
23749         * lib/unigbrk/u16-grapheme-next.c: Update name.
23750         * lib/unigbrk/u16-grapheme-prev.c: Update name.
23751         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
23752         * lib/unigbrk/u32-grapheme-next.c: Update name.
23753         * lib/unigbrk/u32-grapheme-prev.c: Update name.
23754         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
23755         * lib/unigbrk/u8-grapheme-next.c: Update name.
23756         * lib/unigbrk/u8-grapheme-prev.c: Update name.
23757         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
23758         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
23759         Suggested by Bruno Haible.
23760
23761 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23762
23763         Remove module 'u8-grapheme-len' as too redundant with
23764         'u8-grapheme-next'.
23765         * modules/unigbrk/u8-grapheme-len: Delete file.
23766         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
23767         * lib/unigbrk.in.h: Remove prototype for deleted function.
23768         * lib/unigbrk/u8-grapheme-len.c: Delete file.
23769         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
23770
23771         Remove module 'u16-grapheme-len' as too redundant with
23772         'u16-grapheme-next'.
23773         * modules/unigbrk/u16-grapheme-len: Delete file.
23774         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
23775         * lib/unigbrk.in.h: Remove prototype for deleted function.
23776         * lib/unigbrk/u16-grapheme-len.c: Delete file.
23777         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
23778
23779         Remove module 'u32-grapheme-len' as too redundant with
23780         'u32-grapheme-next'.
23781         * modules/unigbrk/u32-grapheme-len: Delete file.
23782         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
23783         * lib/unigbrk.in.h: Remove prototype for deleted function.
23784         * lib/unigbrk/u32-grapheme-len.c: Delete file.
23785         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
23786
23787         Suggested by Bruno Haible.
23788
23789 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23790
23791         * unigbrk.in.h: Fix typo: "ben" => "been".
23792         Reported by Bruno Haible.
23793
23794 2011-01-01  Jim Meyering  <meyering@redhat.com>
23795
23796         maint: update almost all copyright ranges to include 2011
23797         Run the new "make update-copyright" rule.
23798
23799 2011-01-01  Jim Meyering  <meyering@redhat.com>
23800
23801         maint: update-copyright: exempt doc/INSTALL*
23802         * Makefile (update-copyright): Also exclude doc/INSTALL*,
23803         since they are generated.  Suggested by Bruno Haible.
23804
23805 2011-01-01  Jim Meyering  <meyering@redhat.com>
23806
23807         maint: refine the update-copyright rule
23808         * Makefile (update-copyright): Also exclude any file that includes
23809         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
23810         code that merely generates the comment.
23811
23812 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23813
23814         New module 'u8-grapheme-len'.
23815         * modules/unigbrk/u8-grapheme-len: New file.
23816         * modules/unigbrk/u8-grapheme-len-tests: New file.
23817         * lib/unigbrk.in.h: Add prototype for new function.
23818         * lib/unigbrk/u8-grapheme-len.c: New file.
23819         * tests/unigbrk/test-u8-grapheme-len.c: New file.
23820
23821         New module 'u16-grapheme-len'.
23822         * modules/unigbrk/u16-grapheme-len: New file.
23823         * modules/unigbrk/u16-grapheme-len-tests: New file.
23824         * lib/unigbrk.in.h: Add prototype for new function.
23825         * lib/unigbrk/u16-grapheme-len.c: New file.
23826         * tests/unigbrk/test-u16-grapheme-len.c: New file.
23827
23828         New module 'u32-grapheme-len'.
23829         * modules/unigbrk/u32-grapheme-len: New file.
23830         * modules/unigbrk/u32-grapheme-len-tests: New file.
23831         * lib/unigbrk.in.h: Add prototype for new function.
23832         * lib/unigbrk/u32-grapheme-len.c: New file.
23833         * tests/unigbrk/test-u32-grapheme-len.c: New file.
23834
23835         New module 'u8-grapheme-next'.
23836         * modules/unigbrk/u8-grapheme-next: New file.
23837         * modules/unigbrk/u8-grapheme-next-tests: New file.
23838         * lib/unigbrk.in.h: Add prototype for new function.
23839         * lib/unigbrk/u8-grapheme-next.c: New file.
23840         * tests/unigbrk/test-u8-grapheme-next.c: New file.
23841
23842         New module 'u16-grapheme-next'.
23843         * modules/unigbrk/u16-grapheme-next: New file.
23844         * modules/unigbrk/u16-grapheme-next-tests: New file.
23845         * lib/unigbrk.in.h: Add prototype for new function.
23846         * lib/unigbrk/u16-grapheme-next.c: New file.
23847         * tests/unigbrk/test-u16-grapheme-next.c: New file.
23848
23849         New module 'u32-grapheme-next'.
23850         * modules/unigbrk/u32-grapheme-next: New file.
23851         * modules/unigbrk/u32-grapheme-next-tests: New file.
23852         * lib/unigbrk.in.h: Add prototype for new function.
23853         * lib/unigbrk/u32-grapheme-next.c: New file.
23854         * tests/unigbrk/test-u32-grapheme-next.c: New file.
23855
23856         New module 'u8-grapheme-prev'.
23857         * modules/unigbrk/u8-grapheme-prev: New file.
23858         * modules/unigbrk/u8-grapheme-prev-tests: New file.
23859         * lib/unigbrk.in.h: Add prototype for new function.
23860         * lib/unigbrk/u8-grapheme-prev.c: New file.
23861         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
23862
23863         New module 'u16-grapheme-prev'.
23864         * modules/unigbrk/u16-grapheme-prev: New file.
23865         * modules/unigbrk/u16-grapheme-prev-tests: New file.
23866         * lib/unigbrk.in.h: Add prototype for new function.
23867         * lib/unigbrk/u16-grapheme-prev.c: New file.
23868         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
23869
23870         New module 'u32-grapheme-prev'.
23871         * modules/unigbrk/u32-grapheme-prev: New file.
23872         * modules/unigbrk/u32-grapheme-prev-tests: New file.
23873         * lib/unigbrk.in.h: Add prototype for new function.
23874         * lib/unigbrk/u32-grapheme-prev.c: New file.
23875         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
23876
23877         New module 'u8-grapheme-breaks'.
23878         * modules/unigbrk/u8-grapheme-breaks: New file.
23879         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
23880         * lib/unigbrk.in.h: Add prototype for new function.
23881         * lib/unigbrk/u8-grapheme-breaks.c: New file.
23882         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
23883
23884         New module 'u16-grapheme-breaks'.
23885         * modules/unigbrk/u16-grapheme-breaks: New file.
23886         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
23887         * lib/unigbrk.in.h: Add prototype for new function.
23888         * lib/unigbrk/u16-grapheme-breaks.c: New file.
23889         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
23890
23891         New module 'u32-grapheme-breaks'.
23892         * modules/unigbrk/u32-grapheme-breaks: New file.
23893         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
23894         * lib/unigbrk.in.h: Add prototype for new function.
23895         * lib/unigbrk/u32-grapheme-breaks.c: New file.
23896         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
23897
23898         New module 'ulc-grapheme-breaks'.
23899         * modules/unigbrk/ulc-grapheme-breaks: New file.
23900         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
23901         * m4/locale-ar.m4: New file.
23902         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
23903         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
23904         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
23905
23906 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23907
23908         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
23909         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
23910         modified how this file was generated before I initially submitted
23911         the module, but failed to regenerate it.  This meant that several
23912         of the level2 entries were wrong.
23913         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
23914         Remove the division-by-2 that is folded into the table now that
23915         gbrkprop.h has been regenerated properly.  Now -1 entries are
23916         handled correctly.
23917
23918         New module 'unigbrk/uc-gbrk-prop-tests'.
23919         * modules/unigbrk/uc-gbrk-prop-tests: New file.
23920         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
23921         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
23922         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
23923
23924 2011-01-01  Bruno Haible  <bruno@clisp.org>
23925
23926         Avoid use of hexadecimal escapes.
23927         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
23928         instead of hexadecimal escapes.
23929
23930 2011-01-01  Jim Meyering  <meyering@redhat.com>
23931
23932         maint: new rule to update copyright year ranges
23933         * Makefile (update-copyright): New rule.
23934
23935         maint: indent with TABs in Makefile
23936         * Makefile: Expand leading sequences of spaces to TABs
23937
23938         version-etc: update the copyright year it reports
23939         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
23940
23941 2010-12-31  Bruno Haible  <bruno@clisp.org>
23942
23943         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
23944         * lib/isfinite.c (zerof, zerod, zerol): New variables.
23945         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
23946         zero.
23947
23948 2010-12-31  Bruno Haible  <bruno@clisp.org>
23949
23950         pwrite: Work around HP-UX 11.11 bug.
23951         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
23952         works and set REPLACE_PWRITE if not.
23953         * lib/pwrite.c (pwrite): Add an implementation that uses the system
23954         function.
23955         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
23956
23957 2010-12-31  Bruno Haible  <bruno@clisp.org>
23958
23959         pread: Work around HP-UX 11 bugs.
23960         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
23961         and set REPLACE_PREAD if not.
23962         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
23963
23964 2010-12-31  Eric Blake  <eblake@redhat.com>
23965
23966         nl_langinfo: fix YESEXPR on Irix 6.5
23967         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
23968         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
23969         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
23970         it.
23971
23972 2010-12-31  Bruno Haible  <bruno@clisp.org>
23973
23974         iconv: Document HP-UX 11 bug.
23975         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
23976
23977 2010-12-31  Bruno Haible  <bruno@clisp.org>
23978
23979         ldexpl: Fix link error on HP-UX 11.
23980         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
23981         LDEXPL_LIBM, using $ISNANL_LIBM.
23982
23983 2010-12-31  Eric Blake  <eblake@redhat.com>
23984
23985         ftello: avoid compilation failure with SunStudio c89
23986         * lib/ftello.c (ftello): Use lseek, not llseek.
23987
23988         tests: avoid failing coreutils tests on cygwin
23989         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
23990         (create_exe_shims_): Return 0 when skipping.
23991
23992 2010-12-31  Bruno Haible  <bruno@clisp.org>
23993
23994         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
23995         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
23996
23997 2010-12-31  Bruno Haible  <bruno@clisp.org>
23998
23999         waitpid: Fix link error in C++ mode.
24000         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
24001
24002 2010-12-31  Bruno Haible  <bruno@clisp.org>
24003
24004         isnan: Use GCC built-ins when possible.
24005         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
24006         __builtin_isnan.
24007         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
24008         (isnan): Define using GCC built-ins for GCC >= 4.0.
24009
24010 2010-12-31  Bruno Haible  <bruno@clisp.org>
24011
24012         isnand: Fix mistake.
24013         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
24014         __builtin_isnand.
24015
24016 2010-12-31  Bruno Haible  <bruno@clisp.org>
24017
24018         open: Avoid C++ error on HP-UX 11.
24019         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
24020
24021 2010-12-31  Bruno Haible  <bruno@clisp.org>
24022
24023         time_r: Add missing declarations on HP-UX 11.
24024         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
24025         instead of HAVE_LOCALTIME_R.
24026         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
24027         HAVE_LOCALTIME_R always.
24028         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
24029         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
24030         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
24031         HAVE_LOCALTIME_R.
24032         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
24033         * doc/posix-functions/localtime_r.texi: Likewise.
24034
24035 2010-12-29  Eric Blake  <eblake@redhat.com>
24036
24037         mountlist: tweak previous commit
24038         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
24039         Reported by Paul Eggert.
24040
24041         mountlist: fix local drive detection on cygwin
24042         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
24043         that works for cygwin.
24044
24045 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
24046
24047         ftoastr, snprintf: ftoastr + snprintf module
24048         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
24049         since the snprintf module now should be good enough here.
24050         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
24051         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
24052         and gl_MODULE_INDICATOR([snprintf]), but the former enables
24053         GNULIB_SNPRINTF only for the test directory, and the latter
24054         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
24055         seems to suffice by itself.
24056
24057 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
24058
24059         alloca: one step towards thread-safety
24060         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
24061         need for a static variable.  All callers changed.  This does not
24062         make the alloca replacement thread-safe, but it's one step.
24063
24064         tests: minor indenting change
24065         * tests/init.sh: Sync from coreutils housekeeping patch
24066         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
24067         to keep lines within 80 columns.
24068
24069 2010-12-28  Jim Meyering  <meyering@redhat.com>
24070
24071         regex: don't infloop on persistent failing calloc
24072         * lib/regexec.c (build_trtable): Return failure indication upon
24073         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
24074         In glibc, this was fixed for version 2.13:
24075         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
24076
24077 2010-12-28  Bruno Haible  <bruno@clisp.org>
24078             Paul Eggert <eggert@cs.ucla.edu>
24079
24080         linkat: Make implementation robust against system behaviour variations.
24081         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
24082         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
24083         way, and to -2 if it needs a generic runtime test.
24084         * lib/linkat.c (solaris_optimized_link_immediate,
24085         solaris_optimized_link_follow): New functions.
24086         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
24087         (check_same_link): Use it.
24088
24089 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
24090
24091         New module 'unigbrk/base'.
24092         * modules/unigbrk/base: New file.
24093         * lib/unigbrk.in.h: New file.
24094
24095         New module 'unigbrk/uc-gbrk-prop'.
24096         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
24097         * modules/unigbrk/uc-gbrk-prop: New file.
24098         * lib/unigbrk/gbrkprop.h: New file.
24099         * lib/unigbrk/uc-gbrk-prop.c: New file.
24100
24101         New module 'unigbrk/uc-is-grapheme-break'.
24102         * modules/unigbrk/uc-is-grapheme-break: New file.
24103         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
24104         * lib/unigbrk/uc-is-grapheme-break.c: New file.
24105         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
24106         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
24107         * tests/unigbrk/GraphemeBreakTest.txt: New file.
24108
24109         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
24110
24111 2010-12-27  Bruno Haible  <bruno@clisp.org>
24112
24113         linkat test: Avoid failure on Solaris 11 2010-11.
24114         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
24115
24116 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
24117
24118         utimens: work around glibc rounding bug on more platforms
24119         * lib/utimens.c (fdutimens): Work around rounding bug even if
24120         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
24121         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
24122
24123 2010-12-27  Bruno Haible  <bruno@clisp.org>
24124
24125         select tests: Improve comments.
24126         * tests/test-select.c (do_select): Add comments.
24127
24128 2010-12-27  Bruno Haible  <bruno@clisp.org>
24129
24130         select tests: Safer way of handling timeout.
24131         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
24132         at every invocation.
24133
24134 2010-12-27  Bruno Haible  <bruno@clisp.org>
24135
24136         select tests: Use 'bool' where appropriate.
24137         * tests/test-select.c (connect_to_socket): Change argument type to
24138         'bool'.
24139
24140 2010-12-27  Bruno Haible  <bruno@clisp.org>
24141
24142         select tests: Use existing modules.
24143         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
24144         (configure.ac): Don't test for unistd.h.
24145         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
24146         declared in <unistd.h>.
24147
24148 2010-12-27  Bruno Haible  <bruno@clisp.org>
24149
24150         mbrtowc: Work around a Solaris 7 bug.
24151         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
24152         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
24153         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
24154         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
24155         MBRTOWC_NULL_ARG1_BUG.
24156         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
24157         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
24158         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
24159         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
24160
24161 2010-12-27  Jim Meyering  <meyering@redhat.com>
24162
24163         read-file.c: tweak syntax
24164         * lib/read-file.c (fread_file): Remove space after "*" in function
24165         definitions.
24166
24167 2010-12-27  Bruno Haible  <bruno@clisp.org>
24168
24169         times test: Avoid gcc warnings on OSF/1.
24170         * tests/test-times.c (main): Cast printf arguments from clock_t to
24171         'long int'.
24172
24173 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
24174
24175         utimens: work around glibc rounding bug on older Linux kernels
24176         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
24177         on Linux with a glibc whose utimes might not work, then work
24178         around a longstanding glibc bug involving rounding rather than
24179         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
24180         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
24181
24182 2010-12-26  Bruno Haible  <bruno@clisp.org>
24183
24184         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
24185         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
24186         _GL_CXXALIAS_SYS.
24187         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24188
24189 2010-12-26  Bruno Haible  <bruno@clisp.org>
24190
24191         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
24192         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
24193         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24194         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
24195         looking for the declaration.
24196         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
24197         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
24198         problem.
24199         * doc/posix-functions/inet_pton.texi: Likewise.
24200
24201 2010-12-26  Bruno Haible  <bruno@clisp.org>
24202
24203         arpa_inet: Use the common idioms with C++ support.
24204         * lib/arpa_inet.in.h: Include c++defs.h.
24205         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
24206         support.
24207         * modules/arpa_inet (Depends-on): Add c++defs.
24208         (Makefile.am): Substitute the contents of c++defs.h.
24209         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
24210         * modules/arpa_inet-c++-tests: New file.
24211         * tests/test-arpa_inet-c++.cc: New file.
24212
24213 2010-12-25  Bruno Haible  <bruno@clisp.org>
24214
24215         Fix more C++ link errors on Solaris 8.
24216         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
24217         $(LIB_EACCESS).
24218         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
24219         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
24220         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
24221         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
24222         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
24223
24224 2010-12-25  Bruno Haible  <bruno@clisp.org>
24225
24226         printf-posix: Fix link error when a non-GCC compiler is used.
24227         * lib/stdio.in.h (printf): When not using GCC, override printf
24228         correctly.
24229         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24230
24231 2010-12-25  Bruno Haible  <bruno@clisp.org>
24232
24233         strerror_r-posix: Update doc.
24234         * doc/posix-functions/strerror_r.texi: Update doc about the return
24235         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
24236
24237 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
24238
24239         utimens: simplify the logic of the previous change
24240         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
24241         This should not affect whether the test succeeds or fails.
24242
24243         utimens: configure better on hosts with NFS clock skew
24244         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
24245         uses the clock of the local host.  It might use the clock of the
24246         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
24247         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
24248
24249 2010-12-25  Bruno Haible  <bruno@clisp.org>
24250
24251         ptsname test: Avoid failure on Solaris.
24252         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
24253         open a pseudo-terminal; don't use BSD-style ptys.
24254         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
24255
24256 2010-12-25  Bruno Haible  <bruno@clisp.org>
24257
24258         ptsname: Avoid ERANGE failure on some systems.
24259         * lib/ptsname.c (buffer): Increase size.
24260
24261 2010-12-25  Bruno Haible  <bruno@clisp.org>
24262
24263         rename, renameat: Avoid test failures at NFS mounted locations.
24264         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
24265         so that subsequent mkdir calls succeed.
24266
24267 2010-12-25  Bruno Haible  <bruno@clisp.org>
24268
24269         iswblank: Fix C++ link error on Solaris 8.
24270         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
24271         _GL_FUNCDECL_SYS.
24272
24273 2010-12-25  Bruno Haible  <bruno@clisp.org>
24274
24275         unistd: Fix C++ link error on Solaris 8.
24276         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
24277
24278 2010-12-25  Bruno Haible  <bruno@clisp.org>
24279
24280         readlink doc: Mention an old glibc bug.
24281         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
24282
24283 2010-12-25  Bruno Haible  <bruno@clisp.org>
24284
24285         fcntl-h: Fix for use of C++ on glibc systems.
24286         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24287         also on glibc systems in C++ mode.
24288         Reported by Gary V. Vaughan <gary@gnu.org>.
24289
24290 2010-12-25  Bruno Haible  <bruno@clisp.org>
24291
24292         roundl-ieee: Make it work on OSF/1 5.1 with cc.
24293         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
24294
24295 2010-12-25  Bruno Haible  <bruno@clisp.org>
24296
24297         truncl-ieee: Make it work on OSF/1 5.1 with cc.
24298         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
24299         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
24300         test whether truncl works according to ISO C 99 with IEC 60559.
24301         * m4/truncl-ieee.m4: New file.
24302         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
24303         m4/signbit.m4.
24304         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
24305
24306 2010-12-25  Bruno Haible  <bruno@clisp.org>
24307
24308         ceill-ieee: Make it work on OSF/1 5.1 with cc.
24309         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
24310         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
24311         test whether ceill works according to ISO C 99 with IEC 60559.
24312         * m4/ceill-ieee.m4: New file.
24313         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
24314         m4/signbit.m4.
24315         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
24316
24317 2010-12-25  Bruno Haible  <bruno@clisp.org>
24318
24319         Ensure all prerequisites of <wchar.h> are included.
24320         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
24321         before <wchar.h>.
24322         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
24323         gl_MBRLEN_NUL_RETVAL): Likewise.
24324         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
24325         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
24326         AC_FUNC_MBRTOWC): Likewise.
24327         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24328         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24329         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24330         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
24331         Likewise.
24332         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
24333         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
24334         (gl_WCHAR_H): Improve comments.
24335         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24336
24337 2010-12-25  Bruno Haible  <bruno@clisp.org>
24338
24339         strtok_r: Fix C syntax error in autoconf macro.
24340         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
24341         characters in test program.
24342
24343 2010-12-24  Bruno Haible  <bruno@clisp.org>
24344
24345         ceil, trunc, round: Fix gcc warnings.
24346         * lib/ceil.c (MIN): Undefine before redefining.
24347         * lib/trunc.c (MIN): Likewise.
24348         * lib/round.c (MIN): Likewise.
24349         Include <math.h> first.
24350
24351 2010-12-24  Bruno Haible  <bruno@clisp.org>
24352
24353         select tests: Avoid failures on OSF/1 5.1.
24354         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
24355         failure of closing the last socket; it may fail with ECONNRESET.
24356
24357 2010-12-24  Eric Blake  <eblake@redhat.com>
24358
24359         stdint: avoid HP-UX 10.20 preprocessor bug
24360         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
24361         than #if.
24362         * tests/test-floor2.c (main): Likewise.
24363         Reported by Peter O'Gorman.
24364
24365         pipe: make obsoletion transition easier
24366         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
24367         * modules/pipe (Files): Include revived file.
24368         (Include): Drop reference, to mirror getdate's behavior.
24369
24370 2010-12-24  Bruno Haible  <bruno@clisp.org>
24371
24372         sys_socket: Hide mismatch of declarations on NonStop Kernel.
24373         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
24374         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
24375         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24376
24377 2010-12-24  Bruno Haible  <bruno@clisp.org>
24378
24379         gethostname: Ensure declaration on NonStop Kernel.
24380         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
24381         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24382
24383 2010-12-24  Bruno Haible  <bruno@clisp.org>
24384
24385         sys_select: Ensure all necessary types on NonStop Kernel.
24386         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
24387         include <sys/time.h>.
24388         * doc/posix-headers/sys_select.texi: Mention that it's missing on
24389         NonStop Kernel.
24390         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24391
24392 2010-12-24  Bruno Haible  <bruno@clisp.org>
24393
24394         sys_select: Remove unneeded include.
24395         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
24396         have <sys/select.h>.
24397
24398 2010-12-24  Bruno Haible  <bruno@clisp.org>
24399
24400         gethostname: Provide a fallback for HOST_NAME_MAX.
24401         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
24402         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
24403         instead.
24404         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24405
24406 2010-12-24  Bruno Haible  <bruno@clisp.org>
24407
24408         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
24409         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
24410         (SA_RESTART): Likewise.
24411         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24412
24413 2010-12-24  Bruno Haible  <bruno@clisp.org>
24414
24415         signal: Define NSIG.
24416         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
24417         * tests/test-signal.c (nsig): New variable.
24418         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24419
24420 2010-12-24  Bruno Haible  <bruno@clisp.org>
24421
24422         rename, renameat: Avoid test failures on OSF/1 5.1.
24423         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
24424         alternative error codes.
24425         * tests/test-renameat.c (main): Likewise.
24426
24427 2010-12-24  Bruno Haible  <bruno@clisp.org>
24428
24429         *printf: Detect large precisions bug on Solaris 10/SPARC.
24430         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
24431         by Paul Eggert.
24432         * tests/test-snprintf-posix.h (test_function): Add this test code here
24433         too.
24434         * tests/test-sprintf-posix.h (test_function): Likewise.
24435         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24436         * tests/test-vasprintf-posix.c (test_function): Likewise.
24437         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
24438         around by gnulib.
24439         * doc/posix-functions/printf.texi: Likewise.
24440         * doc/posix-functions/snprintf.texi: Likewise.
24441         * doc/posix-functions/sprintf.texi: Likewise.
24442         * doc/posix-functions/vfprintf.texi: Likewise.
24443         * doc/posix-functions/vprintf.texi: Likewise.
24444         * doc/posix-functions/vsnprintf.texi: Likewise.
24445         * doc/posix-functions/vsprintf.texi: Likewise.
24446         * doc/posix-functions/dprintf.texi: Undo last commit.
24447         * doc/posix-functions/vdprintf.texi: Likewise.
24448
24449 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
24450
24451         tests: port test-fdutimensat.c to Solaris 8
24452         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
24453         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
24454         On Solaris 8, it fails with errno == ENOSYS, because there is no
24455         futimens (so it can't use the fd), and there is no lutimens (so it
24456         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
24457
24458         vsnprintf: make more consistent with snprintf; doc fixes
24459
24460         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
24461         the byte count return problem was promoted from the snprintf-posix
24462         to the snprintf module.
24463         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
24464         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
24465         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
24466         * tests/test-snprintf.c (main): Check the byte count returned.
24467         * tests/test-vsnprintf.c (main): Likewise.
24468
24469 2010-12-23  Eric Blake  <eblake@redhat.com>
24470
24471         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
24472         * modules/sigpipe (License): Relax license.
24473
24474 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
24475
24476         doc: document Solaris printf bug with large float precisions
24477         * doc/posix-functions/dprintf.texi (dprintf):
24478         * doc/posix-functions/fprintf.texi (fprintf):
24479         * doc/posix-functions/printf.texi (printf):
24480         * doc/posix-functions/snprintf.texi (snprintf):
24481         * doc/posix-functions/sprintf.texi (sprintf):
24482         * doc/posix-functions/vdprintf.texi (vdprintf):
24483         * doc/posix-functions/vfprintf.texi (vfprintf):
24484         * doc/posix-functions/vprintf.texi (vprintf):
24485         * doc/posix-functions/vsnprintf.texi (vsnprintf):
24486         * doc/posix-functions/vsprintf.texi (vsprintf):
24487         Mention that these functions mishandle large floating point
24488         precisions on Solaris 10.  The same bug is also present in Solaris
24489         8, and I assume earlier.  This causes "cd gnulib-tests; make
24490         check" to fail on Solaris 8 (and I assume, later) when building
24491         the latest coreutils, in test-vasprintf-posix's call to
24492         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
24493         the wide flavors (e.g., wprintf) so this patch just updates the
24494         documentation for the narrow ones.
24495
24496         test-posixtm.c: add two tests
24497         * tests/test-posixtm.c: Add two tests, to highlight the
24498         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
24499         around this bug; this is merely to document it.
24500
24501 2010-12-22  Bruno Haible  <bruno@clisp.org>
24502
24503         getlogin_r: Work around portability problem on OSF/1.
24504         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
24505         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
24506         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
24507         test for a truncated result.
24508         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
24509         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
24510         * modules/getlogin_r (Depends-on): Add memchr.
24511         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
24512
24513 2010-12-22  Bruno Haible  <bruno@clisp.org>
24514
24515         ptsname: Avoid test failure on OSF/1 5.1.
24516         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
24517         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
24518         (same_slave): New function.
24519         (main): Use it to compare ptsname's result with the expected file name.
24520
24521 2010-12-22  Bruno Haible  <bruno@clisp.org>
24522
24523         Port extended stdio modules to HP NonStop Kernel.
24524         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
24525         macros.
24526         * lib/fbufmode.c: Update comments.
24527         * lib/fflush.c: Likewise.
24528         * lib/fpurge.c: Likewise.
24529         * lib/freadable.c: Likewise.
24530         * lib/freadahead.c: Likewise.
24531         * lib/freading.c: Likewise.
24532         * lib/freadptr.c: Likewise.
24533         * lib/freadseek.c: Likewise.
24534         * lib/fseeko.c: Likewise.
24535         * lib/fseterr.c: Likewise.
24536         * lib/fwritable.c: Likewise.
24537         * lib/fwriting.c: Likewise.
24538         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24539
24540 2010-12-22  Bruno Haible  <bruno@clisp.org>
24541
24542         ttyname_r: Work around bug on OSF/1 5.1.
24543         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
24544         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
24545         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
24546         present.
24547         * lib/ttyname_r.c (ttyname_r): Update comments.
24548
24549 2010-12-22  Bruno Haible  <bruno@clisp.org>
24550
24551         round: Implement result sign according to IEEE 754.
24552         * lib/round.c (MIN, MINUS_ZERO): New macros.
24553         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
24554         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
24555         * tests/test-round-ieee.c (main): Likewise.
24556         * tests/test-roundl-ieee.c (main): Likewise.
24557
24558         trunc: Implement result sign according to IEEE 754.
24559         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
24560         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
24561         * tests/test-trunc2.c: Include minus-zero.h.
24562         (MINUS_ZERO): New macro.
24563         (trunc_reference): Keep in sync with lib/trunc.c.
24564         * tests/test-truncf2.c: Include minus-zero.h.
24565         (MINUS_ZERO): New macro.
24566         (truncf_reference): Keep in sync with lib/trunc.c.
24567         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
24568         * tests/test-trunc-ieee.c (main): Likewise.
24569         * tests/test-truncl-ieee.c (main): Likewise.
24570
24571         ceil: Implement result sign according to IEEE 754.
24572         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
24573         (FUNC): Return -0.0 for -1 < x < 0.
24574         * tests/test-ceil2.c: Include minus-zero.h.
24575         (MINUS_ZERO): New macro.
24576         (ceil_reference): Keep in sync with lib/ceil.c.
24577         * tests/test-ceilf2.c: Include minus-zero.h.
24578         (MINUS_ZERO): New macro.
24579         (ceilf_reference): Keep in sync with lib/ceil.c.
24580         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
24581         * tests/test-ceil-ieee.c (main): Likewise.
24582         * tests/test-ceill-ieee.c (main): Likewise.
24583
24584         floor: Implement result sign according to IEEE 754.
24585         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
24586         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
24587         * tests/test-floorf2.c (floorf_reference): Likewise.
24588         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
24589         * tests/test-floor-ieee.c (main): Likewise.
24590         * tests/test-floorl-ieee.c (main): Likewise.
24591
24592 2010-12-22  Bruno Haible  <bruno@clisp.org>
24593
24594         getaddrinfo: Update doc.
24595         * doc/posix-functions/gai_strerror.texi: Return type is also different
24596         on AIX and HP-UX.
24597
24598 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
24599
24600         getaddrinfo, inet_ntop: Update doc for Solaris.
24601         * doc/posix-functions/gai_strerror.texi: Return type is also an
24602         issue on Solaris 9 and earlier.
24603         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
24604         on Solaris 10 and earlier.
24605
24606 2010-12-21  Bruno Haible  <bruno@clisp.org>
24607
24608         New module 'roundl-ieee'.
24609         * modules/roundl-ieee: New file.
24610         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
24611         test whether roundl works according to ISO C 99 with IEC 60559.
24612         * m4/roundl-ieee.m4: New file.
24613         * modules/roundl-ieee-tests: New file.
24614         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
24615         * tests/test-roundl.c (main): Remove signbit tests.
24616         * modules/roundl-tests (Depends-on): Remove signbit.
24617         * doc/posix-functions/roundl.texi: Mention the new module.
24618
24619 2010-12-21  Bruno Haible  <bruno@clisp.org>
24620
24621         New module 'truncl-ieee'.
24622         * modules/truncl-ieee: New file.
24623         * modules/truncl-ieee-tests: New file.
24624         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
24625         * tests/test-truncl.c (main): Remove signbit tests.
24626         * modules/truncl-tests (Depends-on): Remove signbit.
24627         * doc/posix-functions/truncl.texi: Mention the new module.
24628
24629 2010-12-21  Bruno Haible  <bruno@clisp.org>
24630
24631         New module 'ceill-ieee'.
24632         * modules/ceill-ieee: New file.
24633         * modules/ceill-ieee-tests: New file.
24634         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
24635         * tests/test-ceill.c (main): Remove signbit tests.
24636         * modules/ceill-tests (Depends-on): Remove signbit.
24637         * doc/posix-functions/ceill.texi: Mention the new module.
24638
24639 2010-12-21  Bruno Haible  <bruno@clisp.org>
24640
24641         New module 'floorl-ieee'.
24642         * modules/floorl-ieee: New file.
24643         * modules/floorl-ieee-tests: New file.
24644         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
24645         * tests/test-floorl.c (main): Remove signbit tests.
24646         * modules/floorl-tests (Depends-on): Remove signbit.
24647         * doc/posix-functions/floorl.texi: Mention the new module.
24648
24649 2010-12-21  Bruno Haible  <bruno@clisp.org>
24650
24651         New module 'round-ieee'.
24652         * modules/round-ieee: New file.
24653         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
24654         whether round works according to ISO C 99 with IEC 60559.
24655         * m4/round-ieee.m4: New file.
24656         * modules/round-ieee-tests: New file.
24657         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
24658         * tests/test-round1.c (main): Remove signbit tests.
24659         * modules/round-tests (Depends-on): Remove 'signbit'.
24660         * doc/posix-functions/round.texi: Mention the new module.
24661
24662 2010-12-21  Bruno Haible  <bruno@clisp.org>
24663
24664         New module 'trunc-ieee'.
24665         * modules/trunc-ieee: New file.
24666         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
24667         whether trunc works according to ISO C 99 with IEC 60559.
24668         * m4/trunc-ieee.m4: New file.
24669         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
24670         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
24671         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
24672         * modules/trunc-ieee-tests: New file.
24673         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
24674         * tests/test-trunc1.c (main): Remove signbit tests.
24675         * modules/trunc-tests (Depends-on): Remove 'signbit'.
24676         * doc/posix-functions/trunc.texi: Mention the new module.
24677
24678 2010-12-21  Bruno Haible  <bruno@clisp.org>
24679
24680         New module 'ceil-ieee'.
24681         * modules/ceil-ieee: New file.
24682         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
24683         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
24684         ISO C 99 with IEC 60559.
24685         * m4/ceil-ieee.m4: New file.
24686         * modules/ceil (Files): Add lib/ceil.c.
24687         (Depends-on): Add 'float'.
24688         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24689         * lib/math.in.h (ceil): New declaration.
24690         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
24691         REPLACE_CEIL.
24692         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
24693         * modules/ceil-ieee-tests: New file.
24694         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
24695         * tests/test-math-c++.cc: Check the signature of 'ceil'.
24696         * doc/posix-functions/ceil.texi: Mention the new module.
24697
24698 2010-12-21  Bruno Haible  <bruno@clisp.org>
24699
24700         New module 'floor-ieee'.
24701         * modules/floor-ieee: New file.
24702         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
24703         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
24704         ISO C 99 with IEC 60559.
24705         * m4/floor-ieee.m4: New file.
24706         * modules/floor (Files): Add lib/floor.c.
24707         (Depends-on): Add 'float'.
24708         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24709         * lib/math.in.h (floor): New declaration.
24710         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
24711         REPLACE_FLOOR.
24712         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
24713         * modules/floor-ieee-tests: New file.
24714         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
24715         * tests/test-math-c++.cc: Check the signature of 'floor'.
24716         * doc/posix-functions/floor.texi: Mention the new module.
24717
24718 2010-12-21  Bruno Haible  <bruno@clisp.org>
24719
24720         New module 'roundf-ieee'.
24721         * modules/roundf-ieee: New file.
24722         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
24723         test whether roundf works according to ISO C 99 with IEC 60559.
24724         * m4/roundf-ieee.m4: New file.
24725         * modules/roundf-ieee-tests: New file.
24726         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
24727         * tests/test-roundf1.c (main): Remove signbit tests.
24728         * modules/roundf-tests (Depends-on): Remove 'signbit'.
24729         * doc/posix-functions/roundf.texi: Mention the new module.
24730
24731 2010-12-21  Bruno Haible  <bruno@clisp.org>
24732
24733         New module 'truncf-ieee'.
24734         * modules/truncf-ieee: New file.
24735         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
24736         test whether truncf works according to ISO C 99 with IEC 60559.
24737         * m4/truncf-ieee.m4: New file.
24738         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
24739         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
24740         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
24741         * modules/truncf-ieee-tests: New file.
24742         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
24743         * tests/test-truncf1.c (main): Remove signbit tests.
24744         * modules/truncf-tests (Depends-on): Remove 'signbit'.
24745         * doc/posix-functions/truncf.texi: Mention the new module.
24746
24747 2010-12-21  Bruno Haible  <bruno@clisp.org>
24748
24749         New module 'ceilf-ieee'.
24750         * modules/ceilf-ieee: New file.
24751         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
24752         test whether ceilf works according to ISO C 99 with IEC 60559.
24753         * m4/ceilf-ieee.m4: New file.
24754         * modules/ceilf-ieee-tests: New file.
24755         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
24756         * tests/test-ceilf1.c (main): Remove signbit tests.
24757         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
24758         * doc/posix-functions/ceilf.texi: Mention the new module.
24759
24760 2010-12-21  Bruno Haible  <bruno@clisp.org>
24761
24762         New module 'floorf-ieee'.
24763         * modules/floorf-ieee: New file.
24764         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
24765         test whether floorf works according to ISO C 99 with IEC 60559.
24766         * m4/floorf-ieee.m4: New file.
24767         * modules/floorf-ieee-tests: New file.
24768         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
24769         * tests/test-floorf1.c (main): Remove signbit tests.
24770         * modules/floorf-tests (Depends-on): Remove 'signbit'.
24771         * doc/posix-functions/floorf.texi: Mention the new module.
24772
24773 2010-12-21  Bruno Haible  <bruno@clisp.org>
24774
24775         Support for minus zero in autoconf macros.
24776         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
24777         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
24778         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
24779         * tests/minus-zero.h: Update comments.
24780
24781 2010-12-21  Bruno Haible  <bruno@clisp.org>
24782
24783         Tests for module 'ceil'.
24784         * modules/ceil-tests: New file.
24785         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
24786         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
24787
24788 2010-12-21  Bruno Haible  <bruno@clisp.org>
24789
24790         Tests for module 'floor'.
24791         * modules/floor-tests: New file.
24792         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
24793         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
24794
24795 2010-12-21  Bruno Haible  <bruno@clisp.org>
24796
24797         math: Fix indentation.
24798         * lib/math.in.h (floorf): Fix indentation.
24799
24800 2010-12-21  Bruno Haible  <bruno@clisp.org>
24801
24802         Fix cross-compilation guesses on Solaris.
24803         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
24804         not match "solaris2.10".
24805         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24806         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
24807         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
24808
24809 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
24810
24811         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
24812         This fixes a problem observed with the latest coreutils snapshot
24813         that caused a test to fail on Solaris 8.  src/csplit.c's call
24814         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
24815         earlier, instead of returning the number of bytes that would have
24816         been generated; this causes csplit to incorrectly report memory
24817         exhaustion.
24818         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
24819         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
24820         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
24821         comments to match.
24822         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
24823         Fix typo in matching older versions of Solaris: "solaris2.10"
24824         is matched by the shell pattern "solaris2.[0-9]*".  This matters
24825         only for guessing while cross-compiling.
24826         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
24827
24828 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
24829
24830         ftoastr: fix comment again
24831         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24832         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
24833         Also, simplify example a bit by using flags = 0.
24834
24835 2010-12-20  Bruno Haible  <bruno@clisp.org>
24836
24837         round*, trunc*: Update documentation regarding glibc.
24838         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
24839         * doc/posix-functions/round.texi: Likewise.
24840         * doc/posix-functions/roundl.texi: Likewise.
24841         * doc/posix-functions/truncf.texi: Likewise.
24842         * doc/posix-functions/trunc.texi: Likewise.
24843         * doc/posix-functions/truncl.texi: Likewise.
24844
24845 2010-12-20  Bruno Haible  <bruno@clisp.org>
24846
24847         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
24848         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
24849         * doc/posix-functions/round.texi: Likewise.
24850         * doc/posix-functions/roundl.texi: Likewise.
24851
24852 2010-12-20  Bruno Haible  <bruno@clisp.org>
24853
24854         ttyname_r: Add missing declaration on HP-UX 11.
24855         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
24856         HAVE_TTYNAME_R.
24857         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
24858         declared. Set HAVE_TTYNAME_R always.
24859         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24860         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
24861         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
24862         HAVE_TTYNAME_R.
24863         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
24864
24865 2010-12-20  Bruno Haible  <bruno@clisp.org>
24866
24867         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
24868         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
24869         * doc/posix-functions/getlogin_r.texi: Likewise.
24870         * tests/test-getlogin.c: Include <errno.h>.
24871         (main): Avoid test failure on HP-UX 11.11.
24872         * tests/test-getlogin_r.c (main): Likewise.
24873
24874 2010-12-20  Bruno Haible  <bruno@clisp.org>
24875
24876         getlogin_r: Add missing declaration on HP-UX 11.
24877         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
24878         declared also when it exists as a function.
24879         * doc/posix-functions/getlogin_r.texi: Document this workaround.
24880
24881 2010-12-20  Bruno Haible  <bruno@clisp.org>
24882
24883         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
24884         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
24885         through wcrtomb.
24886
24887 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
24888
24889         ftoastr: fix comment
24890         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24891         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
24892
24893 2010-12-19  Bruno Haible  <bruno@clisp.org>
24894
24895         isnan: Ensure it is a macro.
24896         * lib/math.in.h (isnan): Define as a macro if not already a macro.
24897         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
24898         Solaris.
24899
24900 2010-12-19  Bruno Haible  <bruno@clisp.org>
24901
24902         ldexpl test: Fix link error on OSF/1 5.1.
24903         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
24904
24905 2010-12-19  Bruno Haible  <bruno@clisp.org>
24906
24907         wctype: Make it work in C++ mode on OSF/1 5.1.
24908         * lib/wctype.in.h (iswblank): Declare but not define here.
24909         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
24910         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
24911         * modules/wctype (Files): Add lib/iswblank.c.
24912
24913 2010-12-19  Bruno Haible  <bruno@clisp.org>
24914
24915         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
24916         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
24917         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
24918
24919 2010-12-19  Bruno Haible  <bruno@clisp.org>
24920
24921         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
24922         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
24923         _POSIX_PII_SOCKET.
24924         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
24925         * doc/posix-functions/recvfrom.texi: Likewise.
24926         * doc/posix-functions/send.texi: Likewise.
24927         * doc/posix-functions/sendto.texi: Likewise.
24928
24929 2010-12-19  Bruno Haible  <bruno@clisp.org>
24930
24931         tcgetsid: Add missing declaration on OSF/1 5.1.
24932         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
24933         HAVE_TCGETSID.
24934         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
24935         Don't set HAVE_TCGETSID.
24936         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
24937         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
24938         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
24939         HAVE_TCGETSID.
24940         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
24941
24942 2010-12-19  Bruno Haible  <bruno@clisp.org>
24943
24944         stdio: Fix problem with popen() declaration on OSF/1 5.1.
24945         * lib/stdio.in.h: During the include_next statement, let recursive
24946         includes of this file include only the system header file.
24947
24948 2010-12-19  Bruno Haible  <bruno@clisp.org>
24949
24950         iconv_open: Fix regression from 2010-12-04.
24951         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
24952         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
24953
24954 2010-12-19  Bruno Haible  <bruno@clisp.org>
24955
24956         stdbool test: Avoid a gcc warning.
24957         * tests/test-stdbool.c (main): Fail if e1 is false.
24958         Reported by Jim Meyering.
24959
24960 2010-12-19  Jim Meyering  <meyering@redhat.com>
24961
24962         setenv: restore to working order
24963         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
24964         mistakenly removed.
24965         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
24966         HAVE_SETENV.
24967         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
24968         HAVE_SETENV.
24969
24970 2010-12-19  Bruno Haible  <bruno@clisp.org>
24971
24972         Document some different function declarations on OSF/1 5.1.
24973         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
24974         * doc/posix-functions/inet_ntop.texi: Likewise.
24975         * doc/posix-functions/gethostname.texi: Likewise.
24976         * lib/unistd.in.h (gethostname): Update comment.
24977
24978 2010-12-19  Bruno Haible  <bruno@clisp.org>
24979
24980         doc: Mention vasprintf-posix module.
24981         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
24982         the 'vasprintf-posix' module.
24983         * doc/glibc-functions/vasprintf.texi: Likewise.
24984
24985 2010-12-19  Bruno Haible  <bruno@clisp.org>
24986
24987         unsetenv: Add missing declaration on OSF/1 5.1.
24988         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
24989         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
24990         Don't set HAVE_UNSETENV. In the test program, set _BSD.
24991         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
24992         not HAVE_UNSETENV.
24993         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
24994         HAVE_UNSETENV.
24995         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
24996
24997 2010-12-19  Bruno Haible  <bruno@clisp.org>
24998
24999         setenv: Add missing declaration on OSF/1 5.1.
25000         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
25001         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
25002         declared. Don't set HAVE_SETENV.
25003         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
25004         not HAVE_SETENV.
25005         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
25006         HAVE_SETENV.
25007         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
25008
25009 2010-12-19  Bruno Haible  <bruno@clisp.org>
25010
25011         nl_langinfo tests: Avoid gcc warning.
25012         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
25013
25014 2010-12-19  Bruno Haible  <bruno@clisp.org>
25015
25016         mknod: Avoid error in C++ mode on OSF/1 with GCC.
25017         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
25018         _GL_CXXALIAS_SYS.
25019
25020 2010-12-19  Bruno Haible  <bruno@clisp.org>
25021
25022         stdbool: Relax test.
25023         * tests/test-stdbool.c (e): Don't require that casts from a variable's
25024         address to 'bool' work in static initializer, for compilers other than
25025         GCC.
25026
25027 2010-12-19  Bruno Haible  <bruno@clisp.org>
25028
25029         ftello: Add missing declaration on OSF/1 5.1.
25030         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
25031         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
25032         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
25033         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
25034         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
25035
25036 2010-12-19  Bruno Haible  <bruno@clisp.org>
25037
25038         fseeko: Add missing declaration on OSF/1 5.1.
25039         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
25040         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
25041         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
25042         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
25043         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
25044
25045 2010-12-19  Bruno Haible  <bruno@clisp.org>
25046
25047         fchdir: Add missing declaration on OSF/1 5.1.
25048         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
25049         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
25050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
25051         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
25052         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
25053
25054 2010-12-19  Bruno Haible  <bruno@clisp.org>
25055
25056         relocatable-prog-wrapper: Separate from relocatable-prog.
25057         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
25058         uninstall-relocwrapper rule here.
25059         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
25060         Reported by Ian Beckwith <ianb@erislabs.net>.
25061
25062 2010-12-19  Bruno Haible  <bruno@clisp.org>
25063
25064         unistr/u8-mbsnlen: Add missing dependency.
25065         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
25066         Reported by Ian Beckwith <ianb@erislabs.net>.
25067
25068 2010-12-19  Bruno Haible  <bruno@clisp.org>
25069
25070         iconv: Make it possible again to use this module without 'iconv-h'.
25071         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
25072         if it is not defined.
25073         Reported by Ian Beckwith <ianb@erislabs.net>.
25074
25075 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
25076
25077         acl: port to Solaris 8 when copying from tmpfs to ufs
25078         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
25079         error number.  Problem observed on Solaris 8 with latest
25080         coreutils, with "mv A B", where A is on a tmpfs file system and B
25081         is on a ufs file system.  This caused coreutils' mv/part-symlink
25082         test to fail.
25083
25084         tests: set fail=0 at start
25085         * tests/init.sh (setup_): Move fail=0 initialization here ...
25086         (mktempd_): ... from here, so that tests can rely on fail being
25087         set to 0 initially.  This fixes a problem in coreutils; see:
25088         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
25089
25090 2010-12-18  Bruno Haible  <bruno@clisp.org>
25091
25092         memmem-simple: Stylistic changes.
25093         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
25094         Fix preprocessor directive indentation.
25095
25096 2010-12-15  Pádraig Brady <P@draigBrady.com>
25097
25098         memmem, memmem-simple: reorganize and expand empty needle check
25099         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
25100         functional checks to memmem-simple so that one has a fully functional
25101         memmem by using just this module.
25102         Restrict the performance only check to the memmem module.
25103         Also expand the empty needle check to ensure the correct
25104         pointer is returned, not just a non NULL pointer.
25105         * doc/glibc-functions/memmem.texi: Rearrange the portability
25106         documentation to correlate with the rearranged checks.
25107         Clarify exactly how the memmem and memmem-simple modules
25108         relate to each other.
25109
25110 2010-12-15  Pádraig Brady <P@draigBrady.com>
25111             Bruno Haible  <bruno@clisp.org>
25112
25113         Improve cross-compilation guesses for uClibc.
25114         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
25115         that uClibc does not have the glibc bug.
25116         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
25117         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
25118
25119 2010-12-14  Eric Blake  <eblake@redhat.com>
25120
25121         configmake: provide fallbacks for oldest supported autotools
25122         * m4/configmake.m4: New file.
25123         * modules/configmake (Files): Ship it.
25124         (configure.ac): Use it to guarantee fallbacks.
25125
25126 2010-12-13  Pádraig Brady <P@draigBrady.com>
25127
25128         read-file: Improve handling of large files
25129         * lib/read-file.c (fread_file): Minimize realloc()s
25130         for regular files, and better manage sizes around SIZE_MAX.
25131
25132 2010-12-13  Eric Blake  <eblake@redhat.com>
25133
25134         cloexec, fcntl: relax license
25135         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
25136         consent from all contributors.
25137         * modules/fcntl (License): Likewise.
25138
25139 2010-12-10  Bruno Haible  <bruno@clisp.org>
25140
25141         Tests for module 'pipe-posix'.
25142         * modules/pipe-posix-tests: New file.
25143         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
25144
25145 2010-12-10  Bruno Haible  <bruno@clisp.org>
25146
25147         pipe-posix: Make it work in C++ mode.
25148         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
25149         (pipe): Use common idiom, not a macro definition.
25150         * lib/pipe.c: New file.
25151         * m4/pipe.m4: New file.
25152         * modules/pipe-posix (Description): Enhance.
25153         (Files): Add lib/pipe.c, m4/pipe.m4.
25154         (configure.ac): Invoke gl_FUNC_PIPE.
25155         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
25156         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
25157         * tests/test-unistd-c++.cc: Check the signature of pipe.
25158
25159 2010-12-10  Bruno Haible  <bruno@clisp.org>
25160
25161         Rename module 'pipe' to 'spawn-pipe'.
25162         * modules/spawn-pipe: New file, renamed from modules/pipe.
25163         (Files, configure.ac, Makefile.am): Update.
25164         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
25165         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
25166         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
25167         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
25168         "spawn-pipe.h" instead of "pipe.h".
25169         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
25170         to gl_SPAWN_PIPE.
25171         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
25172         (Files, Makefile.am): Update.
25173         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
25174         Update.
25175         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
25176         Include "spawn-pipe.h" instead of "pipe.h".
25177         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
25178         * lib/javacomp.c: Likewise.
25179         * lib/javaversion.c: Likewise.
25180         * lib/pipe-filter-gi.c: Likewise.
25181         * lib/pipe-filter-ii.c: Likewise.
25182         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
25183         * modules/javacomp (Depends-on): Likewise.
25184         * modules/javaversion (Depends-on): Likewise.
25185         * modules/pipe-filter-gi (Depends-on): Likewise.
25186         * modules/pipe-filter-ii (Depends-on): Likewise.
25187         * MODULES.html.sh (Executing programs): Update.
25188         * NEWS: Mention the change.
25189
25190 2010-12-10  Eric Blake  <eblake@redhat.com>
25191
25192         pipe-posix: new module
25193         * modules/pipe-posix: New file.
25194         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
25195         (gl_UNISTD_H): Check for declaration.
25196         * modules/unistd (Makefile.am): Substitute it.
25197         * lib/unistd.in.h (pipe): Provide it for mingw.
25198         * doc/posix-functions/pipe.texi (pipe): Update documentation.
25199         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
25200
25201 2010-12-07  Bruno Haible  <bruno@clisp.org>
25202
25203         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
25204         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
25205         u8_strcmp_gnu.
25206         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
25207
25208 2010-12-06  Bruno Haible  <bruno@clisp.org>
25209
25210         Update internal documentation.
25211         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
25212
25213 2010-12-04  Bruno Haible  <bruno@clisp.org>
25214
25215         Put more information about failed tests into the test return codes.
25216         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
25217         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
25218         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
25219         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
25220         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
25221         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25222         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25223         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25224         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
25225         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25226         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
25227         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25228         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
25229         * m4/stdint.m4 (gl_STDINT_H): Likewise.
25230         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
25231         returns a bit mask.
25232         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
25233         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
25234         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
25235         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
25236         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25237         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25238         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25239         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25240         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25241         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25242         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
25243         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25244         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25245         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25246         * m4/link.m4 (gl_FUNC_LINK): Likewise.
25247         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
25248         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
25249         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
25250         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25251         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
25252         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25253         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
25254         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
25255         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25256         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25257         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
25258         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
25259         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
25260         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
25261         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
25262         gl_PRINTF_PRECISION): Likewise.
25263         * m4/regex.m4 (gl_REGEX): Likewise.
25264         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
25265         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
25266         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
25267         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25268         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25269         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25270         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
25271         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
25272         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25273         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25274         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
25275         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
25276         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
25277         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
25278         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
25279         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25280         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
25281         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25282         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25283         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
25284         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
25285         enumerated value.
25286         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
25287
25288 2010-12-04  Bruno Haible  <bruno@clisp.org>
25289
25290         Update for Solaris 11 2010-11.
25291         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
25292         Express, released in November 2010.
25293
25294 2010-12-04  Bruno Haible  <bruno@clisp.org>
25295
25296         nproc: Relax license.
25297         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
25298         and Paul Eggert.
25299         Requested by Ludovic Courtès <ludo@gnu.org>.
25300
25301 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
25302
25303         utimecmp: fine-grained src to nearby coarse-grained dest
25304
25305         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
25306         and the source is on a file system with higher-resolution time
25307         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
25308         not work, and the time stamps are close together, the algorithm to
25309         determine the exact resolution from the read-back mtime was buggy:
25310         it had a "!=" where it should have had an "==".  This bug has been
25311         in the code ever since it was introduced to gnulib.
25312         Problem reported by Dan Jacobson in
25313         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
25314
25315 2010-11-30  Bruno Haible  <bruno@clisp.org>
25316
25317         strerror_r-posix: Fix autoconf test.
25318         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
25319
25320 2010-11-28  Bruno Haible  <bruno@clisp.org>
25321             Paul Eggert  <eggert@cs.ucla.edu>
25322
25323         Tests for module 'getdomainname'.
25324         * modules/getdomainname-tests: New file.
25325         * tests/test-getdomainname.c: New file, based on
25326         tests/test-gethostname.c.
25327
25328 2010-11-28  Bruno Haible  <bruno@clisp.org>
25329             Paul Eggert  <eggert@cs.ucla.edu>
25330
25331         getdomainname: Use the system function when possible.
25332         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
25333         (getdomainname): Replace if needed. Provide the declaration if it is
25334         missing. Don't use _GL_CXXALIAS_SYS_CAST.
25335         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
25336         (getdomainname): When the system has getdomainname, call the system
25337         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
25338         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
25339         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
25340         found in libnsl. Look for the declaration also in <netdb.h>. Replace
25341         the function if its second argument is of type 'int' or if it is found
25342         in libnsl.
25343         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
25344         <sys/systeminfo.h> and sysinfo().
25345         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
25346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25347         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
25348         HAVE_GETDOMAINNAME.
25349         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
25350         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
25351         * doc/glibc-functions/getdomainname.texi: Document the problems with
25352         the getdomainname declaration.
25353
25354 2010-11-28  Bruno Haible  <bruno@clisp.org>
25355
25356         sys_socket: Ensure ss_family field on AIX.
25357         * lib/sys_socket.in.h (ss_family): New macro definition.
25358         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
25359         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
25360         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25361         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
25362         * modules/sys_socket (Makefile.am): Substitute
25363         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
25364         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
25365
25366 2010-11-27  Bruno Haible  <bruno@clisp.org>
25367
25368         readline: Improve configure output.
25369         * m4/readline.m4 (gl_FUNC_READLINE): Make the
25370         "checking for readline..." result understandable.
25371
25372 2010-11-27  Bruno Haible  <bruno@clisp.org>
25373
25374         *printf-posix: Detect a bug on Solaris 10/x86.
25375         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
25376         for floating-point output.
25377         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
25378         directive.
25379         * tests/test-snprintf-posix.h (test_function): Likewise.
25380         * tests/test-sprintf-posix.h (test_function): Likewise.
25381         * tests/test-vasprintf-posix.c (test_function): Likewise.
25382         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
25383         * doc/posix-functions/printf.texi: Likewise.
25384         * doc/posix-functions/snprintf.texi: Likewise.
25385         * doc/posix-functions/sprintf.texi: Likewise.
25386         * doc/posix-functions/vfprintf.texi: Likewise.
25387         * doc/posix-functions/vprintf.texi: Likewise.
25388         * doc/posix-functions/vsnprintf.texi: Likewise.
25389         * doc/posix-functions/vsprintf.texi: Likewise.
25390         * doc/glibc-functions/obstack_printf.texi: Likewise.
25391         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
25392
25393 2010-11-27  Bruno Haible  <bruno@clisp.org>
25394
25395         Fix link error when module libunistring-optional is in use.
25396         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
25397         * modules/striconveha-tests (Makefile.am): Likewise.
25398
25399 2010-11-27  Bruno Haible  <bruno@clisp.org>
25400
25401         regex: Mention link dependencies.
25402         * modules/regex (Link): New section.
25403         * modules/rpmatch (Link): Likewise.
25404         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
25405
25406 2010-11-27  Bruno Haible  <bruno@clisp.org>
25407
25408         ftoastr: Fix compilation error on Solaris.
25409         * lib/ftoastr.c: Include <config.h>.
25410
25411 2010-11-27  Bruno Haible  <bruno@clisp.org>
25412
25413         getloadavg: Update documentation.
25414         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
25415
25416 2010-11-27  Bruno Haible  <bruno@clisp.org>
25417
25418         sys_socket: Fix test whether the functions are declared.
25419         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
25420         not <sys/select.h>.
25421
25422 2010-11-27  Bruno Haible  <bruno@clisp.org>
25423
25424         getpass: Make sure to get system declaration on some platforms.
25425         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
25426         gl_USE_SYSTEM_EXTENSIONS.
25427         * modules/getpass (Depends-on): Add extensions.
25428
25429 2010-11-26  Bruno Haible  <bruno@clisp.org>
25430
25431         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
25432         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
25433         'iconv' module is present.
25434         (ICONV_CONST): New macro.
25435         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
25436         ICONV_CONST.
25437         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
25438         set ICONV_CONST.
25439         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
25440         here.
25441         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
25442         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
25443         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
25444         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
25445         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
25446         present.
25447
25448 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
25449
25450         ftoastr: comment fix
25451         * lib/ftoastr.c: "little" -> "little or no" in comment
25452
25453 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
25454
25455         stdint: port to GCC 4.3 + OSX + Octave
25456         On this platform, stdint.h is buggy and defines int64_t to long
25457         long int.  The replacement defined it to long int, causing
25458         problems with C++ style name mangling.  Instead, trust the system
25459         definition if INT64_MAX is defined, and likewise for the unsigned
25460         variant.   Problem reported by Jarno Rajahalme in
25461         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
25462         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
25463         and don't mess with int64_t and INT64_MAX in this case.
25464         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
25465
25466 2010-11-24  Bruno Haible  <bruno@clisp.org>
25467
25468         doc: Corrections regarding MacOS X 10.4 and 10.5.
25469         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
25470         MacOS X.
25471         Reported by Simon Josefsson.
25472
25473 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
25474
25475         Uninstall ".bin" files installed by relocwrapper.
25476         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
25477         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
25478         unless it is already there.
25479
25480 2010-11-21  Bruno Haible  <bruno@clisp.org>
25481
25482         Update for NetBSD 5.0.
25483         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
25484         NetBSD; the test fails on NetBSD 5.0.
25485         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
25486         about NetBSD.
25487
25488 2010-11-21  Bruno Haible  <bruno@clisp.org>
25489
25490         Update for HP-UX 11.23 and HP-UX 11.31.
25491         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
25492         HP-UX.
25493
25494 2010-11-21  Bruno Haible  <bruno@clisp.org>
25495
25496         Update for MacOS X 10.5.
25497         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
25498         MacOS X; the test fails on MacOS X 10.5.8.
25499         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
25500         about MacOS X.
25501
25502 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
25503
25504         bootstrap: add bootstrap_sync option.
25505         See discussion at
25506         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
25507         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
25508         * build-aux/bootstrap: Accept --bootstrap-sync to update
25509         bootstrap if it is not identical to the local gnulib's
25510         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
25511         enable this by default.  Accept --no-bootstrap-sync to disable
25512         it.
25513
25514 2010-11-20  Bruno Haible  <bruno@clisp.org>
25515
25516         Ensure that <features.h> is included before __GLIBC__ is tested.
25517         * lib/printf-parse.h: Include <features.h>.
25518         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
25519         Reported by Mike Frysinger <vapier@gentoo.org>.
25520
25521         Ensure that <features.h> is included before __GLIBC__ is tested.
25522         * lib/wchar.in.h: Include <features.h>.
25523         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
25524         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
25525         Reported by Mike Frysinger <vapier@gentoo.org>.
25526
25527         Ensure that <features.h> is included before __GLIBC__ is tested.
25528         * lib/arpa_inet.in.h: Include <features.h>.
25529         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
25530         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
25531         Reported by Mike Frysinger <vapier@gentoo.org>.
25532
25533         Ensure that <features.h> is included before __GLIBC__ is tested.
25534         * build-aux/link-warning.h: Include <features.h>.
25535         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
25536         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
25537         Reported by Mike Frysinger <vapier@gentoo.org>.
25538
25539         Ensure that <features.h> is included before __GLIBC__ is tested.
25540         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
25541         Reported by Mike Frysinger <vapier@gentoo.org>.
25542
25543 2010-11-20  Bruno Haible  <bruno@clisp.org>
25544
25545         memmem: Fix autoconf test.
25546         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
25547
25548 2010-11-20  Bruno Haible  <bruno@clisp.org>
25549
25550         Port to uClibc.
25551         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
25552         * lib/fcntl.in.h: Likewise.
25553         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
25554         * lib/mbrtowc.c (mbrtowc): Likewise.
25555         * lib/relocatable.c (find_shared_library_fullname): Likewise.
25556         * lib/strerror_r.c: Likewise.
25557         * lib/unistr/u8-strnlen.c: Likewise.
25558         * lib/vasnprintf.c (decimal_point_char): Likewise.
25559         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25560         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25561         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25562         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
25563         * tests/test-sigaction.c (handler, main): Likewise.
25564         * lib/freading.h: Treat uClibc like a non-glibc platform.
25565         * lib/freading.c: Likewise.
25566         * lib/gettext.h: Likewise.
25567         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
25568         Likewise.
25569         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
25570         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
25571         * lib/propername.c (proper_name_utf8): Likewise.
25572         * lib/spawn.in.h: Likewise.
25573         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
25574         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
25575         mem_cd_iconveh_internal): Likewise.
25576         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
25577         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25578         strstr, strcasestr): Likewise.
25579         * lib/unicodeio.c (unicode_to_mb): Likewise.
25580         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
25581         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
25582         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
25583         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
25584         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
25585         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
25586         * lib/unistr/u8-stpncpy.c: Likewise.
25587         * lib/vasnprintf.c (VASNPRINTF): Likewise.
25588         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
25589         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25590         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25591         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
25592         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
25593         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
25594         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
25595         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
25596         Likewise.
25597         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25598         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25599         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
25600         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25601         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25602         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25603         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25604         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
25605         * tests/test-getopt.h (OPTIND_MIN): Likewise.
25606         * tests/test-striconveha.c (main): Likewise.
25607         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25608         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
25609         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
25610         * doc/posix-functions/getline.texi: Likewise.
25611         Reported by Mike Frysinger <vapier@gentoo.org>.
25612
25613 2010-11-20  Bruno Haible  <bruno@clisp.org>
25614
25615         nproc: Fix condition.
25616         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
25617         HAVE_PTHREAD_AFFINITY_NP.
25618
25619 2010-11-20  Bruno Haible  <bruno@clisp.org>
25620
25621         Fix a comment.
25622         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
25623
25624 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
25625
25626         ftoastr: don't assume snprintf
25627         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
25628         Implement a subset of snprintf here, by using sprintf safely.
25629         * modules/ftoastr (Depends-on): Remove snprintf.
25630
25631 2010-11-19  Jim Meyering  <meyering@redhat.com>
25632
25633         test-rename.h: fix compilation failure
25634         * tests/test-rename.h (test_rename): Add omitted "}".
25635
25636 2010-11-17  Jim Meyering  <meyering@redhat.com>
25637
25638         maint.mk: add a URL discussing the no-@acronym policy
25639         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
25640
25641 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
25642
25643         ftoastr: depend on snprintf, improve comments
25644         * lib/ftoastr.c: Also mention Loitsch's draft.
25645         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
25646         needed in the current implementation, but it might simplify
25647         speeding up the code later.
25648         * modules/ftoastr: Depend on snprintf; this improves portability.
25649         Suggested by Bruno Haible in the same email.
25650
25651         ftoastr: port to hosts lacking strtof and strtold
25652         Problem reported by Bruno Haible in
25653         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
25654         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
25655         environment and strtold (and presumably strtof) are not available.
25656         * modules/ftoastr (Files): Add m4/c-strtod.m4.
25657         (configure.ac): Require gl_C99_STRTOLD.
25658
25659 2010-11-18  Bruno Haible  <bruno@clisp.org>
25660
25661         c-strtold: Avoid link error on AIX 7.
25662         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
25663         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
25664         (gl_C_STRTOLD): Test whether strtold_l exists.
25665         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25666
25667 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
25668
25669         intprops: new macro INT_BITS_STRLEN_BOUND
25670         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
25671         ftoastr.h.  This exposes an internal of intprops.h that was formerly
25672         not exposed.  Also, it uses a slightly tighter bound than before;
25673         though this makes no practical difference, we might as well be as
25674         tight as we easily can.
25675
25676         ftoastr: new module, for lossless conversion of floats to short strings
25677         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
25678         * modules/ftoastr: New files.
25679
25680 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
25681
25682         bootstrap: port to Solaris sed
25683         * build-aux/bootstrap (get_version): Port to Solaris sed.
25684         See Ralf Wildenhues's note in
25685         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
25686
25687 2010-11-14  Jim Meyering  <meyering@redhat.com>
25688
25689         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
25690         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
25691         and move definition closer to sole use.
25692
25693 2010-11-13  Jim Meyering  <meyering@redhat.com>
25694
25695         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
25696         Now we require at least autoconf-2.59, which means the work-around
25697         is no longer needed.
25698         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
25699         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25700         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
25701         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
25702         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
25703
25704 2010-11-13  Bruno Haible  <bruno@clisp.org>
25705
25706         rename, renameat: Avoid test failures at NFS mounted locations.
25707         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
25708         functions.
25709         (test_rename): Use assert_nonexistent.
25710         * tests/test-rename.c: Include <dirent.h>.
25711         * tests/test-renameat.c: Likewise.
25712         Reported by Gary V. Vaughan <gary@gnu.org>.
25713
25714         rename, renameat: Document Linux bug with NFS
25715         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
25716         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
25717         * doc/posix-functions/renameat.texi: Likewise.
25718         Suggested by Eric Blake.
25719
25720 2010-11-13  Bruno Haible  <bruno@clisp.org>
25721
25722         rename test: Add comments.
25723         * tests/test-rename.h (test_rename): Add structure and comments.
25724
25725 2010-11-13  Eric Blake  <eblake@redhat.com>
25726
25727         maintainer-makefile: cover a few more files
25728         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
25729         scripts generated within C files, for libvirt.
25730
25731 2010-11-13  Bruno Haible  <bruno@clisp.org>
25732
25733         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
25734         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
25735         character, return the number of bytes that belong together, not always
25736         1.
25737         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
25738         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
25739         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
25740         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
25741         number of bytes of an invalid character.
25742         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
25743         (main): Invoke it.
25744         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
25745         results.
25746         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
25747         malformed byte sequences.
25748         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
25749         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
25750         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
25751         Reported by Ben Pfaff and Paolo Bonzini.
25752
25753 2010-11-13  Bruno Haible  <bruno@clisp.org>
25754
25755         openat: Work around glibc bug with fchownat() and empty file names.
25756         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
25757         (gl_FUNC_FCHOWNAT): Invoke it.
25758         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
25759         * doc/posix-functions/fchownat.texi: Document the glibc bug.
25760         Reported by Gary V. Vaughan <gary@gnu.org>.
25761
25762 2010-11-13  Bruno Haible  <bruno@clisp.org>
25763
25764         openat: Ensure autoconf macro ordering.
25765         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
25766         gl_USE_SYSTEM_EXTENSIONS.
25767         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
25768
25769 2010-11-13  Bruno Haible  <bruno@clisp.org>
25770
25771         Update comments.
25772         * lib/unistr/u8-check.c: Update file name in comments.
25773         * lib/unistr/u8-mblen.c: Likewise.
25774         * lib/unistr/u8-prev.c: Likewise.
25775         * lib/unistr/u8-strmblen.c: Likewise.
25776         * lib/unistr/u8-strmbtouc.c: Likewise.
25777
25778 2010-11-13  Jim Meyering  <meyering@redhat.com>
25779
25780         tests: avoid test failure on Solaris 10 due to lack of PATH export
25781         * tests/test-update-copyright.sh: Don't forget to export PATH.
25782
25783         init.sh: ensure that IFS is defined, just in case...
25784         * tests/init.sh (setup_): Ensure that IFS is defined,
25785         so that saving and restoring it works as expected.  This
25786         appears to be useful at least for an old version of dash
25787         from a long time ago (RH 6).  See here for details:
25788         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
25789
25790         maint.mk: tighten "test a == b" check
25791         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
25792         test to files that contain something like #!/bin/sh.
25793         Without this, coreutils would get two false positives in
25794         the comments of C source files.
25795
25796 2010-11-12  Eric Blake  <eblake@redhat.com>
25797
25798         bootstrap: fix typo in previous attempt
25799         * build-aux/bootstrap (buildreq): Correct the grouping.
25800         Reported by Paul Eggert.
25801
25802         maintainer-makefile: prohibit test x == x
25803         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
25804         Based on a report by Matthias Bolte.
25805
25806         bootstrap: allow FreeBSD gzip
25807         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
25808         which has no '.' and goes to stderr.
25809         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
25810         Reported by Matthias Bolte.
25811
25812         maintainer-makefile: check for i18n setup
25813         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
25814         will likely work.
25815
25816 2010-11-12  Bruno Haible  <bruno@clisp.org>
25817
25818         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
25819         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
25820         * lib/nanosleep.c (nanosleep): Likewise.
25821
25822 2010-11-11  Bruno Haible  <bruno@clisp.org>
25823
25824         fcntl-h: Fix for use of C++ on glibc systems.
25825         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25826         also on glibc systems in C++ mode.
25827         Reported by Gary V. Vaughan <gary@gnu.org>.
25828
25829 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25830
25831         mknod: avoid false failure with dash
25832         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
25833
25834 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
25835
25836         unlink: Fix "is it should" typo in diagnostic.
25837         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
25838         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
25839
25840 2010-11-11  Bruno Haible  <bruno@clisp.org>
25841
25842         Tests for module 'strerror_r-posix'.
25843         * modules/strerror_r-posix-tests: New file.
25844         * tests/test-strerror_r.c: New file.
25845         * tests/test-string-c++.cc: Check the signature of strerror_r.
25846
25847         New module 'strerror_r-posix'.
25848         * lib/string.in.h (strerror_r): New declaration.
25849         * lib/strerror_r.c: New file.
25850         * m4/strerror_r.m4: New file.
25851         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
25852         of strerror_r.
25853         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
25854         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
25855         * modules/strerror_r-posix: New file.
25856         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
25857         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
25858         * doc/posix-functions/strerror_r.texi: Mention the new module and the
25859         portability problems.
25860
25861 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
25862
25863         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
25864         line is also considered for output. Quoted function name in shell
25865         command, so temporary files for functions like MyClass::operator()
25866         are removed correctly without errors.
25867
25868 2010-11-09  Bruno Haible  <bruno@clisp.org>
25869
25870         * doc/posix-functions/strerror.texi: List more failing platforms.
25871
25872         * doc/posix-functions/strerror.texi: Add a comment.
25873
25874 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
25875
25876         fdopendir: fix bug on MacOS X when low on file descriptors
25877
25878         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
25879         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
25880         All callers changed.
25881         (fdopendir): Invoke save_cwd at the top level, not after using
25882         multiple dup() calls to use up file descriptors.  Then retry
25883         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
25884         less than the maximum number of open file descriptors, because
25885         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
25886         on Mac OS X 10.6.4 for tar 1.24
25887         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
25888         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
25889         and for tar 1.25
25890         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
25891
25892 2010-11-07  Bruno Haible  <bruno@clisp.org>
25893
25894         vasnprintf: Support I flag on glibc systems.
25895         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
25896         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
25897         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
25898         snprintf function.
25899         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
25900         glibc systems.
25901         * tests/test-vasnprintf-posix3.c: New file.
25902         * modules/vasnprintf-posix-tests (Files): Add it.
25903         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
25904
25905 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25906
25907         [html] Fix copy/paste bug: Use unique name for compiler warnings.
25908         * MODULES.html.sh: For compiler warnings, use name
25909         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
25910
25911 2010-11-05  Eric Blake  <eblake@redhat.com>
25912
25913         ceil, floor: avoid spurious failure with icc
25914         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
25915         [denormals-as-zero] when optimizing without -mieee-fp option.
25916         * tests/test-floorf2.c (floorf_reference): Likewise.
25917         * tests/test-ceilf1.c (dummy): New function.
25918         (main): Use it to outsmart icc's optimization.
25919         * tests/test-floorf1.c (dummy, main): Likewise.
25920
25921         tests: require working signbit
25922         * modules/ceilf-tests (Depends-on): Add signbit.
25923         * modules/ceill-tests (Depends-on): Likewise.
25924         * modules/floorf-tests (Depends-on): Likewise.
25925         * modules/floorl-tests (Depends-on): Likewise.
25926         * modules/round-tests (Depends-on): Likewise.
25927         * modules/roundf-tests (Depends-on): Likewise.
25928         * modules/roundl-tests (Depends-on): Likewise.
25929         * modules/trunc-tests (Depends-on): Likewise.
25930         * modules/truncf-tests (Depends-on): Likewise.
25931         * modules/truncl-tests (Depends-on): Likewise.
25932
25933         strtod: work around icc bug
25934         * lib/strtod.c (minus_zero): Define to working value.
25935         (strtod): Use it to avoid icc bug.
25936
25937         copysign: enhance tests
25938         * modules/copysign-tests (Files): Add minus-zero.h.
25939         * tests/test-copysign.c (main): Also test zeros.
25940
25941 2010-11-04  Eric Blake  <eblake@redhat.com>
25942
25943         ceil, floor, round, trunc: enhance tests of -0
25944         * tests/test-ceilf1.c (main): Ensure correct sign of result.
25945         * tests/test-ceill.c (main): Likewise.
25946         * tests/test-floorf1.c (main): Likewise.
25947         * tests/test-floorl.c (main): Likewise.
25948         * tests/test-round1.c (main): Likewise.
25949         * tests/test-roundf1.c (main): Likewise.
25950         * tests/test-roundl.c (main): Likewise.
25951         * tests/test-trunc1.c (main): Likewise.
25952         * tests/test-truncf1.c (main): Likewise.
25953         * tests/test-truncl.c (main): Likewise.
25954
25955 2010-11-04  Eric Blake  <eblake@redhat.com>
25956
25957         frexp, tests: work around ICC bug with -zero
25958         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
25959         works with more compilers.
25960         * tests/minus-zero.h: New file.
25961         * modules/ceilf-tests (Files): Include it.
25962         * modules/ceill-tests (Files): Likewise.
25963         * modules/floorf-tests (Files): Likewise.
25964         * modules/floorl-tests (Files): Likewise.
25965         * modules/frexp-nolibm-tests (Files): Likewise.
25966         * modules/frexp-tests (Files): Likewise.
25967         * modules/frexpl-nolibm-tests (Files): Likewise.
25968         * modules/frexpl-tests (Files): Likewise.
25969         * modules/isnan-tests (Files): Likewise.
25970         * modules/isnand-nolibm-tests (Files): Likewise.
25971         * modules/isnand-tests (Files): Likewise.
25972         * modules/isnanf-nolibm-tests (Files): Likewise.
25973         * modules/isnanf-tests (Files): Likewise.
25974         * modules/isnanl-nolibm-tests (Files): Likewise.
25975         * modules/isnanl-tests (Files): Likewise.
25976         * modules/round-tests (Files): Likewise.
25977         * modules/roundf-tests (Files): Likewise.
25978         * modules/roundl-tests (Files): Likewise.
25979         * modules/ldexpl-tests (Files): Likewise.
25980         * modules/signbit-tests (Files): Likewise.
25981         * modules/snprintf-posix-tests (Files): Likewise.
25982         * modules/sprintf-posix-tests (Files): Likewise.
25983         * modules/strtod-tests (Files): Likewise.
25984         * modules/trunc-tests (Files): Likewise.
25985         * modules/truncf-tests (Files): Likewise.
25986         * modules/truncl-tests (Files): Likewise.
25987         * modules/vsnprintf-posix-tests (Files): Likewise.
25988         * modules/vsprintf-posix-tests (Files): Likewise.
25989         * modules/vasnprintf-posix-tests (Files): Likewise.
25990         * modules/vasprintf-posix-tests (Files): Likewise.
25991         * tests/test-ceilf1.c (main): Use it.
25992         * tests/test-ceill.c (main): Likewise.
25993         * tests/test-floorf1.c (main): Likewise.
25994         * tests/test-floorl.c (main): Likewise.
25995         * tests/test-frexp.c (main): Likewise.
25996         * tests/test-frexpl.c (main): Likewise.
25997         * tests/test-isnan.c (main): Likewise.
25998         * tests/test-isnand.h (main): Likewise.
25999         * tests/test-isnanf.h (main): Likewise.
26000         * tests/test-isnanl.h (main): Likewise.
26001         * tests/test-ldexpl.c (main): Likewise.
26002         * tests/test-round.c (main): Likewise.
26003         * tests/test-roundf.c (main): Likewise.
26004         * tests/test-roundl.c (main): Likewise.
26005         * tests/test-signbit.c (test_signbitf, test_signbitd)
26006         (test_signbitl): Likewise.
26007         * tests/test-snprintf-posix.h (test_function): Likewise.
26008         * tests/test-sprintf-posix.h (test_function): Likewise.
26009         * tests/test-strtod.c (main): Likewise.
26010         * tests/test-trunc1.c (main): Likewise.
26011         * tests/test-truncf1.c (main): Likewise.
26012         * tests/test-truncl.c (main): Likewise.
26013
26014         isnanl: work around icc bug
26015         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
26016
26017 2010-11-03  Eric Blake  <eblake@redhat.com>
26018
26019         tests: fix compiler warnings
26020         * tests/test-getopt.h (test_getopt): Fix condition.
26021         * tests/test-getopt_long.h (test_getopt_long): Likewise.
26022         * tests/test-pipe2.c (main): Likewise.
26023         * tests/test-quotearg-simple.c (main): Avoid icc warning.
26024
26025         utimens: fix broken m4 test
26026         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
26027
26028 2010-10-28  Bruno Haible  <bruno@clisp.org>
26029
26030         posix_spawn*, getdtablesize: Relax license.
26031         * modules/posix_spawn (License): Change to LGPLv2+.
26032         * modules/posix_spawnp (License): Likewise.
26033         * modules/posix_spawn-internal (License): Likewise.
26034         * modules/posix_spawnattr_init (License): Likewise.
26035         * modules/posix_spawnattr_getflags (License): Likewise.
26036         * modules/posix_spawnattr_setflags (License): Likewise.
26037         * modules/posix_spawnattr_getpgroup (License): Likewise.
26038         * modules/posix_spawnattr_setpgroup (License): Likewise.
26039         * modules/posix_spawnattr_getschedparam (License): Likewise.
26040         * modules/posix_spawnattr_setschedparam (License): Likewise.
26041         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
26042         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
26043         * modules/posix_spawnattr_getsigdefault (License): Likewise.
26044         * modules/posix_spawnattr_setsigdefault (License): Likewise.
26045         * modules/posix_spawnattr_getsigmask (License): Likewise.
26046         * modules/posix_spawnattr_setsigmask (License): Likewise.
26047         * modules/posix_spawnattr_destroy (License): Likewise.
26048         * modules/posix_spawn_file_actions_init (License): Likewise.
26049         * modules/posix_spawn_file_actions_addclose (License): Likewise.
26050         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
26051         * modules/posix_spawn_file_actions_addopen (License): Likewise.
26052         * modules/posix_spawn_file_actions_destroy (License): Likewise.
26053         * modules/getdtablesize (License): Likewise.
26054         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
26055
26056 2010-10-26  Bruno Haible  <bruno@clisp.org>
26057
26058         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
26059         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
26060         Cygwin and mingw.
26061         Suggested by Eric Blake.
26062
26063 2010-10-26  Bruno Haible  <bruno@clisp.org>
26064
26065         stdio: Work around compilation error due to renameat() on Solaris 10.
26066         * lib/stdio.in.h: Include <unistd.h> on Solaris.
26067         * lib/renameat.c: Don't include <unistd.h> here.
26068         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
26069         Reported by Paul Eggert and Eric Blake.
26070
26071 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
26072
26073         renameat: port to Solaris 10, which declares renameat in unistd.h
26074
26075         * lib/renameat.c: Include unistd.h before stdio.h, because
26076         Solaris 10 declares renameat in unistd.h.  Problem encountered
26077         when building GNU tar 1.24 on Solaris 10.
26078
26079 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26080
26081         fdopendir: fix C89 compilation
26082         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
26083         compilers.
26084
26085 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
26086
26087         inttostr: simplify by removing unnecessary redundancy
26088         * lib/anytostr.c: Don't include verify.h.
26089         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
26090         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
26091         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
26092         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
26093         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
26094         Likewise.
26095         * modules/inttostr (Depends-on): Remove 'verify'.
26096
26097 2010-10-23  Bruno Haible  <bruno@clisp.org>
26098
26099         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
26100         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
26101         Reported by Eric Blake.
26102
26103 2010-10-23  Bruno Haible  <bruno@clisp.org>
26104
26105         Tests: Fix LOCALE_JA on MirBSD 10.
26106         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
26107         to an UTF-8 locale.
26108         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
26109         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26110         Reported by Eric Blake.
26111
26112 2010-10-21  Bruno Haible  <bruno@clisp.org>
26113
26114         nl_langinfo test: Avoid test failure on NetBSD 5.
26115         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
26116         Reported by Eric Blake.
26117
26118 2010-10-21  Eric Blake  <eblake@redhat.com>
26119
26120         c-stack: work around libsigsegv 2.8 bug
26121         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
26122         overflow on at least PowerPC64.
26123
26124 2010-10-17  Bruno Haible  <bruno@clisp.org>
26125
26126         userspec: Drop redundant file.
26127         * modules/userspec (Files): Remove lib/inttostr.h.
26128
26129 2010-10-17  Bruno Haible  <bruno@clisp.org>
26130
26131         nl_langinfo tests: Silence some warnings.
26132         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
26133         Reported by Jim Meyering.
26134
26135 2010-10-17  Bruno Haible  <bruno@clisp.org>
26136
26137         Make use of GCC's attribute __alloc_size__.
26138         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
26139         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
26140         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
26141         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
26142         __alloc_size__.
26143         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
26144         Suggested by Jim Meyering.
26145
26146 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
26147
26148         bootstrap: anchor .gitignore entries.
26149         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
26150         with...
26151         (insert_vc_ignore): ... this new function, which prepends `/' to
26152         all .gitignore entries before passing them to
26153         insert_sorted_if_absent.
26154
26155 2010-10-16  Bruno Haible  <bruno@clisp.org>
26156
26157         nextafter: Fix configure check.
26158         * modules/nextafter (configure.ac): Correct expected prototype.
26159
26160 2010-10-16  Bruno Haible  <bruno@clisp.org>
26161
26162         termios: Update documentation.
26163         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
26164
26165 2010-10-16  Bruno Haible  <bruno@clisp.org>
26166
26167         tests: Make them compile with TinyCC.
26168         * tests/test-strstr.c (main): Remove parentheses around array
26169         initializer.
26170
26171 2010-10-15  Eric Blake  <eblake@redhat.com>
26172
26173         ignore-value: make header idempotent
26174         * lib/ignore-value.h: Add double-inclusion guards.
26175         Reported by Stefan Berger.
26176
26177 2010-10-15  Jim Meyering  <meyering@redhat.com>
26178
26179         GNUmakefile: handle "stable" target, not "major"
26180         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
26181         lists in maint.mk and announce-gen.  Without this, "make stable"
26182         would fail to ensure that $(VERSION) is up to date.
26183
26184 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
26185
26186         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
26187         & co.
26188
26189 2010-10-14  Bruno Haible  <bruno@clisp.org>
26190
26191         vasnprintf: Don't set errno to 0.
26192         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
26193         block that sets it to 0.
26194         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
26195
26196 2010-10-14  Bruno Haible  <bruno@clisp.org>
26197
26198         socketlib: Fix.
26199         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
26200         gl_PREREQ_SYS_H_WINSOCK2.
26201         Reported by Ian Beckwith <ianb@erislabs.net>.
26202
26203 2010-10-13  Jim Meyering  <meyering@redhat.com>
26204
26205         test-select-stdin.c: avoid warn_unused_result warnings
26206         * tests/test-select-stdin.c: Include "macros.h".
26207         ASSERT that read and fflush succeed.
26208
26209 2010-10-13  Jim Meyering  <meyering@redhat.com>
26210
26211         git-version-gen: do require git-VC'd files in cwd
26212         * build-aux/git-version-gen: Reject a git version string
26213         if there are no commits associated with the current directory.
26214         This avoids an unlikely false-positive (unrelated dir whose parent
26215         repository also contains a tag matching v*), as pointed out
26216         by Giuseppe Scrivano in
26217         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
26218
26219 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
26220
26221         argv-iter: omit nonconforming declaration
26222         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
26223         enum arg_iter_err declaration, which doesn't conform to C99.
26224         Solaris 10 cc warns about this.
26225
26226 2010-10-13  Eric Blake  <eblake@redhat.com>
26227
26228         termios: fix compilation on mingw
26229         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
26230         (gl_TERMIOS_H): Adjust it on mingw.
26231         * modules/termios (Makefile.am): Substitute new key.
26232         * lib/termios.in.h (includes): Make include_next conditional.
26233         * doc/posix-headers/termios.texi (termios.h): Update
26234         documentation.
26235         Reported by Daniel P. Berrange.
26236
26237 2010-10-13  Jim Meyering  <meyering@redhat.com>
26238
26239         git-version-gen: don't require that .git/ be in the current dir
26240         * build-aux/git-version-gen: Adjust this script so that it works
26241         when run from any working directory beneath the top-level .git/-
26242         containing directory.  Inspired by a patch from Giuseppe Scrivano,
26243         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
26244
26245         test-select: avoid warn_unused_result warnings
26246         * tests/test-select.c: Include "macros.h".
26247         ASSERT that each call to read, write, and pipe succeeds.
26248         While not technically required, also check each "close".
26249         * modules/select-tests (Files): Add tests/macros.h.
26250
26251         test-symlinkat: remove declaration of unused local
26252         * tests/test-symlinkat.c (main): Remove unused local, "buf".
26253
26254         test-inttostr: avoid shadowing warnings
26255         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
26256         and use malloc rather than the stack for the same reason as
26257         mentioned in the comment justifying the other allocation.
26258
26259 2010-10-11  Bruno Haible  <bruno@clisp.org>
26260
26261         stdlib: Allow multiple gnulib generated replacements to coexist.
26262         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
26263         Reported by Sam Steingold <sds@gnu.org>.
26264
26265 2010-10-11  Jim Meyering  <meyering@redhat.com>
26266
26267         fix a documentation typo
26268         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
26269
26270 2010-10-11  Eric Blake  <eblake@redhat.com>
26271
26272         futimens: work around Solaris 11 bug
26273         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
26274         * tests/test-futimens.h (test_futimens): Enhance, rather than
26275         weaken test.
26276         * doc/posix-functions/futimens.texi (futimens): Document the bug.
26277
26278 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
26279
26280         Indentation.
26281         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
26282         higher-level operators more to the left.
26283
26284 2010-10-11  Jim Meyering  <meyering@redhat.com>
26285
26286         test-futimens: avoid unwarranted test failure on Solaris 5.11
26287         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
26288         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
26289         because it tries to dereference the NULL name argument.
26290
26291 2010-10-11  Bruno Haible  <bruno@clisp.org>
26292
26293         Indentation.
26294         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
26295         indentation.
26296
26297 2010-10-11  Jim Meyering  <meyering@redhat.com>
26298
26299         spawn.in.h: make indentation consistent with parentheses
26300         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
26301         Make indentation consistent with parentheses.
26302
26303 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
26304
26305         Fix mismatched parens in previous commit
26306         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
26307         parens.
26308
26309 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
26310
26311         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
26312
26313         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
26314         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
26315         * lib/malloca.c: Include "verify.h".
26316         (verify1): Remove, replacing with a verify call.
26317         * lib/relocwrapper.c (verify1): Likewise.
26318         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
26319         Likewise.
26320         * modules/malloca (Depends-on): Add 'verify'.
26321         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
26322         * modules/vasnprintf (Depends-on): Add 'verify'.
26323         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26324         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26325         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26326         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26327         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26328         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26329         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26330
26331         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
26332
26333         Formerly the style was sometimes 2*X - 1, because the C standard
26334         was wrongly thought to disallow ?: in integral constant expressions.
26335         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
26336         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
26337         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
26338         * lib/stdint.in.h (_verify_intmax_size): Likewise.
26339         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
26340         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
26341         verify that time_t cannot be floating.
26342
26343 2010-10-08  Eric Blake  <eblake@redhat.com>
26344
26345         time: enforce recent POSIX ruling that time_t is integral
26346         * lib/time.in.h (__time_t_must_be_integral): Detect any
26347         problematic systems, allowing the rest of gnulib to assume POSIX.
26348
26349 2010-10-08  Jim Meyering  <meyering@redhat.com>
26350
26351         fdopendir: fix a bug on systems lacking openat and /proc support
26352         OpenBSD 4.7 is one such system.  The most noticeable effect was
26353         failure of any application making nontrivial use of fts: rm, du,
26354         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
26355           ./rm: traversal failed: `a': Bad file descriptor
26356         Debugging that, you see that even though FD 6 was closed just
26357         prior to the opendir call in fd_clone_opendir, its resulting
26358         dir->dd_fd was 8, rather than the expected value of 6:
26359
26360         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
26361         93                close (fd);
26362         (gdb) n
26363         94                dir = fd_clone_opendir (dupfd);
26364         (gdb) n
26365         95                saved_errno = errno;
26366         (gdb) p dir->dd_fd
26367         $11 = 8
26368
26369         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
26370         The problem is that on OpenBSD, fd_clone_opendir has to resort
26371         to using the old-style save/restore CWD mechanism, due to its
26372         lack of openat/proc support, and *that* would steal the FD (6)
26373         that opendir was supposed to use.
26374
26375         The fix is to squirrel away the desired FD so that save_cwd uses a
26376         different one, and then free the dest FD right before calling opendir.
26377         That guarantees opendir will use the required file descriptor.
26378
26379         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
26380
26381 2010-10-08  Bruno Haible  <bruno@clisp.org>
26382
26383         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
26384         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
26385
26386 2010-10-08  Bruno Haible  <bruno@clisp.org>
26387
26388         nanosleep: Make replacement POSIX compliant.
26389         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
26390         is out of range.
26391         Reported by Jim Meyering.
26392
26393 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
26394
26395         bootstrap: add hook for altering gnulib.mk, for Bison
26396         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
26397         the Bison bootstrapping process can rewrite file names and variables
26398         in this file before later parts of 'bootstrap' use the file.
26399         Bison wants to include lib/gnulib.mk from the top-level makefile,
26400         so it needs the file names in this file to be relative to the top
26401         level, not relative to lib; plus it needs variable names to be
26402         rewritten.
26403         (slurp): Use the new function.
26404
26405         bootstrap: reformat for readability
26406         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
26407
26408 2010-10-08  Eric Blake  <eblake@redhat.com>
26409
26410         docs: update cygwin progress
26411         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
26412         1.7.7.
26413         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
26414         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
26415         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
26416         * doc/posix-functions/carg.texi (carg): Likewise.
26417         * doc/posix-functions/cargf.texi (cargf): Likewise.
26418         * doc/posix-functions/casin.texi (casin): Likewise.
26419         * doc/posix-functions/casinf.texi (casinf): Likewise.
26420         * doc/posix-functions/casinh.texi (casinh): Likewise.
26421         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
26422         * doc/posix-functions/catan.texi (catan): Likewise.
26423         * doc/posix-functions/catanf.texi (catanf): Likewise.
26424         * doc/posix-functions/catanh.texi (catanh): Likewise.
26425         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
26426         * doc/posix-functions/ccos.texi (ccos): Likewise.
26427         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
26428         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
26429         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
26430         * doc/posix-functions/cexp.texi (cexp): Likewise.
26431         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
26432         * doc/posix-functions/cimag.texi (cimag): Likewise.
26433         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
26434         * doc/posix-functions/clog.texi (clog): Likewise.
26435         * doc/posix-functions/clogf.texi (clogf): Likewise.
26436         * doc/posix-functions/conj.texi (conj): Likewise.
26437         * doc/posix-functions/conjf.texi (conjf): Likewise.
26438         * doc/posix-functions/cpow.texi (cpow): Likewise.
26439         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
26440         * doc/posix-functions/cproj.texi (cproj): Likewise.
26441         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
26442         * doc/posix-functions/creal.texi (creal): Likewise.
26443         * doc/posix-functions/crealf.texi (crealf): Likewise.
26444         * doc/posix-functions/csin.texi (csin): Likewise.
26445         * doc/posix-functions/csinf.texi (csinf): Likewise.
26446         * doc/posix-functions/csinh.texi (csinh): Likewise.
26447         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
26448         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
26449         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
26450         * doc/posix-functions/ctan.texi (ctan): Likewise.
26451         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
26452         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
26453         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
26454         * doc/posix-headers/complex.texi (complex.h): Likewise.
26455
26456 2010-10-07  Jim Meyering  <meyering@redhat.com>
26457
26458         parse-datetime: avoid compilation failure on OpenBSD 4.7
26459         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
26460         This works around a compilation failure on OpenBSD 4.7:
26461         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
26462
26463 2010-10-07  Eric Blake  <eblake@redhat.com>
26464
26465         docs: update cygwin progress
26466         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
26467         1.7.6.
26468         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
26469         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
26470         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
26471         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
26472         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
26473         Likewise.
26474         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
26475         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
26476         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
26477         Likewise.
26478         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
26479         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
26480         Likewise.
26481         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
26482         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
26483         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
26484         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
26485         Likewise.
26486         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
26487         Likewise.
26488         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
26489
26490         docs: update parse-datetime history
26491         * doc/parse-datetime.texi (Authors of parse_datetime): Better
26492         documentation of this function's history and alternatives.
26493
26494         cygwin: use more robust version check
26495         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
26496         exclude an eventual cygwin 1.9.1.
26497         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26498         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
26499         (gl_FUNC_STRCASESTR): Likewise.
26500         Reported by Bruno Haible.
26501
26502 2010-10-06  Bruno Haible  <bruno@clisp.org>
26503
26504         string, sys_select: Avoid #including large headers unless necessary.
26505         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
26506         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
26507         OSF/1, BeOS, Haiku.
26508         Reported by Jim Meyering.
26509
26510 2010-10-05  Eric Blake  <eblake@redhat.com>
26511
26512         memmem, strstr, strcasestr: fix bug with long periodic needle
26513         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
26514         periodic needle having false positive.
26515         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
26516         and cygwin 1.7.7.
26517         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
26518         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
26519         (gl_FUNC_STRCASESTR): Likewise.
26520         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26521         * tests/test-memmem.c (main): Expose the bug.
26522         * tests/test-strcasestr.c (main): Likewise.
26523         * tests/test-strstr.c (main): Likewise.
26524         * tests/test-c-strcasestr.c (main): Likewise.
26525         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
26526         * doc/posix-functions/strstr.texi (strstr): Likewise.
26527         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
26528         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
26529
26530 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26531
26532         parse-datetime: do some more renaming
26533         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
26534         parse_datetime, not get_date.  Mention the renaming.
26535         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
26536         in comments.
26537         * m4/bison.m4: Likewise.
26538
26539 2010-10-05  Eric Blake  <eblake@redhat.com>
26540
26541         parse-datetime: better name than get_date
26542         * NEWS: Reword the deprecation notice.
26543         * modules/get_date: Rename to modules/parse-datetime.
26544         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
26545         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
26546         * lib/get_date.y: Rename to lib/parse-datetime.y.
26547         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
26548         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
26549         * doc/getdate.texi: Provide fallback wrapper.
26550         * lib/getdate.h: Move guts, and wrap...
26551         * lib/parse-datetime.h: ...new file.
26552         * lib/parse-datetime.y (get_date): Rename...
26553         (parse_datetime): ...to this.
26554         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
26555         (gl_PARSE_DATETIME): ...to this.
26556         * doc/posix-functions/getdate.texi (get_date): Provide fallback
26557         documentation.
26558         * modules/getdate (Files): Provide fallback docs and header.
26559         (Notice, Depends-on): Update references.
26560         * tests/test-parse-datetime.c: Likewise.
26561         * DEPENDENCIES: Likewise.
26562         * MODULES.html.sh (Date and time <time.h>): Likewise.
26563         * doc/parse-datetime.texi (Date input formats)
26564         (Authors of parse_datetime): Likewise.
26565         * modules/parse-datetime (Files, configure.ac, Makefile.am)
26566         (Include): Likewise.
26567         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
26568         * gnulib-tool: Likewise.
26569         * m4/bison.m4 (gl_BISON): Likewise.
26570         Suggested by Bruno Haible.
26571
26572 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26573
26574         more ports to Solaris tr, which needs [] around ranges
26575         * gnulib-tool: Solaris tr needs [] around ranges.
26576         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26577         * tests/test-pipe-filter-gi1.c (main): Likewise.
26578         * tests/test-pipe-filter-ii1.c (main): Likewise.
26579
26580 2010-10-05  Eric Blake  <eblake@redhat.com>
26581
26582         bootstrap: fix Solaris regression
26583         * build-aux/bootstrap (check_versions): Solaris tr still needs []
26584         around ranges.
26585         Reported by Pádraig Brady.
26586
26587         bootstrap: work with pkg-config
26588         * build-aux/bootstrap (check_versions): Also transliterate - in
26589         prerequisite name.
26590         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
26591         prerequisites that were already found, to avoid confusion.
26592         Reported by Justin Clift.
26593
26594         faccessat: remove unused wrappers
26595         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
26596         presence of these wrappers dragged in -lgen on Solaris.
26597         Reported by Clemens Brogi; fix suggested by Paul Eggert.
26598
26599 2010-10-05  Jim Meyering  <meyering@redhat.com>
26600
26601         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
26602         * Makefile (sc_pragma_columns): New syntax-check rule.
26603
26604 2010-10-04  Bruno Haible  <bruno@clisp.org>
26605
26606         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
26607         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
26608         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
26609         Reported by Bruce Korb and Eric Blake.
26610
26611 2010-10-04  Bruno Haible  <bruno@clisp.org>
26612
26613         threadlib: Make option --with-libpth-prefix work.
26614         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
26615         use $LIBPTH, not just -lpth.
26616
26617 2010-10-04  Bruno Haible  <bruno@clisp.org>
26618
26619         Avoid line length limitation from HP NonStop system header files.
26620         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
26621         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
26622         * lib/ctype.in.h: Likewise.
26623         * lib/dirent.in.h: Likewise.
26624         * lib/errno.in.h: Likewise.
26625         * lib/fcntl.in.h: Likewise.
26626         * lib/float.in.h: Likewise.
26627         * lib/getopt.in.h: Likewise.
26628         * lib/iconv.in.h: Likewise.
26629         * lib/inttypes.in.h: Likewise.
26630         * lib/langinfo.in.h: Likewise.
26631         * lib/locale.in.h: Likewise.
26632         * lib/math.in.h: Likewise.
26633         * lib/netdb.in.h: Likewise.
26634         * lib/netinet_in.in.h: Likewise.
26635         * lib/poll.in.h: Likewise.
26636         * lib/pthread.in.h: Likewise.
26637         * lib/pty.in.h: Likewise.
26638         * lib/sched.in.h: Likewise.
26639         * lib/se-selinux.in.h: Likewise.
26640         * lib/search.in.h: Likewise.
26641         * lib/signal.in.h: Likewise.
26642         * lib/spawn.in.h: Likewise.
26643         * lib/stdarg.in.h: Likewise.
26644         * lib/stddef.in.h: Likewise.
26645         * lib/stdint.in.h: Likewise.
26646         * lib/stdio.in.h: Likewise.
26647         * lib/stdlib.in.h: Likewise.
26648         * lib/string.in.h: Likewise.
26649         * lib/strings.in.h: Likewise.
26650         * lib/sys_file.in.h: Likewise.
26651         * lib/sys_ioctl.in.h: Likewise.
26652         * lib/sys_select.in.h: Likewise.
26653         * lib/sys_socket.in.h: Likewise.
26654         * lib/sys_stat.in.h: Likewise.
26655         * lib/sys_time.in.h: Likewise.
26656         * lib/sys_times.in.h: Likewise.
26657         * lib/sys_utsname.in.h: Likewise.
26658         * lib/sys_wait.in.h: Likewise.
26659         * lib/sysexits.in.h: Likewise.
26660         * lib/termios.in.h: Likewise.
26661         * lib/time.in.h: Likewise.
26662         * lib/unistd.in.h: Likewise.
26663         * lib/wchar.in.h: Likewise.
26664         * lib/wctype.in.h: Likewise.
26665         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
26666         * modules/ctype (Makefile.am): Likewise.
26667         * modules/dirent (Makefile.am): Likewise.
26668         * modules/errno (Makefile.am): Likewise.
26669         * modules/fcntl-h (Makefile.am): Likewise.
26670         * modules/float (Makefile.am): Likewise.
26671         * modules/getopt-posix (Makefile.am): Likewise.
26672         * modules/iconv-h (Makefile.am): Likewise.
26673         * modules/inttypes (Makefile.am): Likewise.
26674         * modules/langinfo (Makefile.am): Likewise.
26675         * modules/locale (Makefile.am): Likewise.
26676         * modules/math (Makefile.am): Likewise.
26677         * modules/netdb (Makefile.am): Likewise.
26678         * modules/netinet_in (Makefile.am): Likewise.
26679         * modules/poll-h (Makefile.am): Likewise.
26680         * modules/pthread (Makefile.am): Likewise.
26681         * modules/pty (Makefile.am): Likewise.
26682         * modules/sched (Makefile.am): Likewise.
26683         * modules/search (Makefile.am): Likewise.
26684         * modules/selinux-h (Makefile.am): Likewise.
26685         * modules/signal (Makefile.am): Likewise.
26686         * modules/spawn (Makefile.am): Likewise.
26687         * modules/stdarg (Makefile.am): Likewise.
26688         * modules/stddef (Makefile.am): Likewise.
26689         * modules/stdint (Makefile.am): Likewise.
26690         * modules/stdio (Makefile.am): Likewise.
26691         * modules/stdlib (Makefile.am): Likewise.
26692         * modules/string (Makefile.am): Likewise.
26693         * modules/strings (Makefile.am): Likewise.
26694         * modules/sys_file (Makefile.am): Likewise.
26695         * modules/sys_ioctl (Makefile.am): Likewise.
26696         * modules/sys_select (Makefile.am): Likewise.
26697         * modules/sys_socket (Makefile.am): Likewise.
26698         * modules/sys_stat (Makefile.am): Likewise.
26699         * modules/sys_time (Makefile.am): Likewise.
26700         * modules/sys_times (Makefile.am): Likewise.
26701         * modules/sys_utsname (Makefile.am): Likewise.
26702         * modules/sys_wait (Makefile.am): Likewise.
26703         * modules/sysexits (Makefile.am): Likewise.
26704         * modules/termios (Makefile.am): Likewise.
26705         * modules/time (Makefile.am): Likewise.
26706         * modules/unistd (Makefile.am): Likewise.
26707         * modules/wchar (Makefile.am): Likewise.
26708         * modules/wctype (Makefile.am): Likewise.
26709
26710 2010-10-04  Bruno Haible  <bruno@clisp.org>
26711
26712         read-file tests: Avoid a test failure on NonStop Kernel.
26713         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
26714         a regular file.
26715         Reported by Joachim Schmitz <schmitz@hp.com>.
26716
26717 2010-10-03  Bruno Haible  <bruno@clisp.org>
26718
26719         gnulib-tool: Fixes for --create-testdir with --libtool.
26720         * gnulib-tool (func_get_automake_snippet): Don't augment
26721         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
26722         an executable.
26723         (func_create_testdir): Handle module 'alloca' like func_import.
26724         Reported by Bruce Korb <bruce.korb@gmail.com>.
26725
26726 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
26727
26728         Avoid some lines longer than 80 characters.
26729         * lib/stdint.in.h: Break long comment lines.
26730         * lib/math.in.h: Likewise.
26731         (_GL_NUM_UINT_WORDS): New macro, for readability.
26732         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
26733         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
26734         * lib/stdlib.in.h: Likewise.
26735         * lib/spawn.in.h: Likewise.
26736         * lib/sys_socket.in.h: Update an URL.
26737         * lib/sys_stat.in.h: Break long line.
26738
26739 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
26740
26741         Improve pmccabe2html.
26742         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
26743         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
26744         when the sources change. Remove the line in the HTML about "Used
26745         ranges" (which implied that there might be other unused ranges),
26746         rename "Resume" to "Summary" (easier to understand for more users).
26747         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
26748         styles, and some unnecessary blank lines.
26749
26750 2010-10-03  Bruno Haible  <bruno@clisp.org>
26751             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
26752
26753         acl: Add support for ACLs on NonStop Kernel.
26754         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
26755         Check whether the function aclsort() exists.
26756         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
26757         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
26758         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26759         (acl_nontrivial [HAVE_ACLSORT]: New function.
26760         (file_has_acl): Implement for NonStop Kernel.
26761         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26762         (qset_acl): Implement for NonStop Kernel.
26763         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
26764         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26765         (main): Implement for NonStop Kernel.
26766         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
26767         Kernel. Handle this flavor.
26768         * tests/test-set-mode-acl.sh: Likewise.
26769         * tests/test-copy-acl.sh: Likewise.
26770         * tests/test-copy-file.sh: Likewise.
26771
26772 2010-10-03  Bruno Haible  <bruno@clisp.org>
26773
26774         Info about ACLs on NonStop Kernel.
26775         * doc/acl-resources.txt: Add info about NonStop Kernel.
26776         References by Joachim Schmitz <schmitz@hp.com>.
26777
26778 2010-10-02  Bruno Haible  <bruno@clisp.org>
26779
26780         Define missing EDQUOT on NonStop Kernel.
26781         * lib/errno.in.h (EDQUOT): Assign a value if missing.
26782         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
26783         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
26784         missing.
26785         * doc/posix-headers/errno.texi: Mention the NSK bug.
26786         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
26787         Reported by Joachim Schmitz <schmitz@hp.com>.
26788
26789 2010-10-02  Bruno Haible  <bruno@clisp.org>
26790
26791         Update doc for POSIX:2008.
26792         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
26793         Update URL of POSIX specification.
26794
26795 2010-10-02  Bruno Haible  <bruno@clisp.org>
26796
26797         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
26798         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
26799         from gnulib, not from Automake.
26800
26801 2010-10-02  Bruno Haible  <bruno@clisp.org>
26802
26803         New module 'system-posix'.
26804         * modules/system-posix: New file.
26805         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
26806         module is present.
26807         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
26808         GNULIB_SYSTEM_POSIX.
26809         * modules/stdlib (Depends-on): Remove sys_wait.
26810         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
26811         * doc/posix-functions/system.texi: Mention the new module.
26812         * doc/posix-headers/stdlib.texi: Likewise.
26813         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
26814         define test_sys_wait_macros to a no-op.
26815         Reported by Sam Steingold <sds@gnu.org>.
26816
26817 2010-09-30  Bruno Haible  <bruno@clisp.org>
26818
26819         More renaming from 'getdate' to 'get_date'.
26820         * doc/get_date.texi: Renamed from doc/getdate.texi.
26821         * modules/get_date (Files): Update.
26822         * MODULES.html.sh (Date and time <time.h>): Update.
26823         * DEPENDENCIES: Update.
26824         * gnulib-tool: Update comment.
26825         * m4/bison.m4 (gl_BISON): Likewise.
26826         * m4/get_date.m4 (gl_GET_DATE): Likewise.
26827
26828 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
26829
26830         bootstrap: support ACLOCAL_FLAGS during aclocal
26831         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
26832         can add additional -I dir for third-party .m4 files.
26833
26834 2010-09-30  Eric Blake  <eblake@redhat.com>
26835
26836         bootstrap: use glibtoolize on MacOS
26837         * build-aux/bootstrap (check_versions): Convert libtool into
26838         libtoolize.
26839         (tool search): Move libtool check earlier, and look for
26840         glibtoolize for MacOS.
26841         (gnulib_tool_options): Auto-add --libtool when appropriate.
26842         Reported by Justin Clift.
26843
26844         poll: fix typo that broke test on MacOS
26845         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
26846         Reported by Justin Clift.
26847
26848         getdate: rename to get_date
26849         Note: getdate.h is not renamed, to minimize client impact.
26850         * modules/getdate: Mark obsolete.  Move old contents...
26851         * modules/get_date: ...to new module name.
26852         * modules/getdate-tests: Move...
26853         * modules/get_date-tests: ...here.
26854         * m4/getdate.m4: Move...
26855         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
26856         * lib/getdate.y: Move...
26857         * lib/get_date.y: ...here.
26858         * tests/test-getdate.c: Move...
26859         * tests/test-get_date.c: ...here.
26860         * doc/posix-functions/getdate.texi (getdate): Update name.
26861         * NEWS: Mention the change.
26862
26863 2010-09-29  Bruno Haible  <bruno@clisp.org>
26864
26865         Separate the module 'waitpid' from the module 'sys_wait'.
26866         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
26867         present.
26868         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
26869         gl_MODULE_INDICATOR_FOR_TESTS.
26870         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
26871         * modules/sys_wait (Depends-on): Remove waitpid.
26872         (Makefile.am): Substitute GNULIB_WAITPID.
26873         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
26874         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
26875         signature only if the 'waitpid' module is present.
26876         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
26877         * NEWS: Mention the change.
26878         * modules/grantpt (Depends-on): Add waitpid.
26879         * modules/wait-process (Depends-on): Likewise.
26880
26881 2010-09-29  Bruno Haible  <bruno@clisp.org>
26882
26883         More tests for module 'sys_wait'.
26884         * modules/sys_wait-c++-tests: New file.
26885         * tests/test-sys_wait-c++.cc: New file.
26886         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
26887         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26888
26889 2010-09-29  Bruno Haible  <bruno@clisp.org>
26890
26891         New module 'waitpid'.
26892         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
26893         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
26894         Don't include <process.h>.
26895         (waitpid): Declare only, using modern idiom.
26896         * m4/waitpid.m4: New file.
26897         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
26898         * modules/waitpid: New file.
26899         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
26900         (Makefile.am): Update.
26901         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26902
26903 2010-09-28  Bruno Haible  <bruno@clisp.org>
26904
26905         poll: Assume ANSI C.
26906         * lib/poll.c (poll): Use an ANSI C declaration.
26907
26908 2010-09-28  Bruno Haible  <bruno@clisp.org>
26909
26910         poll-h: Create poll.h on all platforms.
26911         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
26912         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
26913         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
26914         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
26915         (gl_REPLACE_POLL_H): Don't set POLL_H.
26916         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
26917         * modules/poll-h (Depends-on): Add include_next.
26918         (Makefile.am): Create poll.h unconditionally. Substitute also
26919         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
26920
26921 2010-09-28  Bruno Haible  <bruno@clisp.org>
26922
26923         Tests for module 'poll-h'.
26924         * modules/poll-h-c++-tests: New file.
26925         * tests/test-poll-h-c++.cc: New file.
26926
26927         Tests for module 'poll-h'.
26928         * modules/poll-h-tests: New file.
26929         * tests/test-poll-h.c: New file.
26930
26931 2010-09-28  Bruno Haible  <bruno@clisp.org>
26932
26933         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
26934         * modules/poll-h (Depends-on): Add 'extensions'.
26935
26936 2010-09-28  Bruno Haible  <bruno@clisp.org>
26937
26938         New module 'poll-h'.
26939         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
26940         (poll): Use modern idiom.
26941         * modules/poll-h: New file.
26942         * modules/poll (Files): Remove lib/poll.in.h.
26943         (Depends-on): Add poll-h.
26944         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
26945         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
26946         * m4/poll_h.m4: New file.
26947         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
26948         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
26949         and invoke gl_REPLACE_POLL_H.
26950         * lib/poll.c: Use common idiom.
26951         * tests/test-poll.c: Likewise.
26952         * doc/posix-headers/poll.texi: Mention the poll-h module.
26953         Suggested by Eric Blake.
26954
26955 2010-09-26  Bruno Haible  <bruno@clisp.org>
26956
26957         sys_wait: Implement WSTOPSIG.
26958         * lib/sys_wait.in.h (WSTOPSIG): New macro.
26959         Reported by Simon Josefsson.
26960
26961 2010-09-26  Simon Josefsson  <simon@josefsson.org>
26962
26963         stdlib, sys_wait: Avoid compilation error on mingw.
26964         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
26965
26966 2010-09-26  Bruno Haible  <bruno@clisp.org>
26967
26968         stdlib tests: Avoid code duplication.
26969         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
26970         * modules/sys_wait-tests (Files): Likewise.
26971         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
26972         * tests/test-stdlib.c: Include test-sys_wait.h.
26973         (main): Invoke test_sys_wait_macros.
26974         * tests/test-sys_wait.c: Include test-sys_wait.h.
26975         (main): Invoke test_sys_wait_macros.
26976
26977 2010-09-25  Simon Josefsson  <simon@josefsson.org>
26978
26979         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
26980         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
26981         sure Windows sockets are working before calling getaddrinfo.
26982         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
26983         * doc/gnulib.texi (Windows sockets): Fix typo.
26984
26985 2010-09-25  Bruno Haible  <bruno@clisp.org>
26986
26987         Tests for module 'regex-quote'.
26988         * modules/regex-quote-tests: New file.
26989         * tests/test-regex-quote.c: New file.
26990
26991         New module 'regex-quote'.
26992         * lib/regex-quote.h: New file.
26993         * lib/regex-quote.c: New file.
26994         * modules/regex-quote: New file.
26995         Suggested by Reuben Thomas <rrt@sc3d.org>.
26996
26997 2010-09-24  Bruno Haible  <bruno@clisp.org>
26998
26999         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
27000         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
27001
27002 2010-09-23  Bruno Haible  <bruno@clisp.org>
27003
27004         setenv: Relax license.
27005         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
27006         Blake.
27007         Requested by Eric Blake.
27008
27009 2010-09-22  Bruno Haible  <bruno@clisp.org>
27010
27011         termios: Relax license.
27012         * modules/termios (License): Change to LGPLv2+.
27013         Requested by Eric Blake.
27014
27015 2010-09-22  Bruno Haible  <bruno@clisp.org>
27016
27017         threadlib: Allow the package to change the default to 'no'.
27018         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
27019         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
27020         Reported by Paul Eggert.
27021
27022 2010-09-22  Pádraig Brady  <P@draigbrady.com>
27023             Bruno Haible  <bruno@clisp.org>
27024
27025         Fix endless loop in mbmemcasecoll.
27026         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
27027         byte.
27028         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
27029
27030 2010-09-22  Bruno Haible  <bruno@clisp.org>
27031
27032         Tests for module 'memcoll'.
27033         * modules/memcoll-tests: New file.
27034         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
27035
27036         memcoll, xmemcoll: Clarify size vs. length.
27037         * modules/memcoll.c (memcoll0): Clarify specification.
27038         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
27039         passed to collate_error.
27040
27041 2010-09-22  Bruno Haible  <bruno@clisp.org>
27042
27043         Tests for module 'memcasecmp'.
27044         * modules/memcasecmp-tests: New file.
27045         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
27046
27047 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27048
27049         * lib/pthread.in.h: Add split double-inclusion guard, and include
27050         system <pthread.h> if there is one.  Use @@-style as in other
27051         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
27052         pthread.h doesn't.
27053         (pthread_mutexattr_destroy, pthread_mutexattr_init):
27054         (pthread_mutexattr_settype, pthread_mutex_trylock):
27055         New static inline functions, if there's no system <pthread.h>.
27056         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
27057         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
27058         Approximate with mutexes if the system lacks spinlocks, as in
27059         MacOS.
27060         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
27061         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
27062         @@-style.  Check for spinlocks separately.
27063         (gl_PTHREAD_DEFAULTS): New macro.
27064         * modules/pthread: Redo to use a more typical style for in.h files.
27065
27066 2010-09-21  Eric Blake  <eblake@redhat.com>
27067
27068         net_if: enhance tests
27069         * tests/test-net_if.c (main): Move signature checks earlier.
27070         Print failures to stderr.
27071         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
27072         Document the bug that we do not yet fix.
27073
27074 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
27075
27076         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
27077         about gnulib, not GSS.
27078
27079 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
27080
27081         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
27082         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
27083         for Emacs.
27084         * build-aux/pmccabe2html: Make Makefile.am example code more
27085         cut-and-paste friendly.
27086
27087 2010-09-21  Simon Josefsson  <simon@josefsson.org>
27088
27089         * tests/test-net_if.c: New file.
27090         * modules/net_if-tests: New file.
27091
27092 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
27093
27094         pthread: add pthread_spin_destroy
27095         * lib/pthread.in.h (pthread_spin_destroy): New function.
27096
27097 2010-09-19  Bruno Haible  <bruno@clisp.org>
27098
27099         gnulib-tool: Fix --help output.
27100         * gnulib-tool (func_usage): Fix help message.
27101         Reported by Reuben Thomas <rrt@sc3d.org>.
27102
27103 2010-09-18  Jim Meyering  <meyering@redhat.com>
27104
27105         maint.mk: avoid unexpanded \n in two diagnostics
27106         * top/maint.mk (sc_prohibit_always_true_header_tests):
27107         Don't use a literal \n in a halt=... assignment.  It would not be
27108         expanded, and the two \n bytes would appear in the diagnostic output
27109         rather than the desired newline.  Use halt=$$(printf ... instead.
27110         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
27111
27112 2010-09-18  Bruno Haible  <bruno@clisp.org>
27113
27114         netinet_in: Doc tweak.
27115         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
27116         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27117
27118 2010-09-18  Jim Meyering  <meyering@redhat.com>
27119
27120         init.sh: correct an outdated comment
27121         * tests/init.sh (create_exe_shims_):  s/function/alias/
27122
27123         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
27124         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
27125         a file named "*.exe" is removed between the glob expansion and the
27126         processing of that oddly named file.
27127
27128 2010-09-17  Eric Blake  <eblake@redhat.com>
27129
27130         mirbsd: add some more support
27131         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
27132         in BSD family.
27133         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
27134         devices as OpenBSD.
27135         * m4/host-os.m4 (mirbsd): Add MirBSD.
27136
27137         tests: fix unportable assumption on sys/wait.h
27138         * tests/test-sys_wait.c (main): Relax test.
27139         * tests/test-stdlib.c (main): Likewise.
27140
27141         init.sh: accommodate directory with no .exes
27142         * tests/init.sh: Accomodate directory containing only scripts.
27143
27144         tests: avoid compiler warning
27145         * tests/test-stdlib.c (main): Use the variable.
27146
27147         fdutimens, fdutimensat: update signature, again
27148         * lib/utimens.h (gl_futimens): Delete, and move signature...
27149         (fdutimens): ...here.
27150         (fdutimensat): Rearrange signature.
27151         (lutimensat): Rename variable for clarity.
27152         * lib/fdutimensat.c (fdutimensat): Update signature.
27153         * lib/utimens.c (fdutimens): Likewise.
27154         (gl_futimens): Delete.
27155         (utimens, lutimens): Update callers.
27156         * lib/futimens.c (futimens): Likewise.
27157         * tests/test-fdutimensat.c: Likewise.
27158         * tests/test-utimens.c: Likewise.
27159         * tests/test-futimens.h: Update comment.
27160         * NEWS: Mention this.
27161         Suggested by Paul Eggert.
27162
27163 2010-09-17  Bruno Haible  <bruno@clisp.org>
27164
27165         Take over the maintenance of some older macros from Autoconf.
27166         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
27167         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
27168         GNU Autoconf.
27169         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
27170         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
27171
27172 2010-09-17  Eric Blake  <eblake@redhat.com>
27173
27174         fdutimensat: drop atflag validation
27175         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
27176         with valid fd, to close a race scenario where futimens is
27177         unsupported and FILE was replaced by a symlink.
27178         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
27179         accordingly.
27180         Suggested by Paul Eggert.
27181
27182 2010-09-16  Bruno Haible  <bruno@clisp.org>
27183
27184         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
27185         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
27186
27187 2010-09-16  Bruno Haible  <bruno@clisp.org>
27188
27189         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
27190         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
27191         login_tty exists.
27192         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27193
27194 2010-09-16  Bruno Haible  <bruno@clisp.org>
27195
27196         login_tty: Make the replacement code work on BSD systems.
27197         * lib/login_tty.c: Include <sys/ioctl.h>.
27198         (login_tty): Use ioctl TIOCSCTTY when available.
27199         * modules/login_tty (Depends-on): Add sys_ioctl.
27200         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27201
27202 2010-09-16  Bruno Haible  <bruno@clisp.org>
27203
27204         login_tty: Stricter unit test.
27205         * modules/login_tty-tests (Depends-on): Add tcgetsid.
27206         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
27207         and tcgetsid() after login_tty.
27208         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27209
27210 2010-09-16  Bruno Haible  <bruno@clisp.org>
27211
27212         New module 'tcgetsid'.
27213         * lib/tcgetsid.c: New file.
27214         * m4/tcgetsid.m4: New file.
27215         * modules/tcgetsid: New file.
27216         * modules/termios (Depends-on): Add c++defs, warn-on-use.
27217         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
27218         GNULIB_TCGETSID, HAVE_TCGETSID.
27219         * lib/termios.in.h: Include <sys/types.h>.
27220         (tcgetsid): New declaration.
27221         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
27222         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
27223         * doc/posix-functions/tcgetsid.texi: Mention the new module.
27224         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
27225
27226 2010-09-16  Bruno Haible  <bruno@clisp.org>
27227
27228         Tests for module 'termios'.
27229         * modules/termios-c++-tests: New file.
27230         * modules/termios-tests: New file.
27231         * tests/test-termios-c++.cc: New file.
27232         * tests/test-termios.c: New file.
27233
27234         New module 'termios'.
27235         * modules/termios: New file.
27236         * lib/termios.in.h: New file.
27237         * m4/termios_h.m4: New file.
27238         * doc/posix-headers/termios.texi: Mention the new module.
27239
27240 2010-09-16  Eric Blake  <eblake@redhat.com>
27241
27242         fdutimensat: add an atflag parameter
27243         * lib/fdutimensat.c (fdutimensat): Add new parameter.
27244         * lib/utimens.h (fdutimensat): Update prototype.
27245         * tests/test-fdutimensat.c: Adjust test to match.
27246         * NEWS: Document the change.
27247         Suggested by Paul Eggert.
27248
27249 2010-09-16  Bruno Haible  <bruno@clisp.org>
27250
27251         Fix typos in comments.
27252         * lib/striconveh.h: Fix typo in comment.
27253         * lib/login_tty.c (login_tty): Likewise.
27254
27255 2010-09-15  Bruno Haible  <bruno@clisp.org>
27256
27257         stdlib: clarify MirBSD WEXITSTATUS bug
27258         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
27259         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27260
27261 2010-09-15  Eric Blake  <eblake@redhat.com>
27262
27263         stdlib: work around MirBSD WEXITSTATUS bug
27264         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
27265         * modules/stdlib (Depends-on): Add sys_wait.
27266         * tests/test-sys_wait.c (main): Enhance test.
27267         * tests/test-stdlib.c (main): Likewise.
27268         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
27269
27270         docs: mention MacOS issue with WEXITSTATUS(constant)
27271         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
27272         issue.
27273         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27274
27275         strnlen: add tests
27276         * modules/strnlen-tests: New file.
27277         * tests/test-strnlen.c: Likewise.
27278
27279 2010-09-14  Bruno Haible  <bruno@clisp.org>
27280
27281         unistr/base: Avoid link errors when module 'libunistring' is also used.
27282         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
27283         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
27284         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
27285         Declare also when HAVE_LIBUNISTRING is set.
27286         Reported by Pádraig Brady <P@draigbrady.com>.
27287
27288 2010-09-14  Eric Blake  <eblake@redhat.com>
27289
27290         test-rawmemchr: make more robust
27291         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
27292         (Depends-on, configure.ac): Add needed prerequisites to use it.
27293         * modules/memchr-tests (Files, Depends-on, configure.ac):
27294         Likewise, to avoid implicit reliance on memchr module prereqs.
27295         * tests/test-memchr.c (main): Ensure proper masking.
27296         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
27297         reads.
27298
27299         memchr: detect glibc Alpha bug
27300         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
27301         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
27302         Alpha.
27303         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
27304         * tests/test-memchr.c (main): Enhance test.
27305         Reported by Nelson H. F. Beebe.
27306
27307 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27308
27309         fts, getcwd, glob: audit for dirfd returning -1
27310         * lib/fts.c (opendir): Remove #define; no longer used.
27311         (opendirat): New arg PDIR_FD.  All callers changed.
27312         (fts_build, _opendir2): Use new opendirat to avoid the need for
27313         dirfd, or for checking whether dirfd returns a negative value.
27314         Don't use opendir; always use openat followed by fdopendir.
27315         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
27316         it.
27317         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
27318         returns -1 here.
27319         * modules/fts (Depends-on): Remove dirfd.
27320         * modules/getcwd (Depends-on): Likewise.
27321
27322 2010-09-13  Eric Blake  <eblake@redhat.com>
27323
27324         float: fix broken MirBSD header
27325         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
27326         * doc/posix-headers/float.texi (float.h): Document it.
27327
27328 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27329
27330         fts: use O_NOFOLLOW to avoid race condition when opening a directory
27331         * lib/fts.c (opendirat): New arg extra_flags.
27332         (__opendir2): Use it to avoid following symlinks when opening
27333         a directory, if symlinks are not supposed to be followed.  See
27334         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
27335
27336         fdopendir: preserve argument fd before returning
27337         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
27338         (fdopendir_with_dup, fd_clone_opendir): New static functions.
27339         (fdopendir): Use them, arranging for FD to be open to the same
27340         directory that it was when it started.  (It might be temporarily
27341         closed while fdopendir is running, so this not thread- or
27342         signal-safe.)  Be careful to do the right thing even when file
27343         descriptors are scarce and dup fails with errno == EMFILE.  See
27344         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
27345
27346 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
27347
27348         regex: Pass the system regex if its only problem is 32-bit regoff_t.
27349         * NEWS: Document change.
27350         * m4/regex.m4: Disable test for regoff_t size.
27351
27352 2010-09-13  Jim Meyering  <meyering@redhat.com>
27353
27354         fts: don't operate on an invalid file descriptor after failed dup
27355         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
27356         negative file descriptor.
27357
27358 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
27359
27360         savedir: add streamsavedir, deprecate fdsavedir
27361         * NEWS: Mention deprecation of fdsavedir.
27362         * lib/savedir.c (streamsavedir): New extern function, whose name
27363         ends in "savedir" to be consistent with the others.  This differs
27364         from savedirstream in that it doesn't close its argument.  The
27365         next version of GNU tar will use this instead of fdsavedir, to
27366         avoid some race conditions and conserve file descriptors.
27367         (savedirstream): Reimplement as a wrapper around streamsavedir.
27368         (fdsavedir): Add a comment deprecating this function.  As far as
27369         I know, only GNU tar used it, and GNU tar doesn't need it any more.
27370         * lib/savedir.h (streamsavedir): New decl.
27371         (fdsavedir): Add a comment deprecating this.
27372
27373 2010-09-10  Bruno Haible  <bruno@clisp.org>
27374
27375         langinfo: Fix last commit.
27376         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
27377         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
27378         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27379
27380 2010-09-10  Bruno Haible  <bruno@clisp.org>
27381
27382         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
27383         * lib/progreloc.c (O_EXEC): Define fallback.
27384
27385 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
27386
27387         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
27388         * NEWS: Document recent changes to fcntl-h.
27389         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
27390         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
27391         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
27392         Similarly for O_SEARCH; this last was already true, but not documented.
27393         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
27394         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
27395         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
27396         Likewise.
27397         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
27398         is zero, not whether it is defined.
27399         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
27400         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
27401         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
27402
27403 2010-09-10  Bruno Haible  <bruno@clisp.org>
27404
27405         langinfo, nl_langinfo: Fix for IRIX 5.3.
27406         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
27407         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
27408         HAVE_LANGINFO_YESEXPR.
27409         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
27410         HAVE_LANGINFO_YESEXPR.
27411         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
27412         HAVE_LANGINFO_T_FMT_AMPM is 0.
27413         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
27414         HAVE_LANGINFO_YESEXPR is 0.
27415         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
27416         NOEXPR.
27417         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
27418         * doc/posix-functions/nl_langinfo.texi: Likewise.
27419         Reported by Eric Blake.
27420
27421 2010-09-10  Bruno Haible  <bruno@clisp.org>
27422
27423         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
27424         * doc/glibc-functions/login_tty.texi: Mention the include file problem
27425         on FreeBSD 8.0 and OpenBSD 4.6.
27426         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
27427         * m4/pty_h.m4 (gl_PTY_H): Likewise.
27428         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
27429         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
27430         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
27431         ac_includes_default.
27432         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27433
27434 2010-09-09  Eric Blake  <eblake@redhat.com>
27435
27436         strsignal: work around NetBSD bug
27437         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
27438         * lib/string.in.h (includes): Likewise.
27439         * doc/posix-functions/strsignal.texi (strsignal): Document the
27440         bug.
27441         Reported by Nelson H. F. Beebe.
27442
27443         gnulib-tool: work with NetBSD /bin/sh
27444         * gnulib-tool (func_cache_var, func_cache_lookup_module)
27445         (func_get_description, func_get_comment, func_get_status)
27446         (func_get_notice, func_get_applicability, func_get_filelist)
27447         (func_get_dependencies, func_get_autoconf_early_snippet)
27448         (func_get_autoconf_snippet, func_get_automake_snippet)
27449         (func_get_include_directive, func_get_link_directive)
27450         (func_get_license, func_get_maintainer, func_import): Avoid
27451         shell syntax errors from parsing syntax extensions.
27452
27453 2010-09-09  Bruno Haible  <bruno@clisp.org>
27454
27455         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
27456         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
27457         a reliable way to determine whether the 'alias' command works.
27458
27459 2010-09-08  Jim Meyering  <meyering@redhat.com>
27460
27461         init.sh: penalize a set-x-impaired shell; don't disqualify it
27462         * tests/init.sh: Too many shells corrupt application stderr when
27463         you set -x, so we can't afford to disqualify them, since at least
27464         on Irix-6.5, that would disqualify all bourne shells.
27465         Instead, use a two-pass approach.
27466         On the first pass, try to find a shell that meets the stricter
27467         condition that set -x does not corrupt stderr.
27468         If no shell meets the stricter condition, retest each candidate
27469         shell, but without that extra condition.  Finally, when
27470         VERBOSE=yes is requested and set -x might cause trouble, simply
27471         issue a warning and refrain from enabling debug output.
27472
27473 2010-09-08  Eric Blake  <eblake@redhat.com>
27474
27475         unsetenv: fix OpenBSD bug
27476         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
27477         * doc/posix-functions/unsetenv.texi (unsetenv): Update
27478         documentation.
27479         Reported by Jim Meyering.
27480
27481         strtod: work around IRIX 6.5 bug
27482         * lib/strtod.c (strtod): Reparse number on shorter string if
27483         exponent parse was invalid.
27484         * tests/test-strtod.c (main): Add check for "0x1p 2".
27485         Reported by Tom G. Christensen.
27486
27487         getopt: optimize previous patch
27488         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
27489         empty variable.  Speed up awk script.
27490         Reported by Paolo Bonzini.
27491
27492 2010-09-08  Jim Meyering  <meyering@redhat.com>
27493
27494         test.sh: disqualify shells for which set -x corrupts stderr
27495         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
27496         and OpenBSD 4.7.  They make it so with "set -x", environment settings
27497         appear in stderr output.  For example, this command:
27498             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
27499         prints "P=1" on those two systems:
27500
27501 2010-09-08  Bruno Haible  <bruno@clisp.org>
27502
27503         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
27504         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
27505         commands, because some shells ignore redirections when there is an
27506         error in the command lookup.
27507         Reported by Eric Blake.
27508
27509 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
27510
27511         * lib/regex.h: Fix a mention of `regex_compile' (should be
27512         `re_compile_pattern').
27513         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
27514         (re_set_registers): Correct name of parameter in comment.
27515
27516         * doc/regex.texi: Add documentation for missing syntax flags.
27517         Remove commented-out documentation of defunct syntax option
27518         RE_NO_EMPTY_ALTS.
27519         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
27520         Add documentation of re_set_registers.
27521         Document trick to re-use a pattern buffer by setting fastmap manually.
27522         Update documentation of struct re_pattern_buffer per public members.
27523         Uncomment documentation of equivalence class operators and
27524         collating symbol operators, since they are now implemented,
27525         Explain leftmost-longest matching in relation to alternatives.
27526         Tidy documentation of substring matching.
27527         Remove POSIX documentation, which is done better in
27528         glibc, and refer the reader there. Keep BSD API documentation, as
27529         that is not readily available elsewhere.
27530
27531 2010-09-07  Eric Blake  <eblake@redhat.com>
27532
27533         getopt: handle POSIXLY_CORRECT set but not exported
27534         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
27535         export state of POSIXLY_CORRECT, due to bash set -o posix.
27536         Reported by Dustin J. Mitchell.
27537
27538 2010-09-05  Bruno Haible  <bruno@clisp.org>
27539
27540         gnulib-tool: Highlight the changed options.
27541         * gnulib-tool (func_usage): Display the --import, --add-import,
27542         --remove-import explanations in bold font.
27543
27544 2010-09-06  Karl Berry  <karl@gnu.org>
27545
27546         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
27547
27548 2010-09-05  Bruno Haible  <bruno@clisp.org>
27549
27550         uniwidth/width: Update comment.
27551         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
27552         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
27553
27554 2010-09-05  Bruno Haible  <bruno@clisp.org>
27555
27556         isinf, isnan: Relax license.
27557         * modules/isinf (License): Change from GPL to LGPL, with consent from
27558         Ben Pfaff.
27559         * modules/isnan (License): Likewise.
27560         Requested by Ludovic Courtès.
27561
27562 2010-09-04  Bruno Haible  <bruno@clisp.org>
27563
27564         gnulib-tool: Help migration from --import to --add-import or --update.
27565         * gnulib-tool: Emit a verbose error message when --import is used
27566         without any module name.
27567
27568 2010-09-04  Bruno Haible  <bruno@clisp.org>
27569
27570         Update doc about gnulib-tool.
27571         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
27572         'gnulib-tool --update' in more detail.
27573         Reported by Eric Blake.
27574
27575 2010-09-04  Bruno Haible  <bruno@clisp.org>
27576
27577         gnulib-tool: Change --import. New options --add/remove-import.
27578         * gnulib-tool: New options --add-import, --remove-import.
27579         (func_usage): Document them.
27580         (have_associative): Define always.
27581         (func_import): In import mode, don't merge the specified settings with
27582         the cached settings. Implement remove-import mode.
27583         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
27584         Explain when to use them versus --import.
27585         (Simple update): Use --add-import instead of --import.
27586         * NEWS: Mention the change.
27587
27588 2010-09-04  Bruno Haible  <bruno@clisp.org>
27589
27590         * doc/gnulib-tool.texi (Initial import): Update paragraph about
27591         separate gnulib.mk.
27592
27593 2010-09-04  Bruno Haible  <bruno@clisp.org>
27594
27595         gnulib-tool: Don't talk about CVS any more.
27596         * gnulib-tool (func_usage, func_import): Write "version control"
27597         instead of CVS.
27598
27599 2010-09-04  Jim Meyering  <meyering@redhat.com>
27600
27601         maint.mk: avoid obscure sc_copyright_check failure in coreutils
27602         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
27603         false positives (whose names may be ill-chosen) when searching
27604         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
27605         would cause a false-positive.
27606
27607         avoid coreutils "make distcheck" failure
27608         Coreutils tests with an absolute build directory name that contains
27609         a space.  Not quoting this directory name caused a failure.
27610         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
27611         * tests/test-vc-list-files-cvs.sh: Likewise.
27612
27613 2010-09-04  Bruno Haible  <bruno@clisp.org>
27614
27615         gnulib-tool: Avoid error when run in a package without Makefile.am.
27616         * gnulib-tool: When collecting the m4dirs in a package that does not
27617         have a Makefile.am, eliminate those directories that contain no
27618         gnulib-cache.m4. Fix expression that counts these directories.
27619
27620 2010-09-04  Bruno Haible  <bruno@clisp.org>
27621
27622         update-copyright test: Improve output when perl is missing or too old.
27623         * tests/test-update-copyright.sh: Move test of Perl version down after
27624         the test whether Perl exists. Provide an explanation relating Perl's
27625         error message to Automake's SKIP: message.
27626
27627 2010-09-04  Bruno Haible  <bruno@clisp.org>
27628
27629         Don't augment PATH in TESTS_ENVIRONMENT.
27630         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
27631         set abs_aux_dir instead of augmenting PATH.
27632         * modules/vc-list-files-tests (Makefile.am): Likewise.
27633         * tests/test-update-copyright.sh: Augment PATH here.
27634         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
27635         path_prepend_.
27636         * tests/test-vc-list-files-git.sh: Likewise.
27637
27638 2010-09-04  Jim Meyering  <meyering@redhat.com>
27639
27640         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
27641         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
27642
27643 2010-09-04  Bruno Haible  <bruno@clisp.org>
27644
27645         strdup: Fix compilation error in C++ mode.
27646         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
27647         the macro.
27648
27649 2010-09-04  Bruno Haible  <bruno@clisp.org>
27650
27651         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
27652         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
27653         macro into a function.
27654         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27655
27656 2010-09-04  Bruno Haible  <bruno@clisp.org>
27657
27658         Set PATH_SEPARATOR the same way autoconf does.
27659         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
27660         the value of PATH_SEPARATOR the same way autoconf-generated configure
27661         scripts do.
27662         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
27663         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
27664
27665 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
27666
27667         Set PATH_SEPARATOR the same way autoconf does.
27668         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
27669         the same way autoconf-generated configure scripts do.
27670         * posix-modules: Likewise.
27671
27672 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
27673
27674         hash: fix safe_hasher const typo
27675         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
27676         const; otherwise, there is a type error later.
27677
27678 2010-09-02  Jim Meyering  <meyering@redhat.com>
27679
27680         test-update-copyright.sh: require perl 5.8.0
27681         * tests/test-update-copyright.sh: Require 5.8.0,
27682         which Tom G. Christensen has confirmed is adequate,
27683         while 5.6.1 is not.
27684
27685 2010-09-02  Eric Blake  <eblake@redhat.com>
27686
27687         tests: init.sh improvements for re-exec'ing with zsh
27688         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
27689         -vx through shell re-exec.
27690         Reported by Tom G. Christensen.
27691
27692         wctype: fix typo in previous commit
27693         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
27694         Reported by Ludovic Courtès.
27695
27696 2010-09-02  Jim Meyering  <meyering@redhat.com>
27697
27698         test-update-copyright.sh: skip test if Perl is too old
27699         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
27700         Reported by Tom G. Christensen.
27701
27702 2010-09-02  Bruno Haible  <bruno@clisp.org>
27703
27704         wctype: Avoid compilation error on IRIX 6.5.30.
27705         * lib/wctype.in.h (iswblank): Declare with a replacement if
27706         REPLACE_ISWBLANK is set.
27707         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
27708         declared. Set REPLACE_ISWBLANK.
27709         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
27710         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
27711         * doc/posix-headers/wctype.texi: Likewise.
27712         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27713
27714 2010-09-01  Bruno Haible  <bruno@clisp.org>
27715
27716         New module 'socketlib'.
27717         * modules/socketlib: New file.
27718         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
27719         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
27720         * modules/sockets (Depends-on): Add socketlib.
27721         Suggested by Sam Steingold <sds@gnu.org>.
27722
27723 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
27724
27725         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
27726
27727         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
27728         when one needs search access to a directory but not read access.
27729         On systems where it is available, it works in some cases where
27730         O_RDONLY does not, namely on directories that are searchable but
27731         not readable, and which need only to be searchable.  If O_SEARCH
27732         is not available, fall back to the traditional method of using
27733         O_RDONLY.
27734
27735         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
27736         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
27737         when opening a directory that needs only to be searchable.
27738         * lib/chdir-safer.c (chdir_no_follow): Likewise.
27739         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
27740         * lib/openat-proc.c (openat_proc_name): Likewise.
27741         * lib/openat.c (openat_needs_fchdir): Likewise.
27742         * lib/save-cwd.c (save_cwd): Likewise.
27743         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
27744
27745 2010-08-28  Bruno Haible  <bruno@clisp.org>
27746
27747         New module 'host-cpu-c-abi'.
27748         * modules/host-cpu-c-abi: New file.
27749         * m4/host-cpu-c-abi.m4: New file, based on part of
27750         clisp/src/m4/general.m4.
27751         Requested by Sam Steingold <sds@gnu.org>.
27752
27753 2010-08-31  Eric Blake  <eblake@redhat.com>
27754         and Jim Meyering  <meyering@redhat.com>
27755
27756         hash: factor, and guard against misbehaving hasher function
27757         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
27758         of table->hasher's return value.  Also protect against a hash value
27759         so large that adding it to table->bucket results in a NULL pointer.
27760         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
27761         Use it in place of open-coded check-and-abort.
27762
27763 2010-08-30  Bruno Haible  <bruno@clisp.org>
27764
27765         hash: silence spurious clang warning
27766         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
27767         Reported by Eric Blake.
27768
27769 2010-08-30  Eric Blake  <eblake@redhat.com>
27770
27771         strstr, memmem, strcasestr: avoid leaked shell message
27772         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
27773         FreeBSD.
27774         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27775         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27776
27777         tests: silence clang warning
27778         * tests/test-malloca.c (do_allocation): Avoid dead store.
27779
27780 2010-08-29  Bruno Haible  <bruno@clisp.org>
27781
27782         gettext: Fix recent mistake.
27783         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
27784
27785 2010-08-29  Bruno Haible  <bruno@clisp.org>
27786
27787         selinux-h: Offer a --without-selinux option.
27788         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
27789         --without-selinux was specified, skip all tests and define
27790         HAVE_SELINUX_SELINUX_H to 0.
27791         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
27792         set LIB_SELINUX to empty.
27793         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
27794         gl_LIBSELINUX. If --without-selinux was specified, replace
27795         selinux/context.h.
27796         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
27797
27798 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27799             Bruno Haible  <bruno@clisp.org>
27800
27801         Make the module 'realloc-gnu' work again on AIX and OSF/1.
27802         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
27803         of HAVE_REALLOC.
27804         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
27805         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
27806         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
27807         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27808
27809 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27810             Bruno Haible  <bruno@clisp.org>
27811
27812         Make the module 'calloc-gnu' work again on AIX and OSF/1.
27813         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
27814         HAVE_CALLOC.
27815         * lib/xmalloc.c: Update accordingly.
27816         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
27817         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
27818         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
27819
27820 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27821             Bruno Haible  <bruno@clisp.org>
27822
27823         Make the module 'malloc-gnu' work again on AIX and OSF/1.
27824         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
27825         HAVE_MALLOC.
27826         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
27827         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
27828         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27829
27830 2010-08-29  Bruno Haible  <bruno@clisp.org>
27831
27832         Update modules list.
27833         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
27834         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
27835         (String handling <string.h>): Add astrxfrm.
27836         (File system functions): Add readlinkat.
27837
27838 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27839
27840         Tests for module 'realloc-gnu'.
27841         * modules/realloc-gnu-tests: New file.
27842         * tests/test-realloc-gnu.c: New file.
27843
27844         Tests for module 'calloc-gnu'.
27845         * modules/calloc-gnu-tests: New file.
27846         * tests/test-calloc-gnu.c: New file.
27847
27848         Tests for module 'malloc-gnu'.
27849         * modules/malloc-gnu-tests: New file.
27850         * tests/test-malloc-gnu.c: New file.
27851
27852 2010-08-28  Bruno Haible  <bruno@clisp.org>
27853
27854         Rename module 'realloc' -> 'realloc-gnu'.
27855         * modules/realloc-gnu: New file, copied from modules/realloc.
27856         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
27857         obsolete.
27858         * modules/mgetgroups (Depends-on): Update.
27859         * doc/posix-functions/realloc.texi: Update.
27860         * NEWS: Mention the change.
27861
27862         Rename module 'calloc' -> 'calloc-gnu'.
27863         * modules/calloc-gnu: New file, copied from modules/calloc.
27864         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
27865         obsolete.
27866         * doc/posix-functions/calloc.texi: Update.
27867         * NEWS: Mention the change.
27868
27869         Rename module 'malloc' -> 'malloc-gnu'.
27870         * modules/malloc-gnu: New file, copied from modules/malloc.
27871         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
27872         obsolete.
27873         * modules/argp (Depends-on): Update.
27874         * modules/regex (Depends-on): Update.
27875         * doc/posix-functions/malloc.texi: Update.
27876         * NEWS: Mention the change.
27877
27878 2010-08-28  Eric Blake  <eblake@redhat.com>
27879
27880         pread, pwrite: add missing dependency
27881         * modules/pread (Depends-on): Add extensions.
27882         * modules/pwrite (Depends-on): Likewise.
27883
27884 2010-08-28  Bruno Haible  <bruno@clisp.org>
27885
27886         unistr/u*-strchr: Fix tests dependencies.
27887         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
27888         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
27889         Reported by Ian Beckwith <ianb@erislabs.net>.
27890
27891 2010-08-28  Bruno Haible  <bruno@clisp.org>
27892
27893         read-file: Don't occupy too much unused memory.
27894         * lib/read-file.c (fread_file): Shrink the buffer at the end.
27895
27896 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
27897             Eric Blake  <eblake@redhat.com>
27898             Bruno Haible  <bruno@clisp.org>
27899
27900         read-file: Avoid memory reallocations with regular files.
27901         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
27902         (fread_file): With regular files, use the remaining length as the
27903         initial buffer size.  Check against overflow.
27904         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
27905         sys_stat.
27906
27907 2010-08-28  Bruno Haible  <bruno@clisp.org>
27908
27909         ftello: Relax license.
27910         * modules/ftello (License): Relax to LGPLv2+.
27911         Reported by Eric Blake.
27912
27913 2010-08-28  Bruno Haible  <bruno@clisp.org>
27914
27915         Avoid relocwrapper link errors due to gnulib replacement functions.
27916         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
27917         function.
27918         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27919
27920 2010-08-28  Bruno Haible  <bruno@clisp.org>
27921
27922         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
27923         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
27924         defined.
27925         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
27926         Suggested by Eric Blake.
27927
27928 2010-08-28  Bruno Haible  <bruno@clisp.org>
27929
27930         sys_socket, netdb: Ensure socklen_t gets defined.
27931         * modules/sys_socket (Depends-on): Add socklen.
27932         * modules/netdb (Depends-on): Likewise.
27933         * modules/getaddrinfo (Depends-on): Remove socklen.
27934         * modules/getsockopt (Depends-on): Likewise.
27935         * modules/setsockopt (Depends-on): Likewise.
27936         * tests/test-sys_socket.c: Check that socklen_t is defined.
27937         * tests/test-netdb.c: Likewise.
27938         * m4/socklen.m4: Update comments.
27939         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27940
27941 2010-08-27  Eric Blake  <eblake@redhat.com>
27942
27943         login_tty: add missing dependency
27944         * modules/login_tty (Depends-on): Add pty.
27945
27946 2010-08-26  Eric Blake  <eblake@redhat.com>
27947
27948         lib-symbol-versions: fix m4 quoting
27949         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
27950         format for AC_LINK_IFELSE.
27951
27952         glob: fix compile test
27953         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
27954
27955         btowc: fix missing file
27956         * modules/btowc (Files): Also ship locale-fr.m4.
27957
27958         lseek: fix link test
27959         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
27960         AC_LINK_IFELSE.
27961
27962         include_next: silence autoconf 2.68 warning
27963         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
27964         AC_COMPILE_IFELSE as special.
27965         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
27966         autoconf < 2.68.
27967
27968         acl: fix compilation test
27969         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
27970         AC_COMPILE_IFELSE.
27971
27972 2010-08-26  Bruno Haible  <bruno@clisp.org>
27973
27974         Modernize AC_TRY_RUN invocations.
27975         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
27976         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27977         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
27978         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
27979         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
27980         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27981         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27982         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27983         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27984         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27985         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27986         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27987         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27988         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27989         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27990         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
27991         gl_MBRLEN_NUL_RETVAL): Likewise.
27992         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27993         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
27994         Likewise.
27995         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27996         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27997         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27998         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27999         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
28000         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
28001         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
28002         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
28003         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
28004         Likewise.
28005         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
28006         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
28007         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28008         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
28009         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28010         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
28011         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28012         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
28013         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28014         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28015
28016 2010-08-26  Bruno Haible  <bruno@clisp.org>
28017
28018         Modernize AC_TRY_LINK invocations.
28019         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
28020         AC_TRY_LINK.
28021         * m4/argp.m4 (gl_ARGP): Likewise.
28022         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
28023         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28024         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
28025         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28026         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28027         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
28028         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
28029         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
28030         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28031         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
28032         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28033         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
28034         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
28035         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28036         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
28037         * m4/hostent.m4 (gl_HOSTENT): Likewise.
28038         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28039         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
28040         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
28041         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
28042         Likewise.
28043         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
28044         Likewise.
28045         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
28046         Likewise.
28047         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
28048         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
28049         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
28050         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
28051         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
28052         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
28053         * m4/servent.m4 (gl_SERVENT): Likewise.
28054         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
28055         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
28056         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
28057         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
28058         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
28059         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
28060         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
28061         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28062         * modules/tsearch-tests (configure.ac): Likewise.
28063
28064 2010-08-26  Bruno Haible  <bruno@clisp.org>
28065
28066         Modernize AC_TRY_COMPILE invocations.
28067         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
28068         AC_TRY_COMPILE.
28069         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
28070         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
28071         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
28072         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
28073         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
28074         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
28075         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28076         * m4/lock.m4 (gl_LOCK): Likewise.
28077         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
28078         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28079         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
28080         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
28081         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
28082         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
28083         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
28084         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
28085         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
28086         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
28087         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
28088         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
28089         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
28090         extraneous semicolon.
28091
28092 2010-08-26  Jim Meyering  <meyering@redhat.com>
28093
28094         stat-time: relax license LGPL
28095         * modules/stat-time (License): Change from GPL to LGPL,
28096         with consent from all contributors, for use in libguile.
28097         Requested by Ludovic Courtès.
28098
28099 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
28100
28101         poll: return immediately on POLLHUP.
28102         * lib/poll.c (poll): Always set timeout before wait_timeout is
28103         computed.
28104
28105 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28106
28107         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
28108         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
28109         rmdir ("dir/.//"), unlinkat.
28110
28111 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28112
28113         stdbool: avoid spurious failure with modern xlc
28114         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
28115
28116 2010-08-24  Bruno Haible  <bruno@clisp.org>
28117
28118         getloadavg: simplify code
28119         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
28120         gl_have_func. Update comments.
28121
28122 2010-08-24  Eric Blake  <eblake@redhat.com>
28123
28124         getloadavg: don't define SVR4 on cygwin
28125         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
28126         only define SVR4 when -lkvm is required.
28127         Reported by Yaakov Selkowitz.
28128
28129 2010-08-24  Bruno Haible  <bruno@clisp.org>
28130
28131         priv-set: fix comment
28132         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
28133
28134 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
28135
28136         priv-set: fix comments
28137         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
28138         to match code, as suggested by David Bartley in:
28139         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
28140
28141 2010-08-23  Eric Blake  <eblake@redhat.com>
28142
28143         stdbool: avoid rejecting clang
28144         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
28145         * tests/test-stdbool.c: Enable more tests if using the system
28146         <stdbool.h> instead of the gnulib replacement.
28147         (main): Move xlc bug test to a runtime test for all compilers.
28148         Reported by Anders Kaseorg.
28149
28150         argz: fix shell quoting issue
28151         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
28152         Reported by Charles Wilson.
28153
28154 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
28155             Erik Faye-Lund <kusmabite@gmail.com>
28156
28157         poll, select: handle ERROR_BROKEN_PIPE.
28158         * lib/poll.c (win32_compute_revents): Return POLLHUP when
28159         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
28160         * lib/select.c (win32_compute_revents): Do not mark a pipe
28161         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
28162
28163 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
28164
28165         fts: allow compilation with C++
28166         * lib/fts_.h: Specify extern "C" linkage with C++.
28167
28168 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28169
28170         Fix gnulib-tool sed script de-commentation for AIX sed.
28171         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
28172         sed.
28173
28174 2010-08-17  Eric Blake  <eblake@redhat.com>
28175
28176         test-stddef: test for (some) offsetof bugs
28177         * tests/test-stddef.c: Enhance test to ensure correct type of
28178         offsetof.
28179         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
28180         that we are not fixing at this time.
28181
28182 2010-08-15  Bruno Haible  <bruno@clisp.org>
28183
28184         stpncpy: Allow stpncpy to be defined as a macro.
28185         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
28186         if it's already correctly declared.
28187         * lib/string.in.h (stpncpy): Undefine before redefining.
28188         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
28189
28190 2010-08-14  Bruno Haible  <bruno@clisp.org>
28191
28192         Rename module 'memxfrm' to 'amemxfrm'.
28193         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
28194         (amemxfrm): Renamed from memxfrm.
28195         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
28196         (amemxfrm): Renamed from memxfrm.
28197         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
28198         * NEWS: Mention the change.
28199         * MODULES.html.sh (String handling <string.h>): Update.
28200         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
28201         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
28202         * lib/unicase/u16-casexfrm.c: Likewise.
28203         * lib/unicase/u32-casexfrm.c: Likewise.
28204         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
28205         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
28206         * lib/uninorm/u16-normxfrm.c: Likewise.
28207         * lib/uninorm/u32-normxfrm.c: Likewise.
28208         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
28209         memxfrm.
28210         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
28211         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
28212         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
28213         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
28214         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
28215         Suggested by Paul Eggert.
28216
28217 2010-08-14  Bruno Haible  <bruno@clisp.org>
28218
28219         Tests for module 'astrxfrm'.
28220         * modules/astrxfrm-tests: New file.
28221         * tests/test-astrxfrm.c: New file.
28222
28223         New module 'astrxfrm'.
28224         * lib/astrxfrm.h: New file.
28225         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
28226         * modules/astrxfrm: New file.
28227
28228 2010-08-14  Reuben Thomas <rrt@sc3d.org>
28229
28230         regex: Tweak doc.
28231         * doc/regex.texi (Overview): Don't mention regex.c.
28232         (GNU Regular Expression Compiling): Likewise.
28233         (Match-end-of-line Operator): Mention 'not_eol'.
28234
28235 2010-08-14  Brian Gough  <bjg@gnu.org>
28236             Bruno Haible  <bruno@clisp.org>
28237
28238         git-merge-changelog: add doc relating to use with bzr and hg.
28239         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
28240
28241 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
28242
28243         pthread: fix pthread.h creation for srcdir != builddir
28244         * modules/pthread (Makefile.am): Fix the rule to work also in a
28245         non-srcdir build.
28246
28247 2010-08-13  Karl Berry  <karl@gnu.org>
28248
28249         * doc/regex.texi (Predefined Syntaxes): @smallexample.
28250         * doc/posix-*/*: force line break before @url of POSIX
28251         specifications.
28252         Suggested by Werner Lemberg.
28253
28254 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
28255
28256         strtod: fix const diagnostic
28257         * lib/strtod.c (strtod): Don't assign const char * to char *,
28258         as this elicits a warning from GCC when warnings are enabled.
28259
28260 2010-08-10  Pádraig Brady <P@draigbrady.com>
28261         and Eric Blake  <eblake@redhat.com>
28262
28263         copy-acl: ignore ENOTSUP on HP-UX
28264         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
28265         so that it is available for HP-UX.
28266         * lib/copy-acl.c (qcopy_acl): Use it.
28267         Reported by Patrick M. Callahan.
28268
28269 2010-08-10  Eric Blake  <eblake@redhat.com>
28270
28271         open, chown: relax license
28272         * modules/open (License): Change to LGPLv2+, with consent by all
28273         authors, for use in augeas.
28274         * modules/chown (License): Likewise.
28275         * modules/lchown (Likewise): Likewise.
28276         Requested by Adam Stokes.
28277
28278 2010-08-09  Karl Berry  <karl@gnu.org>
28279
28280         * build-aux/ar-lib: new file, import from Automake.
28281         * config/srclist.txt: autocheck for updates.
28282
28283 2010-08-09  Eric Blake  <eblake@redhat.com>
28284
28285         readlinkat: adjust client modules
28286         * modules/areadlinkat (Depends-on): Use readlinkat, not
28287         symlinkat.
28288         * modules/areadlinkat-with-size (Depends-on): Likewise.
28289
28290         mknod: be more vocal about danger of running tests as root
28291         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
28292         root, since that is just asking for problems.
28293         Suggested by Bruno Haible, based on a report by Rainer Tammer.
28294
28295         readlinkat: split into its own module
28296         * modules/symlinkat: Split readlinkat...
28297         * modules/readlinkat: ...into separate module.
28298         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
28299         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
28300         * lib/symlinkat.c (readlinkat): Move...
28301         * lib/readlinkat.c: ...into new file.
28302         * modules/symlinkat-tests: Split readlinkat test...
28303         * modules/readlinkat-tests: ...into separate module.
28304         * tests/test-symlinkat.c: Split...
28305         * tests/test-readlinkat.c: ...into new file.
28306         * NEWS: Document the split.
28307         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28308         * lib/unistd.in.h (readlinkat): Likewise.
28309         Suggested by Bruno Haible.
28310
28311 2010-08-08  Bruno Haible  <bruno@clisp.org>
28312
28313         memxfrm: Speed up.
28314         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
28315         that usually only one call to strxfrm is necessary for each string
28316         part.
28317         Reported by Paul Eggert <eggert@cs.ucla.edu>.
28318
28319 2010-08-07  Karl Berry  <karl@gnu.org>
28320
28321         * doc/posix-headers/limits.texi,
28322         * doc/posix-functions/malloc.texi,
28323         * doc/posix-functions/strsignal.texi: missing @item.
28324         * doc/ld-version-script.texi: spurious leading i.
28325         * doc/regex.texi (Interval Operators): no commas inside @var.
28326
28327 2010-08-01  Bruno Haible  <bruno@clisp.org>
28328
28329         Integrate the regex documentation.
28330         * doc/gnulib.texi: Define 'cn' index.
28331         (Regular expressions): New a chapter that includes regex.texi and
28332         regexprops-generic.texi.
28333         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
28334         syntax.
28335
28336         Whitespace cleanup.
28337         * doc/regex.texi: Remove trailing spaces.
28338
28339         Add regex documentation.
28340         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
28341         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
28342         Written by Kathy A. Hargreaves and Karl Berry.
28343
28344 2010-08-01  Bruno Haible  <bruno@clisp.org>
28345
28346         link: Update documentation.
28347         * doc/posix-functions/link.texi: Update regarding Solaris.
28348
28349 2010-07-31  Bruno Haible  <bruno@clisp.org>
28350
28351         Update modules list.
28352         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
28353         (String handling <string.h>): Add memcmp2, memxfrm.
28354         (Container data structures): Add xlist, xsublist, xoset.
28355         (Core language properties): Add alignof, unused-parameter.
28356         (Process control, Numeric conversion functions <stdlib.h>): Renamed
28357         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
28358         (Unibyte characters <ctype.h>): New section.
28359         (String handling <string.h>): New section.
28360         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
28361         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
28362         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
28363         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
28364         tan, tanh, tanl, y0, y1, yn.
28365         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
28366         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
28367         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
28368         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
28369         unlockpt, vdprintf, vdprintf-posix.
28370         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
28371         (File system functions): Add concat-filename, sys_file, sys_ioctl,
28372         xconcat-filename.
28373         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
28374         getdtablesize, pipe2, pipe2-safer.
28375         (Security): New section.
28376         (Networking functions): Add accept4.
28377         (Signal handling): Add sigpipe.
28378         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
28379         mbmemcasecoll.
28380         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
28381         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
28382         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
28383         pipe-filter-ii.
28384         (Misc): Add argp-version-etc, login_tty, parse-duration.
28385
28386 2010-07-31  Bruno Haible  <bruno@clisp.org>
28387
28388         Improve doc in MODULES.html.
28389         * modules/linkat (Description): Add the word "function".
28390         * modules/mkfifo (Description): Likewise.
28391         * modules/mknod (Description): Likewise.
28392         * modules/remove (Description): Likewise.
28393         * modules/renameat (Description): Likewise.
28394         * modules/stat (Description): Likewise.
28395         * modules/symlink (Description): Likewise.
28396         * modules/unlink (Description): Likewise.
28397
28398 2010-07-31  Bruno Haible  <bruno@clisp.org>
28399
28400         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
28401         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
28402         option --enable/disable-c++ instead of --enable/disable-cxx.
28403         * NEWS: Mention the change.
28404
28405 2010-07-31  Bruno Haible  <bruno@clisp.org>
28406
28407         readlink, areadlink: Relax test a bit.
28408         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
28409         alternative to ENOTDIR.
28410         * tests/test-areadlink.h (test_areadlink): Likewise.
28411         Reported by Rainer Tammer.
28412
28413 2010-07-31  Bruno Haible  <bruno@clisp.org>
28414
28415         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
28416         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
28417         character, perform the search using U_STRCHR.
28418         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
28419         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
28420         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
28421         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
28422         Suggested by Paolo Bonzini.
28423
28424 2010-07-31  Bruno Haible  <bruno@clisp.org>
28425
28426         unistr/u*-strstr: Fix dependencies.
28427         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
28428         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
28429         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
28430
28431 2010-07-31  Bruno Haible  <bruno@clisp.org>
28432
28433         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
28434         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
28435         the beginning of the loop.
28436         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
28437         cases in 'switch' statement.
28438
28439         unistr/u8-strchr: Fix several bugs.
28440         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
28441         the string. When not found, return NULL, not a pointer near the end.
28442
28443         More tests for unistr/u8-strchr.
28444         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
28445         that the function does not read past the first occurrence of the byte
28446         being searched.
28447         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
28448         * tests/unistr/test-u16-strchr.c (main): New function.
28449         * tests/unistr/test-u32-strchr.c (main): New function.
28450
28451 2010-07-31  Bruno Haible  <bruno@clisp.org>
28452
28453         posix-modules: Ignore backup files of documentation files.
28454         * posix-modules: grep only through files named *.texi.
28455
28456 2010-07-31  Bruno Haible  <bruno@clisp.org>
28457
28458         symlinkat: Fix documentation.
28459         * doc/posix-functions/readlinkat.texi: Fix module name.
28460
28461 2010-07-31  Bruno Haible  <bruno@clisp.org>
28462
28463         fchownat: Replace also when chown has the trailing slash bug.
28464         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
28465         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
28466         introduced on 2010-04-10.
28467         Reported by Rainer Tammer.
28468
28469 2010-07-31  Bruno Haible  <bruno@clisp.org>
28470
28471         linkat: Work around AIX 7.1 bug.
28472         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
28473         whether linkat handles trailing slash correctly. If not, replace linkat
28474         and define LINKAT_TRAILING_SLASH_BUG.
28475         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
28476         check whether (fd1,file1) points to a directory if file1 or file2 ends
28477         in a slash. Code taken from lib/link.c.
28478         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
28479         Reported by Rainer Tammer.
28480
28481 2010-07-31  Bruno Haible  <bruno@clisp.org>
28482
28483         Correctly determine whether pow is available in libc on AIX 7 with xlc.
28484         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
28485         This disables an xlc optimization that was causing wrong test results.
28486         Reported by Rainer Tammer.
28487
28488 2010-07-31  Bruno Haible  <bruno@clisp.org>
28489
28490         iconv: Work around AIX 6.1..7.1 bug.
28491         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
28492         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
28493         cross-compiling, guess no on all versions of AIX.
28494         Reported by Rainer Tammer.
28495
28496 2010-07-31  Bruno Haible  <bruno@clisp.org>
28497
28498         readlink: Relax test a bit.
28499         * tests/test-readlink.h (test_readlink): Allow different errno value
28500         when readlink is called with a file name that ends in / and refers to
28501         a file.
28502         Suggested by Eric Blake.
28503         Reported by Rainer Tammer.
28504
28505 2010-07-31  Bruno Haible  <bruno@clisp.org>
28506
28507         copysign: Does not require -lm on glibc systems.
28508         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
28509         gl_COMMON_DOUBLE_MATHFUNC.
28510         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
28511
28512 2010-07-31  Bruno Haible  <bruno@clisp.org>
28513
28514         duplocale: Work around AIX 7.1 bug.
28515         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
28516         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
28517         * lib/duplocale.c (rpl_duplocale): Update comment.
28518         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
28519         Reported by Rainer Tammer.
28520
28521 2010-07-30  Bruno Haible  <bruno@clisp.org>
28522
28523         dirfd: Avoid link error on AIX 7.1.
28524         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
28525         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
28526         exist, set REPLACE_DIRFD.
28527         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
28528         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
28529         * doc/posix-functions/dirfd.texi: Update.
28530         Reported by Rainer Tammer.
28531
28532 2010-07-30  Eric Blake  <eblake@redhat.com>
28533
28534         strtod: next round of AIX fixes
28535         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
28536         exponent.
28537         * tests/test-strtod.c (main): Enhance tests.
28538         * doc/posix-functions/strtod.texi (strtod): Document next bug.
28539         Reported by Rainer Tammer.
28540
28541         futimens: fix configure check
28542         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
28543         Reported by Bruno Haible.
28544
28545 2010-07-30  Bruno Haible  <bruno@clisp.org>
28546
28547         getline: Update regarding AIX.
28548         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
28549         Reported by Rainer Tammer.
28550
28551 2010-07-30  Bruno Haible  <bruno@clisp.org>
28552
28553         wcwidth: Drop replacement on AIX 7.
28554         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
28555         AIX 7.
28556         Reported by Rainer Tammer.
28557
28558 2010-07-30  Bruno Haible  <bruno@clisp.org>
28559
28560         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
28561         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
28562         a 'char *'.
28563         Reported by Rainer Tammer.
28564
28565 2010-07-30  Bruno Haible  <bruno@clisp.org>
28566
28567         unlink: Update regarding AIX.
28568         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
28569         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
28570         Reported by Rainer Tammer.
28571
28572 2010-07-30  Bruno Haible  <bruno@clisp.org>
28573
28574         symlink: Update regarding AIX.
28575         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
28576         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
28577         Reported by Rainer Tammer.
28578
28579 2010-07-30  Bruno Haible  <bruno@clisp.org>
28580
28581         strndup: Update regarding AIX.
28582         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
28583         AIX 7.
28584         Reported by Rainer Tammer.
28585
28586 2010-07-30  Bruno Haible  <bruno@clisp.org>
28587
28588         stat: Update regarding AIX.
28589         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
28590         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
28591         Reported by Rainer Tammer.
28592
28593 2010-07-30  Bruno Haible  <bruno@clisp.org>
28594
28595         truncl: Fix autoconf test.
28596         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
28597         whether truncl works.
28598         Reported by Rainer Tammer.
28599
28600 2010-07-30  Bruno Haible  <bruno@clisp.org>
28601
28602         round: Update regarding AIX.
28603         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
28604         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
28605         Reported by Rainer Tammer.
28606
28607 2010-07-30  Bruno Haible  <bruno@clisp.org>
28608
28609         rename: Update regarding AIX.
28610         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
28611         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
28612         Reported by Rainer Tammer.
28613
28614 2010-07-30  Bruno Haible  <bruno@clisp.org>
28615
28616         printf.m4: Update regarding AIX.
28617         * m4/printf.m4: Update comments regarding AIX.
28618         Reported by Rainer Tammer.
28619
28620 2010-07-30  Bruno Haible  <bruno@clisp.org>
28621
28622         iconv: Update regarding AIX.
28623         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
28624         AIX 7.
28625         Reported by Rainer Tammer.
28626
28627 2010-07-30  Bruno Haible  <bruno@clisp.org>
28628
28629         getopt: Update regarding AIX.
28630         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
28631         no on AIX.
28632         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
28633         Reported by Rainer Tammer.
28634
28635 2010-07-30  Bruno Haible  <bruno@clisp.org>
28636
28637         ldexpl; Update regarding AIX.
28638         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
28639         on AIX 7.
28640         Reported by Rainer Tammer.
28641
28642 2010-07-30  Bruno Haible  <bruno@clisp.org>
28643
28644         frexpl: Update regarding AIX.
28645         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
28646         on AIX 7.
28647         Reported by Rainer Tammer.
28648
28649 2010-07-30  Bruno Haible  <bruno@clisp.org>
28650
28651         open, fopen: Update regarding AIX.
28652         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
28653         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
28654         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
28655         * doc/posix-functions/fopen.texi: Likewise.
28656         Reported by Rainer Tammer.
28657
28658 2010-07-30  Bruno Haible  <bruno@clisp.org>
28659
28660         chown: Update doc regarding AIX.
28661         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
28662         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
28663         Reported by Rainer Tammer.
28664
28665 2010-07-30  Eric Blake  <eblake@redhat.com>
28666
28667         strtod: fix bug in replacement function on AIX
28668         * lib/strtod.c (strtod): Special case broken "0x" parse in
28669         underlying strtod.
28670         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
28671         * doc/posix-functions/strtod.texi (strtod): Likewise.
28672         Reported by Rainer Tammer.
28673
28674 2010-07-30  Bruno Haible  <bruno@clisp.org>
28675
28676         mbrlen: Fix cross-compilation guess for AIX.
28677         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
28678         guess. Leftover from 2008-12-22.
28679
28680 2010-07-30  Bruno Haible  <bruno@clisp.org>
28681
28682         mbrtowc: Fix cross-compilation guess for AIX.
28683         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
28684         guess. Leftover from 2008-12-21.
28685
28686 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
28687
28688         init.sh: work around trap limitation of some shells
28689         * tests/init.sh (setup_): Move exit trap outside of shell function.
28690
28691 2010-07-29  Eric Blake  <eblake@redhat.com>
28692
28693         strtod: aid debugging
28694         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
28695         understanding why strtod is rejected.
28696
28697 2010-07-28  Bruno Haible  <bruno@clisp.org>
28698
28699         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
28700         * lib/unistr/u8-chr.c: Include <string.h>.
28701         * tests/unistr/test-u8-chr.c: Likewise.
28702         * tests/unistr/test-u16-chr.c: Likewise.
28703         * tests/unistr/test-u32-chr.c: Likewise.
28704         * tests/unistr/test-u8-strchr.c: Likewise.
28705         * tests/unistr/test-u16-strchr.c: Likewise.
28706         * tests/unistr/test-u32-strchr.c: Likewise.
28707         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
28708         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
28709         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
28710         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
28711
28712 2010-07-28  Bruno Haible  <bruno@clisp.org>
28713
28714         Use spaces for indentation, not tabs.
28715         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28716
28717 2010-07-27  Bruno Haible  <bruno@clisp.org>
28718
28719         mbspcasecmp: Fix function specification.
28720         * lib/string.in.h (mbspcasecmp): Fix specification comment.
28721         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
28722         Reported by Eric Blake <eblake@redhat.com>.
28723
28724 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
28725
28726         timespec: use cast and not conditional, as truncation isn't possible
28727         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
28728         instead of a conditional.  Comment about the situation in more detail.
28729         This undoes most of the 2009-10-29 patch.
28730
28731 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
28732
28733         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
28734         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
28735         * lib/unistr/u8-strchr.c: Likewise.
28736         * modules/unistr/u8-chr: Depend on memchr.
28737
28738         unistr/u*-strchr: add tests
28739         * modules/unistr/u8-strchr-tests: New file.
28740         * modules/unistr/u16-strchr-tests: New file.
28741         * modules/unistr/u32-strchr-tests: New file.
28742         * tests/unistr/test-strchr.h: New file.
28743         * tests/unistr/test-u8-strchr.c: New file.
28744         * tests/unistr/test-u16-strchr.c: New file.
28745         * tests/unistr/test-u32-strchr.c: New file.
28746
28747         unistr/u*-chr: test multibyte sequences more
28748         * tests/unistr/test-chr.h: Do complete testing of the characters in the
28749         test vector.
28750         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
28751         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
28752         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
28753
28754         unistr/u*-chr: test multibyte sequences
28755         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
28756
28757         unistr/u*-chr: prepare for multibyte tests
28758         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
28759         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
28760         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
28761         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
28762         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
28763         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
28764
28765 2010-07-18  Bruno Haible  <bruno@clisp.org>
28766
28767         unistr/u8-strchr: Optimize non-ASCII argument case.
28768         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
28769         because the first byte often matches anyway.
28770         Reported by Pádraig Brady <P@draigbrady.com>.
28771
28772 2010-07-15  Karl Berry  <karl@gnu.org>
28773
28774         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
28775
28776 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
28777
28778         getcwd: on Solaris, work better if ancestors are inaccessible
28779         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
28780         buffer and size, try again with a large buffer.  This works better
28781         on Solaris, since its getcwd succeeds even if the path to the root
28782         is inaccessible, and this is helpful in common cases such as .zfs
28783         hidden directories.  Problem reported by J Chapman Flack in
28784         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
28785         Use system getcwd if it's declared, not merely if it's partly
28786         working; use the partly-working test only to avoid needless effort
28787         if the system getcwd fails.
28788         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
28789         comment that was already obsolete and is now even more obsolete.
28790         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
28791         now might call strdup.
28792
28793 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
28794
28795         pthread: Add enough so that coreutils/src/sort.c compiles.
28796         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
28797         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
28798         gnulib. Include <sched.h> and <time.h>, as per POSIX.
28799         Include <sys/types.h>, in case it defines pthread_t.
28800         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
28801         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
28802         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
28803         (pthread_rwlockattr_t, pthread_spinlock_t):
28804         New typedefs, if HAVE_PTHREAD_T is not defined.
28805         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
28806         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
28807         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
28808         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
28809         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
28810         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
28811         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
28812         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
28813         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
28814         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
28815         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
28816         New macros.
28817         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
28818         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
28819         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
28820         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
28821         (pthread_spin_unlock): New dummy functions.
28822         (pthread_create): Return EAGAIN; don't set errno.
28823         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
28824         require AC_C_INLINE.
28825         * modules/pthread (Depends-on): Add sched, time.
28826         (pthread.h): Use AM_V_GEN.
28827
28828 2010-07-13  Bruno Haible  <bruno@clisp.org>
28829
28830         striconveh: Don't malloc memory if the result buffer is sufficient.
28831         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
28832         buffer if its size is sufficient.
28833         Reported by Ludovic Courtès <ludo@gnu.org>.
28834
28835 2010-07-13  Bruno Haible  <bruno@clisp.org>
28836
28837         strtod: Add safety check.
28838         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
28839
28840 2010-07-12  Bruno Haible  <bruno@clisp.org>
28841
28842         Unify tests that set gl_cv_func_ldexpl_no_libm.
28843         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
28844         gl_FUNC_LDEXPL.
28845         (gl_FUNC_LDEXPL): Invoke it.
28846         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28847
28848 2010-07-12  Bruno Haible  <bruno@clisp.org>
28849
28850         Unify tests that set gl_cv_func_ldexp_no_libm.
28851         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
28852         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
28853         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
28854         (configure.ac): Simply invoke gl_FUNC_LDEXP.
28855         * modules/strtod (Files): Add m4/ldexp.m4.
28856
28857 2010-07-12  Bruno Haible  <bruno@clisp.org>
28858
28859         Unify tests that set gl_cv_func_frexpl_no_libm.
28860         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
28861         gl_FUNC_FREXPL_NO_LIBM.
28862         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
28863         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28864
28865 2010-07-12  Bruno Haible  <bruno@clisp.org>
28866
28867         Unify tests that set gl_cv_func_frexp_no_libm.
28868         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
28869         gl_FUNC_FREXP_NO_LIBM.
28870         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
28871         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
28872
28873 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28874
28875         memcoll: clarify sizes versus lengths, document better, and tweak perf
28876         * lib/memcoll.c (strcoll_loop, memcoll0):
28877         Improve quality of descriptive comments.  Name variables
28878         consistently as to whether they are lengths (which do not include
28879         terminating null) versus sizes (which do).
28880         * lib/xmemcoll.c (xmemcoll0): Likewise.
28881         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
28882         returned when s1size == 0; this is easier to compile and saves
28883         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
28884
28885 2010-07-12  Bruno Haible  <bruno@clisp.org>
28886
28887         Tests for module '_Exit'.
28888         * modules/_Exit-tests: New file.
28889         * tests/test-_Exit.sh: New file.
28890         * tests/test-_Exit.c: New file.
28891
28892         New module '_Exit'.
28893         * lib/stdlib.in.h (__attribute__): New macro.
28894         (_Exit): New declaration.
28895         * lib/_Exit.c: New file.
28896         * m4/_Exit.m4: New file.
28897         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
28898         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
28899         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
28900         * modules/_Exit: New file.
28901         * tests/test-stdlib-c++.cc (_Exit): Check signature.
28902         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
28903
28904 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28905
28906         strtod: make it more-accurate typically, and don't require libm
28907         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
28908         Include limits.h.  Don't include string.h.
28909         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
28910         (locale_isspace): New function, so that no casts are needed to
28911         check whether *s is a space.
28912         (ldexp): Provide an unused dummy if not available.
28913         (scale_radix_exp, parse_number, underlying_strtod): New functions.
28914         (strtod): Use them.  This implementation prefers to use the
28915         underlying strtod if available, falling back on our own code
28916         only to fix known bugs.  This is more likely to produce an
28917         accurate result.  Also, it avoids the use of libm functions.
28918         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
28919         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
28920         was absent, but it caused a test failure with coreutils.
28921         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
28922         with libm.
28923         * modules/strtod (Makefile.am, Link): libm is no longer needed.
28924         * modules/strtod-tests (Makefile.am): Likewise.
28925
28926 2010-07-11  Pádraig Brady  <P@draigBrady.com>
28927             Bruno Haible  <bruno@clisp.org>
28928
28929         unistr/u8-strchr: Optimize ASCII argument case.
28930         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
28931
28932 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
28933
28934         (x)memcoll: minor tweaks
28935         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
28936         is after the type that it qualifies.
28937         (memcoll0): Likewise.
28938         * lib/memcoll.h (memcoll0): Likewise.
28939         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
28940         * lib/xmemcoll.h (xmemcoll0): Likewise.
28941         * lib/memcoll.c (memcoll0): Correct the comment.  This function
28942         differs from memcoll in that the NUL byte is part of the argument.
28943         Omit the abort-checks, as performance is a real issue here.  Plus,
28944         the checks were wrong anyway (an off-by-one error).  Omit local
28945         variable 'diff', as it's a bit clearer that way.
28946         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
28947         no longer needed.
28948
28949 2010-07-08  Chen Guo <chenguo4@yahoo.com>
28950
28951         (x)memcoll: speedup when input is known to be NUL delimited
28952         * lib/memcoll.c: Include stdlib.
28953         (memcoll0): New function.
28954         (strcoll_loop): New function, refactored for use in both memcoll
28955         and memcoll0.
28956         * lib/memcoll.h (memcoll0): Add prototype.
28957         * lib/xmemcoll.c (xmemcoll0): New function.
28958         (collate_error): New function, refactored for use in both xmemcoll
28959         and xmemcoll0.
28960         * lib/xmemcoll.h (xmemcoll0): Add prototype.
28961         * m4/memcoll.m4: add inline invocation.
28962
28963 2010-07-06  Pádraig Brady  <P@draigBrady.com>
28964
28965         * build-aux/bootstrap: Remove any local translations
28966         from the translation project synchronization directory,
28967         so that local only translations are not distributed.
28968
28969 2010-07-04  Bruno Haible  <bruno@clisp.org>
28970
28971         fsusage: Clarify which code applies to which platforms.
28972         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
28973         platform.
28974         * lib/fsusage.c (get_fs_usage): Likewise.
28975
28976 2010-07-04  Bruno Haible  <bruno@clisp.org>
28977
28978         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
28979         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
28980         Reported by Martin Lambers <marlam@marlam.de>.
28981
28982 2010-07-04  Jim Meyering  <meyering@redhat.com>
28983
28984         hash: once again explicitly disallow insertion of NULL
28985         * lib/hash.c (hash_insert0): Reinstate just-removed test:
28986         inserting a NULL pointer cannot work with these functions.
28987         Add a comment with details.
28988         This reverts part of the 2010-07-01 commit, 5bef1a35
28989         "hash: extend module to deal with non-pointer keys".
28990
28991 2010-07-01  Bruno Haible  <bruno@clisp.org>
28992
28993         stdbool: Update doc.
28994         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
28995         Info from Christian Weisgerber <naddy@mips.inka.de>.
28996
28997 2010-07-01  Jim Meyering  <meyering@redhat.com>
28998
28999         hash: extend module to deal with non-pointer keys
29000         * lib/hash.c (hash_insert0): New interface, much like hash_insert
29001         but that allows insertion of non-pointer entries.
29002         Do not disallow an ENTRY value of NULL.
29003         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
29004         * lib/hash.h (hash_insert0): Declare.
29005
29006 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29007
29008         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
29009         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
29010         not present (i.e. with autoconf 2.59 and when using gettextize, not
29011         gnulib), require AC_GNU_SOURCE instead.
29012
29013 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
29014
29015         idpriv-drop: Fix tests.
29016         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
29017         not to the test-idpriv-droptemp program.
29018
29019 2010-06-29  Bruno Haible  <bruno@clisp.org>
29020
29021         string: Fix syntax error with g++ 2.96.
29022         * lib/string.in.h (__pure__): Remove definition.
29023         (_GL_ATTRIBUTE_PURE): New macro.
29024         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
29025         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
29026         Reported by Christian Weisgerber <naddy@mips.inka.de>.
29027
29028 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
29029
29030         unitypes: Fix bug introduced on 2010-05-18.
29031         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
29032
29033 2010-06-22  Eric Blake  <eblake@redhat.com>
29034
29035         memmem: slight optimization
29036         * lib/str-two-way.h (critical_factorization): Update comments.
29037         Reduce work during factorization phase.
29038         Reported by Carlos Bueno <carlos@bueno.org>.
29039
29040 2010-06-21  Bruno Haible  <bruno@clisp.org>
29041
29042         Fix HAVE_CALLOC_POSIX misnomer.
29043         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
29044         !HAVE_CALLOC_POSIX.
29045         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
29046         HAVE_CALLOC_POSIX.
29047         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
29048         instead of HAVE_CALLOC_POSIX.
29049         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
29050         HAVE_CALLOC_POSIX.
29051
29052         Use modern idiom for calloc() replacement.
29053         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
29054         AC_FUNC_CALLOC.
29055         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
29056         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
29057         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
29058         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
29059         (gl_REPLACE_CALLOC): New macro.
29060
29061 2010-06-21  Bruno Haible  <bruno@clisp.org>
29062
29063         Fix HAVE_REALLOC_POSIX misnomer.
29064         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
29065         !HAVE_REALLOC_POSIX.
29066         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
29067         HAVE_REALLOC_POSIX.
29068         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
29069         instead of HAVE_REALLOC_POSIX.
29070         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
29071         HAVE_REALLOC_POSIX.
29072
29073         Use modern idiom for realloc() replacement.
29074         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
29075         AC_FUNC_REALLOC.
29076         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
29077         Autoconf's AC_FUNC_REALLOC.
29078         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
29079         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
29080         (gl_REPLACE_REALLOC): New macro.
29081         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
29082
29083 2010-06-21  Bruno Haible  <bruno@clisp.org>
29084
29085         Fix HAVE_MALLOC_POSIX misnomer.
29086         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
29087         !HAVE_MALLOC_POSIX.
29088         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
29089         HAVE_MALLOC_POSIX.
29090         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
29091         instead of HAVE_MALLOC_POSIX.
29092         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
29093         HAVE_MALLOC_POSIX.
29094
29095         Use modern idiom for malloc() replacement.
29096         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
29097         AC_FUNC_MALLOC.
29098         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
29099         Autoconf's AC_FUNC_MALLOC.
29100         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
29101         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
29102         (gl_REPLACE_MALLOC): New macro.
29103         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
29104
29105 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
29106
29107         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
29108         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
29109         This macro takes 3 arguments, not 4.
29110
29111 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
29112
29113         ipv6: fix detection under mingw
29114         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
29115         in6_addr.
29116
29117 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
29118
29119         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
29120         that strtod() works when cross-compiling to a glibc version known
29121         to work.
29122
29123 2010-06-15  Bruno Haible  <bruno@clisp.org>
29124
29125         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
29126
29127 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
29128
29129         select: Correct timeout.
29130         * lib/select.c (rpl_select): Compute wait_timeout correctly.
29131
29132 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29133
29134         git-version-gen: init shell var to avoid env var influence
29135         * build-aux/git-version-gen (v): Init shell var to empty.
29136
29137 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
29138
29139         priv-set: Don't assume that priv.h exists merely because getppriv does.
29140         See Jan Andersen's bug report about AIX 5L in
29141         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
29142         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
29143         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
29144         * lib/priv-set.h: Likewise.
29145         * tests/test-priv-set.c: Likewise.
29146
29147 2010-06-13  Bruno Haible  <bruno@clisp.org>
29148
29149         relocatable: Make it easier to test whether to install wrappers.
29150         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
29151         RELOCATABLE_VIA_WRAPPER.
29152
29153 2010-06-13  Bruno Haible  <bruno@clisp.org>
29154
29155         gnulib-tool: Display specified modules and dependencies differently.
29156         * gnulib-tool (func_show_module_list): New function.
29157         (func_import, func_create_testdir): Invoke it.
29158         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
29159
29160 2010-06-13  Bruno Haible  <bruno@clisp.org>
29161
29162         gnulib-tool: Align code of func_import and func_create_testdir.
29163         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
29164         specified_modules.
29165
29166 2010-06-12  Jim Meyering  <meyering@redhat.com>
29167
29168         test-inttostr: avoid spurious failure on Solaris 9
29169         * tests/test-inttostr.c (main): Skip the test when snprintf fails
29170         to accept "%ju".  Reported by Bruno Haible.
29171
29172 2010-06-11  Jim Meyering  <meyering@redhat.com>
29173
29174         test-sys_socket: mark variables as used more readably
29175         * tests/test-sys_socket.c (main): Mark otherwise unused variables
29176         as "used" explicitly via (void) statement casts.  This is more
29177         readable than using them in an artificial return expression.
29178         Suggestion from Bruno Haible.
29179
29180 2010-06-11  Bruno Haible  <bruno@clisp.org>
29181
29182         Avoid some more warnings from "gcc -Wwrite-strings".
29183         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
29184         to 'const char *'.
29185         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
29186         * tests/test-c-strcasestr.c (main): Likewise.
29187         * tests/test-mbscasestr1.c (main): Likewise.
29188         * tests/test-mbscasestr2.c (main): Likewise.
29189         * tests/test-memmem.c (main): Likewise.
29190         * tests/test-strstr.c (main): Likewise.
29191         * tests/test-strcasestr.c (main): Likewise.
29192
29193 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29194
29195         init.sh: change framework_failure_ to fail with status 99, not 1
29196         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
29197         automake's parallel-tests rule that this is an unexpected failure,
29198         even if the test is listed in XFAIL_TESTS.
29199
29200 2010-06-11  Jim Meyering  <meyering@redhat.com>
29201
29202         test-inttostr: avoid warnings about 4-6KB literal strings
29203         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
29204         Include "macros.h", for its definition of ASSERT.
29205         (CK): s/assert/ASSERT/
29206         * modules/inttostr-tests (Files): Add macros.h.
29207
29208         init.sh: don't use $ME_ or skip_ before they are defined
29209         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
29210         their first uses.  Also hoist their companions: warn_, fail_,
29211         framework_failure_, $stderr_fileno.  Prompted by a patch from
29212         Stefano Lattarini.
29213
29214         test-sys_socket: avoid set-but-not-used warnings from gcc
29215         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
29216         avoid warning about set-but-not-used variables.
29217
29218         test-xvasprintf: avoid 'const' discard warnings
29219         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
29220         "const" when assigning from literal strings.
29221         (test_xasprintf): Add "void" in function argument list to placate
29222         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
29223
29224         tests: avoid compilation warnings in argmatch and exclude tests...
29225         in packages that define ARGMATCH_DIE_DECL, like coreutils.
29226         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
29227         Since it always exits, declare with the "noreturn" attribute.
29228         * tests/test-argmatch.c: Likewise.
29229
29230         tests: avoid 'const' discard warnings in mbsstr tests
29231         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
29232         * tests/test-mbsstr2.c (main): Likewise.
29233
29234         test-verify: avoid warning from gcc's -Wmissing-declarations
29235         * tests/test-verify.c (function): Declare to be static.
29236
29237         test-inttostr.c: include <string.h> for use of strcmp
29238         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
29239
29240         test-linkat: avoid failed assertion on "other" architectures
29241         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
29242         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
29243         sparc: https://bugs.launchpad.net/bugs/591968
29244
29245 2010-06-11  Jim Meyering  <meyering@redhat.com>
29246
29247         printf.m4: avoid autoconf's "Expanded Before Required" warning
29248         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
29249         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
29250         autoconf warning.
29251
29252 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
29253
29254         Replacement header templates are now named with ".in", not "_".
29255         * doc/gnulib-intro.texi: Correct.
29256
29257 2010-06-10  Jim Meyering  <meyering@redhat.com>
29258
29259         inttostr-tests: depend on snprintf, not snprintf-posix
29260         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
29261         snprintf-posix, to avoid this aclocal failure:
29262           missing file gnulib-tests/vasnprintf.c
29263           configure.ac:45: error: expected source file, required through \
29264           AC_LIBSOURCES, not found
29265
29266 2010-06-10  Jim Meyering  <meyering@redhat.com>
29267
29268         inttostr: add a new function, inttostr, and tests
29269         The namesake function was not available.  The existence of the
29270         template file, inttostr.c makes its addition nontrivial.
29271         * lib/anytostr.c: Rename from inttostr.c.
29272         (anytostr): Rename from inttostr.
29273         * lib/inttostr.c: New file.
29274         * modules/inttostr (Files): Add anytostr.c.
29275         (Makefile.am): Set lib_SOURCES instead of ...
29276         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
29277         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
29278         * lib/offtostr.c: Likewise.
29279         * lib/uinttostr.c: Likewise.
29280         * lib/umaxtostr.c: Likewise.
29281         * modules/inttostr-tests: New file.
29282         * tests/test-inttostr.c: New file.  Test these functions.
29283
29284 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
29285             Bruno Haible  <bruno@clisp.org>
29286
29287         Add "Extending Gnulib" chapter to manual.
29288         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
29289         chapter.
29290         (Extending Gnulib): New chapter.
29291         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
29292         chapter.
29293
29294 2010-06-09  Bruno Haible  <bruno@clisp.org>
29295
29296         Avoid relocwrapper link errors due to gnulib replacement functions.
29297         * lib/areadlink.c: Use the system's malloc, realloc functions.
29298         (areadlink): Set errno to ENOMEM explicitly.
29299         * modules/areadlink (Depends-on): Remove malloc-posix.
29300         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29301
29302 2010-06-09  Bruno Haible  <bruno@clisp.org>
29303
29304         Avoid relocwrapper link errors due to gnulib replacement functions.
29305         * lib/canonicalize-lgpl.c: Use the system's malloc function.
29306         * lib/malloca.c: Likewise.
29307         * lib/relocatable.c: Likewise.
29308         * lib/progreloc.c: Use the system's malloc, sprintf functions.
29309         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
29310         * lib/setenv.c: Use the system's malloc, realloc functions.
29311         * lib/strerror.c: Use the system's sprintf function.
29312         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29313
29314 2010-06-04  Bruno Haible  <bruno@clisp.org>
29315
29316         Prefer documented low-level autoconf macro names.
29317         * m4/lib-link.m4: Use m4_translit instead of translit.
29318         * m4/environ.m4: Likewise.
29319         * m4/mathfunc.m4: Likewise.
29320         * m4/onceonly.m4: Likewise.
29321         * m4/stdint.m4: Likewise.
29322         Suggested by Eric Blake.
29323
29324 2010-06-04  Martin Lambers  <marlam@marlam.de>
29325             Bruno Haible  <bruno@clisp.org>
29326
29327         havelib: Allow library names with '+' characters.
29328         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
29329         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
29330
29331 2010-06-09  Bruno Haible  <bruno@clisp.org>
29332
29333         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
29334         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
29335         realloc failed.
29336
29337 2010-06-08  Peter Simons  <simons@cryp.to>
29338
29339         maint.mk: make the news-check rule more configurable
29340         * top/maint.mk (news-check-lines-spec): New variable.
29341         (news-check): Use "sed -n 1,10p" in place of "head".
29342
29343 2010-06-07  Jim Meyering  <meyering@redhat.com>
29344
29345         do-release-commit-and-tag: fix typo in --help
29346         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
29347
29348         regex: avoid new dead-code warning with gcc-4.6.0
29349         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
29350         if-block containing a while-loop.  It's been unused for at least
29351         5 years.
29352
29353 2010-06-05  Bruno Haible  <bruno@clisp.org>
29354
29355         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
29356         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
29357
29358 2010-06-04  Bruno Haible  <bruno@clisp.org>
29359
29360         Update to GNU gettext 0.18.1.
29361         * modules/gettext (configure.ac): Require gettext infrastructure from
29362         version 0.18.1.
29363
29364 2010-06-03  Bruno Haible  <bruno@clisp.org>
29365
29366         Don't use AC_LIBOBJ with file names in subdirectories.
29367         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
29368         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
29369         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
29370         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
29371         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
29372         gl_LIBUNISTRING_LIBSOURCE.
29373         (Makefile.am): Augment lib_SOURCES here, conditionally.
29374         * NEWS: Drop requirement for Automake option 'subdir-objects'.
29375
29376 2010-06-03  Bruno Haible  <bruno@clisp.org>
29377
29378         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
29379         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
29380         expansion does not end with a newline.
29381         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
29382         unnecessary newline.
29383
29384 2010-06-03  Bruno Haible  <bruno@clisp.org>
29385
29386         Reduce dependencies.
29387         * tests/test-quotearg.h: New file, extracted from
29388         tests/test-quotearg.c.
29389         * tests/test-quotearg-simple.c: New file, extracted from
29390         tests/test-quotearg.c.
29391         * tests/test-quotearg.c: Don't include <ctype.h>.
29392         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
29393         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
29394         use_quote_double_quotes, use_quotearg_colon): Moved to
29395         tests/test-quotearg.h.
29396         (results_g, flag_results, custom_quotes, custom_results): Moved
29397         to tests/test-quotearg-simple.c.
29398         (main): Moved the part that does not depend on gettext to
29399         tests/test-quotearg-simple.c. Return 77 if the test cannot be
29400         performed.
29401         * modules/quotearg-simple: New file.
29402         * modules/quotearg-simple-tests: New file.
29403         * modules/quotearg (Depends-on): Add quotearg-simple.
29404         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
29405         (Files): Add tests/test-quotearg.h.
29406         Reported by Paolo Bonzini.
29407
29408 2010-06-03  Bruno Haible  <bruno@clisp.org>
29409
29410         Reduce dependencies.
29411         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
29412
29413 2010-06-03  Bruno Haible  <bruno@clisp.org>
29414
29415         time: Undefine more broken macros.
29416         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
29417         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
29418         Reported by Eric Blake.
29419
29420 2010-06-03  Bruno Haible  <bruno@clisp.org>
29421
29422         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
29423         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
29424         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
29425         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
29426         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
29427         Reported by Ludovic Courtès <ludo@gnu.org>.
29428
29429 2010-06-02  Eric Blake  <eblake@redhat.com>
29430
29431         time: work with mingw + pthreads-win32 library
29432         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
29433         if timespec is defined only in pthread.h.
29434         * modules/time (Makefile.am): Substitute it.
29435         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
29436         <pthread.h>, when needed.
29437         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
29438         from the library.
29439
29440 2010-05-31  Bruno Haible  <bruno@clisp.org>
29441
29442         Avoid expanding two macros in the wrong order.
29443         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
29444         gl_LIBUNISTRING if it is defined.
29445         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
29446         autoconf >= 2.64.
29447         Reported by Ludovic Courtès <ludo@gnu.org>.
29448
29449 2010-05-27  Jim Meyering  <meyering@redhat.com>
29450
29451         maint.mk: also prohibit "#undef" of always-defined symbols
29452         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
29453         Allow more than one space before the symbol name.
29454         (sc_prohibit_always-defined_macros): Use grep's -E, now that
29455         the regexp uses alternation.
29456
29457 2010-05-26  Eric Blake  <eblake@redhat.com>
29458
29459         maint.mk: avoid echo -e
29460         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
29461         Convert all uses of echo -* to printf.
29462         Reported by Matthias Bolte.
29463
29464 2010-05-25  Bruno Haible  <bruno@clisp.org>
29465
29466         Update to GNU gettext 0.18, part 2.
29467         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
29468         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
29469
29470 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29471
29472         Add missing include in test-pwrite.c.
29473         * tests/test-pwrite.c: Include string.h, for strcmp.
29474
29475 2010-05-24  Bruno Haible  <bruno@clisp.org>
29476
29477         * NEWS: Mention requirement for Automake option 'subdir-objects'.
29478
29479 2010-05-24  Bruno Haible  <bruno@clisp.org>
29480
29481         Don't use conversion with transliteration in u{8,16,32}_strcoll.
29482         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
29483         iconveh_error argument.
29484         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
29485         U_STRCONV_TO_LOCALE.
29486         * lib/unistr/u16-strcoll.c: Likewise.
29487         * lib/unistr/u32-strcoll.c: Likewise.
29488         * modules/unistr/u8-strcoll (Depends-on): Add
29489         uniconv/u8-strconv-to-enc, localcharset. Remove
29490         uniconv/u8-strconv-to-locale.
29491         (configure.ac): Bump version number.
29492         * modules/unistr/u16-strcoll (Depends-on): Add
29493         uniconv/u16-strconv-to-enc, localcharset. Remove
29494         uniconv/u16-strconv-to-locale.
29495         (configure.ac): Bump version number.
29496         * modules/unistr/u32-strcoll (Depends-on): Add
29497         uniconv/u32-strconv-to-enc, localcharset. Remove
29498         uniconv/u32-strconv-to-locale.
29499         (configure.ac): Bump version number.
29500
29501 2010-05-24  Bruno Haible  <bruno@clisp.org>
29502
29503         Avoid a test failure on NetBSD 5.0.
29504         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
29505         an iconv() bug.
29506
29507 2010-05-24  Bruno Haible  <bruno@clisp.org>
29508
29509         Adjust #include directive style.
29510         * modules/regex (Includes): Recommend to write <regex.h>.
29511
29512 2010-05-24  Bruno Haible  <bruno@clisp.org>
29513
29514         regex: Don't require alloca.
29515         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
29516         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
29517         only inside if (0).
29518
29519 2010-05-23  Jim Meyering  <meyering@redhat.com>
29520
29521         test-renameat.c: include <sys/stat.h>
29522         * tests/test-renameat.c: Include <sys/stat.h>; required for
29523         definition of S_IS* macros.
29524
29525 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
29526
29527         Update maintainer documentation for 'relocatable-prog' module.
29528         * doc/relocatable-maint.texi: Update.
29529         Comments by Bruno Haible.
29530
29531 2010-05-23  Bruno Haible  <bruno@clisp.org>
29532
29533         git-merge-changelog: Enable --split-merged-entry by default.
29534         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
29535         (usage): Don't mention this option any more.
29536         Reported by Ralf Wildenhues.
29537
29538 2010-05-23  Jim Meyering  <meyering@redhat.com>
29539
29540         test-pwrite: do not leave behind a test file named "out"
29541         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
29542         The trivial-looking use of init.sh is really necessary.
29543         It ensures that the temporary file, "out", is created in
29544         a temporary directory, and removed upon termination.
29545         * tests/test-pwrite.sh: Re-add file.
29546         * modules/pwrite-tests: Reference it.
29547
29548 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29549
29550         Fix output redirection buglet in init.sh.
29551         * tests/init.sh: Fix redirection of stderr.
29552
29553 2010-05-20  Simon Josefsson  <simon@josefsson.org>
29554
29555         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
29556
29557 2010-05-17  Simon Josefsson  <simon@josefsson.org>
29558
29559         * modules/valgrind-tests: New file.
29560         * m4/valgrind-tests.m4: New file.
29561         * doc/valgrind-tests.texi: New file.
29562         * doc/gnulib.texi (Running self-tests under valgrind): New
29563         section.
29564
29565 2010-05-19  Bruno Haible  <bruno@clisp.org>
29566
29567         Clean up dead code in recent commit.
29568         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
29569         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
29570         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
29571         Suggested by Paolo Bonzini.
29572
29573 2010-05-19  Bruno Haible  <bruno@clisp.org>
29574
29575         Avoid valgrind error reports from libunistring.
29576         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
29577         * modules/libunistring (Files): Add it.
29578         * modules/libunistring-optional (Files): Likewise.
29579
29580 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
29581             Bruno Haible  <bruno@clisp.org>
29582
29583         New module 'libunistring-optional'.
29584         * modules/libunistring-optional: New file.
29585         * m4/libunistring-base.m4: New file.
29586         * m4/libunistring-optional.m4: New file.
29587         * lib/unicase.in.h: Renamed from lib/unicase.h.
29588         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
29589         * lib/unictype.in.h: Renamed from lib/unictype.h.
29590         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
29591         * lib/uniname.in.h: Renamed from lib/uniname.h.
29592         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
29593         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
29594         * lib/unistr.in.h: Renamed from lib/unistr.h.
29595         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
29596         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
29597         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
29598         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
29599         gl_LIBUNISTRING. If the library was found, determine the installed
29600         version and set LIBUNISTRING_VERSION.
29601         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
29602         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
29603         handle a configuration option --with-included-libunistring.
29604         * modules/libunistring (Files): Add m4/absolute-header.m4.
29605         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
29606         Add m4/libunistring-base.m4.
29607         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29608         (Makefile.am): Build unicase.h from unicase.in.h.
29609         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
29610         Add m4/libunistring-base.m4.
29611         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29612         (Makefile.am): Build uniconv.h from uniconv.in.h.
29613         * modules/unictype/base (Files): Use unictype.in.h instead of
29614         unictype.h. Add m4/libunistring-base.m4.
29615         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29616         (Makefile.am): Build unictype.h from unictype.in.h.
29617         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
29618         Add m4/libunistring-base.m4.
29619         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29620         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
29621         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
29622         Add m4/libunistring-base.m4.
29623         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29624         (Makefile.am): Build uniname.h from uniname.in.h.
29625         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
29626         Add m4/libunistring-base.m4.
29627         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29628         (Makefile.am): Build uninorm.h from uninorm.in.h.
29629         * modules/unistdio/base (Files): Use unistdio.in.h instead of
29630         unistdio.h. Add m4/libunistring-base.m4.
29631         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29632         (Makefile.am): Build unistdio.h from unistdio.in.h.
29633         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
29634         Add m4/libunistring-base.m4.
29635         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29636         (Makefile.am): Build unistr.h from unistr.in.h.
29637         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
29638         Add m4/libunistring-base.m4.
29639         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29640         (Makefile.am): Build unitypes.h from unitypes.in.h.
29641         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
29642         Add m4/libunistring-base.m4.
29643         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29644         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
29645         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
29646         uniwidth.h. Add m4/libunistring-base.m4.
29647         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29648         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
29649         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
29650         instead of augmenting lib_SOURCES.
29651         * modules/unicase/empty-suffix-context: Likewise.
29652         * modules/unicase/locale-language: Likewise.
29653         * modules/unicase/tolower: Likewise.
29654         * modules/unicase/totitle: Likewise.
29655         * modules/unicase/toupper: Likewise.
29656         * modules/unicase/u8-casecmp: Likewise.
29657         * modules/unicase/u8-casecoll: Likewise.
29658         * modules/unicase/u8-casefold: Likewise.
29659         * modules/unicase/u8-casexfrm: Likewise.
29660         * modules/unicase/u8-ct-casefold: Likewise.
29661         * modules/unicase/u8-ct-tolower: Likewise.
29662         * modules/unicase/u8-ct-totitle: Likewise.
29663         * modules/unicase/u8-ct-toupper: Likewise.
29664         * modules/unicase/u8-is-cased: Likewise.
29665         * modules/unicase/u8-is-casefolded: Likewise.
29666         * modules/unicase/u8-is-lowercase: Likewise.
29667         * modules/unicase/u8-is-titlecase: Likewise.
29668         * modules/unicase/u8-is-uppercase: Likewise.
29669         * modules/unicase/u8-prefix-context: Likewise.
29670         * modules/unicase/u8-suffix-context: Likewise.
29671         * modules/unicase/u8-tolower: Likewise.
29672         * modules/unicase/u8-totitle: Likewise.
29673         * modules/unicase/u8-toupper: Likewise.
29674         * modules/unicase/u16-casecmp: Likewise.
29675         * modules/unicase/u16-casecoll: Likewise.
29676         * modules/unicase/u16-casefold: Likewise.
29677         * modules/unicase/u16-casexfrm: Likewise.
29678         * modules/unicase/u16-ct-casefold: Likewise.
29679         * modules/unicase/u16-ct-tolower: Likewise.
29680         * modules/unicase/u16-ct-totitle: Likewise.
29681         * modules/unicase/u16-ct-toupper: Likewise.
29682         * modules/unicase/u16-is-cased: Likewise.
29683         * modules/unicase/u16-is-casefolded: Likewise.
29684         * modules/unicase/u16-is-lowercase: Likewise.
29685         * modules/unicase/u16-is-titlecase: Likewise.
29686         * modules/unicase/u16-is-uppercase: Likewise.
29687         * modules/unicase/u16-prefix-context: Likewise.
29688         * modules/unicase/u16-suffix-context: Likewise.
29689         * modules/unicase/u16-tolower: Likewise.
29690         * modules/unicase/u16-totitle: Likewise.
29691         * modules/unicase/u16-toupper: Likewise.
29692         * modules/unicase/u32-casecmp: Likewise.
29693         * modules/unicase/u32-casecoll: Likewise.
29694         * modules/unicase/u32-casefold: Likewise.
29695         * modules/unicase/u32-casexfrm: Likewise.
29696         * modules/unicase/u32-ct-casefold: Likewise.
29697         * modules/unicase/u32-ct-tolower: Likewise.
29698         * modules/unicase/u32-ct-totitle: Likewise.
29699         * modules/unicase/u32-ct-toupper: Likewise.
29700         * modules/unicase/u32-is-cased: Likewise.
29701         * modules/unicase/u32-is-casefolded: Likewise.
29702         * modules/unicase/u32-is-lowercase: Likewise.
29703         * modules/unicase/u32-is-titlecase: Likewise.
29704         * modules/unicase/u32-is-uppercase: Likewise.
29705         * modules/unicase/u32-prefix-context: Likewise.
29706         * modules/unicase/u32-suffix-context: Likewise.
29707         * modules/unicase/u32-tolower: Likewise.
29708         * modules/unicase/u32-totitle: Likewise.
29709         * modules/unicase/u32-toupper: Likewise.
29710         * modules/unicase/ulc-casecmp: Likewise.
29711         * modules/unicase/ulc-casecoll: Likewise.
29712         * modules/unicase/ulc-casexfrm: Likewise.
29713         * modules/uniconv/u8-conv-from-enc: Likewise.
29714         * modules/uniconv/u8-conv-to-enc: Likewise.
29715         * modules/uniconv/u8-strconv-from-enc: Likewise.
29716         * modules/uniconv/u8-strconv-from-locale: Likewise.
29717         * modules/uniconv/u8-strconv-to-enc: Likewise.
29718         * modules/uniconv/u8-strconv-to-locale: Likewise.
29719         * modules/uniconv/u16-conv-from-enc: Likewise.
29720         * modules/uniconv/u16-conv-to-enc: Likewise.
29721         * modules/uniconv/u16-strconv-from-enc: Likewise.
29722         * modules/uniconv/u16-strconv-from-locale: Likewise.
29723         * modules/uniconv/u16-strconv-to-enc: Likewise.
29724         * modules/uniconv/u16-strconv-to-locale: Likewise.
29725         * modules/uniconv/u32-conv-from-enc: Likewise.
29726         * modules/uniconv/u32-conv-to-enc: Likewise.
29727         * modules/uniconv/u32-strconv-from-enc: Likewise.
29728         * modules/uniconv/u32-strconv-from-locale: Likewise.
29729         * modules/uniconv/u32-strconv-to-enc: Likewise.
29730         * modules/uniconv/u32-strconv-to-locale: Likewise.
29731         * modules/unictype/bidicategory-byname: Likewise.
29732         * modules/unictype/bidicategory-name: Likewise.
29733         * modules/unictype/bidicategory-of: Likewise.
29734         * modules/unictype/bidicategory-test: Likewise.
29735         * modules/unictype/block-list: Likewise.
29736         * modules/unictype/block-test: Likewise.
29737         * modules/unictype/category-C: Likewise.
29738         * modules/unictype/category-Cc: Likewise.
29739         * modules/unictype/category-Cf: Likewise.
29740         * modules/unictype/category-Cn: Likewise.
29741         * modules/unictype/category-Co: Likewise.
29742         * modules/unictype/category-Cs: Likewise.
29743         * modules/unictype/category-L: Likewise.
29744         * modules/unictype/category-Ll: Likewise.
29745         * modules/unictype/category-Lm: Likewise.
29746         * modules/unictype/category-Lo: Likewise.
29747         * modules/unictype/category-Lt: Likewise.
29748         * modules/unictype/category-Lu: Likewise.
29749         * modules/unictype/category-M: Likewise.
29750         * modules/unictype/category-Mc: Likewise.
29751         * modules/unictype/category-Me: Likewise.
29752         * modules/unictype/category-Mn: Likewise.
29753         * modules/unictype/category-N: Likewise.
29754         * modules/unictype/category-Nd: Likewise.
29755         * modules/unictype/category-Nl: Likewise.
29756         * modules/unictype/category-No: Likewise.
29757         * modules/unictype/category-P: Likewise.
29758         * modules/unictype/category-Pc: Likewise.
29759         * modules/unictype/category-Pd: Likewise.
29760         * modules/unictype/category-Pe: Likewise.
29761         * modules/unictype/category-Pf: Likewise.
29762         * modules/unictype/category-Pi: Likewise.
29763         * modules/unictype/category-Po: Likewise.
29764         * modules/unictype/category-Ps: Likewise.
29765         * modules/unictype/category-S: Likewise.
29766         * modules/unictype/category-Sc: Likewise.
29767         * modules/unictype/category-Sk: Likewise.
29768         * modules/unictype/category-Sm: Likewise.
29769         * modules/unictype/category-So: Likewise.
29770         * modules/unictype/category-Z: Likewise.
29771         * modules/unictype/category-Zl: Likewise.
29772         * modules/unictype/category-Zp: Likewise.
29773         * modules/unictype/category-Zs: Likewise.
29774         * modules/unictype/category-and: Likewise.
29775         * modules/unictype/category-and-not: Likewise.
29776         * modules/unictype/category-byname: Likewise.
29777         * modules/unictype/category-name: Likewise.
29778         * modules/unictype/category-none: Likewise.
29779         * modules/unictype/category-of: Likewise.
29780         * modules/unictype/category-or: Likewise.
29781         * modules/unictype/category-test: Likewise.
29782         * modules/unictype/combining-class: Likewise.
29783         * modules/unictype/ctype-alnum: Likewise.
29784         * modules/unictype/ctype-alpha: Likewise.
29785         * modules/unictype/ctype-blank: Likewise.
29786         * modules/unictype/ctype-cntrl: Likewise.
29787         * modules/unictype/ctype-digit: Likewise.
29788         * modules/unictype/ctype-graph: Likewise.
29789         * modules/unictype/ctype-lower: Likewise.
29790         * modules/unictype/ctype-print: Likewise.
29791         * modules/unictype/ctype-punct: Likewise.
29792         * modules/unictype/ctype-space: Likewise.
29793         * modules/unictype/ctype-upper: Likewise.
29794         * modules/unictype/ctype-xdigit: Likewise.
29795         * modules/unictype/decimal-digit: Likewise.
29796         * modules/unictype/digit: Likewise.
29797         * modules/unictype/mirror: Likewise.
29798         * modules/unictype/numeric: Likewise.
29799         * modules/unictype/property-alphabetic: Likewise.
29800         * modules/unictype/property-ascii-hex-digit: Likewise.
29801         * modules/unictype/property-bidi-arabic-digit: Likewise.
29802         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
29803         * modules/unictype/property-bidi-block-separator: Likewise.
29804         * modules/unictype/property-bidi-boundary-neutral: Likewise.
29805         * modules/unictype/property-bidi-common-separator: Likewise.
29806         * modules/unictype/property-bidi-control: Likewise.
29807         * modules/unictype/property-bidi-embedding-or-override: Likewise.
29808         * modules/unictype/property-bidi-eur-num-separator: Likewise.
29809         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
29810         * modules/unictype/property-bidi-european-digit: Likewise.
29811         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
29812         * modules/unictype/property-bidi-left-to-right: Likewise.
29813         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
29814         * modules/unictype/property-bidi-other-neutral: Likewise.
29815         * modules/unictype/property-bidi-pdf: Likewise.
29816         * modules/unictype/property-bidi-segment-separator: Likewise.
29817         * modules/unictype/property-bidi-whitespace: Likewise.
29818         * modules/unictype/property-byname: Likewise.
29819         * modules/unictype/property-combining: Likewise.
29820         * modules/unictype/property-composite: Likewise.
29821         * modules/unictype/property-currency-symbol: Likewise.
29822         * modules/unictype/property-dash: Likewise.
29823         * modules/unictype/property-decimal-digit: Likewise.
29824         * modules/unictype/property-default-ignorable-code-point: Likewise.
29825         * modules/unictype/property-deprecated: Likewise.
29826         * modules/unictype/property-diacritic: Likewise.
29827         * modules/unictype/property-extender: Likewise.
29828         * modules/unictype/property-format-control: Likewise.
29829         * modules/unictype/property-grapheme-base: Likewise.
29830         * modules/unictype/property-grapheme-extend: Likewise.
29831         * modules/unictype/property-grapheme-link: Likewise.
29832         * modules/unictype/property-hex-digit: Likewise.
29833         * modules/unictype/property-hyphen: Likewise.
29834         * modules/unictype/property-id-continue: Likewise.
29835         * modules/unictype/property-id-start: Likewise.
29836         * modules/unictype/property-ideographic: Likewise.
29837         * modules/unictype/property-ids-binary-operator: Likewise.
29838         * modules/unictype/property-ids-trinary-operator: Likewise.
29839         * modules/unictype/property-ignorable-control: Likewise.
29840         * modules/unictype/property-iso-control: Likewise.
29841         * modules/unictype/property-join-control: Likewise.
29842         * modules/unictype/property-left-of-pair: Likewise.
29843         * modules/unictype/property-line-separator: Likewise.
29844         * modules/unictype/property-logical-order-exception: Likewise.
29845         * modules/unictype/property-lowercase: Likewise.
29846         * modules/unictype/property-math: Likewise.
29847         * modules/unictype/property-non-break: Likewise.
29848         * modules/unictype/property-not-a-character: Likewise.
29849         * modules/unictype/property-numeric: Likewise.
29850         * modules/unictype/property-other-alphabetic: Likewise.
29851         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
29852         * modules/unictype/property-other-grapheme-extend: Likewise.
29853         * modules/unictype/property-other-id-continue: Likewise.
29854         * modules/unictype/property-other-id-start: Likewise.
29855         * modules/unictype/property-other-lowercase: Likewise.
29856         * modules/unictype/property-other-math: Likewise.
29857         * modules/unictype/property-other-uppercase: Likewise.
29858         * modules/unictype/property-paired-punctuation: Likewise.
29859         * modules/unictype/property-paragraph-separator: Likewise.
29860         * modules/unictype/property-pattern-syntax: Likewise.
29861         * modules/unictype/property-pattern-white-space: Likewise.
29862         * modules/unictype/property-private-use: Likewise.
29863         * modules/unictype/property-punctuation: Likewise.
29864         * modules/unictype/property-quotation-mark: Likewise.
29865         * modules/unictype/property-radical: Likewise.
29866         * modules/unictype/property-sentence-terminal: Likewise.
29867         * modules/unictype/property-soft-dotted: Likewise.
29868         * modules/unictype/property-space: Likewise.
29869         * modules/unictype/property-terminal-punctuation: Likewise.
29870         * modules/unictype/property-test: Likewise.
29871         * modules/unictype/property-titlecase: Likewise.
29872         * modules/unictype/property-unassigned-code-value: Likewise.
29873         * modules/unictype/property-unified-ideograph: Likewise.
29874         * modules/unictype/property-uppercase: Likewise.
29875         * modules/unictype/property-variation-selector: Likewise.
29876         * modules/unictype/property-white-space: Likewise.
29877         * modules/unictype/property-xid-continue: Likewise.
29878         * modules/unictype/property-xid-start: Likewise.
29879         * modules/unictype/property-zero-width: Likewise.
29880         * modules/unictype/scripts: Likewise.
29881         * modules/unictype/syntax-c-ident: Likewise.
29882         * modules/unictype/syntax-c-whitespace: Likewise.
29883         * modules/unictype/syntax-java-ident: Likewise.
29884         * modules/unictype/syntax-java-whitespace: Likewise.
29885         * modules/unilbrk/u8-possible-linebreaks: Likewise.
29886         * modules/unilbrk/u8-width-linebreaks: Likewise.
29887         * modules/unilbrk/u16-possible-linebreaks: Likewise.
29888         * modules/unilbrk/u16-width-linebreaks: Likewise.
29889         * modules/unilbrk/u32-possible-linebreaks: Likewise.
29890         * modules/unilbrk/u32-width-linebreaks: Likewise.
29891         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
29892         * modules/unilbrk/ulc-width-linebreaks: Likewise.
29893         * modules/uniname/uniname: Likewise.
29894         * modules/uninorm/canonical-decomposition: Likewise.
29895         * modules/uninorm/composition: Likewise.
29896         * modules/uninorm/decomposing-form: Likewise.
29897         * modules/uninorm/decomposition: Likewise.
29898         * modules/uninorm/filter: Likewise.
29899         * modules/uninorm/nfc: Likewise.
29900         * modules/uninorm/nfd: Likewise.
29901         * modules/uninorm/nfkc: Likewise.
29902         * modules/uninorm/nfkd: Likewise.
29903         * modules/uninorm/u8-normalize: Likewise.
29904         * modules/uninorm/u8-normcmp: Likewise.
29905         * modules/uninorm/u8-normcoll: Likewise.
29906         * modules/uninorm/u8-normxfrm: Likewise.
29907         * modules/uninorm/u16-normalize: Likewise.
29908         * modules/uninorm/u16-normcmp: Likewise.
29909         * modules/uninorm/u16-normcoll: Likewise.
29910         * modules/uninorm/u16-normxfrm: Likewise.
29911         * modules/uninorm/u32-normalize: Likewise.
29912         * modules/uninorm/u32-normcmp: Likewise.
29913         * modules/uninorm/u32-normcoll: Likewise.
29914         * modules/uninorm/u32-normxfrm: Likewise.
29915         * modules/unistdio/u8-asnprintf: Likewise.
29916         * modules/unistdio/u8-asprintf: Likewise.
29917         * modules/unistdio/u8-snprintf: Likewise.
29918         * modules/unistdio/u8-sprintf: Likewise.
29919         * modules/unistdio/u8-u8-asnprintf: Likewise.
29920         * modules/unistdio/u8-u8-asprintf: Likewise.
29921         * modules/unistdio/u8-u8-snprintf: Likewise.
29922         * modules/unistdio/u8-u8-sprintf: Likewise.
29923         * modules/unistdio/u8-u8-vasnprintf: Likewise.
29924         * modules/unistdio/u8-u8-vasprintf: Likewise.
29925         * modules/unistdio/u8-u8-vsnprintf: Likewise.
29926         * modules/unistdio/u8-u8-vsprintf: Likewise.
29927         * modules/unistdio/u8-vasnprintf: Likewise.
29928         * modules/unistdio/u8-vasprintf: Likewise.
29929         * modules/unistdio/u8-vsnprintf: Likewise.
29930         * modules/unistdio/u8-vsprintf: Likewise.
29931         * modules/unistdio/u16-asnprintf: Likewise.
29932         * modules/unistdio/u16-asprintf: Likewise.
29933         * modules/unistdio/u16-snprintf: Likewise.
29934         * modules/unistdio/u16-sprintf: Likewise.
29935         * modules/unistdio/u16-u16-asnprintf: Likewise.
29936         * modules/unistdio/u16-u16-asprintf: Likewise.
29937         * modules/unistdio/u16-u16-snprintf: Likewise.
29938         * modules/unistdio/u16-u16-sprintf: Likewise.
29939         * modules/unistdio/u16-u16-vasnprintf: Likewise.
29940         * modules/unistdio/u16-u16-vasprintf: Likewise.
29941         * modules/unistdio/u16-u16-vsnprintf: Likewise.
29942         * modules/unistdio/u16-u16-vsprintf: Likewise.
29943         * modules/unistdio/u16-vasnprintf: Likewise.
29944         * modules/unistdio/u16-vasprintf: Likewise.
29945         * modules/unistdio/u16-vsnprintf: Likewise.
29946         * modules/unistdio/u16-vsprintf: Likewise.
29947         * modules/unistdio/u32-asnprintf: Likewise.
29948         * modules/unistdio/u32-asprintf: Likewise.
29949         * modules/unistdio/u32-snprintf: Likewise.
29950         * modules/unistdio/u32-sprintf: Likewise.
29951         * modules/unistdio/u32-u32-asnprintf: Likewise.
29952         * modules/unistdio/u32-u32-asprintf: Likewise.
29953         * modules/unistdio/u32-u32-snprintf: Likewise.
29954         * modules/unistdio/u32-u32-sprintf: Likewise.
29955         * modules/unistdio/u32-u32-vasnprintf: Likewise.
29956         * modules/unistdio/u32-u32-vasprintf: Likewise.
29957         * modules/unistdio/u32-u32-vsnprintf: Likewise.
29958         * modules/unistdio/u32-u32-vsprintf: Likewise.
29959         * modules/unistdio/u32-vasnprintf: Likewise.
29960         * modules/unistdio/u32-vasprintf: Likewise.
29961         * modules/unistdio/u32-vsnprintf: Likewise.
29962         * modules/unistdio/u32-vsprintf: Likewise.
29963         * modules/unistdio/ulc-asnprintf: Likewise.
29964         * modules/unistdio/ulc-asprintf: Likewise.
29965         * modules/unistdio/ulc-fprintf: Likewise.
29966         * modules/unistdio/ulc-snprintf: Likewise.
29967         * modules/unistdio/ulc-sprintf: Likewise.
29968         * modules/unistdio/ulc-vasnprintf: Likewise.
29969         * modules/unistdio/ulc-vasprintf: Likewise.
29970         * modules/unistdio/ulc-vfprintf: Likewise.
29971         * modules/unistdio/ulc-vsnprintf: Likewise.
29972         * modules/unistdio/ulc-vsprintf: Likewise.
29973         * modules/unistr/u8-check: Likewise.
29974         * modules/unistr/u8-chr: Likewise.
29975         * modules/unistr/u8-cmp: Likewise.
29976         * modules/unistr/u8-cmp2: Likewise.
29977         * modules/unistr/u8-cpy: Likewise.
29978         * modules/unistr/u8-cpy-alloc: Likewise.
29979         * modules/unistr/u8-endswith: Likewise.
29980         * modules/unistr/u8-mblen: Likewise.
29981         * modules/unistr/u8-mbsnlen: Likewise.
29982         * modules/unistr/u8-mbtouc: Likewise.
29983         * modules/unistr/u8-mbtouc-unsafe: Likewise.
29984         * modules/unistr/u8-mbtoucr: Likewise.
29985         * modules/unistr/u8-move: Likewise.
29986         * modules/unistr/u8-next: Likewise.
29987         * modules/unistr/u8-prev: Likewise.
29988         * modules/unistr/u8-set: Likewise.
29989         * modules/unistr/u8-startswith: Likewise.
29990         * modules/unistr/u8-stpcpy: Likewise.
29991         * modules/unistr/u8-stpncpy: Likewise.
29992         * modules/unistr/u8-strcat: Likewise.
29993         * modules/unistr/u8-strchr: Likewise.
29994         * modules/unistr/u8-strcmp: Likewise.
29995         * modules/unistr/u8-strcoll: Likewise.
29996         * modules/unistr/u8-strcpy: Likewise.
29997         * modules/unistr/u8-strcspn: Likewise.
29998         * modules/unistr/u8-strdup: Likewise.
29999         * modules/unistr/u8-strlen: Likewise.
30000         * modules/unistr/u8-strmblen: Likewise.
30001         * modules/unistr/u8-strmbtouc: Likewise.
30002         * modules/unistr/u8-strncat: Likewise.
30003         * modules/unistr/u8-strncmp: Likewise.
30004         * modules/unistr/u8-strncpy: Likewise.
30005         * modules/unistr/u8-strnlen: Likewise.
30006         * modules/unistr/u8-strpbrk: Likewise.
30007         * modules/unistr/u8-strrchr: Likewise.
30008         * modules/unistr/u8-strspn: Likewise.
30009         * modules/unistr/u8-strstr: Likewise.
30010         * modules/unistr/u8-strtok: Likewise.
30011         * modules/unistr/u8-to-u16: Likewise.
30012         * modules/unistr/u8-to-u32: Likewise.
30013         * modules/unistr/u8-uctomb: Likewise.
30014         * modules/unistr/u16-check: Likewise.
30015         * modules/unistr/u16-chr: Likewise.
30016         * modules/unistr/u16-cmp: Likewise.
30017         * modules/unistr/u16-cmp2: Likewise.
30018         * modules/unistr/u16-cpy: Likewise.
30019         * modules/unistr/u16-cpy-alloc: Likewise.
30020         * modules/unistr/u16-endswith: Likewise.
30021         * modules/unistr/u16-mblen: Likewise.
30022         * modules/unistr/u16-mbsnlen: Likewise.
30023         * modules/unistr/u16-mbtouc: Likewise.
30024         * modules/unistr/u16-mbtouc-unsafe: Likewise.
30025         * modules/unistr/u16-mbtoucr: Likewise.
30026         * modules/unistr/u16-move: Likewise.
30027         * modules/unistr/u16-next: Likewise.
30028         * modules/unistr/u16-prev: Likewise.
30029         * modules/unistr/u16-set: Likewise.
30030         * modules/unistr/u16-startswith: Likewise.
30031         * modules/unistr/u16-stpcpy: Likewise.
30032         * modules/unistr/u16-stpncpy: Likewise.
30033         * modules/unistr/u16-strcat: Likewise.
30034         * modules/unistr/u16-strchr: Likewise.
30035         * modules/unistr/u16-strcmp: Likewise.
30036         * modules/unistr/u16-strcoll: Likewise.
30037         * modules/unistr/u16-strcpy: Likewise.
30038         * modules/unistr/u16-strcspn: Likewise.
30039         * modules/unistr/u16-strdup: Likewise.
30040         * modules/unistr/u16-strlen: Likewise.
30041         * modules/unistr/u16-strmblen: Likewise.
30042         * modules/unistr/u16-strmbtouc: Likewise.
30043         * modules/unistr/u16-strncat: Likewise.
30044         * modules/unistr/u16-strncmp: Likewise.
30045         * modules/unistr/u16-strncpy: Likewise.
30046         * modules/unistr/u16-strnlen: Likewise.
30047         * modules/unistr/u16-strpbrk: Likewise.
30048         * modules/unistr/u16-strrchr: Likewise.
30049         * modules/unistr/u16-strspn: Likewise.
30050         * modules/unistr/u16-strstr: Likewise.
30051         * modules/unistr/u16-strtok: Likewise.
30052         * modules/unistr/u16-to-u32: Likewise.
30053         * modules/unistr/u16-to-u8: Likewise.
30054         * modules/unistr/u16-uctomb: Likewise.
30055         * modules/unistr/u32-check: Likewise.
30056         * modules/unistr/u32-chr: Likewise.
30057         * modules/unistr/u32-cmp: Likewise.
30058         * modules/unistr/u32-cmp2: Likewise.
30059         * modules/unistr/u32-cpy: Likewise.
30060         * modules/unistr/u32-cpy-alloc: Likewise.
30061         * modules/unistr/u32-endswith: Likewise.
30062         * modules/unistr/u32-mblen: Likewise.
30063         * modules/unistr/u32-mbsnlen: Likewise.
30064         * modules/unistr/u32-mbtouc: Likewise.
30065         * modules/unistr/u32-mbtouc-unsafe: Likewise.
30066         * modules/unistr/u32-mbtoucr: Likewise.
30067         * modules/unistr/u32-move: Likewise.
30068         * modules/unistr/u32-next: Likewise.
30069         * modules/unistr/u32-prev: Likewise.
30070         * modules/unistr/u32-set: Likewise.
30071         * modules/unistr/u32-startswith: Likewise.
30072         * modules/unistr/u32-stpcpy: Likewise.
30073         * modules/unistr/u32-stpncpy: Likewise.
30074         * modules/unistr/u32-strcat: Likewise.
30075         * modules/unistr/u32-strchr: Likewise.
30076         * modules/unistr/u32-strcmp: Likewise.
30077         * modules/unistr/u32-strcoll: Likewise.
30078         * modules/unistr/u32-strcpy: Likewise.
30079         * modules/unistr/u32-strcspn: Likewise.
30080         * modules/unistr/u32-strdup: Likewise.
30081         * modules/unistr/u32-strlen: Likewise.
30082         * modules/unistr/u32-strmblen: Likewise.
30083         * modules/unistr/u32-strmbtouc: Likewise.
30084         * modules/unistr/u32-strncat: Likewise.
30085         * modules/unistr/u32-strncmp: Likewise.
30086         * modules/unistr/u32-strncpy: Likewise.
30087         * modules/unistr/u32-strnlen: Likewise.
30088         * modules/unistr/u32-strpbrk: Likewise.
30089         * modules/unistr/u32-strrchr: Likewise.
30090         * modules/unistr/u32-strspn: Likewise.
30091         * modules/unistr/u32-strstr: Likewise.
30092         * modules/unistr/u32-strtok: Likewise.
30093         * modules/unistr/u32-to-u16: Likewise.
30094         * modules/unistr/u32-to-u8: Likewise.
30095         * modules/unistr/u32-uctomb: Likewise.
30096         * modules/uniwbrk/u8-wordbreaks: Likewise.
30097         * modules/uniwbrk/u16-wordbreaks: Likewise.
30098         * modules/uniwbrk/u32-wordbreaks: Likewise.
30099         * modules/uniwbrk/ulc-wordbreaks: Likewise.
30100         * modules/uniwbrk/wordbreak-property: Likewise.
30101         * modules/uniwidth/u8-strwidth: Likewise.
30102         * modules/uniwidth/u8-width: Likewise.
30103         * modules/uniwidth/u16-strwidth: Likewise.
30104         * modules/uniwidth/u16-width: Likewise.
30105         * modules/uniwidth/u32-strwidth: Likewise.
30106         * modules/uniwidth/u32-width: Likewise.
30107         * modules/uniwidth/width: Likewise.
30108         * modules/unicase/cased-tests (Makefile.am): Link all test programs
30109         with $(LIBUNISTRING).
30110         * modules/unicase/ignorable-tests: Likewise.
30111         * modules/unicase/locale-language-tests: Likewise.
30112         * modules/unicase/tolower-tests: Likewise.
30113         * modules/unicase/totitle-tests: Likewise.
30114         * modules/unicase/toupper-tests: Likewise.
30115         * modules/unicase/u8-casecmp-tests: Likewise.
30116         * modules/unicase/u8-casecoll-tests: Likewise.
30117         * modules/unicase/u8-casefold-tests: Likewise.
30118         * modules/unicase/u8-is-cased-tests: Likewise.
30119         * modules/unicase/u8-is-casefolded-tests: Likewise.
30120         * modules/unicase/u8-is-lowercase-tests: Likewise.
30121         * modules/unicase/u8-is-titlecase-tests: Likewise.
30122         * modules/unicase/u8-is-uppercase-tests: Likewise.
30123         * modules/unicase/u8-tolower-tests: Likewise.
30124         * modules/unicase/u8-totitle-tests: Likewise.
30125         * modules/unicase/u8-toupper-tests: Likewise.
30126         * modules/unicase/u16-casecmp-tests: Likewise.
30127         * modules/unicase/u16-casecoll-tests: Likewise.
30128         * modules/unicase/u16-casefold-tests: Likewise.
30129         * modules/unicase/u16-is-cased-tests: Likewise.
30130         * modules/unicase/u16-is-casefolded-tests: Likewise.
30131         * modules/unicase/u16-is-lowercase-tests: Likewise.
30132         * modules/unicase/u16-is-titlecase-tests: Likewise.
30133         * modules/unicase/u16-is-uppercase-tests: Likewise.
30134         * modules/unicase/u16-tolower-tests: Likewise.
30135         * modules/unicase/u16-totitle-tests: Likewise.
30136         * modules/unicase/u16-toupper-tests: Likewise.
30137         * modules/unicase/u32-casecmp-tests: Likewise.
30138         * modules/unicase/u32-casecoll-tests: Likewise.
30139         * modules/unicase/u32-casefold-tests: Likewise.
30140         * modules/unicase/u32-is-cased-tests: Likewise.
30141         * modules/unicase/u32-is-casefolded-tests: Likewise.
30142         * modules/unicase/u32-is-lowercase-tests: Likewise.
30143         * modules/unicase/u32-is-titlecase-tests: Likewise.
30144         * modules/unicase/u32-is-uppercase-tests: Likewise.
30145         * modules/unicase/u32-tolower-tests: Likewise.
30146         * modules/unicase/u32-totitle-tests: Likewise.
30147         * modules/unicase/u32-toupper-tests: Likewise.
30148         * modules/unicase/ulc-casecmp-tests: Likewise.
30149         * modules/unicase/ulc-casecoll-tests: Likewise.
30150         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
30151         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
30152         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
30153         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
30154         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
30155         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
30156         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
30157         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
30158         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
30159         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
30160         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
30161         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
30162         * modules/unictype/bidicategory-byname-tests: Likewise.
30163         * modules/unictype/bidicategory-name-tests: Likewise.
30164         * modules/unictype/bidicategory-of-tests: Likewise.
30165         * modules/unictype/bidicategory-test-tests: Likewise.
30166         * modules/unictype/block-list-tests: Likewise.
30167         * modules/unictype/block-of-tests: Likewise.
30168         * modules/unictype/block-test-tests: Likewise.
30169         * modules/unictype/category-C-tests: Likewise.
30170         * modules/unictype/category-Cc-tests: Likewise.
30171         * modules/unictype/category-Cf-tests: Likewise.
30172         * modules/unictype/category-Cn-tests: Likewise.
30173         * modules/unictype/category-Co-tests: Likewise.
30174         * modules/unictype/category-Cs-tests: Likewise.
30175         * modules/unictype/category-L-tests: Likewise.
30176         * modules/unictype/category-Ll-tests: Likewise.
30177         * modules/unictype/category-Lm-tests: Likewise.
30178         * modules/unictype/category-Lo-tests: Likewise.
30179         * modules/unictype/category-Lt-tests: Likewise.
30180         * modules/unictype/category-Lu-tests: Likewise.
30181         * modules/unictype/category-M-tests: Likewise.
30182         * modules/unictype/category-Mc-tests: Likewise.
30183         * modules/unictype/category-Me-tests: Likewise.
30184         * modules/unictype/category-Mn-tests: Likewise.
30185         * modules/unictype/category-N-tests: Likewise.
30186         * modules/unictype/category-Nd-tests: Likewise.
30187         * modules/unictype/category-Nl-tests: Likewise.
30188         * modules/unictype/category-No-tests: Likewise.
30189         * modules/unictype/category-P-tests: Likewise.
30190         * modules/unictype/category-Pc-tests: Likewise.
30191         * modules/unictype/category-Pd-tests: Likewise.
30192         * modules/unictype/category-Pe-tests: Likewise.
30193         * modules/unictype/category-Pf-tests: Likewise.
30194         * modules/unictype/category-Pi-tests: Likewise.
30195         * modules/unictype/category-Po-tests: Likewise.
30196         * modules/unictype/category-Ps-tests: Likewise.
30197         * modules/unictype/category-S-tests: Likewise.
30198         * modules/unictype/category-Sc-tests: Likewise.
30199         * modules/unictype/category-Sk-tests: Likewise.
30200         * modules/unictype/category-Sm-tests: Likewise.
30201         * modules/unictype/category-So-tests: Likewise.
30202         * modules/unictype/category-Z-tests: Likewise.
30203         * modules/unictype/category-Zl-tests: Likewise.
30204         * modules/unictype/category-Zp-tests: Likewise.
30205         * modules/unictype/category-Zs-tests: Likewise.
30206         * modules/unictype/category-and-not-tests: Likewise.
30207         * modules/unictype/category-and-tests: Likewise.
30208         * modules/unictype/category-byname-tests: Likewise.
30209         * modules/unictype/category-name-tests: Likewise.
30210         * modules/unictype/category-none-tests: Likewise.
30211         * modules/unictype/category-of-tests: Likewise.
30212         * modules/unictype/category-or-tests: Likewise.
30213         * modules/unictype/category-test-withtable-tests: Likewise.
30214         * modules/unictype/combining-class-tests: Likewise.
30215         * modules/unictype/ctype-alnum-tests: Likewise.
30216         * modules/unictype/ctype-alpha-tests: Likewise.
30217         * modules/unictype/ctype-blank-tests: Likewise.
30218         * modules/unictype/ctype-cntrl-tests: Likewise.
30219         * modules/unictype/ctype-digit-tests: Likewise.
30220         * modules/unictype/ctype-graph-tests: Likewise.
30221         * modules/unictype/ctype-lower-tests: Likewise.
30222         * modules/unictype/ctype-print-tests: Likewise.
30223         * modules/unictype/ctype-punct-tests: Likewise.
30224         * modules/unictype/ctype-space-tests: Likewise.
30225         * modules/unictype/ctype-upper-tests: Likewise.
30226         * modules/unictype/ctype-xdigit-tests: Likewise.
30227         * modules/unictype/decimal-digit-tests: Likewise.
30228         * modules/unictype/digit-tests: Likewise.
30229         * modules/unictype/mirror-tests: Likewise.
30230         * modules/unictype/numeric-tests: Likewise.
30231         * modules/unictype/property-alphabetic-tests: Likewise.
30232         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
30233         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
30234         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
30235         * modules/unictype/property-bidi-block-separator-tests: Likewise.
30236         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
30237         * modules/unictype/property-bidi-common-separator-tests: Likewise.
30238         * modules/unictype/property-bidi-control-tests: Likewise.
30239         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
30240         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
30241         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
30242         * modules/unictype/property-bidi-european-digit-tests: Likewise.
30243         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
30244         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
30245         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
30246         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
30247         * modules/unictype/property-bidi-pdf-tests: Likewise.
30248         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
30249         * modules/unictype/property-bidi-whitespace-tests: Likewise.
30250         * modules/unictype/property-byname-tests: Likewise.
30251         * modules/unictype/property-combining-tests: Likewise.
30252         * modules/unictype/property-composite-tests: Likewise.
30253         * modules/unictype/property-currency-symbol-tests: Likewise.
30254         * modules/unictype/property-dash-tests: Likewise.
30255         * modules/unictype/property-decimal-digit-tests: Likewise.
30256         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
30257         * modules/unictype/property-deprecated-tests: Likewise.
30258         * modules/unictype/property-diacritic-tests: Likewise.
30259         * modules/unictype/property-extender-tests: Likewise.
30260         * modules/unictype/property-format-control-tests: Likewise.
30261         * modules/unictype/property-grapheme-base-tests: Likewise.
30262         * modules/unictype/property-grapheme-extend-tests: Likewise.
30263         * modules/unictype/property-grapheme-link-tests: Likewise.
30264         * modules/unictype/property-hex-digit-tests: Likewise.
30265         * modules/unictype/property-hyphen-tests: Likewise.
30266         * modules/unictype/property-id-continue-tests: Likewise.
30267         * modules/unictype/property-id-start-tests: Likewise.
30268         * modules/unictype/property-ideographic-tests: Likewise.
30269         * modules/unictype/property-ids-binary-operator-tests: Likewise.
30270         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
30271         * modules/unictype/property-ignorable-control-tests: Likewise.
30272         * modules/unictype/property-iso-control-tests: Likewise.
30273         * modules/unictype/property-join-control-tests: Likewise.
30274         * modules/unictype/property-left-of-pair-tests: Likewise.
30275         * modules/unictype/property-line-separator-tests: Likewise.
30276         * modules/unictype/property-logical-order-exception-tests: Likewise.
30277         * modules/unictype/property-lowercase-tests: Likewise.
30278         * modules/unictype/property-math-tests: Likewise.
30279         * modules/unictype/property-non-break-tests: Likewise.
30280         * modules/unictype/property-not-a-character-tests: Likewise.
30281         * modules/unictype/property-numeric-tests: Likewise.
30282         * modules/unictype/property-other-alphabetic-tests: Likewise.
30283         * modules/unictype/property-other-default-ignorable-code-point-tests:
30284         Likewise.
30285         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
30286         * modules/unictype/property-other-id-continue-tests: Likewise.
30287         * modules/unictype/property-other-id-start-tests: Likewise.
30288         * modules/unictype/property-other-lowercase-tests: Likewise.
30289         * modules/unictype/property-other-math-tests: Likewise.
30290         * modules/unictype/property-other-uppercase-tests: Likewise.
30291         * modules/unictype/property-paired-punctuation-tests: Likewise.
30292         * modules/unictype/property-paragraph-separator-tests: Likewise.
30293         * modules/unictype/property-pattern-syntax-tests: Likewise.
30294         * modules/unictype/property-pattern-white-space-tests: Likewise.
30295         * modules/unictype/property-private-use-tests: Likewise.
30296         * modules/unictype/property-punctuation-tests: Likewise.
30297         * modules/unictype/property-quotation-mark-tests: Likewise.
30298         * modules/unictype/property-radical-tests: Likewise.
30299         * modules/unictype/property-sentence-terminal-tests: Likewise.
30300         * modules/unictype/property-soft-dotted-tests: Likewise.
30301         * modules/unictype/property-space-tests: Likewise.
30302         * modules/unictype/property-terminal-punctuation-tests: Likewise.
30303         * modules/unictype/property-test-tests: Likewise.
30304         * modules/unictype/property-titlecase-tests: Likewise.
30305         * modules/unictype/property-unassigned-code-value-tests: Likewise.
30306         * modules/unictype/property-unified-ideograph-tests: Likewise.
30307         * modules/unictype/property-uppercase-tests: Likewise.
30308         * modules/unictype/property-variation-selector-tests: Likewise.
30309         * modules/unictype/property-white-space-tests: Likewise.
30310         * modules/unictype/property-xid-continue-tests: Likewise.
30311         * modules/unictype/property-xid-start-tests: Likewise.
30312         * modules/unictype/property-zero-width-tests: Likewise.
30313         * modules/unictype/scripts-tests: Likewise.
30314         * modules/unictype/syntax-c-ident-tests: Likewise.
30315         * modules/unictype/syntax-c-whitespace-tests: Likewise.
30316         * modules/unictype/syntax-java-ident-tests: Likewise.
30317         * modules/unictype/syntax-java-whitespace-tests: Likewise.
30318         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
30319         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
30320         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
30321         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
30322         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
30323         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
30324         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
30325         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
30326         * modules/uniname/uniname-tests: Likewise.
30327         * modules/uninorm/canonical-decomposition-tests: Likewise.
30328         * modules/uninorm/compat-decomposition-tests: Likewise.
30329         * modules/uninorm/composition-tests: Likewise.
30330         * modules/uninorm/decomposing-form-tests: Likewise.
30331         * modules/uninorm/decomposition-tests: Likewise.
30332         * modules/uninorm/filter-tests: Likewise.
30333         * modules/uninorm/nfc-tests: Likewise.
30334         * modules/uninorm/nfd-tests: Likewise.
30335         * modules/uninorm/nfkc-tests: Likewise.
30336         * modules/uninorm/nfkd-tests: Likewise.
30337         * modules/uninorm/u8-normcmp-tests: Likewise.
30338         * modules/uninorm/u8-normcoll-tests: Likewise.
30339         * modules/uninorm/u16-normcmp-tests: Likewise.
30340         * modules/uninorm/u16-normcoll-tests: Likewise.
30341         * modules/uninorm/u32-normcmp-tests: Likewise.
30342         * modules/uninorm/u32-normcoll-tests: Likewise.
30343         * modules/unistdio/u8-asnprintf-tests: Likewise.
30344         * modules/unistdio/u8-vasnprintf-tests: Likewise.
30345         * modules/unistdio/u8-vasprintf-tests: Likewise.
30346         * modules/unistdio/u8-vsnprintf-tests: Likewise.
30347         * modules/unistdio/u8-vsprintf-tests: Likewise.
30348         * modules/unistdio/u16-asnprintf-tests: Likewise.
30349         * modules/unistdio/u16-vasnprintf-tests: Likewise.
30350         * modules/unistdio/u16-vasprintf-tests: Likewise.
30351         * modules/unistdio/u16-vsnprintf-tests: Likewise.
30352         * modules/unistdio/u16-vsprintf-tests: Likewise.
30353         * modules/unistdio/u32-asnprintf-tests: Likewise.
30354         * modules/unistdio/u32-vasnprintf-tests: Likewise.
30355         * modules/unistdio/u32-vasprintf-tests: Likewise.
30356         * modules/unistdio/u32-vsnprintf-tests: Likewise.
30357         * modules/unistdio/u32-vsprintf-tests: Likewise.
30358         * modules/unistdio/ulc-asnprintf-tests: Likewise.
30359         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
30360         * modules/unistdio/ulc-vasprintf-tests: Likewise.
30361         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
30362         * modules/unistdio/ulc-vsprintf-tests: Likewise.
30363         * modules/unistr/u8-check-tests: Likewise.
30364         * modules/unistr/u8-chr-tests: Likewise.
30365         * modules/unistr/u8-cmp-tests: Likewise.
30366         * modules/unistr/u8-cmp2-tests: Likewise.
30367         * modules/unistr/u8-cpy-alloc-tests: Likewise.
30368         * modules/unistr/u8-cpy-tests: Likewise.
30369         * modules/unistr/u8-mblen-tests: Likewise.
30370         * modules/unistr/u8-mbsnlen-tests: Likewise.
30371         * modules/unistr/u8-mbtouc-tests: Likewise.
30372         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
30373         * modules/unistr/u8-mbtoucr-tests: Likewise.
30374         * modules/unistr/u8-move-tests: Likewise.
30375         * modules/unistr/u8-next-tests: Likewise.
30376         * modules/unistr/u8-prev-tests: Likewise.
30377         * modules/unistr/u8-set-tests: Likewise.
30378         * modules/unistr/u8-stpcpy-tests: Likewise.
30379         * modules/unistr/u8-stpncpy-tests: Likewise.
30380         * modules/unistr/u8-strcat-tests: Likewise.
30381         * modules/unistr/u8-strcmp-tests: Likewise.
30382         * modules/unistr/u8-strcoll-tests: Likewise.
30383         * modules/unistr/u8-strcpy-tests: Likewise.
30384         * modules/unistr/u8-strdup-tests: Likewise.
30385         * modules/unistr/u8-strlen-tests: Likewise.
30386         * modules/unistr/u8-strmblen-tests: Likewise.
30387         * modules/unistr/u8-strmbtouc-tests: Likewise.
30388         * modules/unistr/u8-strncat-tests: Likewise.
30389         * modules/unistr/u8-strncmp-tests: Likewise.
30390         * modules/unistr/u8-strncpy-tests: Likewise.
30391         * modules/unistr/u8-strnlen-tests: Likewise.
30392         * modules/unistr/u8-to-u16-tests: Likewise.
30393         * modules/unistr/u8-to-u32-tests: Likewise.
30394         * modules/unistr/u8-uctomb-tests: Likewise.
30395         * modules/unistr/u16-check-tests: Likewise.
30396         * modules/unistr/u16-chr-tests: Likewise.
30397         * modules/unistr/u16-cmp-tests: Likewise.
30398         * modules/unistr/u16-cmp2-tests: Likewise.
30399         * modules/unistr/u16-cpy-alloc-tests: Likewise.
30400         * modules/unistr/u16-cpy-tests: Likewise.
30401         * modules/unistr/u16-mblen-tests: Likewise.
30402         * modules/unistr/u16-mbsnlen-tests: Likewise.
30403         * modules/unistr/u16-mbtouc-tests: Likewise.
30404         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
30405         * modules/unistr/u16-mbtoucr-tests: Likewise.
30406         * modules/unistr/u16-move-tests: Likewise.
30407         * modules/unistr/u16-next-tests: Likewise.
30408         * modules/unistr/u16-prev-tests: Likewise.
30409         * modules/unistr/u16-set-tests: Likewise.
30410         * modules/unistr/u16-stpcpy-tests: Likewise.
30411         * modules/unistr/u16-stpncpy-tests: Likewise.
30412         * modules/unistr/u16-strcat-tests: Likewise.
30413         * modules/unistr/u16-strcmp-tests: Likewise.
30414         * modules/unistr/u16-strcoll-tests: Likewise.
30415         * modules/unistr/u16-strcpy-tests: Likewise.
30416         * modules/unistr/u16-strdup-tests: Likewise.
30417         * modules/unistr/u16-strlen-tests: Likewise.
30418         * modules/unistr/u16-strmblen-tests: Likewise.
30419         * modules/unistr/u16-strmbtouc-tests: Likewise.
30420         * modules/unistr/u16-strncat-tests: Likewise.
30421         * modules/unistr/u16-strncmp-tests: Likewise.
30422         * modules/unistr/u16-strncpy-tests: Likewise.
30423         * modules/unistr/u16-strnlen-tests: Likewise.
30424         * modules/unistr/u16-to-u32-tests: Likewise.
30425         * modules/unistr/u16-to-u8-tests: Likewise.
30426         * modules/unistr/u16-uctomb-tests: Likewise.
30427         * modules/unistr/u32-check-tests: Likewise.
30428         * modules/unistr/u32-chr-tests: Likewise.
30429         * modules/unistr/u32-cmp-tests: Likewise.
30430         * modules/unistr/u32-cmp2-tests: Likewise.
30431         * modules/unistr/u32-cpy-alloc-tests: Likewise.
30432         * modules/unistr/u32-cpy-tests: Likewise.
30433         * modules/unistr/u32-mblen-tests: Likewise.
30434         * modules/unistr/u32-mbsnlen-tests: Likewise.
30435         * modules/unistr/u32-mbtouc-tests: Likewise.
30436         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
30437         * modules/unistr/u32-mbtoucr-tests: Likewise.
30438         * modules/unistr/u32-move-tests: Likewise.
30439         * modules/unistr/u32-next-tests: Likewise.
30440         * modules/unistr/u32-prev-tests: Likewise.
30441         * modules/unistr/u32-set-tests: Likewise.
30442         * modules/unistr/u32-stpcpy-tests: Likewise.
30443         * modules/unistr/u32-stpncpy-tests: Likewise.
30444         * modules/unistr/u32-strcat-tests: Likewise.
30445         * modules/unistr/u32-strcmp-tests: Likewise.
30446         * modules/unistr/u32-strcoll-tests: Likewise.
30447         * modules/unistr/u32-strcpy-tests: Likewise.
30448         * modules/unistr/u32-strdup-tests: Likewise.
30449         * modules/unistr/u32-strlen-tests: Likewise.
30450         * modules/unistr/u32-strmblen-tests: Likewise.
30451         * modules/unistr/u32-strmbtouc-tests: Likewise.
30452         * modules/unistr/u32-strncat-tests: Likewise.
30453         * modules/unistr/u32-strncmp-tests: Likewise.
30454         * modules/unistr/u32-strncpy-tests: Likewise.
30455         * modules/unistr/u32-strnlen-tests: Likewise.
30456         * modules/unistr/u32-to-u16-tests: Likewise.
30457         * modules/unistr/u32-to-u8-tests: Likewise.
30458         * modules/unistr/u32-uctomb-tests: Likewise.
30459         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
30460         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
30461         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
30462         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
30463         * modules/uniwidth/u8-strwidth-tests: Likewise.
30464         * modules/uniwidth/u8-width-tests: Likewise.
30465         * modules/uniwidth/u16-strwidth-tests: Likewise.
30466         * modules/uniwidth/u16-width-tests: Likewise.
30467         * modules/uniwidth/u32-strwidth-tests: Likewise.
30468         * modules/uniwidth/u32-width-tests: Likewise.
30469         * modules/uniwidth/width-tests: Likewise.
30470
30471 2010-05-18  Richard Jones  <rjones@redhat.com>
30472
30473         doc: users.txt: list hivex
30474         * users.txt: Add hivex.
30475
30476 2010-05-18  Richard Jones  <rjones@redhat.com>
30477
30478         doc: users.txt: list febootstrap
30479         * users.txt: Add febootstrap.
30480
30481 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
30482
30483         bootstrap: fix an error when gnulib is not used as a git submodule
30484         * build-aux/bootstrap (gnulib_path): If its length is zero then
30485         assign "gnulib" to it.
30486         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
30487
30488 2010-05-16  Bruno Haible  <bruno@clisp.org>
30489
30490         Avoid autoconf warnings about AM_ICONV.
30491         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
30492         2.64.
30493
30494 2010-05-16  Bruno Haible  <bruno@clisp.org>
30495
30496         absolute-header: Make the macro usable in more situations.
30497         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
30498         from gl_ABSOLUTE_HEADER.
30499         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
30500
30501 2010-05-16  James Youngman  <jay@gnu.org>
30502
30503         doc: update users.txt
30504         * users.txt: Add CSSC.
30505
30506 2010-05-16  Jim Meyering  <meyering@redhat.com>
30507
30508         init.sh: fix an error in the previous change; add more comments
30509         * tests/init.sh: Compare exit code in loop against 9, not 2.
30510         Patch by Bruno Haible.
30511         Make the two tests more similar by adding an empty "then" clause.
30512         Add comments.
30513
30514         init.sh: avoid unnecessary shell re-exec
30515         * tests/init.sh: Improve the re-exec-required check to first test the
30516         current shell.  If it passes the test, do not search for a shell that
30517         does pass, and do not re-exec.  This test is particularly contorted to
30518         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
30519         of $(...) evokes a syntax error and causes immediate shell exit with
30520         status 2.  Bruno Haible reported that the re-exec made it impossible
30521         to single-step through any init.sh-using script.
30522
30523 2010-05-16  Bruno Haible  <bruno@clisp.org>
30524
30525         Fix collision between gnulib's and libintl's printf replacements.
30526         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
30527         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
30528         (printf): When using GNU C, map the __printf__ function to rpl_printf
30529         via __asm__. When not using GNU C, define rpl_printf instead of
30530         __printf__.
30531         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
30532         commit.
30533         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
30534         commit.
30535         * m4/asm-underscore.m4: New file.
30536         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
30537         * modules/stdio (Files): Add m4/asm-underscore.m4.
30538         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
30539         Reported by Ben Pfaff.
30540
30541 2010-05-16  Bruno Haible  <bruno@clisp.org>
30542
30543         verify: Avoid skipping the test on openSUSE 11.0.
30544         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
30545
30546 2010-05-13  Bruno Haible  <bruno@clisp.org>
30547
30548         Avoid useless warnings from G++.
30549         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
30550         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
30551         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30552
30553 2010-05-11  Jim Meyering  <meyering@redhat.com>
30554
30555         maint.mk: tweak preceding change
30556         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
30557         regexps tighter by anchoring at EOL, and make the new group "shy"
30558         for slightly decreased overhead.
30559
30560 2010-05-11  Eric Blake  <eblake@redhat.com>
30561
30562         maint.mk: gnulib doesn't guarantee NSIG
30563         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
30564
30565 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
30566
30567         test-pwrite.c: Remove unused variable declaration.
30568         * tests/test-pwrite.c (main): Remove read_buf declaration.
30569
30570         Remove useless test-pwrite.sh file.
30571         * tests/test-pwrite.sh: Delete file.
30572         * modules/pwrite-tests: Remove references.
30573         Reported by Bruno Haible.
30574
30575 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
30576
30577         init.sh: fix a typo
30578         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
30579
30580 2010-05-10  Jim Meyering  <meyering@redhat.com>
30581
30582         maint.mk: avoid using a temporary file in the always-defined-macros check
30583         * top/maint.mk (.re-defmac): Remove rule.
30584         (gl_trap_): Remove definition.
30585         (sc_prohibit_always-defined_macros): Rewrite not to create and
30586         depend on a temporary file.  Instead, depend on GNU grep's ability
30587         to read a list of regular expressions from stdin when given "-f -".
30588
30589 2010-05-09  Bruno Haible  <bruno@clisp.org>
30590
30591         Update to GNU gettext 0.18, part 1.
30592         * m4/gettext.m4: Update to GNU gettext 0.18.
30593         * m4/intl.m4: Likewise.
30594         * m4/po.m4: Likewise.
30595         * modules/gettext (Files): Add m4/fcntl-o.m4.
30596         (configure.ac): Require gettext infrastructure from version 0.18.
30597
30598 2010-05-09  Jim Meyering  <meyering@redhat.com>
30599
30600         init.sh: enable MALLOC_PERTURB_
30601         * tests/init.sh: Enable glibc's malloc-perturbing option.
30602
30603         maint.mk: improve sc_cross_check_PATH_usage_in_tests
30604         With my recent change in init.sh from the two-line form:
30605             -#   : ${srcdir=.}
30606             -#   . "$srcdir/init.sh"; path_prepend_ .
30607             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
30608         I noticed that using the one-line form would cause this test
30609         to fail with a false-positive, or to stop working altogether,
30610         depending on whether help-version changed or all the tests did.
30611         * top/maint.mk (_hv_regex): Remove this definition.
30612         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
30613         (_hv_regex_strong): Use a stronger regex to check for conformance.
30614         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
30615         Give a separate diagnostic for lack of conforming use.
30616
30617         maint.mk: prohibit definition of symbols defined by gnulib
30618         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
30619         definition of symbols defined by gnulib.
30620
30621 2010-05-09  Bruno Haible  <bruno@clisp.org>
30622
30623         acl: Avoid test failure on Cygwin-hosted mingw.
30624         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
30625
30626 2010-05-09  Bruno Haible  <bruno@clisp.org>
30627
30628         error: Use system's fcntl function.
30629         * lib/error.c (fcntl): Undefine.
30630
30631 2010-05-09  Jim Meyering  <meyering@redhat.com>
30632
30633         verify: adjust formatting to be more consistent
30634         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
30635         argument-list '('s, and after one comma.
30636
30637 2010-05-09  Bruno Haible  <bruno@clisp.org>
30638
30639         error: More reliable output on mingw.
30640         * lib/error.c: Include <windows.h>.
30641         (is_open): New function.
30642         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
30643         defined.
30644
30645 2010-05-09  Bruno Haible  <bruno@clisp.org>
30646
30647         vasnprintf: Fix syntax errors in libintl build on mingw.
30648         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
30649         pad_ourselves and prec_ourselves after use.
30650
30651 2010-05-08  Bruno Haible  <bruno@clisp.org>
30652
30653         * lib/config.charset: Update comments for Cygwin 1.7.
30654         * lib/localcharset.c: Likewise.
30655
30656 2010-05-07  Jim Meyering  <meyering@redhat.com>
30657
30658         init.sh: improve comments
30659         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
30660         . "${srcdir=.}/init.sh"; path_prepend_ .
30661         Add a note about path_prepend_ and the alternative of using
30662         TESTS_ENVIRONMENT.
30663
30664 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
30665
30666         exclude: Unescape hashed patterns in wildcard mode.
30667         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
30668         to the hash list.
30669         * tests/test-exclude8.sh: New test case.
30670         * modules/exclude-tests: Add new test.
30671
30672 2010-05-05  Eric Blake  <eblake@redhat.com>
30673
30674         verify: automate tests
30675         * modules/verify-tests: New module.
30676         * tests/test-verify.sh: New file.
30677         * tests/test-verify.c: Guard each negative test with a unique id.
30678         Also avoid warning about unused left hand of comma expressions.
30679
30680 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
30681
30682         Further improvements to verify.h, suggested by Eric Blake.
30683         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
30684         the GL_* versions, to avoid collision with OpenGL.
30685         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
30686         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
30687         than testing merely whether it's defined.
30688
30689         Modify verify.h to pacify gcc -Wredundant_decls.
30690         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
30691         These use the prefix "GL_" since they're likely to be useful elsewhere.
30692         We may need to break them out into a different .h file.
30693         (__COUNTER__): Define to 0 if the compiler doesn't support it.
30694         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
30695         of verify_function__.
30696
30697 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30698
30699         Tests for module pwrite.
30700         * modules/pwrite-tests: New file.
30701         * tests/test-pwrite.sh: New file.
30702         * tests/test-pwrite.c: New file.
30703
30704         New module pwrite.
30705         * lib/unistd.in.h (pwrite): New declaration.
30706         * lib/pwrite.c: New file, from glibc with modifications.
30707         * m4/pwrite.m4: New file.
30708         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
30709         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
30710         REPLACE_PWRITE.
30711         * modules/pwrite: New file.
30712         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
30713         REPLACE_PWRITE.
30714         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
30715         * doc/posix-functions/pwrite.texi: Mention the new module.
30716
30717 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30718
30719         pread: Update documentation.
30720         * doc/posix-functions/pread.texi: Mention the 'pread' module.
30721
30722 2010-05-04  Eric Blake  <eblake@redhat.com>
30723
30724         docs: update cygwin progress
30725         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
30726         this bug.
30727         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
30728         Added in cygwin 1.7.2.
30729         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
30730         Likewise.
30731         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
30732         Likewise.
30733         * doc/glibc-functions/dup3.texi (dup3): Likewise.
30734         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
30735         * doc/glibc-functions/accept4.texi (accept4): Likewise.
30736         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
30737         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
30738         Mention nproc module.
30739         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
30740         bug in cygwin 1.7.5 addition.
30741         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
30742         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
30743         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
30744         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
30745         1.7.5.
30746         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
30747         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
30748         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
30749         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
30750         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
30751         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
30752         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
30753         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
30754         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
30755         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
30756         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
30757         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
30758         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
30759         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
30760         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
30761         Likewise.
30762         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
30763         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
30764         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
30765         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
30766         Likewise.
30767         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
30768         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
30769         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
30770         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
30771         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
30772         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
30773         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
30774         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
30775         Likewise.
30776         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
30777         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
30778         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
30779         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
30780         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
30781         Likewise.
30782         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
30783         Likewise.
30784         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
30785         Likewise.
30786         * doc/glibc-functions/xdrrec_endofrecord.texi
30787         (xdrrec_endofrecord): Likewise.
30788         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
30789         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
30790         Likewise.
30791         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
30792         Likewise.
30793
30794 2010-05-04  Jim Meyering  <meyering@redhat.com>
30795
30796         gendocs.sh: make its "-s FILE" option more useful
30797         * build-aux/gendocs.sh: When honoring the -s FILE option, update
30798         $PACKAGE to reflect the probably-different basename of "FILE".
30799
30800 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
30801
30802         bootstrap: don't ignore download_po_files failure
30803         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
30804         failure.
30805
30806 2010-05-03  Jim Meyering  <meyering@redhat.com>
30807
30808         maint.mk: allow to pass options to gendocs.sh
30809         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
30810         (gendocs_options_): New overridable variable.
30811
30812         gnu-web-doc-update: don't ignore configure or build failure
30813         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
30814
30815         announce-gen: backslash-escape '@'s in --help output
30816         * build-aux/announce-gen: Fix syntax errors.
30817
30818         maint.mk, announce-gen: allow project-specific announcement mail headers
30819         * top/maint.mk (translation_project_): Define default.
30820         (announcement_Cc_, announcement_mail_headers_): Likewise.
30821         (announcement): Invoke announce-gen with new --mail-headers option.
30822         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
30823
30824         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
30825         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
30826         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
30827         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
30828         line in the "err2" output file when running "make check" in verbose
30829         mode (i.e., with set -x enabled).
30830
30831 2010-05-03  Bruno Haible  <bruno@clisp.org>
30832
30833         wctob: Fix for weird platforms.
30834         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
30835         argument value.
30836
30837 2010-05-03  Jim Meyering  <meyering@redhat.com>
30838
30839         maint.mk: prohibit unwarranted use of <strings.h>
30840         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
30841         strings.h in a file that does not also use strcasecmp, strncasecmp,
30842         ffs or ffsll.
30843
30844         maint.mk: remove obsolete comments
30845         * top/maint.mk: Remove stale, commented-out rules.
30846
30847 2010-05-02  Bruno Haible  <bruno@clisp.org>
30848
30849         wcwidth: Declare also when it's aliased.
30850         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
30851         macro.
30852
30853 2010-05-02  Bruno Haible  <bruno@clisp.org>
30854
30855         Fix regression from 2010-04-25.
30856         * gnulib-tool (func_modules_transitive_closure): Check the status of
30857         all modules, not only of the tests that are of the form foo-tests where
30858         foo is a module.
30859
30860 2010-05-02  Bruno Haible  <bruno@clisp.org>
30861
30862         wctob: Work around nasty Cygwin 1.7.2 bug.
30863         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
30864         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
30865
30866 2010-05-01  Bruno Haible  <bruno@clisp.org>
30867
30868         fpurge: Sharper test.
30869         * tests/test-fpurge.c (main): Add one more ftell check.
30870         * modules/fpurge-tests (Depends-on): Add ftell.
30871         Suggested by Eric Blake.
30872
30873 2010-05-01  Bruno Haible  <bruno@clisp.org>
30874
30875         ftello: Another test.
30876         * tests/test-ftello3.c: New file.
30877         * modules/ftello-tests (Files): Add it.
30878         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30879         MOSTLYCLEANFILES.
30880
30881         ftell: Another test.
30882         * tests/test-ftell3.c: New file.
30883         * modules/ftell-tests (Files): Add it.
30884         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30885         MOSTLYCLEANFILES.
30886
30887 2010-05-01  Bruno Haible  <bruno@clisp.org>
30888
30889         ftell, ftello: Work around Solaris bug.
30890         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
30891         * lib/ftello.c: Include stdio-impl.h.
30892         (ftello): On Solaris, when _IOWRT is set, compute the result without
30893         looking at _IOREAD.
30894         * modules/ftello (Files): Add lib/stdio-impl.h.
30895         * doc/posix-functions/ftell.texi: Mention Solaris bug.
30896         * doc/posix-functions/ftello.texi: Likewise.
30897         Reported by Eric Blake.
30898
30899 2010-05-01  Bruno Haible  <bruno@clisp.org>
30900
30901         freading: Adapt to special meaning of _IOREAD flag on Solaris.
30902         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
30903         the _IOWRT flag is also set.
30904
30905 2010-05-01  Bruno Haible  <bruno@clisp.org>
30906
30907         Fix doc about a HP-UX stdio bug.
30908         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
30909         * doc/posix-functions/ftello.texi: Likewise.
30910
30911 2010-05-01  Bruno Haible  <bruno@clisp.org>
30912
30913         lseek test: Fix failure on Solaris.
30914         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
30915         output.
30916
30917 2010-04-30  Jim Meyering  <meyering@redhat.com>
30918
30919         bootstrap: don't ignore failure to generate po*/Makevars
30920         * build-aux/bootstrap (with_gettext): Don't ignore failure
30921         to create po/Makevars or runtime-po/Makevars.
30922
30923 2010-04-29  Eric Blake  <eblake@redhat.com>
30924
30925         headers: relax license to LGPLv2+
30926         * modules/fcntl-h (License): Relax license.
30927         * modules/getopt-posix (License): Likewise.
30928         * modules/locale (License): Likewise.
30929         * modules/math (License): Likewise.
30930         * modules/pty (License): Likewise.
30931         * modules/sched (License): Likewise.
30932         * modules/search (License): Likewise.
30933         * modules/spawn (License): Likewise.
30934         * modules/stdarg (License): Likewise.
30935         * modules/sysexits (License): Likewise.
30936
30937 2010-04-29  Jim Meyering  <meyering@redhat.com>
30938
30939         inttypes: relax license to LGPLv2+
30940         * modules/inttypes (License): Relax license.
30941
30942 2010-04-29  Simon Josefsson  <simon@josefsson.org>
30943
30944         * top/maint.mk (indent): Run twice to produce idempotent results.
30945
30946 2010-04-28  Bruno Haible  <bruno@clisp.org>
30947
30948         getdate: Generate getdate.c in the source directory.
30949         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
30950         MOSTLYCLEANFILES.
30951         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
30952
30953 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
30954
30955         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
30956         is not declared as a const *; avoid warnings in that case.
30957
30958 2010-04-28  Eric Blake  <eblake@redhat.com>
30959
30960         canonicalize-lgpl: avoid compiler warning
30961         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
30962         declaration' / 'extraneous semicolon' warning with some compilers.
30963         Reported by Andreas Gruenbacher.
30964
30965 2010-04-28  Jim Meyering  <meyering@redhat.com>
30966
30967         init.sh: ensure a more reliable exit status when exiting via trap
30968         * tests/init.sh (setup_): Don't rely on $? in signal handler.
30969         Inspired by patches from Dmitry V. Levin.
30970         Also trap on signal 3 (SIGQUIT).
30971
30972 2010-04-27  Bruno Haible  <bruno@clisp.org>
30973
30974         Update doc about utimes().
30975         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
30976         'utimens' module.
30977         Reported by Andreas Gruenbacher <agruen@suse.de>.
30978
30979 2010-04-27  Eric Blake  <eblake@redhat.com>
30980
30981         full-read, full-write: relax license
30982         * modules/full-read (License): Drop to LGPLv2+.
30983         * modules/full-write (License): Likewise.
30984         * modules/safe-read (License): Likewise.
30985         * modules/safe-write (License): Likewise.
30986
30987         pthread: mention library for linking
30988         * modules/pthread (Link): Mention $(LIB_PTHREAD).
30989
30990 2010-04-27  Jim Meyering  <meyering@redhat.com>
30991
30992         maint.mk: fix a bug introduced in last change
30993         * top/maint.mk (gl_assured_headers_): Now that all names are on
30994         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
30995         is not anchored to end of word, it should be adequate.
30996
30997         maint.mk: avoid side-effect in latest syntax-check
30998         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
30999         to run commands via $(shell...), and hence to incur cost only when
31000         the new rule is actually run.
31001
31002         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
31003         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
31004         and use that to create a regexp used to detect all #if HAVE_..._H uses.
31005         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
31006         (gl_assured_headers_, az_, AZ_): Define.
31007         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
31008
31009 2010-04-26  Jim Meyering  <jim@meyering.net>
31010             Bruno Haible  <bruno@clisp.org>
31011
31012         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
31013         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
31014         Prompted by an exchange with Gilles Espinasse.
31015
31016 2010-04-26  Jim Meyering  <meyering@redhat.com>
31017
31018         git-version-gen: aesthetic tweak
31019         * build-aux/git-version-gen: Use "$nl" rather than a literal,
31020         so that the command remains on a single line.
31021
31022 2010-04-26  Eric Blake  <eblake@redhat.com>
31023
31024         git-version-gen: allow use on EBCDIC hosts
31025         * build-aux/git-version-gen (dirty): Use literal rather than tying
31026         ourselves to ascii.
31027         Reported by Steve Goetze.
31028
31029 2010-04-25  Bruno Haible  <bruno@clisp.org>
31030
31031         netdb: Add support for GNULIB_POSIXCHECK.
31032         * lib/netdb.in.h: Include warn-on-use.h.
31033         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
31034         functions are used when GNULIB_POSIXCHECK is defined and the
31035         getaddrinfo module is not in use.
31036         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
31037         freeaddrinfo, gai_strerror, getnameinfo are declared.
31038         * modules/netdb (Depends-on): Add warn-on-use.
31039         (Makefile.am): Include warn-on-use.h in netdb.h.
31040
31041 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
31042
31043         build: avoid "make check" failure without .git/ directory
31044         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
31045         there is no .git/ directory.
31046
31047 2010-04-25  Bruno Haible  <bruno@clisp.org>
31048
31049         ptsname: Fix misuse of ttyname_r.
31050         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
31051         of errno.
31052
31053 2010-04-25  Bruno Haible  <bruno@clisp.org>
31054
31055         ttyname_r: Make it work on Solaris 10.
31056         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
31057         if the system function has the POSIX declaration. Test whether the
31058         function fails if the buffer is less than 128 bytes large.
31059         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
31060         system's ttyname_r function. Provide a reasonably large buffer.
31061         * modules/ttyname_r (Depends-on): Add extensions.
31062         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
31063
31064 2010-04-25  Bruno Haible  <bruno@clisp.org>
31065
31066         Use the 'extensions' module for some more functions on Solaris.
31067         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
31068         module.
31069         * doc/posix-functions/ctime_r.texi: Likewise.
31070         * doc/posix-functions/getgrgid_r.texi: Likewise.
31071         * doc/posix-functions/getgrnam_r.texi: Likewise.
31072         * doc/posix-functions/getpwnam_r.texi: Likewise.
31073         * doc/posix-functions/getpwuid_r.texi: Likewise.
31074         * doc/posix-functions/readdir_r.texi: Likewise.
31075         * doc/posix-functions/sigwait.texi: Likewise.
31076         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
31077         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
31078
31079 2010-04-25  Bruno Haible  <bruno@clisp.org>
31080
31081         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
31082         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
31083         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
31084         * lib/ttyname_r.c: Include <limits.h>.
31085         (ttyname_r): Define using the system's ttyname_r function, if it exists
31086         and not on Solaris.
31087         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
31088         set.
31089         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
31090         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
31091         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
31092         Reported by Simon Josefsson.
31093
31094 2010-04-25  Bruno Haible  <bruno@clisp.org>
31095
31096         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
31097         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
31098         * doc/posix-functions/ctime_r.texi: Likewise.
31099         * doc/posix-functions/getgrgid_r.texi: Likewise.
31100         * doc/posix-functions/getgrnam_r.texi: Likewise.
31101         * doc/posix-functions/getlogin_r.texi: Likewise.
31102         * doc/posix-functions/getpwnam_r.texi: Likewise.
31103         * doc/posix-functions/getpwuid_r.texi: Likewise.
31104         * doc/posix-functions/readdir_r.texi: Likewise.
31105         * doc/posix-functions/sigwait.texi: Likewise.
31106         * doc/posix-functions/ttyname_r.texi: Likewise.
31107         Reported by Simon Josefsson.
31108
31109 2010-04-25  Bruno Haible  <bruno@clisp.org>
31110
31111         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
31112         * gnulib-tool (func_usage): Document that --with-*-tests options apply
31113         also to --create-testdir.
31114         (func_acceptable): Don't consider the status of *-tests modules here.
31115         (func_modules_transitive_closure): Consider it here, before including a
31116         test module.
31117         (func_import, func_create_testdir): Set inc_all_direct_tests,
31118         inc_all_indirect_tests.
31119         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
31120         --create-testdir and --create-megatestdir.
31121
31122 2010-04-25  Bruno Haible  <bruno@clisp.org>
31123
31124         gnulib-tool: Add --without-*-tests options.
31125         * gnulib-tool (func_usage): Document the --without-*-tests options.
31126         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
31127         excl_unportable_tests): New variables.
31128         Fail if they are specified with --import or --update.
31129         (func_acceptable): Respect the excl_*_tests variables.
31130         (func_import): Set the excl_*_tests variables to empty.
31131
31132 2010-04-25  Simon Josefsson  <simon@josefsson.org>
31133             Bruno Haible  <bruno@clisp.org>
31134
31135         Work around a MacOS X 10.4 bug with openpty.
31136         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
31137         * tests/test-openpty.c (main): Close the master side explicitly.
31138
31139 2010-04-25  Bruno Haible  <bruno@clisp.org>
31140
31141         strnlen: Fix a C++ test error on MacOS X and Solaris.
31142         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
31143         the function is not declared.
31144         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
31145         Simon Josefsson.
31146
31147 2010-04-24  Bruno Haible  <bruno@clisp.org>
31148
31149         Avoid a gcc warning.
31150         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
31151         of correct type for %08lx directive.
31152         Reported by Eric Blake.
31153
31154 2010-04-24  Bruno Haible  <bruno@clisp.org>
31155
31156         vasnprintf: Correct errno value in case of out-of-memory.
31157         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
31158         or sprintf. Use the errno value from SNPRINTF or sprintf.
31159         Reported by Ian Beckwith <ianb@erislabs.net>.
31160
31161 2010-04-24  Bruno Haible  <bruno@clisp.org>
31162
31163         ansi-c++-opt: Find correct compiler when cross-compiling.
31164         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
31165         AC_CHECK_PROGS.
31166         Reported by Simon Josefsson.
31167
31168 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
31169
31170         vc-list-files: Add support for subversion
31171         * build-aux/vc-list-files: Use "svn list" to generate the list of
31172         files controlled by subversion.
31173
31174 2010-04-23  Jim Meyering  <meyering@redhat.com>
31175
31176         vc-list-files tests: convert to use init.sh
31177         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
31178         path_prepend_.
31179         Use Exit, not exit.
31180         Use skip_ rather than open coding it.
31181         Remove trap set-up and compare definitions.
31182         * tests/test-vc-list-files-git.sh: Likewise.
31183         * modules/vc-list-files-tests (Files): Add tests/init.sh.
31184
31185 2010-04-22  Simon Josefsson  <simon@josefsson.org>
31186
31187         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
31188         backup files.
31189
31190 2010-04-21  Simon Josefsson  <simon@josefsson.org>
31191
31192         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
31193
31194 2010-04-20  Eric Blake  <eblake@redhat.com>
31195
31196         tests: be robust to ignored SIGPIPE
31197         * tests/test-select-in.sh: Consume all output.
31198         * tests/test-lseek.sh: Check correct exit status, while avoiding
31199         EPIPE.
31200
31201 2010-04-20  Simon Josefsson  <simon@josefsson.org>
31202             Bruno Haible  <bruno@clisp.org>
31203
31204         visibility: Don't use -fvisibility if it leads to a warning.
31205         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
31206         yes, don't pretend that visibility works if it leads to a warning.
31207         Reported by Mike Gran <spk121@yahoo.com>.
31208
31209 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
31210
31211         * build-aux/bootstrap: Use "git -h" for testing for supported options
31212         instead of "git --help".  The short-form option only shows a summary,
31213         and doesn't layout the full man page.  Grep for the full option name
31214         in the summary, too.
31215
31216 2010-04-19  Bruno Haible  <bruno@clisp.org>
31217
31218         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
31219         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
31220         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
31221         mention of RELOCATABLE_STRIP.
31222         Reported by Sylvain Beucler <beuc@beuc.net>.
31223
31224 2010-04-19  Bruno Haible  <bruno@clisp.org>
31225
31226         * lib/diffseq.h: Fix typo in comment.
31227         Reported by Eric Blake.
31228
31229 2010-04-19  Bruno Haible  <bruno@clisp.org>
31230
31231         ioctl: Move autoconf macro to a .m4 file.
31232         * m4/ioctl.m4: New file, extracted from modules/ioctl.
31233         * modules/ioctl (Files): Add it.
31234         (configure.ac): Simply invoke gl_FUNC_IOCTL.
31235         Reported by Ian Beckwith <ianb@erislabs.net>.
31236
31237 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
31238             Bruno Haible  <bruno@clisp.org>
31239
31240         diffseq: Accommodate use-case with abstract arrays.
31241         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
31242         is not defined.
31243         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
31244         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
31245
31246 2010-04-18  Bruno Haible  <bruno@clisp.org>
31247
31248         * doc/posix-headers/stdbool.texi: More precise wording.
31249
31250 2010-04-17  Jim Meyering  <meyering@redhat.com>
31251
31252         maint.mk: use gnu-style indentation in an embedded perl script
31253         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
31254         Rename variable: s/two/last_two_bytes/
31255
31256 2010-04-16  Eric Blake  <eblake@redhat.com>
31257
31258         test-stdbool: skip test that fails with Solaris CC
31259         * tests/test-stdbool.c (f): Skip test that causes compilation
31260         error under buggy C++ compiler.
31261         * lib/stdbool.in.h: Document the limitation.
31262         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
31263
31264         setenv: allow compilation with C++
31265         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
31266         register keyword.
31267
31268         stdint: allow test to pass with C++
31269         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
31270
31271         getopt: allow compilation with C++
31272         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
31273         struct.
31274         * lib/getopt.c (_getopt_internal_r): Use correct type.
31275         Reported by Dagobert Michelson, via Joel E. Denny.
31276
31277 2010-04-16  Bruno Haible  <bruno@clisp.org>
31278
31279         Override netdb.h always.
31280         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
31281         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
31282         Reported by Ludovic Courtès <ludo@gnu.org>.
31283
31284 2010-04-15  Bruno Haible  <bruno@clisp.org>
31285
31286         openpty: Fix mistake from 2010-03-21.
31287         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
31288         Reported by Simon Josefsson.
31289
31290 2010-04-15  Eric Blake  <eblake@redhat.com>
31291
31292         test-forkpty: fix expected signature
31293         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
31294         Reported by Simon Josefsson.
31295
31296 2010-04-15  Jim Meyering  <meyering@redhat.com>
31297
31298         maint.mk: texinfo_suffix_re_: correct the default regexp
31299         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
31300
31301         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
31302         make it configurable via texinfo_suffix_re_.
31303
31304 2010-04-14  Eric Blake  <eblake@redhat.com>
31305
31306         strtok_r: relax license to LGPLv2+
31307         * modules/strtok_r (License): Relax license.
31308         Reported by Matthias Bolte.
31309
31310 2010-04-14  Simon Josefsson  <simon@josefsson.org>
31311
31312         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
31313         version 1.4.4 by default instead of requiring the libgcrypt
31314         version used during build.  This makes it possible to use the
31315         application with older but still binary compatible libgcrypt
31316         versions.
31317
31318 2010-04-13  Eric Blake  <eblake@redhat.com>
31319
31320         getopt-gnu: match recent glibc fixes and posix ruling
31321         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
31322         '+' handling, when requesting extensions.
31323         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
31324         'W;' handling.
31325         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
31326         * doc/posix-functions/getopt.texi (getopt): Document this.
31327         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31328         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31329         Likewise.
31330
31331         getopt: merge bug fixes from glibc
31332         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
31333         diagnostics.  Honor '+:' correctly.  Reject ';'.
31334
31335         getopt-posix: detect MacOS bug
31336         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
31337         optind when missing a required argument.
31338         * doc/posix-functions/getopt.texi (getopt): Document the bug.
31339         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31340         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31341         Likewise.
31342
31343         getopt-posix: avoid spurious failure on Solaris
31344         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
31345         an indicator that setting optind=1 is sufficient for reset.
31346
31347         getopt-posix: avoid spurious failure on FreeBSD
31348         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
31349         in POSIX mode, since the m4 test uses it.
31350
31351         gnulib-tool: silence warning on BSD sh
31352         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
31353
31354 2010-04-13  Jim Meyering  <meyering@redhat.com>
31355
31356         doc: users.txt: GNU patch now uses gnulib
31357         * users.txt: Add patch.
31358
31359 2010-04-12  Jim Meyering  <meyering@redhat.com>
31360
31361         maint.mk: generate more concise timing data for syntax-check rules
31362         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
31363         " done" from each line that reports a syntax-check test duration.
31364
31365 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
31366
31367         git-version-gen: use "git update-index..." rather than "git status"
31368         * build-aux/git-version-gen: Use git update-index --refresh, not
31369         "git status".  With some versions of git, "git status" would fail
31370         to update the index and result in an unwarranted "-dirty" suffix.
31371
31372 2010-04-11  Jim Meyering  <meyering@redhat.com>
31373
31374         openat: correct formatting (no semantic change)
31375         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
31376         Suggested by Bruno Haible.
31377
31378 2010-04-11  Bruno Haible  <bruno@clisp.org>
31379
31380         Stricter declaration checking in testdirs.
31381         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31382         If for_tests is true, augment AM_CPPFLAGS to define
31383         GNULIB_STRICT_CHECKING.
31384         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
31385         GNULIB_STRICT_CHECKING is defined, verify that the function is
31386         declared.
31387
31388 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
31389             Bruno Haible  <bruno@clisp.org>
31390
31391         libunistring: Improve configure output.
31392         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
31393         Don't say "consider installing GNU libunistring" when checking again
31394         with libiconv.
31395
31396 2010-04-11  Bruno Haible  <bruno@clisp.org>
31397
31398         libunistring: Correct value of $LTLIBUNISTRING.
31399         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
31400         correct the value of $LTLIBUNISTRING.
31401
31402 2010-04-11  Bruno Haible  <bruno@clisp.org>
31403
31404         havelib: Add static libraries to LIBS in the right order.
31405         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
31406         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
31407
31408 2010-04-11  Bruno Haible  <bruno@clisp.org>
31409
31410         libunistring: Detect libunistring also when it depends on libiconv.
31411         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
31412         the second AC_LIB_HAVE_LINKFLAGS invocation.
31413
31414 2010-04-11  James Youngman  <jay@gnu.org>
31415
31416         close-stream: declare local scalars to be "const"
31417         * lib/close-stream.c (close_stream): Make boolean variables const
31418         to document the fact that we set but do not change them.
31419
31420 2010-04-11  Bruno Haible  <bruno@clisp.org>
31421
31422         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
31423
31424 2010-04-11  Jim Meyering  <meyering@redhat.com>
31425
31426         maint.mk: don't include dist-check.mk
31427         * top/maint.mk: Remove bogus include directive.
31428
31429         maint.mk: improve empty-line-at-EOF check
31430         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
31431         solution, rather than tail+Perl-based one.  The latter would read
31432         a few kilobytes from the end of each file, and did not handle empty
31433         files properly.
31434
31435         maint.mk: print the elapsed time for each syntax-check rule
31436         * top/maint.mk (sc_m_rules_): Save start time in a file.
31437         (sc_z_rules_): New rules: remove temp file and print elapsed time.
31438         (local-check): Interpose the .z rules
31439
31440 2010-04-11  Jim Meyering  <meyering@redhat.com>
31441
31442         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
31443         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
31444         empty file with one that ends in an empty line.
31445
31446 2010-04-10  Bruno Haible  <bruno@clisp.org>
31447
31448         mkdir: Make it work on mingw64.
31449         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
31450         * lib/mkdir.c: Update comment.
31451         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
31452
31453 2010-04-10  Bruno Haible  <bruno@clisp.org>
31454
31455         Don't override improved macro from newer autoconf.
31456         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
31457         autoconf >= 2.62.
31458         Reported by Joel E. Denny <jdenny@clemson.edu>.
31459
31460 2010-04-10  Jim Meyering  <meyering@redhat.com>
31461
31462         maint.mk: new syntax-check rule: prohibit empty lines at end of file
31463         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
31464
31465         maint.mk: correct a diagnostic
31466         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
31467         in diagnostic; now use $prohibit.
31468
31469 2010-04-10  Bruno Haible  <address@hidden>
31470
31471         fchownat: Fix a C++ test error on Solaris 8.
31472         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
31473         the function does not exist.
31474
31475 2010-04-10  Bruno Haible  <bruno@clisp.org>
31476
31477         vasnprintf: Add more tests.
31478         * tests/test-vasnprintf-posix.c: Include <errno.h>.
31479         (test_function): Test converting an invalid wide string.
31480
31481         vasnprintf: Correct handling of unconvertible wide string arguments.
31482         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
31483         VASNPRINTF.
31484         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
31485         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
31486         smaller than the expected maximum need for the directive. Set errno to
31487         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
31488         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
31489         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
31490         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
31491         * modules/vasnprintf (Files): Add m4/printf.m4.
31492         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31493
31494 2010-04-10  Bruno Haible  <bruno@clisp.org>
31495
31496         vasnprintf: Fix crash in %ls directive.
31497         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
31498         string is passed as argument to %ls, with no precision and no width.
31499         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31500
31501 2010-04-10  Bruno Haible  <bruno@clisp.org>
31502
31503         vasnprintf: Fix multiple test failures on mingw.
31504         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
31505         _snprintf, or snwprintf, not _snwprintf.
31506
31507 2010-04-10  Bruno Haible  <bruno@clisp.org>
31508
31509         write: Fix a C++ test error on mingw.
31510         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
31511
31512 2010-04-10  Bruno Haible  <bruno@clisp.org>
31513
31514         vasnprintf test: Reduce code duplication.
31515         * tests/test-vasnprintf.c (test_function): New function, extracted from
31516         test_vasnprintf.
31517         (test_vasnprintf, test_asnprintf): Invoke it.
31518
31519 2010-04-10  Bruno Haible  <bruno@clisp.org>
31520
31521         strnlen: Fix warning in C++ mode on MacOS X.
31522         * lib/string.in.h (strnlen): Use the modern idiom.
31523         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
31524         defining strnlen as a macro already in <config.h>.
31525         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31526         REPLACE_STRNLEN.
31527         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
31528         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31529
31530 2010-04-08  James Youngman  <jay@gnu.org>
31531
31532         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
31533         the example.
31534
31535 2010-04-09  Jim Meyering  <meyering@redhat.com>
31536
31537         maint.mk: print better diagnostic when there is no $(_hv_file)
31538         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
31539         announce that when $(_hv_file) (aka help-version) does not exist.
31540
31541         init.sh: run tr in the "C" locale to avoid multibyte interpretation
31542         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
31543         not try to interpret its random input bytes.  Jarno Rajahalme reported
31544         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
31545         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
31546         (mktempd_): Likewise, just in case.
31547
31548         ftruncate: add two years to projected module removal date: 2012
31549         * m4/ftruncate.m4: Adjust comments.
31550
31551         ftruncate: mark module as obsolete; even MinGW provides it, now
31552         * modules/ftruncate (Status): Obsolete.
31553         (Notice): Say that.
31554         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
31555         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
31556
31557 2010-04-08  Bruno Haible  <bruno@clisp.org>
31558
31559         Fix side effects from tests-related modules.
31560         * modules/dprintf-posix (Comment): New section.
31561         * modules/fprintf-posix (Comment): Likewise.
31562         * modules/obstack-printf-posix (Comment): Likewise.
31563         * modules/printf-posix (Comment): Likewise.
31564         * modules/snprintf-posix (Comment): Likewise.
31565         * modules/sprintf-posix (Comment): Likewise.
31566         * modules/vasnprintf-posix (Comment): Likewise.
31567         * modules/vasprintf-posix (Comment): Likewise.
31568         * modules/vdprintf-posix (Comment): Likewise.
31569         * modules/vfprintf-posix (Comment): Likewise.
31570         * modules/vprintf-posix (Comment): Likewise.
31571         * modules/vsnprintf-posix (Comment): Likewise.
31572         * modules/vsprintf-posix (Comment): Likewise.
31573         * modules/xprintf-posix (Comment): Likewise.
31574         * modules/xvasprintf-posix (Comment): Likewise.
31575         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
31576         * modules/floorf-tests (Depends-on): Likewise.
31577         * modules/round-tests (Depends-on): Likewise.
31578         * modules/roundf-tests (Depends-on): Likewise.
31579         * modules/trunc-tests (Depends-on): Likewise.
31580         * modules/truncf-tests (Depends-on): Likewise.
31581         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
31582         'fprintf-posix' module is not present.
31583         * tests/test-floorf2.c (check): Likewise.
31584         * tests/test-trunc2.c (check): Likewise.
31585         * tests/test-truncf2.c (check): Likewise.
31586         * tests/test-round2.c (equal): Likewise.
31587         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31588
31589 2010-04-07  Karl Berry  <karl@gnu.org>
31590
31591         * config/srclist.txt,
31592         * config/srclistvars.sh,
31593         * config/srclist-update: doc fixes.
31594
31595 2010-04-07  Jim Meyering  <meyering@redhat.com>
31596
31597         maint.mk: add a PATH crosschecking syntax-check rule
31598         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
31599         Useful if you use a test like the one in help-version (coreutils,
31600         diffutils, grep, gzip) that ensures $(VERSION) matches what is
31601         printed by prog --version.
31602
31603 2010-04-06  Bruno Haible  <bruno@clisp.org>
31604
31605         Fix link error on mingw.
31606         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
31607         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
31608
31609 2010-04-06  Bruno Haible  <bruno@clisp.org>
31610
31611         Assume rmdir exists.
31612         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
31613
31614 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
31615
31616         doc: update users.txt
31617         * users.txt: Add gcal.
31618
31619 2010-04-06  Jim Meyering  <meyering@redhat.com>
31620
31621         init.sh: simply unset TMPDIR rather than risking env -i
31622         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
31623         although it probably works fine on all Unix-based systems, some
31624         systems (Cygwin?) cannot tolerate a totally cleared environment.
31625         Suggestion from Eric Blake.
31626
31627 2010-04-06  Jim Meyering  <meyering@redhat.com>
31628
31629         init.sh: portability fix: use env's POSIX-specified -i option not -u
31630         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
31631         than unportable env -u.  Solaris 5.11's env lacks support for -u.
31632
31633 2010-04-05  Bruno Haible  <bruno@clisp.org>
31634
31635         btowc: Work around Cygwin 1.7.2 bug.
31636         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
31637         does not map NUL to 0.
31638         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
31639
31640 2010-04-05  Bruno Haible  <bruno@clisp.org>
31641
31642         Make the multithread modules work on Cygwin 1.7.2.
31643         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
31644         imported symbols can be declared weak, so that it returns "no" on
31645         Cygwin 1.7.2.
31646
31647 2010-04-05  Bruno Haible  <bruno@clisp.org>
31648
31649         Use the module 'strncat'.
31650         * modules/unistr/u8-strncat (Depends-on): Add strncat.
31651
31652         Tests for module 'strncat'.
31653         * modules/strncat-tests: New file.
31654         * tests/test-strncat.c: New file.
31655
31656         New module 'strncat'.
31657         * lib/string.in.h (strncat): New declaration.
31658         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
31659         * m4/strncat.m4: New file, based on m4/memchr.m4.
31660         * modules/strncat: New file.
31661         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
31662         is declared.
31663         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
31664         REPLACE_STRNCAT.
31665         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
31666         REPLACE_STRNCAT.
31667         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
31668         module.
31669         * tests/test-string-c++.cc: Check signature of strncat.
31670
31671 2010-04-05  Jim Meyering  <meyering@redhat.com>
31672
31673         xstrtoumax-tests: convert to use init.sh
31674         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
31675         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31676         Use Exit, not exit.
31677         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31678
31679         xstrtoimax-tests: convert to use init.sh
31680         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
31681         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31682         Use Exit, not exit.
31683         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31684
31685 2010-04-05  Bruno Haible  <bruno@clisp.org>
31686
31687         sys_socket: Avoid #define replacements in C++ mode.
31688         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
31689         warning to the function if possible, rather than #defining the symbol
31690         to a dysfunctional alias.
31691
31692 2010-04-05  Bruno Haible  <bruno@clisp.org>
31693
31694         fseeko: Fix C++ test error on mingw.
31695         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
31696         gl_FUNC_FSEEKO.
31697         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
31698         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
31699         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
31700         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
31701
31702 2010-04-05  Bruno Haible  <bruno@clisp.org>
31703
31704         duplocale: Improve test output.
31705         * tests/test-duplocale.c (main): Print reason for skipped test.
31706
31707 2010-04-05  Bruno Haible  <bruno@clisp.org>
31708
31709         Assume rmdir exists.
31710         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
31711         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
31712
31713 2010-04-05  Bruno Haible  <bruno@clisp.org>
31714
31715         Fix link error on Solaris 8 with cc.
31716         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
31717
31718 2010-04-05  Bruno Haible  <bruno@clisp.org>
31719
31720         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31721         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
31722
31723 2010-04-05  Bruno Haible  <bruno@clisp.org>
31724
31725         vasprintf: Update documentation.
31726         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
31727
31728 2010-04-05  Bruno Haible  <bruno@clisp.org>
31729
31730         ptsname: Improve test.
31731         * tests/test-ptsname.c (main): Also try the various master names of BSD
31732         systems.
31733
31734 2010-04-05  Bruno Haible  <bruno@clisp.org>
31735
31736         memchr: Avoid a possible C++ test error.
31737         * lib/string.in.h (memchr): Provide declaration if function is missing.
31738         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
31739         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
31740         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
31741         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
31742
31743 2010-04-05  Bruno Haible  <bruno@clisp.org>
31744
31745         strtok_r: Improve idiom.
31746         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
31747         AC_LIBOBJ is used.
31748
31749 2010-04-05  Bruno Haible  <bruno@clisp.org>
31750
31751         strdup: Improve idiom.
31752         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
31753         AC_LIBOBJ is used.
31754         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
31755         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
31756         when AC_LIBOBJ is used.
31757
31758 2010-04-05  Bruno Haible  <bruno@clisp.org>
31759
31760         mbsinit, mbrtowc, wcrtomb: Improve idioms.
31761         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
31762         don't set REPLACE_MBSINIT to 1.
31763         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
31764         don't set REPLACE_MBRTOWC to 1.
31765         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
31766         exist, don't set REPLACE_MBSRTOWCS to 1.
31767         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
31768         exist, don't set REPLACE_MBSNRTOWCS to 1.
31769         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
31770         don't set REPLACE_WCRTOMB to 1.
31771         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
31772         exist, don't set REPLACE_WCSRTOMBS to 1.
31773         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
31774         exist, don't set REPLACE_WCSNRTOMBS to 1.
31775
31776 2010-04-05  Bruno Haible  <bruno@clisp.org>
31777
31778         ldexpl: Improve idiom.
31779         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
31780         make sure to set HAVE_DECL_LDEXPL to 0.
31781
31782 2010-04-05  Jim Meyering  <meyering@redhat.com>
31783
31784         xstrtol-tests: convert to use init.sh
31785         * modules/xstrtol-tests (Files): Add tests/init.sh.
31786         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31787         Use Exit, not exit.
31788         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31789
31790         atexit-tests: convert to use init.sh
31791         * modules/atexit-tests (Files): Add tests/init.sh.
31792         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31793         Use Exit, not exit.
31794         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31795
31796         init.sh: fix typo
31797         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
31798
31799         init.sh: make it easier for a test script to write to the tty, ...
31800         when using automake's parallel-tests mode.
31801         * tests/init.sh (stderr_fileno_): Define overridable variable.
31802         (warn_): New function, to use it.
31803         (fail_, skip_, framework_failure_): Use warn_.
31804
31805 2010-04-04  Bruno Haible  <bruno@clisp.org>
31806
31807         btowc: Avoid warning.
31808         * lib/btowc.c: Include <stdlib.h>.
31809         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
31810
31811 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31812             Bruno Haible  <bruno@clisp.org>
31813
31814         wchar: Port to NetBSD 1.5.
31815         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
31816         * lib/wctype.in.h (WEOF): Likewise.
31817
31818 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31819             Bruno Haible  <bruno@clisp.org>
31820
31821         Port extended stdio to NetBSD 1.5.
31822         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
31823         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
31824         older.
31825
31826 2010-04-04  Bruno Haible  <bruno@clisp.org>
31827
31828         string: Remove unused substitution.
31829         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
31830         HAVE_DECL_STRERROR.
31831         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
31832
31833 2010-04-04  Bruno Haible  <bruno@clisp.org>
31834
31835         strtod: Avoid a possible C++ test error.
31836         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
31837         set REPLACE_STRTOD.
31838
31839 2010-04-04  Bruno Haible  <bruno@clisp.org>
31840
31841         strerror: Update documentation.
31842         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
31843
31844 2010-04-04  Bruno Haible  <bruno@clisp.org>
31845
31846         stdio: Fix some C++ test errors on Solaris 8 with GCC.
31847         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
31848         _GL_CXXALIAS_SYS_CAST.
31849
31850 2010-04-04  Bruno Haible  <bruno@clisp.org>
31851
31852         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31853         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
31854         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
31855         REPLACE_FREXPL to 1.
31856         * doc/posix-functions/frexpl.texi: Update documentation.
31857
31858 2010-04-04  Bruno Haible  <bruno@clisp.org>
31859
31860         math: Fix some C++ test errors on Solaris 8 and Cygwin.
31861         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
31862
31863 2010-04-04  Bruno Haible  <bruno@clisp.org>
31864
31865         Implement nanosleep for native Windows.
31866         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
31867
31868 2010-04-04  Bruno Haible  <bruno@clisp.org>
31869
31870         math: Fix some C++ test errors on Solaris 8.
31871         * lib/math.in.h (truncf, trunc): Use simpler idiom.
31872
31873 2010-04-04  Bruno Haible  <bruno@clisp.org>
31874
31875         math: Fix some C++ test errors on Cygwin.
31876         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
31877         truncl): Provide declaration if the system does not have it.
31878         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
31879         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
31880         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
31881         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
31882         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
31883         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
31884         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
31885         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
31886         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
31887         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
31888         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
31889         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
31890         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
31891         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
31892         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
31893         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
31894         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
31895         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31896         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31897         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
31898         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31899         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31900
31901 2010-04-04  Bruno Haible  <bruno@clisp.org>
31902
31903         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
31904         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
31905         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
31906         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
31907         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31908         * m4/isinf.m4 (gl_ISINF): Likewise.
31909         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31910
31911 2010-04-04  Bruno Haible  <bruno@clisp.org>
31912
31913         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
31914         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31915
31916 2010-04-04  Bruno Haible  <bruno@clisp.org>
31917
31918         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
31919         * modules/tmpfile (configure.ac): Update.
31920
31921         tmpfile: Fix C++ test error on mingw.
31922         * lib/stdio.in.h (tmpfile): New declaration.
31923         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
31924         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
31925         * modules/tmpfile (Depends-on): Add stdio.
31926         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
31927         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
31928         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
31929         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
31930         REPLACE_TMPFILE.
31931         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
31932
31933 2010-04-04  Bruno Haible  <bruno@clisp.org>
31934
31935         ioctl: Fix C++ test error on mingw.
31936         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
31937         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
31938         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
31939
31940 2010-04-03  Bruno Haible  <bruno@clisp.org>
31941
31942         wcwidth: Fix C++ test error on mingw.
31943         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
31944         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
31945         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
31946
31947 2010-04-03  Bruno Haible  <bruno@clisp.org>
31948
31949         nanosleep: Fix C++ test error on mingw.
31950         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
31951         * lib/time.in.h (nanosleep): Use modern idiom.
31952         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
31953         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
31954         REPLACE_NANOSLEEP to 1.
31955         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
31956         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
31957
31958 2010-04-03  Bruno Haible  <bruno@clisp.org>
31959
31960         strptime: Fix C++ test error on mingw.
31961         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
31962         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
31963         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
31964         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
31965         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
31966         not REPLACE_STRPTIME.
31967         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
31968         REPLACE_STRPTIME.
31969
31970 2010-04-03  Bruno Haible  <bruno@clisp.org>
31971
31972         timegm: Fix C++ test error on mingw.
31973         * lib/time.in.h (timegm): Use modern idiom.
31974         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
31975         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
31976         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
31977         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
31978
31979 2010-04-03  Bruno Haible  <bruno@clisp.org>
31980
31981         timegm: Assume declaration if function exists.
31982         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
31983         if it exists. Don't clobber ac_cv_func_timegm.
31984
31985 2010-04-03  Bruno Haible  <bruno@clisp.org>
31986
31987         time_r: Fix C++ test error on mingw.
31988         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
31989         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
31990         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
31991         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
31992         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
31993
31994 2010-04-03  Bruno Haible  <bruno@clisp.org>
31995
31996         time_r: Minor updates.
31997         * modules/time_r (Description): Mention the provided functions.
31998         * lib/time_r.c: Don't include <string.h>.
31999         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
32000         * doc/posix-functions/localtime_r.texi: Likewise.
32001
32002 2010-04-03  Bruno Haible  <bruno@clisp.org>
32003
32004         time: Fix regression introduced on 2010-03-08.
32005         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
32006         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
32007
32008 2010-04-03  Jim Meyering  <meyering@redhat.com>
32009
32010         maint.mk: don't silently disable project-specific syntax-check rules
32011         * top/maint.mk (_prohibit_regexp): Define, to help people realize
32012         that they need to convert their project-specific syntax-check rules
32013         to use the new _sc_search_regexp.
32014
32015 2010-04-03  Bruno Haible  <bruno@clisp.org>
32016
32017         fchdir: Fix regression introduced on 2010-03-08.
32018         * lib/unistd.in.h (fchdir): Fix declaration.
32019         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
32020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
32021         REPLACE_FCHDIR.
32022         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
32023         REPLACE_FCHDIR.
32024
32025 2010-04-03  Bruno Haible  <bruno@clisp.org>
32026
32027         getpagesize: Fix C++ test error on mingw.
32028         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
32029         system does not declare the function.
32030         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
32031         declared.
32032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32033         HAVE_DECL_GETPAGESIZE.
32034         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
32035
32036 2010-04-03  Bruno Haible  <bruno@clisp.org>
32037
32038         stdio: Make C++ tests work on mingw.
32039         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
32040         does not declare the function.
32041
32042 2010-04-03  Bruno Haible  <bruno@clisp.org>
32043
32044         ftello: Fix C++ test error on mingw.
32045         * lib/stdio.in.h (ftello): Use modern idiom.
32046         * lib/ftello.c (ftello): Renamed from rpl_ftello.
32047         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
32048         is missing and that it needs to be replaced.
32049         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
32050         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
32051         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
32052
32053 2010-04-03  Bruno Haible  <bruno@clisp.org>
32054
32055         fseeko: Fix C++ test error on mingw.
32056         * lib/stdio.in.h (fseeko): Use modern idiom.
32057         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
32058         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
32059         is missing and that it needs to be replaced.
32060         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
32061         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
32062         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
32063
32064 2010-04-03  Bruno Haible  <bruno@clisp.org>
32065
32066         mkstemp: Fix C++ test error on mingw.
32067         * lib/stdlib.in.h (mkstemp): Use modern idiom.
32068         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
32069         function is missing and that it needs to be replaced.
32070         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
32071         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
32072
32073 2010-04-03  Bruno Haible  <bruno@clisp.org>
32074
32075         stpncpy: Fix C++ test error on mingw.
32076         * lib/string.in.h (stpncpy): Use modern idiom.
32077         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
32078         function is missing and that it needs to be replaced.
32079         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32080         REPLACE_STPNCPY.
32081         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
32082
32083 2010-04-03  Bruno Haible  <bruno@clisp.org>
32084
32085         sys_stat: Fix C++ test error on mingw.
32086         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
32087         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
32088
32089 2010-04-03  Bruno Haible  <bruno@clisp.org>
32090
32091         pty: Update doc.
32092         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
32093
32094 2010-04-03  Bruno Haible  <bruno@clisp.org>
32095
32096         unistd: Fix C++ test error on mingw.
32097         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
32098
32099 2010-04-03  Bruno Haible  <bruno@clisp.org>
32100
32101         Update doc regarding mingw.
32102         * doc/glibc-functions/openpty.texi: Update regarding mingw.
32103         * doc/glibc-functions/login_tty.texi: Likewise.
32104         * doc/glibc-functions/forkpty.texi: Likewise.
32105
32106 2010-04-03  Bruno Haible  <bruno@clisp.org>
32107
32108         stdlib: Avoid compilation failure of c-strtold on mingw.
32109         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
32110
32111 2010-04-03  Bruno Haible  <bruno@clisp.org>
32112
32113         locale: Make C++ tests work on Cygwin and mingw.
32114         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
32115         cannot provide the function.
32116         Reported by Simon Josefsson.
32117
32118 2010-04-03  Bruno Haible  <bruno@clisp.org>
32119
32120         localename: Port to MacOS X 10.6.
32121         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
32122         memory layout of the locales in MacOS X 10.6 as well.
32123         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
32124
32125 2010-04-02  Bruno Haible  <bruno@clisp.org>
32126
32127         gnulib-tool: Ensure that long-running tests are executed last.
32128         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
32129         running tests after the one for the other tests.
32130
32131 2010-04-02  Bruno Haible  <bruno@clisp.org>
32132
32133         gnulib-tool: Ensure the tests in the main directory are executed first.
32134         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
32135         start with the current directory.
32136
32137 2010-04-02  Bruno Haible  <bruno@clisp.org>
32138
32139         Tests for module 'havelib', moved here from GNU gettext.
32140         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
32141         modifications.
32142         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
32143         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
32144         with modifications.
32145         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
32146         modifications.
32147         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
32148         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
32149         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
32150         with modifications.
32151         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
32152         with modifications.
32153         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
32154         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
32155         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
32156         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
32157         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
32158         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
32159         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
32160         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
32161         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
32162         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
32163         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
32164         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
32165         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
32166         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
32167         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
32168         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
32169         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
32170         with modifications.
32171         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
32172         with modifications.
32173         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
32174         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
32175         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
32176         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
32177         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
32178         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
32179         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
32180         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
32181         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
32182         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
32183         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
32184         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
32185         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
32186         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
32187         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
32188         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
32189         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
32190         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
32191         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
32192         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
32193         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
32194         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
32195         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
32196         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
32197         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
32198         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
32199         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
32200         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
32201         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
32202         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
32203         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
32204         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
32205         * tests/havelib/rpathx/rpathx.c: New file, from
32206         gettext/autoconf-lib-link.
32207         * tests/havelib/rpathx/Makefile.am: New file, from
32208         gettext/autoconf-lib-link.
32209         * tests/havelib/rpathx/configure.ac: New file, from
32210         gettext/autoconf-lib-link with modifications.
32211         * tests/havelib/rpathy/rpathy.c: New file, from
32212         gettext/autoconf-lib-link.
32213         * tests/havelib/rpathy/Makefile.am: New file, from
32214         gettext/autoconf-lib-link.
32215         * tests/havelib/rpathy/configure.ac: New file, from
32216         gettext/autoconf-lib-link with modifications.
32217         * tests/havelib/rpathz/rpathz.c: New file, from
32218         gettext/autoconf-lib-link.
32219         * tests/havelib/rpathz/Makefile.am: New file, from
32220         gettext/autoconf-lib-link.
32221         * tests/havelib/rpathz/configure.ac: New file, from
32222         gettext/autoconf-lib-link with modifications.
32223         * tests/havelib/rpathlx/usex.c: New file, from
32224         gettext/autoconf-lib-link.
32225         * tests/havelib/rpathlx/Makefile.am: New file, from
32226         gettext/autoconf-lib-link.
32227         * tests/havelib/rpathlx/configure.ac: New file, from
32228         gettext/autoconf-lib-link with modifications.
32229         * tests/havelib/rpathly/usey.c: New file, from
32230         gettext/autoconf-lib-link.
32231         * tests/havelib/rpathly/Makefile.am: New file, from
32232         gettext/autoconf-lib-link.
32233         * tests/havelib/rpathly/configure.ac: New file, from
32234         gettext/autoconf-lib-link with modifications.
32235         * tests/havelib/rpathlz/usez.c: New file, from
32236         gettext/autoconf-lib-link.
32237         * tests/havelib/rpathlz/Makefile.am: New file, from
32238         gettext/autoconf-lib-link.
32239         * tests/havelib/rpathlz/configure.ac: New file, from
32240         gettext/autoconf-lib-link with modifications.
32241         * tests/havelib/rpathlyx/usey.c: New file, from
32242         gettext/autoconf-lib-link.
32243         * tests/havelib/rpathlyx/Makefile.am: New file, from
32244         gettext/autoconf-lib-link.
32245         * tests/havelib/rpathlyx/configure.ac: New file, from
32246         gettext/autoconf-lib-link with modifications.
32247         * tests/havelib/rpathlzyx/usez.c: New file, from
32248         gettext/autoconf-lib-link.
32249         * tests/havelib/rpathlzyx/Makefile.am: New file, from
32250         gettext/autoconf-lib-link.
32251         * tests/havelib/rpathlzyx/configure.ac: New file, from
32252         gettext/autoconf-lib-link with modifications.
32253         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
32254         with modifications.
32255
32256 2010-04-02  Bruno Haible  <bruno@clisp.org>
32257
32258         gnulib-tool: Create distributed built sources also for the tests.
32259         * gnulib-tool (func_create_testdir): Also generate distributed built
32260         sources in the tests directory.
32261
32262 2010-04-02  Bruno Haible  <bruno@clisp.org>
32263
32264         gnulib-tool: Obey user's environment variables.
32265         * gnulib-tool (func_create_testdir): When creating built sources,
32266         respect the environment variables for autoconf, automake, etc. given by
32267         the user.
32268
32269 2010-04-02  Bruno Haible  <bruno@clisp.org>
32270
32271         gnulib-tool: Provide the value of --m4-base to modules.
32272         * gnulib-tool (func_import, func_create_testdir): Emit a definition
32273         of gl_m4_base.
32274
32275 2010-04-02  Eric Blake  <eblake@redhat.com>
32276
32277         maint.mk: fix some fallout
32278         * NEWS: Document the incompatible change, and its effect on cfg.mk.
32279         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
32280
32281 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
32282
32283         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
32284         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
32285         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
32286         (sc_cast_of_x_alloc_return_value): Likewise.
32287         (sc_cast_of_alloca_return_value): Likewise.
32288         (sc_space_tab): Likewise.
32289         (sc_prohibit_atoi_atof): Likewise.
32290         (sc_prohibit_magic_number_exit): Likewise.
32291         (sc_error_exit_success): Likewise.
32292         (sc_file_system): Likewise.
32293         (sc_prohibit_have_config_h): Likewise.
32294         (sc_require_config_h): Likewise.
32295         (sc_prohibit_HAVE_MBRTOWC): Likewise.
32296         (sc_obsolete_symbols): Likewise.
32297         (sc_changelog): Likewise.
32298         (sc_program_name): Likewise.
32299         (sc_the_the): Likewise.
32300         (sc_trailing_blank): Likewise.
32301         (sc_two_space_separator_in_usage): Likewise.
32302         (sc_useless_cpp_parens): Likewise.
32303         (sc_GPL_version): Likewise.
32304         (sc_GFDL_version): Likewise.
32305         (sc_texinfo_acronym): Likewise.
32306         (sc_prohibit_cvs_keyword): Likewise.
32307         (sc_prohibit_stat_st_blocks): Likewise.
32308         (sc_prohibit_S_IS_definition): Likewise.
32309         (sc_redundant_const): Likewise.
32310         (sc_makefile_TAB_only_indentation): Likewise.
32311         (sc_m4_quote_check): Likewise.
32312         (sc_makefile_path_separator_check): Likewise.
32313         (sc_copyright_check): Likewise.
32314         (sc_Wundef_boolean): Likewise.
32315         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
32316
32317         maint.mk: match 0 or more whitespace-before-function-call '('
32318         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
32319         that have zero or two-and-more spaces between the function name
32320         and the open parenthesis.
32321         (sc_error_message_warn_fatal): Likewise.
32322         (sc_error_message_uppercase): Likewise.
32323         (sc_error_message_period): Likewise.
32324
32325 2010-03-31  Eric Blake  <eblake@redhat.com>
32326
32327         maint.mk: check for [ as well as test
32328         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
32329         Based on a libvirt report by Matthias Bolte.
32330
32331         gnumakefile: don't squelch _version output
32332         * top/GNUmakefile (_version): Create one-shot dependency rather
32333         than using $(shell) when version must be regenerated.
32334         (_autoreconf): Run verbosely, by default.
32335
32336         sys_time: avoid compiler warnings
32337         * lib/sys_time.in.h (includes): Ensure gcc pragma is
32338         unconditional, fixing regression from 2010-03-29.
32339         Reported by Simon Josefsson.
32340
32341 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
32342
32343         maint.mk: s/_header_without_use/_sc_header_without_use/
32344         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
32345         (sc_prohibit_assert_without_use): Use the new name.
32346         (sc_prohibit_close_stream_without_use): Likewise.
32347         (sc_prohibit_getopt_without_use): Likewise.
32348         (sc_prohibit_quotearg_without_use): Likewise.
32349         (sc_prohibit_quote_without_use): Likewise.
32350         (sc_prohibit_long_options_without_use): Likewise.
32351         (sc_prohibit_inttostr_without_use): Likewise.
32352         (sc_prohibit_ignore_value_without_use): Likewise.
32353         (sc_prohibit_error_without_use): Likewise.
32354         (sc_prohibit_xalloc_without_use): Likewise.
32355         (sc_prohibit_hash_without_use): Likewise.
32356         (sc_prohibit_hash_pjw_without_use): Likewise.
32357         (sc_prohibit_safe_read_without_use): Likewise.
32358         (sc_prohibit_argmatch_without_use): Likewise.
32359         (sc_prohibit_canonicalize_without_use): Likewise.
32360         (sc_prohibit_root_dev_ino_without_use): Likewise.
32361         (sc_prohibit_openat_without_use): Likewise.
32362         (sc_prohibit_c_ctype_without_use): Likewise.
32363         (sc_prohibit_signal_without_use): Likewise.
32364         (sc_prohibit_intprops_without_use): Likewise.
32365
32366 2010-03-30  Eric Blake  <eblake@redhat.com>
32367
32368         maint: improve module indicators
32369         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
32370         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
32371         columns, and avoid extra macro expansion.
32372
32373         fdopendir: work around FreeBSD bug
32374         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
32375         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
32376         * modules/dirent (Makefile.am): Substitute it.
32377         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
32378         declaration.
32379         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
32380         fix.
32381         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32382
32383 2010-03-29  Bruno Haible  <bruno@clisp.org>
32384
32385         Emit #pragma system_header after the inclusion guard, not before.
32386         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
32387         guard that spans the entire file, not before. This enables an
32388         optimization in GCC's preprocessor.
32389         * lib/ctype.in.h: Likewise.
32390         * lib/dirent.in.h: Likewise.
32391         * lib/errno.in.h: Likewise.
32392         * lib/float.in.h: Likewise.
32393         * lib/getopt.in.h: Likewise.
32394         * lib/iconv.in.h: Likewise.
32395         * lib/langinfo.in.h: Likewise.
32396         * lib/locale.in.h: Likewise.
32397         * lib/math.in.h: Likewise.
32398         * lib/netdb.in.h: Likewise.
32399         * lib/netinet_in.in.h: Likewise.
32400         * lib/pty.in.h: Likewise.
32401         * lib/sched.in.h: Likewise.
32402         * lib/se-selinux.in.h: Likewise.
32403         * lib/search.in.h: Likewise.
32404         * lib/spawn.in.h: Likewise.
32405         * lib/stdarg.in.h: Likewise.
32406         * lib/stdint.in.h: Likewise.
32407         * lib/string.in.h: Likewise.
32408         * lib/strings.in.h: Likewise.
32409         * lib/sys_file.in.h: Likewise.
32410         * lib/sys_ioctl.in.h: Likewise.
32411         * lib/sys_time.in.h: Likewise.
32412         * lib/sys_times.in.h: Likewise.
32413         * lib/sys_utsname.in.h: Likewise.
32414         * lib/sys_wait.in.h: Likewise.
32415         * lib/sysexits.in.h: Likewise.
32416         * lib/wctype.in.h: Likewise.
32417
32418 2010-03-28  James Youngman  <jay@gnu.org>
32419
32420         save-cwd: don't leak a file descriptor when the caller execs.
32421         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
32422         saved file descriptor.
32423         * modules/save-cwd (Depends-on): Depend on cloexec.
32424
32425 2010-03-29  Bruno Haible  <bruno@clisp.org>
32426
32427         Remove vestiges of fts-lgpl module.
32428         * lib/fts_.h: Assume GNULIB_FTS is 1.
32429         * lib/fts.c: Likewise.
32430         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
32431
32432 2010-03-28  Bruno Haible  <bruno@clisp.org>
32433
32434         Fix definition of tests witness macro.
32435         * gnulib-tool (func_import): Fix definition of witness macro.
32436
32437 2010-03-28  Bruno Haible  <bruno@clisp.org>
32438
32439         Fix ioctl's protoype on glibc systems.
32440         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
32441         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
32442         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
32443         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
32444         signature. If not, arrange to replace the ioctl function.
32445         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
32446         REPLACE_IOCTL.
32447         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
32448         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
32449         Reported by Ludovic Courtès <ludo@gnu.org>.
32450
32451 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
32452
32453         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
32454         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
32455         made it so grep -r --include=GLOB* ... did not work.
32456
32457 2010-03-26  Jim Meyering  <meyering@redhat.com>
32458             Eric Blake  <eblake@redhat.com>
32459
32460         maint.mk: prohibit use of test's -o and -a operators
32461         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
32462
32463 2010-03-28  Bruno Haible  <bruno@clisp.org>
32464
32465         Remove unused GNULIB_XYZ macro definitions.
32466         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
32467         invocation.
32468
32469 2010-03-28  Bruno Haible  <bruno@clisp.org>
32470
32471         Mark privileged tests modules.
32472         * modules/idpriv-drop-tests (Status): New section.
32473         * modules/idpriv-droptemp-tests (Status): New section.
32474
32475 2010-03-28  Bruno Haible  <bruno@clisp.org>
32476
32477         Split C++ tests into separate tests modules.
32478         * modules/dirent-c++-tests: New file, extracted from
32479         modules/dirent-tests.
32480         * modules/dirent-tests: Depend on it.
32481         * modules/fcntl-h-c++-tests: New file, extracted from
32482         modules/fcntl-h-tests.
32483         * modules/fcntl-h-tests: Depend on it.
32484         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
32485         * modules/glob-tests: Depend on it.
32486         * modules/iconv-h-c++-tests: New file, extracted from
32487         modules/iconv-h-tests.
32488         * modules/iconv-h-tests: Depend on it.
32489         * modules/langinfo-c++-tests: New file, extracted from
32490         modules/langinfo-tests.
32491         * modules/langinfo-tests: Depend on it.
32492         * modules/locale-c++-tests: New file, extracted from
32493         modules/locale-tests.
32494         * modules/locale-tests: Depend on it.
32495         * modules/math-c++-tests: New file, extracted from modules/math-tests.
32496         * modules/math-tests: Depend on it.
32497         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
32498         * modules/pty-tests: Depend on it.
32499         * modules/search-c++-tests: New file, extracted from
32500         modules/search-tests.
32501         * modules/search-tests: Depend on it.
32502         * modules/signal-c++-tests: New file, extracted from
32503         modules/signal-tests.
32504         * modules/signal-tests: Depend on it.
32505         * modules/spawn-c++-tests: New file, extracted from
32506         modules/spawn-tests.
32507         * modules/spawn-tests: Depend on it.
32508         * modules/stdio-c++-tests: New file, extracted from
32509         modules/stdio-tests.
32510         * modules/stdio-tests: Depend on it.
32511         * modules/stdlib-c++-tests: New file, extracted from
32512         modules/stdlib-tests.
32513         * modules/stdlib-tests: Depend on it.
32514         * modules/string-c++-tests: New file, extracted from
32515         modules/string-tests.
32516         * modules/string-tests: Depend on it.
32517         * modules/sys_ioctl-c++-tests: New file, extracted from
32518         modules/sys_ioctl-tests.
32519         * modules/sys_ioctl-tests: Depend on it.
32520         * modules/sys_select-c++-tests: New file, extracted from
32521         modules/sys_select-tests.
32522         * modules/sys_select-tests: Depend on it.
32523         * modules/sys_socket-c++-tests: New file, extracted from
32524         modules/sys_socket-tests.
32525         * modules/sys_socket-tests: Depend on it.
32526         * modules/sys_stat-c++-tests: New file, extracted from
32527         modules/sys_stat-tests.
32528         * modules/sys_stat-tests: Depend on it.
32529         * modules/sys_time-c++-tests: New file, extracted from
32530         modules/sys_time-tests.
32531         * modules/sys_time-tests: Depend on it.
32532         * modules/time-c++-tests: New file, extracted from modules/time-tests.
32533         * modules/time-tests: Depend on it.
32534         * modules/unistd-c++-tests: New file, extracted from
32535         modules/unistd-tests.
32536         * modules/unistd-tests: Depend on it.
32537         * modules/wchar-c++-tests: New file, extracted from
32538         modules/wchar-tests.
32539         * modules/wchar-tests: Depend on it.
32540         * modules/wctype-c++-tests: New file, extracted from
32541         modules/wctype-tests.
32542         * modules/wctype-tests: Depend on it.
32543         Reported by Simon Josefsson.
32544
32545 2010-03-28  Bruno Haible  <bruno@clisp.org>
32546
32547         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
32548         * gnulib-tool (func_exists_module): New function, extracted from
32549         func_verify_module.
32550         (func_verify_module): Use it.
32551         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
32552         'foo' only if 'foo' exists.
32553         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
32554         module.
32555
32556 2010-03-28  Bruno Haible  <bruno@clisp.org>
32557
32558         gnulib-tool: Add support for special categories of tests.
32559         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
32560         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
32561         (func_usage): Document them.
32562         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
32563         inc_unportable_tests, inc_all_tests): New variables.
32564         (func_acceptable): Consider these variables.
32565         (func_modules_transitive_closure): Make it work when the 'Status' field
32566         consists of multiple words.
32567         (func_import): Store and restore the values of inc_cxx_tests,
32568         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
32569         inc_all_tests in gnulib-comp.m4.
32570         (func_create_testdir): Set inc_all_tests to true.
32571         * doc/gnulib.texi (Extra tests modules): New section.
32572         Suggested by Jim Meyering.
32573
32574 2010-03-28  Bruno Haible  <bruno@clisp.org>
32575
32576         ansi-c++-opt: Allow turning off the C++ build by default.
32577         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
32578         gl_CXX_CHOICE_DEFAULT_NO is defined.
32579         Requested by Eric Blake.
32580
32581 2010-03-28  Bruno Haible  <bruno@clisp.org>
32582
32583         unistd: Avoid #define replacements in C++ mode.
32584         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
32585         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
32586         setsockopt, shutdown, select): In C++, attach a warning to the function
32587         if possible, rather than #defining the symbol to a dysfunctional alias.
32588         Reported by John W. Eaton <jwe@gnu.org>.
32589
32590 2010-03-28  Bruno Haible  <bruno@clisp.org>
32591
32592         Fix link errors on mingw.
32593         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
32594         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
32595         $(LIBSOCKET).
32596         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
32597         $(LIBSOCKET).
32598
32599 2010-03-28  Bruno Haible  <bruno@clisp.org>
32600             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32601
32602         lib-ignore: Determine different options for different compilers.
32603         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
32604         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
32605         Add comments.
32606         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
32607         * NEWS: Mention the change.
32608
32609 2010-03-27  Bruno Haible  <bruno@clisp.org>
32610
32611         Remove unused GNULIB_XYZ macro definitions.
32612         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
32613         * modules/fseek (configure.ac): Likewise.
32614         * modules/ioctl (configure.ac): Likewise.
32615         * modules/open (configure.ac): Likewise.
32616         * modules/stdlib-safer (configure.ac): Likewise.
32617
32618 2010-03-27  Bruno Haible  <bruno@clisp.org>
32619
32620         Add a remark about certain modules.
32621         * modules/malloc (Comment): New section.
32622         * modules/realloc (Comment): Likewise.
32623         * modules/sigpipe (Comment): Likewise.
32624
32625 2010-03-27  Bruno Haible  <bruno@clisp.org>
32626
32627         Resolve conflict between the two kinds of module indicators.
32628         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
32629         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
32630         * modules/canonicalize (configure.ac): Invoke
32631         gl_MODULE_INDICATOR_FOR_TESTS.
32632         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
32633         GNULIB_XYZ.
32634         * tests/test-dirent-c++.cc: Likewise.
32635         * tests/test-dirent-safer.c: Likewise.
32636         * tests/test-dup2.c: Likewise.
32637         * tests/test-fchdir.c: Likewise.
32638         * tests/test-fcntl-h-c++.cc: Likewise.
32639         * tests/test-getopt.c: Likewise.
32640         * tests/test-getopt.h: Likewise.
32641         * tests/test-langinfo-c++.cc: Likewise.
32642         * tests/test-locale-c++.cc: Likewise.
32643         * tests/test-math-c++.cc: Likewise.
32644         * tests/test-pty-c++.cc: Likewise.
32645         * tests/test-search-c++.cc: Likewise.
32646         * tests/test-signal-c++.cc: Likewise.
32647         * tests/test-spawn-c++.cc: Likewise.
32648         * tests/test-stdio-c++.cc: Likewise.
32649         * tests/test-stdlib-c++.cc: Likewise.
32650         * tests/test-string-c++.cc: Likewise.
32651         * tests/test-sys_ioctl-c++.cc: Likewise.
32652         * tests/test-sys_select-c++.cc: Likewise.
32653         * tests/test-sys_socket-c++.cc: Likewise.
32654         * tests/test-sys_stat-c++.cc: Likewise.
32655         * tests/test-sys_time-c++.cc: Likewise.
32656         * tests/test-time-c++.cc: Likewise.
32657         * tests/test-unistd-c++.cc: Likewise.
32658         * tests/test-wchar-c++.cc: Likewise.
32659         * tests/uninorm/test-u8-nfc.c: Likewise.
32660         * tests/uninorm/test-u8-nfd.c: Likewise.
32661         * tests/uninorm/test-u8-nfkc.c: Likewise.
32662         * tests/uninorm/test-u8-nfkd.c: Likewise.
32663         * tests/uninorm/test-u16-nfc.c: Likewise.
32664         * tests/uninorm/test-u16-nfd.c: Likewise.
32665         * tests/uninorm/test-u16-nfkc.c: Likewise.
32666         * tests/uninorm/test-u16-nfkd.c: Likewise.
32667         * tests/uninorm/test-u32-nfc.c: Likewise.
32668         * tests/uninorm/test-u32-nfc-big.c: Likewise.
32669         * tests/uninorm/test-u32-nfd.c: Likewise.
32670         * tests/uninorm/test-u32-nfd-big.c: Likewise.
32671         * tests/uninorm/test-u32-nfkc.c: Likewise.
32672         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
32673         * tests/uninorm/test-u32-nfkd.c: Likewise.
32674         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
32675         * tests/uninorm/test-u32-normalize-big.c: Likewise.
32676
32677 2010-03-27  Bruno Haible  <bruno@clisp.org>
32678
32679         Distinguish two kinds of module indicators.
32680         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
32681         gl_MODULE_INDICATOR.
32682         (gl_MODULE_INDICATOR): New macro.
32683         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32684         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
32685         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32686         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32687         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32688         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32689         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32690         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32691         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32692         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32693         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32694         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32695         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32696         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32697         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32698         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32699         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32700         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32701         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32702         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32703         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32704         * modules/cloexec (configure.ac): Likewise.
32705         * modules/getopt-gnu (configure.ac): Likewise.
32706         * modules/uninorm/u8-normalize (configure.ac): Likewise.
32707         * modules/uninorm/u16-normalize (configure.ac): Likewise.
32708         * modules/uninorm/u32-normalize (configure.ac): Likewise.
32709         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
32710
32711 2010-03-27  Bruno Haible  <bruno@clisp.org>
32712
32713         New module description field 'Comment'.
32714         * gnulib-tool: New option --extract-comment.
32715         (func_usage): Document it.
32716         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
32717         (func_get_comment): New function.
32718         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
32719
32720 2010-03-27  Bruno Haible  <bruno@clisp.org>
32721
32722         Addendum to 2010-02-07 commit.
32723         * gnulib-tool (func_usage): Document --extract-applicability option.
32724
32725 2010-03-27  Bruno Haible  <bruno@clisp.org>
32726
32727         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
32728         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
32729         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
32730         rather than link errors.
32731
32732 2010-03-27  Bruno Haible  <bruno@clisp.org>
32733
32734         Avoid side effects from tests-related modules on the compilation of lib.
32735         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
32736         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
32737         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
32738         parameter. Emit into AM_CPPFLAGS a definition of the designated C
32739         macro.
32740         (func_import): Define a witness macro. Assign it a value that depends
32741         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
32742         tests-related modules.
32743         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
32744         Reported by Jim Meyering.
32745
32746 2010-03-27  Bruno Haible  <bruno@clisp.org>
32747
32748         Factorize common .m4 code.
32749         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
32750         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
32751         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
32752         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
32753         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32754         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
32755         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
32756         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32757         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32758         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32759         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
32760         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32761         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32762         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32763         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32764         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
32765         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32766         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32767         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32768         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
32769         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
32770         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32771         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32772         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32773         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32774         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32775         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
32776         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
32777         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
32778         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32779         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32780         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32781
32782 2010-03-27  Bruno Haible  <bruno@clisp.org>
32783
32784         Fix a compilation error on Cygwin with g++ >= 4.3.
32785         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
32786         if it is undefined or if we alias it to chmod.
32787         (lstat): Don't warn about the use of this function if it is undefined
32788         or if we alias it to stat.
32789         Reported by Simon Josefsson.
32790
32791 2010-03-27  Bruno Haible  <bruno@clisp.org>
32792
32793         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
32794         * modules/getlogin (configure.ac): Update.
32795
32796         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
32797         * modules/getlogin_r (configure.ac): Update.
32798
32799         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
32800         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
32801         * modules/inet_ntop (configure.ac): Update.
32802
32803         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
32804         * modules/inet_pton (configure.ac): Update.
32805
32806         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
32807         * modules/mbslen (configure.ac): Update.
32808
32809         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
32810         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
32811         * modules/forkpty (configure.ac): Update.
32812         * modules/openpty (configure.ac): Update.
32813
32814 2010-03-26  Simon Josefsson  <simon@josefsson.org>
32815
32816         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
32817         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
32818
32819 2010-03-25  Eric Blake  <eblake@redhat.com>
32820
32821         maint: use pragma consistently across replacement headers
32822         * lib/ctype.in.h (system_header): Hoist for consistent placement.
32823         * lib/dirent.in.h (system_header): Likewise.
32824         * lib/errno.in.h (system_header): Likewise.
32825         * lib/float.in.h (system_header): Likewise.
32826         * lib/getopt.in.h (system_header): Likewise.
32827         * lib/iconv.in.h (system_header): Likewise.
32828         * lib/inttypes.in.h (system_header): Likewise.
32829         * lib/langinfo.in.h (system_header): Likewise.
32830         * lib/locale.in.h (system_header): Likewise.
32831         * lib/math.in.h (system_header): Likewise.
32832         * lib/netdb.in.h (system_header): Likewise.
32833         * lib/netinet_in.in.h (system_header): Likewise.
32834         * lib/pty.in.h (system_header): Likewise.
32835         * lib/sched.in.h (system_header): Likewise.
32836         * lib/se-selinux.in.h (system_header): Likewise.
32837         * lib/search.in.h (system_header): Likewise.
32838         * lib/spawn.in.h (system_header): Likewise.
32839         * lib/stdarg.in.h (system_header): Likewise.
32840         * lib/stdint.in.h (system_header): Likewise.
32841         * lib/string.in.h (system_header): Likewise.
32842         * lib/strings.in.h (system_header): Likewise.
32843         * lib/sys_file.in.h (system_header): Likewise.
32844         * lib/sys_ioctl.in.h (system_header): Likewise.
32845         * lib/sys_socket.in.h (system_header): Likewise.
32846         * lib/sys_times.in.h (system_header): Likewise.
32847         * lib/sys_utsname.in.h (system_header): Likewise.
32848         * lib/sys_wait.in.h (system_header): Likewise.
32849         * lib/sysexits.in.h (system_header): Likewise.
32850         * lib/unistd.in.h (system_header): Likewise.
32851         * lib/wctype.in.h (system_header): Likewise.
32852
32853         arpa/inet: fix mingw compilation warning
32854         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
32855         Reported by Matthew Bolte.
32856
32857 2010-03-25  Bruno Haible  <bruno@clisp.org>
32858
32859         Avoid collision between gnulib wrapper and libintl wrapper.
32860         * lib/printf.c (printf): Don't define if a printf wrapper is already
32861         defined in intl/printf.c.
32862         Reported by Michel Boaventura <michel@michelboaventura.com>.
32863
32864 2010-03-25  Bruno Haible  <bruno@clisp.org>
32865
32866         Use ANSI C.
32867         * lib/readutmp.h (getutent): Provide ANSI C prototype.
32868
32869 2010-03-25  Bruno Haible  <bruno@clisp.org>
32870
32871         Minor formatting changes.
32872         * lib/acosl.c: Insert space before function argument list.
32873         * lib/argz.c: Likewise.
32874         * lib/asinl.c: Likewise.
32875         * lib/expl.c: Likewise.
32876         * lib/gen-uni-tables.c: Likewise.
32877         * lib/gettext.h: Likewise.
32878         * lib/glthread/lock.h: Likewise.
32879         * lib/tanl.c: Likewise.
32880         * lib/uniname/uniname.c: Likewise.
32881         * tests/test-idpriv-drop.c: Likewise.
32882         * tests/test-idpriv-droptemp.c: Likewise.
32883         * tests/test-lock.c: Likewise.
32884         * tests/test-tls.c: Likewise.
32885         * lib/argp-help.c: Insert space before function-like macro argument
32886         list.
32887         * lib/memcmp.c: Likewise.
32888         * tests/test-base64.c: Likewise.
32889         * lib/localename.c: Insert space before sizeof's argument list.
32890         * lib/safe-alloc.h: Likewise.
32891         * lib/file-set.h: Insert space before macro argument list.
32892         * tests/test-argp.c: Likewise.
32893         * lib/argp-namefrob.h: Insert space before function parameter list.
32894         * lib/getaddrinfo.c: Likewise.
32895         * lib/netdb.in.h: Likewise.
32896         * lib/parse-duration.h: Likewise.
32897         * lib/parse-duration.c: Likewise.
32898         * lib/poll.c: Likewise.
32899         * lib/select.c: Likewise.
32900         * lib/trim.h: Likewise.
32901         * tests/test-usleep.c: Likewise.
32902         * lib/ldexpl.c: Insert space before function parameter list and before
32903         function argument list.
32904         * lib/logl.c: Likewise.
32905         * lib/sqrtl.c: Likewise.
32906         * lib/trim.c: Likewise.
32907         * lib/cosl.c: Use GNU style indentation. Insert space before function
32908         argument list.
32909         * lib/sinl.c: Likewise.
32910         * lib/tsearch.c: Insert space after 'for'.
32911         Reported by Jim Meyering.
32912
32913 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
32914
32915         * maint.mk (sc_Wundef_boolean): Check for the presence of the
32916         config header before grepping, as it's not present before
32917         autoreconf/configure are run.  Reported by Simon Josefsson.
32918
32919 2010-03-23  Bruno Haible  <bruno@clisp.org>
32920
32921         pt_chown: Make it work with automake < 1.11.
32922         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
32923         Reported by Simon Josefsson.
32924
32925 2010-03-23  Bruno Haible  <bruno@clisp.org>
32926
32927         pt_chown: Don't depend on GPLed modules.
32928         * lib/pt_chown.c: Don't include idpriv.h.
32929         (main): Don't drop privileges.
32930         * modules/pt_chown (Depends-on): Remove idpriv-drop.
32931         Reported by Simon Josefsson.
32932
32933 2010-03-24  Simon Josefsson  <simon@josefsson.org>
32934
32935         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
32936         suggestions from karl@freefriends.org (Karl Berry).
32937
32938 2010-03-22  Eric Blake  <eblake@redhat.com>
32939
32940         gethostname: further tweaks
32941         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
32942         are overriding gethostname.
32943         Suggested by Bruno Haible.
32944
32945 2010-03-21  Bruno Haible  <bruno@clisp.org>
32946
32947         Fix comments.
32948         * lib/forkpty.c (rpl_forkpty): Fix comment.
32949         * lib/openpty.c (rpl_openpty): Likewise.
32950         Reported by Eric Blake.
32951
32952 2010-03-22  Eric Blake  <eblake@redhat.com>
32953
32954         gethostname: fix build on mingw
32955         * lib/unistd.in.h (includes): Work around fact that mingw
32956         <winsock2.h> re-includes <unistd.h>, by avoiding any
32957         redeclarations if we are being included by <winsock2.h>.
32958         Reported by Matthias Bolte.
32959
32960 2010-03-21  Bruno Haible  <bruno@clisp.org>
32961
32962         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
32963         * lib/forkpty.c (forkpty): New replacement function, from glibc with
32964         modifications.
32965         * lib/pty.in.h (forkpty): Update declaration. Add comments.
32966         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
32967         provide the replacement.
32968         * modules/forkpty (Depends-on): Add openpty, login_tty.
32969         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
32970         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
32971         * doc/glibc-functions/forkpty.texi: More supported platforms.
32972         * config/srclist.txt: Add forkpty.c (commented).
32973
32974 2010-03-21  Bruno Haible  <bruno@clisp.org>
32975
32976         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
32977         (Makefile.am): Verify that PTY_LIB is defined.
32978
32979         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
32980
32981 2010-03-21  Bruno Haible  <bruno@clisp.org>
32982
32983         Tests for module 'login_tty'.
32984         * modules/login_tty-tests: New file.
32985         * tests/test-login_tty.c: New file.
32986
32987         New module 'login_tty'.
32988         * lib/login_tty.c: New file.
32989         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
32990         * modules/login_tty: New file.
32991         * doc/glibc-functions/login_tty.texi: Mention the new module.
32992
32993 2010-03-21  Bruno Haible  <bruno@clisp.org>
32994
32995         login_tty: Documentation.
32996         * doc/glibc-functions/login_tty.texi: New file.
32997         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
32998
32999 2010-03-21  Bruno Haible  <bruno@clisp.org>
33000
33001         pty: Consistent macro naming.
33002         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
33003         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
33004         * modules/pty (configure.ac): Update.
33005
33006 2010-03-21  Bruno Haible  <bruno@clisp.org>
33007
33008         Tests for openpty: Make stricter.
33009         * tests/test-openpty.c (main): Add test of canonical processing and
33010         erase.
33011         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
33012
33013         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
33014         * lib/openpty.c (openpty): New replacement function.
33015         * lib/pty.in.h: Include <termios.h>.
33016         (openpty): Update declaration. Add comments.
33017         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
33018         is not declared, arrange to provide the replacement. Check for _getpty
33019         and posix_openpt.
33020         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
33021         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
33022         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
33023         * modules/pty-tests (test_pty_c___LDADD): New variable.
33024         * doc/glibc-functions/openpty.texi: More supported platforms.
33025
33026 2010-03-21  Bruno Haible  <bruno@clisp.org>
33027
33028         setenv: Tweaks.
33029         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
33030         the test program.
33031         * doc/posix-functions/setenv.texi: Update platforms list.
33032
33033 2010-03-21  Bruno Haible  <bruno@clisp.org>
33034
33035         New module 'unlockpt'.
33036         * lib/unlockpt.c: New file, from glibc with modifications.
33037         * m4/unlockpt.m4: New file.
33038         * modules/unlockpt: New file.
33039         * lib/stdlib.in.h (unlockpt): New declaration.
33040         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
33041         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
33042         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
33043         HAVE_UNLOCKPT.
33044         * doc/posix-functions/unlockpt.texi: Mention the new module.
33045         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
33046         * config/srclist.txt: Add unlockpt.c (commented).
33047
33048 2010-03-21  Jim Meyering  <meyering@redhat.com>
33049
33050         maint.mk: prohibit inclusion of "intprops.h" without use
33051         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
33052
33053 2010-03-21  Bruno Haible  <bruno@clisp.org>
33054
33055         New module 'grantpt'.
33056         * lib/grantpt.c: New file, from glibc with modifications.
33057         * m4/grantpt.m4: New file.
33058         * modules/grantpt: New file.
33059         * lib/stdlib.in.h (grantpt): New declaration.
33060         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
33061         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
33062         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
33063         HAVE_GRANTPT.
33064         * doc/posix-functions/grantpt.texi: Mention the new module.
33065         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
33066         * config/srclist.txt: Add grantpt.c (commented).
33067
33068 2010-03-21  Bruno Haible  <bruno@clisp.org>
33069
33070         New module 'pt_chown'.
33071         * lib/pt_chown.c: New file, from glibc with modifications.
33072         * lib/pty-private.h: New file, from glibc with modifications.
33073         * modules/pt_chown: New file.
33074         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
33075
33076 2010-03-21  Bruno Haible  <bruno@clisp.org>
33077
33078         Tests for module 'ptsname'.
33079         * modules/ptsname-tests: New file.
33080         * tests/test-ptsname.c: New file.
33081
33082         New module 'ptsname'.
33083         * lib/ptsname.c: New file, from glibc with modifications.
33084         * m4/ptsname.m4: New file.
33085         * modules/ptsname: New file.
33086         * lib/stdlib.in.h (ptsname): New declaration.
33087         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
33088         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
33089         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
33090         HAVE_PTSNAME.
33091         * doc/posix-functions/ptsname.texi: Mention the new module.
33092         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
33093         * config/srclist.txt: Add ptsname.c (commented).
33094
33095 2010-03-21  Bruno Haible  <bruno@clisp.org>
33096
33097         Tests for module 'ttyname_r'.
33098         * modules/ttyname_r-tests: New file.
33099         * tests/test-ttyname_r.c: New file.
33100
33101         New module 'ttyname_r'.
33102         * lib/ttyname_r.c: New file.
33103         * m4/ttyname_r.m4: New file.
33104         * modules/ttyname_r: New file.
33105         * lib/unistd.in.h (ttyname_r): New declaration.
33106         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
33107         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
33108         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
33109         HAVE_TTYNAME_R.
33110         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
33111         * doc/posix-functions/ttyname_r.texi: Mention the new module.
33112
33113 2010-03-20  Bruno Haible  <bruno@clisp.org>
33114
33115         signal: Undefine macro definitions in C++ mode.
33116         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
33117         sigfillset): Undefine macro definitions from the system header in C++
33118         mode.
33119         Reported by John W. Eaton <jwe@gnu.org>.
33120
33121 2010-03-20  Bruno Haible  <bruno@clisp.org>
33122
33123         Ensure no #include statements inside extern "C" { ... }.
33124         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
33125         contain #include statements.
33126         * lib/time.in.h: Likewise.
33127
33128 2010-03-20  Bruno Haible  <bruno@clisp.org>
33129
33130         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
33131         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
33132         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
33133         Reported by John W. Eaton <jwe@gnu.org>.
33134
33135 2010-03-20  Bruno Haible  <bruno@clisp.org>
33136
33137         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
33138         Reported by Jim Meyering.
33139
33140 2010-03-20  Bruno Haible  <bruno@clisp.org>
33141
33142         pipe: Set errno upon failure.
33143         * lib/pipe.h: Specify that when -1 is returned, errno is set.
33144         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
33145         errno value in error message.
33146
33147 2010-03-20  Bruno Haible  <bruno@clisp.org>
33148             Jim Meyering  <meyering@redhat.com>
33149
33150         lchown: Avoid "unused variable" warning.
33151         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
33152
33153 2010-03-20  Bruno Haible  <bruno@clisp.org>
33154
33155         Work around unlink() bug on MacOS X 10.5.6.
33156         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
33157         attempting to unlink a parent directory.
33158         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
33159         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
33160         activate for the replacement function.
33161         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
33162
33163 2010-03-20  Bruno Haible  <bruno@clisp.org>
33164
33165         Fix link errors on Solaris 8.
33166         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
33167         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
33168
33169 2010-03-19  Jim Meyering  <meyering@redhat.com>
33170
33171         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
33172         The _LIBC implementation of build_range_exp correctly honors the
33173         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
33174         However, the non-_LIBC implementation would ignore that syntax-bit
33175         flag and return REG_ERANGE unconditionally.
33176         This change makes it honor that flag.
33177         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
33178         Make two pointer parameters "const".
33179         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
33180         (parse_bracket_exp): Update caller.
33181
33182         regex.m4: correct the reversed range endpoint ([b-a]) test
33183         * m4/regex.m4: When requiring that [b-a] evoke failure,
33184         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
33185         test pass once again for x86-based systems.
33186
33187 2010-03-19  Bruno Haible  <bruno@clisp.org>
33188
33189         scandir: Fix link error on Solaris 8.
33190         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
33191         macros.
33192
33193 2010-03-19  Bruno Haible  <bruno@clisp.org>
33194
33195         getusershell: Fix documentation.
33196         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
33197         module.
33198         * doc/glibc-functions/setusershell.texi: Likewise.
33199
33200         getusershell: Provide declaration, missing on Solaris 9.
33201         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
33202         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
33203         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
33204         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
33205         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33206         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
33207         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
33208         HAVE_GETUSERSHELL.
33209         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
33210
33211 2010-03-19  Bruno Haible  <bruno@clisp.org>
33212
33213         wctype: Provide iswblank function.
33214         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
33215         exists and is fine.
33216         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
33217         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
33218         * tests/test-wctype.c (main): Re-enable the iswblank tests.
33219         * doc/posix-functions/iswblank.texi: Update.
33220
33221 2010-03-19  Bruno Haible  <bruno@clisp.org>
33222
33223         Tests of module 'pty' in C++ mode.
33224         * modules/pty-tests: New file.
33225         * tests/test-pty-c++.cc: New file.
33226         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33227
33228 2010-03-19  Eric Blake  <eblake@redhat.com>
33229
33230         logb: fix documentation
33231         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
33232         1.5 declaration bug.
33233
33234         forkpty, openpty: prefer glibc's const-safe prototype
33235         * lib/forkpty.c (rpl_forkpty): New file.
33236         * lib/openpty.c (rpl_openpty): Likewise.
33237         * modules/forkpty (Files): Distribute it.
33238         * modules/openpty (Files): Likewise.
33239         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
33240         check...
33241         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
33242         replacement for for non-const BSD signature.
33243         * modules/pty (Makefile.am): Substitute witnesses.
33244         * lib/pty.in.h (forkpty, openpty): Declare replacements.
33245         * tests/test-forkpty.c: Update signature check.
33246         * tests/test-openpty.c: Likewise.
33247         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
33248         * doc/glibc-functions/openpty.texi (openpty): Likewise.
33249
33250         forkpty, openpty: split functions into new modules
33251         * modules/pty (Makefile.am): Substitute new witnesses.
33252         (Libraries): Move library detection...
33253         * modules/forkpty: ...into new module.
33254         * modules/openpty: Another new module.
33255         * modules/pty-tests: Rename and split...
33256         * modules/forkpty-tests: ...to this...
33257         * modules/openpty-tests: ...and this.
33258         * tests/test-pty.c: Rename and split...
33259         * tests/test-forkpty.c: ...to this...
33260         * tests/test-openpty.c: ...and this.
33261         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
33262         (gl_PTY): Split library searching...
33263         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
33264         (gl_FORKPTY, gl_OPENPTY): New macros.
33265         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
33266         * NEWS: Mention the split.
33267         * MODULES.html.sh (Misc): Document the modules.
33268         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
33269         * doc/glibc-functions/openpty.texi (openpty): Likewise.
33270
33271         pty: improve replacement header
33272         * lib/pty.in.h: New file.
33273         * modules/pty (Files): Ship it.
33274         (Makefile.am): Always build replacement.
33275         * m4/pty.m4: Rename...
33276         * m4/pty_h.m4: ...to this.
33277         (gl_PTY): Modernize setting of witness macros; update check of
33278         forkpty to take proper advantage of cache.
33279         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
33280
33281         getopt: avoid compiler warning
33282         * lib/getopt.c (attribute_hidden): Remove unused macro.
33283
33284 2010-03-18  Bruno Haible  <bruno@clisp.org>
33285
33286         Fix link errors on Solaris 8.
33287         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
33288         * modules/search-tests (test_search_c___LDADD): Likewise.
33289         * modules/signal-tests (test_signal_c___LDADD): Likewise.
33290         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
33291         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
33292         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
33293         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
33294         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
33295         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
33296
33297 2010-03-18  Bruno Haible  <bruno@clisp.org>
33298
33299         Fix bug introduced on 2010-03-14.
33300         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
33301         (gl_SPAWN_H): Require it.
33302         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
33303         Reported by Simon Josefsson.
33304
33305 2010-03-18  Bruno Haible  <bruno@clisp.org>
33306
33307         Fix typo introduced on 2009-12-31.
33308         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
33309         posix_spawn_file_actions_adddup2.
33310
33311 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
33312         and Eric Blake  <eblake@redhat.com>
33313
33314         test-vc-list-files-git: make more robust
33315         * tests/test-vc-list-files-git.sh: Unset problematic environment
33316         variables.  Chain commands together.
33317
33318 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
33319
33320         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
33321         `AC_CHECK_DECL' invocation.
33322
33323 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
33324
33325         * lib/inttostr.c (inttostr): Make sure the invocation of verify
33326         appears before executable statements. Suggested by Petr Sumbera
33327         <Petr.Sumbera@Sun.COM>.
33328
33329 2010-03-14  Bruno Haible  <bruno@clisp.org>
33330
33331         * tests/test-flock.c (test_exclusive): Comment out a test that causes
33332         portability problems. Instead use a simpler test.
33333         (main): Check that invalid arguments are rejected only on Linux.
33334
33335 2010-03-14  Bruno Haible  <bruno@clisp.org>
33336
33337         Fix bug introduced on 2009-12-31.
33338         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
33339         gl_PREREQ_SYS_H_WINSOCK2 always.
33340         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
33341         SYS_SOCKET_H variable.
33342         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
33343         Update comments.
33344         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
33345         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33346         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33347         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33348         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
33349
33350 2010-03-14  Bruno Haible  <bruno@clisp.org>
33351
33352         Fix values returned by sinl, cosl.
33353         * lib/trigl.h: Add specification comments.
33354         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
33355         that combines the values from the precomputed table with the values of
33356         the Chebyshev polynomials.
33357
33358 2010-03-14  Bruno Haible  <bruno@clisp.org>
33359
33360         Fix compilation error when modules 'posix_spawn[p]' are not used.
33361         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
33362         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
33363
33364 2010-03-14  Bruno Haible  <bruno@clisp.org>
33365
33366         Fix compilation error on mingw when module 'time_r' is not used.
33367         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
33368         is 1.
33369         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
33370         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
33371         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
33372         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
33373
33374 2010-03-14  Bruno Haible  <bruno@clisp.org>
33375
33376         Fix compilation error with Sun C.
33377         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
33378         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
33379         instead of GCC specific ULONG_LONG_MAX.
33380         * lib/xstrtoll.c: Likewise.
33381         * lib/xstrtoull.c: Likewise.
33382
33383 2010-03-13  Bruno Haible  <bruno@clisp.org>
33384
33385         Allow the user to disable C++ code and tests.
33386         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
33387         (gl_PROG_ANSI_CXX): Require it.
33388
33389 2010-03-13  Bruno Haible  <bruno@clisp.org>
33390
33391         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
33392         cases.
33393
33394 2010-03-13  Bruno Haible  <bruno@clisp.org>
33395
33396         Test that gnulib does not break the standard C++ headers.
33397         * tests/test-locale-c++2.cc: New file.
33398         * modules/locale-tests (Files): Add it.
33399         (Makefile.am): Compile it for test-locale-c++.
33400         * tests/test-math-c++2.cc: New file.
33401         * modules/math-tests (Files): Add it.
33402         (Makefile.am): Compile it for test-math-c++.
33403         * tests/test-signal-c++2.cc: New file.
33404         * modules/signal-tests (Files): Add it.
33405         (Makefile.am): Compile it for test-signal-c++.
33406         * tests/test-stdio-c++2.cc: New file.
33407         * modules/stdio-tests (Files): Add it.
33408         (Makefile.am): Compile it for test-stdio-c++.
33409         * tests/test-stdlib-c++2.cc: New file.
33410         * modules/stdlib-tests (Files): Add it.
33411         (Makefile.am): Compile it for test-stdlib-c++.
33412         * tests/test-string-c++2.cc: New file.
33413         * modules/string-tests (Files): Add it.
33414         (Makefile.am): Compile it for test-string-c++.
33415         * tests/test-time-c++2.cc: New file.
33416         * modules/time-tests (Files): Add it.
33417         (Makefile.am): Compile it for test-time-c++.
33418         Reported by John W. Eaton <jwe@gnu.org>.
33419
33420 2010-03-13  Bruno Haible  <bruno@clisp.org>
33421
33422         * gnulib-tool (func_usage): Clarify which options are available for
33423         --create-testdir and --create-megatestdir.
33424
33425 2010-03-13  Bruno Haible  <bruno@clisp.org>
33426
33427         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
33428         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
33429         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
33430         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
33431         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
33432         when appropriate.
33433         Reported by Jim Meyering.
33434
33435 2010-03-12  Simon Josefsson  <simon@josefsson.org>
33436
33437         * gnulib-tool (func_import): Explain origin of code.
33438
33439 2010-03-12  Bruno Haible  <bruno@clisp.org>
33440
33441         Fix problem with automake's definition of CXXLINK.
33442         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
33443         Reported by Simon Josefsson and Ludovic Courtès.
33444
33445 2010-03-12  Bruno Haible  <bruno@clisp.org>
33446
33447         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
33448         stable releases.
33449
33450 2010-03-11  Bruno Haible  <bruno@clisp.org>
33451
33452         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
33453         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
33454         whether the system provides one variant or multiple variants of the
33455         function.
33456         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
33457         C++ compilers.
33458         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
33459         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
33460         Reported by Jim Meyering.
33461
33462 2010-03-09  Simon Josefsson  <simon@josefsson.org>
33463
33464         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
33465
33466 2010-03-08  Bruno Haible  <bruno@clisp.org>
33467
33468         gnulib-tool: Add support for --libtool in --create-testdir.
33469         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
33470         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
33471
33472 2010-03-08  Eric Blake  <eblake@redhat.com>
33473
33474         gnulib-tool.texi: mention possibility of git submodule
33475         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
33476         submodules.
33477         * doc/.gitignore: Ignore another generated file.
33478
33479 2010-03-08  Karl Berry  <karl@gnu.org>
33480
33481         * doc/gnulib-tool.texi (VCS Issues): Mention third option
33482         of committing gnulib files while skipping others.
33483
33484 2010-03-07  Bruno Haible  <bruno@clisp.org>
33485
33486         Tests of module 'wctype' in C++ mode.
33487         * tests/test-wctype-c++.cc: New file.
33488         * modules/wctype-tests (Files): Add it and tests/signature.h.
33489         (Depends-on): Add ansi-c++-opt.
33490         (Makefile.am): Arrange to compile and run test-wctype-c++.
33491
33492         Tests of module 'wchar' in C++ mode.
33493         * tests/test-wchar-c++.cc: New file.
33494         * modules/wchar-tests (Files): Add it and tests/signature.h.
33495         (Depends-on): Add ansi-c++-opt.
33496         (Makefile.am): Arrange to compile and run test-wchar-c++.
33497         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
33498         gl_MODULE_INDICATOR.
33499
33500         Tests of module 'unistd' in C++ mode.
33501         * tests/test-unistd-c++.cc: New file.
33502         * modules/unistd-tests (Files): Add it and tests/signature.h.
33503         (Depends-on): Add ansi-c++-opt.
33504         (Makefile.am): Arrange to compile and run test-unistd-c++.
33505         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
33506         gl_MODULE_INDICATOR.
33507
33508         Tests of module 'time' in C++ mode.
33509         * tests/test-time-c++.cc: New file.
33510         * modules/time-tests (Files): Add it and tests/signature.h.
33511         (Depends-on): Add ansi-c++-opt.
33512         (Makefile.am): Arrange to compile and run test-time-c++.
33513         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33514
33515         Tests of module 'sys_time' in C++ mode.
33516         * tests/test-sys_time-c++.cc: New file.
33517         * modules/sys_time-tests (Files): Add it and tests/signature.h.
33518         (Depends-on): Add ansi-c++-opt.
33519         (Makefile.am): Arrange to compile and run test-sys_time-c++.
33520         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
33521         gl_MODULE_INDICATOR.
33522
33523         Tests of module 'sys_stat' in C++ mode.
33524         * tests/test-sys_stat-c++.cc: New file.
33525         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
33526         (Depends-on): Add ansi-c++-opt.
33527         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
33528         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
33529         gl_MODULE_INDICATOR.
33530
33531         Tests of module 'sys_socket' in C++ mode.
33532         * tests/test-sys_socket-c++.cc: New file.
33533         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
33534         (Depends-on): Add ansi-c++-opt.
33535         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
33536         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
33537         gl_MODULE_INDICATOR.
33538
33539         Tests of module 'sys_select' in C++ mode.
33540         * tests/test-sys_select-c++.cc: New file.
33541         * modules/sys_select-tests (Files): Add it and tests/signature.h.
33542         (Depends-on): Add ansi-c++-opt.
33543         (Makefile.am): Arrange to compile and run test-sys_select-c++.
33544         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
33545         gl_MODULE_INDICATOR.
33546
33547         Tests of module 'sys_ioctl' in C++ mode.
33548         * tests/test-sys_ioctl-c++.cc: New file.
33549         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
33550         (Depends-on): Add ansi-c++-opt.
33551         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
33552         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
33553         gl_MODULE_INDICATOR.
33554
33555         Tests of module 'string' in C++ mode.
33556         * tests/test-string-c++.cc: New file.
33557         * modules/string-tests (Files): Add it and tests/signature.h.
33558         (Depends-on): Add ansi-c++-opt.
33559         (Makefile.am): Arrange to compile and run test-string-c++.
33560         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
33561         gl_MODULE_INDICATOR.
33562
33563         Tests of module 'stdlib' in C++ mode.
33564         * tests/test-stdlib-c++.cc: New file.
33565         * modules/stdlib-tests (Files): Add it and tests/signature.h.
33566         (Depends-on): Add ansi-c++-opt.
33567         (Makefile.am): Arrange to compile and run test-stdlib-c++.
33568         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
33569         gl_MODULE_INDICATOR.
33570
33571         Tests of module 'stdio' in C++ mode.
33572         * tests/test-stdio-c++.cc: New file.
33573         * modules/stdio-tests (Files): Add it and tests/signature.h.
33574         (Depends-on): Add ansi-c++-opt.
33575         (Makefile.am): Arrange to compile and run test-stdio-c++.
33576         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
33577         gl_MODULE_INDICATOR.
33578
33579         Tests of module 'spawn' in C++ mode.
33580         * tests/test-spawn-c++.cc: New file.
33581         * modules/spawn-tests (Files): Add it and tests/signature.h.
33582         (Depends-on): Add ansi-c++-opt.
33583         (Makefile.am): Arrange to compile and run test-spawn-c++.
33584         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
33585         gl_MODULE_INDICATOR.
33586
33587         Tests of module 'signal' in C++ mode.
33588         * tests/test-signal-c++.cc: New file.
33589         * modules/signal-tests (Files): Add it and tests/signature.h.
33590         (Depends-on): Add ansi-c++-opt.
33591         (Makefile.am): Arrange to compile and run test-signal-c++.
33592         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
33593         gl_MODULE_INDICATOR.
33594
33595         Tests of module 'search' in C++ mode.
33596         * tests/test-search-c++.cc: New file.
33597         * modules/search-tests (Files): Add it and tests/signature.h.
33598         (Depends-on): Add ansi-c++-opt.
33599         (Makefile.am): Arrange to compile and run test-search-c++.
33600         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
33601         gl_MODULE_INDICATOR.
33602
33603         Tests of module 'math' in C++ mode.
33604         * tests/test-math-c++.cc: New file.
33605         * modules/math-tests (Files): Add it and tests/signature.h.
33606         (Depends-on): Add ansi-c++-opt.
33607         (Makefile.am): Arrange to compile and run test-math-c++.
33608         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33609
33610         Tests of module 'locale' in C++ mode.
33611         * tests/test-locale-c++.cc: New file.
33612         * modules/locale-tests (Files): Add it and tests/signature.h.
33613         (Depends-on): Add ansi-c++-opt.
33614         (Makefile.am): Arrange to compile and run test-locale-c++.
33615         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
33616         gl_MODULE_INDICATOR.
33617
33618         Tests of module 'langinfo' in C++ mode.
33619         * tests/test-langinfo-c++.cc: New file.
33620         * modules/langinfo-tests (Files): Add it and tests/signature.h.
33621         (Depends-on): Add ansi-c++-opt.
33622         (Makefile.am): Arrange to compile and run test-langinfo-c++.
33623         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
33624         gl_MODULE_INDICATOR.
33625
33626         Tests of module 'iconv-h' in C++ mode.
33627         * tests/test-iconv-h-c++.cc: New file.
33628         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
33629         (Depends-on): Add ansi-c++-opt.
33630         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
33631
33632         Tests of module 'glob' in C++ mode.
33633         * tests/test-glob-c++.cc: New file.
33634         * modules/glob-tests (Files): Add it.
33635         (Depends-on): Add ansi-c++-opt.
33636         (Makefile.am): Arrange to compile and run test-glob-c++.
33637
33638         Tests of module 'fcntl-h' in C++ mode.
33639         * tests/test-fcntl-h-c++.cc: New file.
33640         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
33641         (Depends-on): Add ansi-c++-opt.
33642         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
33643         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
33644         gl_MODULE_INDICATOR.
33645
33646         Tests of module 'dirent' in C++ mode.
33647         * tests/test-dirent-c++.cc: New file.
33648         * modules/dirent-tests (Files): Add it and tests/signature.h.
33649         (Depends-on): Add ansi-c++-opt.
33650         (Makefile.am): Arrange to compile and run test-dirent-c++.
33651         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
33652         gl_MODULE_INDICATOR.
33653
33654         New module 'ansi-c++-opt'.
33655         * modules/ansi-c++-opt: New file.
33656         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
33657
33658         Document C++ namespace mode.
33659         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
33660
33661         wctype: Avoid #define replacements in C++ mode.
33662         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
33663         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
33664         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
33665         In C++, define a namespaced alias symbol.
33666         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
33667         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
33668         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
33669         rule.
33670
33671         wchar: Avoid #define replacements in C++ mode.
33672         * lib/wchar.in.h: Include c++defs.h.
33673         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
33674         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
33675         symbol.
33676         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
33677         * modules/wchar (Depends-on): Add c++defs.
33678         (Makefile.am): Update wchar.h rule.
33679
33680         unistd: Avoid #define replacements in C++ mode.
33681         * lib/unistd.in.h: Include c++defs.h.
33682         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
33683         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
33684         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
33685         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
33686         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
33687         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
33688         symbol.
33689         (environ): Update.
33690         * modules/unistd (Depends-on): Add c++defs.
33691         (Makefile.am): Update unistd.h rule.
33692
33693         time: Avoid #define replacements in C++ mode.
33694         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
33695         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
33696         define a namespaced alias symbol.
33697         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
33698         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
33699         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
33700         * modules/time (Depends-on): Add c++defs, warn-on-use.
33701         (Makefile.am): Update time.h rule.
33702         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
33703         * modules/nanosleep (configure.ac): Likewise.
33704         * modules/strptime (configure.ac): Likewise.
33705         * modules/timegm (configure.ac): Likewise.
33706
33707         sys_time: Avoid #define replacements in C++ mode.
33708         * lib/sys_time.in.h: Include c++defs.h.
33709         (gettimeofday): In C++, define a namespaced alias symbol.
33710         * modules/sys_time (Depends-on): Add c++defs.
33711         (Makefile.am): Update sys/time.h rule.
33712
33713         sys_stat: Avoid #define replacements in C++ mode.
33714         * lib/sys_stat.in.h: Include c++defs.h.
33715         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
33716         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
33717         namespaced alias symbol.
33718         In C++, define a namespaced alias symbol.
33719         * modules/sys_stat (Depends-on): Add c++defs.
33720         (Makefile.am): Update sys/stat.h rule.
33721
33722         sys_socket: Avoid #define replacements in C++ mode.
33723         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
33724         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
33725         definitions also when the system has a <sys/socket.h>.
33726         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
33727         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
33728         In C++, define a namespaced alias symbol.
33729         * modules/sys_socket (Depends-on): Add c++defs.
33730         (Makefile.am): Update sys/socket.h rule.
33731
33732         sys_select: Avoid #define replacements in C++ mode.
33733         * lib/sys_select.in.h: Include c++defs.h. Enable the function
33734         definitions also when the system has a <sys/select.h>.
33735         (select): In C++, define a namespaced alias symbol.
33736         * modules/sys_select (Depends-on): Add c++defs.
33737         (Makefile.am): Update sys/select.h rule.
33738
33739         sys_ioctl: Avoid #define replacements in C++ mode.
33740         * lib/sys_ioctl.in.h: Include c++defs.h.
33741         (ioctl): In C++, define a namespaced alias symbol.
33742         * modules/sys_ioctl (Depends-on): Add c++defs.
33743         (Makefile.am): Update sys/ioctl.h rule.
33744
33745         string: Avoid #define replacements in C++ mode.
33746         * lib/string.in.h: Include c++defs.h.
33747         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
33748         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33749         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33750         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
33751         strsignal, strverscmp): In C++, define a namespaced alias symbol.
33752         * modules/string (Depends-on): Add c++defs.
33753         (Makefile.am): Update string.h rule.
33754
33755         stdlib: Avoid #define replacements in C++ mode.
33756         * lib/stdlib.in.h: Include c++defs.h.
33757         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
33758         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
33759         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
33760         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
33761         symbol.
33762         * modules/stdlib (Depends-on): Add c++defs.
33763         (Makefile.am): Update stdlib.h rule.
33764
33765         stdio: Avoid #define replacements in C++ mode.
33766         * lib/stdio.in.h: Include c++defs.h.
33767         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
33768         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
33769         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
33770         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
33771         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
33772         namespaced alias symbol.
33773         * modules/stdio (Depends-on): Add c++defs.
33774         (Makefile.am): Update stdio.h rule.
33775
33776         spawn: Avoid #define replacements in C++ mode.
33777         * lib/spawn.in.h: Include c++defs.h.
33778         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33779         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33780         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33781         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33782         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33783         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33784         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33785         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33786         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33787         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33788         In C++, define a namespaced alias symbol.
33789         * modules/spawn (Depends-on): Add c++defs.
33790         (Makefile.am): Update spawn.h rule.
33791
33792         signal: Avoid #define replacements in C++ mode.
33793         * lib/signal.in.h: Include c++defs.h.
33794         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33795         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
33796         namespaced alias symbol.
33797         * modules/signal (Depends-on): Add c++defs.
33798         (Makefile.am): Update signal.h rule.
33799
33800         search: Avoid #define replacements in C++ mode.
33801         * lib/search.in.h: Include c++defs.h.
33802         (_gl_search_compar_fn, _gl_search_action_fn): New types.
33803         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
33804         symbol.
33805         * modules/search (Depends-on): Add c++defs.
33806         (Makefile.am): Update search.h rule.
33807
33808         math: Avoid #define replacements in C++ mode.
33809         * lib/math.in.h: Include c++defs.h.
33810         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
33811         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
33812         trunc, truncl): In C++, define a namespaced alias symbol.
33813         * modules/math (Depends-on): Add c++defs.
33814         (Makefile.am): Update math.h rule.
33815
33816         locale: Avoid #define replacements in C++ mode.
33817         * lib/locale.in.h: Include c++defs.h.
33818         (duplocale): In C++, define a namespaced alias symbol.
33819         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
33820         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
33821         * modules/locale (Depends-on): Add c++defs.
33822         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
33823
33824         langinfo: Avoid #define replacements in C++ mode.
33825         * lib/langinfo.in.h: Include c++defs.h.
33826         (nl_langinfo): In C++, define a namespaced alias symbol.
33827         * modules/langinfo (Depends-on): Add c++defs.
33828         (Makefile.am): Update langinfo.h rule.
33829
33830         iconv-h: Avoid #define replacements in C++ mode.
33831         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
33832         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
33833         symbol.
33834         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
33835         whenever iconv is present.
33836         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
33837         (Makefile.am): Update iconv.h rule.
33838
33839         glob: Avoid #define replacements in C++ mode.
33840         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
33841         (_gl_glob_errfunc_fn): New type.
33842         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
33843         symbol.
33844         * modules/glob (Depends-on): Add c++defs, warn-on-use.
33845         (Makefile.am): Update glob.h rule.
33846
33847         fcntl-h: Avoid #define replacements in C++ mode.
33848         * lib/fcntl.in.h: Include c++defs.h.
33849         (fcntl, open, openat): In C++, define a namespaced alias symbol.
33850         * modules/fcntl-h (Depends-on): Add c++defs.
33851         (Makefile.am): Update fcntl.h rule.
33852
33853         dirent: Avoid #define replacements in C++ mode.
33854         * lib/dirent.in.h: Include c++defs.h.
33855         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
33856         namespaced alias symbol.
33857         (dirfd): Update declaration.
33858         * modules/dirent (Depends-on): Add c++defs.
33859         (Makefile.am): Update dirent.h rule.
33860
33861         ctype: Make it usable in C++ code.
33862         * lib/ctype.in.h: Include c++defs.h.
33863         (isblank): Declare as extern "C".
33864         * modules/ctype (Depends-on): Add c++defs.
33865         (Makefile.am): Update ctype.h rule.
33866
33867         New module 'c++defs'.
33868         * modules/c++defs: New file.
33869         * build-aux/c++defs.h: New file.
33870         Reported by John W. Eaton <jwe@gnu.org>.
33871
33872 2010-03-07  Bruno Haible  <bruno@clisp.org>
33873
33874         logb: Provide missing declaration for Cygwin.
33875         * lib/math.in.h (logb): New declaration.
33876         * m4/logb.m4: New file.
33877         * modules/logb (Files): Add m4/logb.m4.
33878         (Depends-on): Add math.
33879         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
33880         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
33881         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
33882         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
33883         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
33884
33885 2010-03-07  Bruno Haible  <bruno@clisp.org>
33886
33887         Fix test-cond link error.
33888         * tests/test-cond.c: Include <stdio.h>.
33889
33890 2010-03-07  Bruno Haible  <bruno@clisp.org>
33891
33892         Fix test-dirent-safer link error.
33893         * modules/dirent-safer-tests (Makefile.am): Define
33894         test_dirent_safer_LDADD.
33895
33896 2010-03-07  Bruno Haible  <bruno@clisp.org>
33897
33898         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
33899         among default module list.
33900
33901 2010-03-07  Bruno Haible  <bruno@clisp.org>
33902
33903         Fix link error on platforms with GNU libiconv.
33904         * modules/unistr/u8-strcoll-tests (Makefile): Define
33905         test_u8_strcoll_LDADD.
33906         * modules/unistr/u16-strcoll-tests (Makefile): Define
33907         test_u16_strcoll_LDADD.
33908         * modules/unistr/u32-strcoll-tests (Makefile): Define
33909         test_u32_strcoll_LDADD.
33910
33911 2010-03-07  Bruno Haible  <bruno@clisp.org>
33912
33913         Use POSIX declarations for socket functions.
33914         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
33915         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
33916         rpl_sendto): Change declaration to match POSIX.
33917         * lib/connect.c (rpl_connect): Likewise.
33918         * lib/accept.c (rpl_accept): Likewise.
33919         * lib/bind.c (rpl_bind): Likewise.
33920         * lib/getpeername.c (rpl_getpeername): Likewise.
33921         * lib/getsockname.c (rpl_getsockname): Likewise.
33922         * lib/recv.c (rpl_recv): Likewise.
33923         * lib/send.c (rpl_send): Likewise.
33924         * lib/recvfrom.c (rpl_recvfrom): Likewise.
33925         * lib/sendto.c (rpl_sendto): Likewise.
33926
33927 2010-03-06  Bruno Haible  <bruno@clisp.org>
33928
33929         Clarify access, euidaccess, faccessat.
33930         * doc/posix-functions/faccessat.texi: Mention security problem under
33931         "Other problems", not "Portability problems".
33932         * doc/posix-functions/access.texi: Likewise. Mention a related security
33933         problem.
33934         * doc/glibc-functions/euidaccess.texi: Mention security problems.
33935         * lib/euidaccess.c: Add comments about platforms.
33936         * lib/unistd.in.h (access, euidaccess): Add warnings.
33937
33938 2010-03-07  Bruno Haible  <bruno@clisp.org>
33939
33940         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
33941         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
33942         (POSIX_SPAWN_SETSCHEDULER): Likewise.
33943         (POSIX_SPAWN_USEVFORK): Define in a way that works when
33944         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
33945         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
33946         declare when POSIX_SPAWN_SETSCHEDULER is zero.
33947         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
33948         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
33949         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
33950         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
33951         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
33952         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
33953         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
33954         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
33955         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
33956         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
33957         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
33958         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
33959         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
33960         Likewise.
33961         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
33962         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
33963         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
33964         Likewise.
33965         * tests/test-spawn.c (main): Make it work when
33966         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
33967
33968 2010-03-07  Bruno Haible  <bruno@clisp.org>
33969
33970         Fix incorrect Makefile.am generation in German locale.
33971         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33972         Execute sed command with character range in C locale.
33973
33974 2010-03-06  Bruno Haible  <bruno@clisp.org>
33975
33976         Tests for module 'iconv-h'.
33977         * modules/iconv-h-tests: New file.
33978         * tests/test-iconv-h.c: New file.
33979
33980         New module 'iconv-h'.
33981         * modules/iconv-h: New file.
33982         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
33983         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
33984         (configure.ac): Remove gl_ICONV_H.
33985         (Makefile.am): Remove rule for iconv.h.
33986
33987 2010-03-06  Bruno Haible  <bruno@clisp.org>
33988
33989         More consistent naming of *.m4 files.
33990         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
33991         * modules/wctype (Files): Update.
33992
33993         More consistent naming of *.m4 files.
33994         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
33995         * modules/wchar (Files): Update.
33996
33997 2010-03-06  Jim Meyering  <meyering@redhat.com>
33998
33999         euidaccess: relax license to LGPLv2+
34000         * modules/euidaccess (License): Relax to LGPLv2+.
34001
34002 2010-03-06  Bruno Haible  <bruno@clisp.org>
34003
34004         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
34005         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
34006         (Makefile.am): Augment lib_SOURCES instead.
34007
34008 2010-03-04  Jim Meyering  <meyering@redhat.com>
34009
34010         utime: remove obsolete module
34011         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
34012         unnecessary for years, and has been marked as obsolete for 10 months.
34013         * modules/utime: Remove file.
34014         * lib/utime.c: Remove file.
34015         * m4/utime.m4: Remove file.
34016         * m4/utimes-null.m4: Remove file.
34017         * doc/posix-functions/utime.texi (utime): Remove reference to
34018         the module.  Move the sole "fixed by gnulib" item into the
34019         "problems not fixed by Gnulib" list.
34020         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
34021
34022 2010-03-05  Simon Josefsson  <simon@josefsson.org>
34023
34024         * modules/exit (License): Relax license to LGPLv2+.
34025         (Status): Mark as obsolete.
34026         * NEWS: Mention deprecated 'exit' module.
34027         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
34028         of now obsolete 'exit'.
34029
34030 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34031
34032         fts-lgpl: remove unused module
34033         * modules/fts-lgpl: Remove.
34034         * MODULES.html.sh (func_all_modules): Adjust.
34035         * check-module (find_included_lib_files): Adjust.
34036         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
34037
34038 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
34039
34040         copy-acl: enhance Solaris ACL error handling
34041         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
34042         * lib/set-mode-acl.c (qset_acl): Likewise.
34043
34044 2010-03-02  Bruno Haible  <bruno@clisp.org>
34045
34046         spawn: Don't override the system defined values on FreeBSD 8.
34047         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
34048         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
34049         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
34050         if HAVE_POSIX_SPAWN is 1.
34051         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
34052
34053 2010-03-01  Bruno Haible  <bruno@clisp.org>
34054
34055         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
34056         regarding Automake.
34057
34058 2010-02-25  Bruno Haible  <bruno@clisp.org>
34059
34060         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
34061         * gnulib-tool: Define 'echo' as a function only before the ksh alias
34062         setting, not afterwards.
34063         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
34064
34065 2010-02-24  Eric Blake  <eblake@redhat.com>
34066
34067         bootstrap, git-version-gen: use timestamp
34068         * build-aux/git-version-gen (scriptversion): Force UTC.
34069         * build-aux/bootstrap (scriptversion): New variable.
34070
34071         bootstrap: allow older git
34072         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
34073         older than 1.6.4.  Requested by the libvirt project.
34074
34075 2010-02-23  Eric Blake  <eblake@redhat.com>
34076
34077         warn-on-use: work with old autoconf
34078         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
34079         AS_VAR semantics of autoconf 2.60.
34080         Reported by Bruno Haible.
34081
34082         bootstrap: improve some comments
34083         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
34084         clarification comments.
34085
34086         gettimeofday: provide correct function
34087         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
34088         when replacement is declared, otherwise provide gettimeofday.
34089         Reported by Michael Goffioul.
34090
34091 2010-02-23  Jim Meyering  <meyering@redhat.com>
34092
34093         lib-ignore: relax license to "unlimited", not LGPLv2+
34094         * modules/lib-ignore (License): Relax to "unlimited".
34095
34096 2010-02-23  Jim Meyering  <meyering@redhat.com>
34097
34098         lib-ignore: relax license to LGPLv2+
34099         * modules/lib-ignore (License): Relax to LGPLv2+.
34100
34101 2010-02-22  Eric Blake  <eblake@redhat.com>
34102
34103         lseek: avoid bash 3.2 broken pipe bug
34104         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
34105         warning from bash 3.2.
34106         Reported by Ben Pfaff, with analysis from Bruno Haible.
34107
34108         bootstrap: support non-FSF copyright holder
34109         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
34110         bootstrap.conf override of COPYRIGHT_HOLDER.
34111         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
34112
34113         bootstrap: interoperate with gettext 0.14.1
34114         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
34115
34116         bootstrap: allow for alternate submodule location
34117         * build-aux/bootstrap (gnulib_path): New variable; use instead of
34118         hardcoding submodule location.
34119         (gnulib_mk): Allow direct use of Makefile.am.
34120
34121         bootstrap: use GNULIB_SRCDIR to reduce disk usage
34122         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
34123         rather than reconfiguring where the submodule points.
34124
34125         gettimeofday: restore support for platforms that lack function
34126         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
34127         replacement if function is missing.
34128         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
34129         * modules/sys_time (Makefile.am): Substitute it.
34130         * lib/sys_time.in.h (gettimeofday): Check it.
34131         Reported by Michael Goffioul.
34132
34133 2010-02-21  Bruno Haible  <bruno@clisp.org>
34134
34135         * lib/stdio.in.h (obstack_printf): Fix typo.
34136
34137 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
34138
34139         vc-list-files: use bzr ls's -R option
34140         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
34141         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
34142
34143 2010-02-21  Jim Meyering  <meyering@redhat.com>
34144
34145         init.sh: fix EXEEXT shims to work also for names like test-prog
34146         * tests/init.sh: Re-exec a better shell, when needed.
34147         If the current shell lacks support for posix $(...), an init.sh-using
34148         test will now try to find a shell that supports that.  If EXEEXT is
34149         nonempty, we also require support for hyphen-in-alias-name and shell
34150         substitutions like ${var#glob}.  Failure to find such a shell results
34151         in a skipped test.
34152
34153 2010-02-21  Bruno Haible  <bruno@clisp.org>
34154
34155         Really work around around "broken pipe" error message from bash 3.2.
34156         * gnulib-tool (func_reset_sigpipe): Remove function.
34157         (echo): In bash 3.2, define to a function that uses printf.
34158         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
34159
34160 2010-02-20  Bruno Haible  <bruno@clisp.org>
34161
34162         Restore support for automake 1.9.6 with autoconf 2.61.
34163         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
34164         Reported by James Youngman <jay@gnu.org>.
34165
34166 2010-02-20  Bruno Haible  <bruno@clisp.org>
34167
34168         Improve *printf warning condition.
34169         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
34170         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
34171         and the function is overridden due to SIGPIPE emulation.
34172
34173 2010-02-20  Bruno Haible  <bruno@clisp.org>
34174
34175         * lib/stdio.in.h: Tweak comments.
34176
34177 2010-02-19  Bruno Haible  <bruno@clisp.org>
34178
34179         Make it easier to find modules. New gnulib-tool option '--find'.
34180         * gnulib-tool: New option --find.
34181         (func_usage): Document it.
34182         (func_sanitize_modulelist): New function, extracted from
34183         func_all_modules.
34184         (func_all_modules): Invoke it.
34185         * doc/gnulib-tool.texi (Which modules?): New node.
34186
34187 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
34188
34189         * lib/sys_select.in.h: Provide select replacement even if
34190         sys/select.h exists on a system, for Interix.
34191
34192 2010-02-18  Jim Meyering  <meyering@redhat.com>
34193
34194         init.sh: don't use $(...) just yet
34195         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
34196         to accommodate e.g., Solaris' /bin/sh.
34197
34198 2010-02-17  Bruno Haible  <bruno@clisp.org>
34199
34200         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
34201         Reported by Ludovic Courtès <ludo@gnu.org>.
34202
34203 2010-02-16  Simon Josefsson  <simon@josefsson.org>
34204
34205         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
34206         linking with -lintl.
34207
34208 2010-02-17  Simon Josefsson  <simon@josefsson.org>
34209
34210         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
34211         if not provided by the system's netdb.h.  Reported by
34212         ludo@gnu.org (Ludovic Courtès).
34213
34214 2010-02-15  Jim Meyering  <meyering@redhat.com>
34215
34216         init.sh: improve portability and efficiency
34217         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
34218         "dummy" in a for loop.
34219         Use '!', not '^' to select the complement of a character set used
34220         in a "case" statement.
34221         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
34222         Suggestions from Eric Blake.
34223
34224         init.sh: automatically accommodate programs with the .exe suffix
34225         Automatically arrange for an invocation of "prog" to execute the
34226         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
34227         may use the simpler "prog", yet still work when built on a system
34228         that requires specifying the added suffix.
34229         Do this by constructing a function named "prog" that invokes
34230         "prog.exe" for each .exe file in selected directories.
34231         * tests/init.sh (find_exe_basenames_): New function.
34232         (create_exe_shim_functions_): New function.
34233         (path_prepend_): Use it.
34234
34235         maint.mk: mark syntax-check sc_*.m rules as .PHONY
34236         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
34237         "make -t syntax-check" doesn't create a ton of sc_*.m files.
34238
34239 2010-02-14  Jim Meyering  <meyering@redhat.com>
34240
34241         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
34242         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
34243         (sc_prohibit_hash_pjw_without_use): New rule.
34244
34245         maint.mk: allow the default upload destination dir to be overridden
34246         * top/maint.mk (upload_dest_dir_): Define with a default that
34247         preserves the status quo.
34248         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
34249         Reported by Peter Simons.
34250
34251         maint.mk: prohibit inclusion of "hash.h" without_use
34252         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
34253
34254 2010-02-10  Jim Meyering  <meyering@redhat.com>
34255
34256         maint.mk: prohibit inclusion of "ignore-value.h" without_use
34257         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
34258
34259 2010-02-09  Eric Blake  <ebb9@byu.net>
34260         and Bruno Haible  <bruno@clisp.org>
34261
34262         obstack-printf-posix: ensure declaration
34263         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
34264         extracted from gl_FUNC_OBSTACK_PRINTF.
34265         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
34266         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
34267         Likewise.
34268         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
34269         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
34270         0.
34271
34272 2010-02-08  Bruno Haible  <bruno@clisp.org>
34273
34274         gnulib-tool: Fix typo in 2010-02-07 commit.
34275         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
34276         Reported by Eric Blake.
34277
34278 2010-02-07  Bruno Haible  <bruno@clisp.org>
34279
34280         gnulib-tool: Fix up caching patches.
34281         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
34282         option --no-cache. Use associative arrays when supported by the shell.
34283         (sed_comments): New variable.
34284         (modcache): Renamed from do_cache.
34285         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
34286         abbreviate unnecessarily.
34287         (have_associative): New variable.
34288         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
34289         way also for ksh and zsh.
34290         (func_init_sed_convert_to_cache_statements): New function, extracted
34291         from func_cache_lookup_module. Add support for associative arrays.
34292         Don't set the c_MODULE_cached variable here. Ignore all lines before
34293         the first field header. Remove only the final newline, not all trailing
34294         newlines. Support empty fields correctly. Limit the use of 'eval' to
34295         assignments.
34296         (func_get_description, func_get_status, func_get_notice,
34297         func_get_applicability, func_get_filelist, func_get_dependencies,
34298         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
34299         func_get_automake_snippet, func_get_include_directive,
34300         func_get_link_directive, func_get_license, func_get_maintainer):
34301         Update documentation. List the unoptimized code first. Add support for
34302         associative arrays. Limit the use of 'eval' to assignments.
34303         (func_get_applicability): Undo stylistic pessimisations.
34304         (func_get_automake_snippet, func_get_include_directive): Reduce code
34305         duplication.
34306         (func_modules_transitive_closure, func_modules_add_dummy,
34307         func_modules_notice, func_modules_to_filelist, func_add_file,
34308         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
34309         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
34310         func_create_testdir, func_create_megatestdir): Update documentation.
34311
34312 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34313
34314         * gnulib-tool (func_cache_lookup_module): Store the module name
34315         belonging to the cache variable; error out if two different
34316         module names map to the same cache variable name.
34317
34318 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34319
34320         gnulib-tool: Make caching optional.
34321         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
34322         Update matching short versions of --no-changelog.
34323         (func_usage): Update.
34324         (sed_extract_cache_prog): Renamed from ...
34325         (sed_extract_prog): ... this; revert to old extraction script.
34326         (func_get_description, func_get_status)
34327         (func_get_notice, func_get_applicability, func_get_filelist)
34328         (func_get_dependencies, func_get_autoconf_early_snippet)
34329         (func_get_autoconf_snippet, func_get_automake_snippet)
34330         (func_get_include_directive, func_get_link_directive)
34331         (func_get_license, func_get_maintainer): If $do_cache is false,
34332         use old, non-caching extraction scripts.
34333         Suggestion by Bruno Haible.
34334
34335 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34336
34337         gnulib-tool: cache module metainformation.
34338         * gnulib-tool (sed_extract_prog): Match newline before each
34339         header, and rewrite header to a shell variable suffix.
34340         (func_cache_var, func_cache_lookup_module): New functions,
34341         to turn a module name into a cache variable prefix, and to
34342         look up and cache module metainformation.
34343         (func_get_description, func_get_status)
34344         (func_get_notice, func_get_applicability, func_get_filelist)
34345         (func_get_dependencies, func_get_autoconf_early_snippet)
34346         (func_get_autoconf_snippet, func_get_automake_snippet)
34347         (func_get_include_directive, func_get_link_directive)
34348         (func_get_license, func_get_maintainer): Use
34349         func_cache_lookup_module.
34350
34351 2010-02-07  Bruno Haible  <bruno@clisp.org>
34352
34353         fnctl: Fix missing dependency.
34354         * modules/fcntl (Depends-on): Add getdtablesize.
34355         Reported by John W. Eaton <jwe@gnu.org>.
34356
34357 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
34358
34359         Argp: fix recognition of short alias options.
34360
34361         * lib/argp-parse.c (convert_options): Fix improper use of
34362         `|' between character values.
34363         * tests/test-argp.c (group1_option): New alias option
34364         --read (-r).
34365         (group1_parser): Special handling for 'r'.
34366         (test15): New test case.
34367         (test_fun): Add test15.
34368         * tests/test-argp-2.sh: Update expected --help and --usage
34369         outputs.
34370
34371 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
34372
34373         * tests/test-argp.c: Fix indentation.
34374
34375 2010-02-04  Eric Blake  <ebb9@byu.net>
34376
34377         gettimeofday: expose type of second argument
34378         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
34379         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
34380         * tests/test-gettimeofday.c: Use it to silence warning.
34381         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
34382         the issue.
34383
34384 2010-02-03  Jim Meyering  <meyering@redhat.com>
34385
34386         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
34387         * lib/regcomp.c (TYPE_SIGNED): Define.
34388         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
34389
34390         regcomp.c: avoid a new -Wshadow warning
34391         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
34392
34393 2010-02-01  Jim Meyering  <meyering@redhat.com>
34394
34395         removing useless parentheses in cpp #define directives
34396         For motivation, see commit c0221df4, "define STREQ(a,b)
34397         consistently, removing useless parentheses"
34398         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
34399         * lib/mountlist.c (MNT_IGNORE): Likewise.
34400         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
34401
34402 2010-02-01  Eric Blake  <ebb9@byu.net>
34403
34404         sys_time: use link-warning
34405         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
34406         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
34407         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
34408         * modules/sys_time (Depends-on): Add warn-on-use.
34409         (Makefile.am): Always build replacement.
34410         (configure.ac): Update substitutions.
34411         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
34412         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
34413         bother with SYS_TIME_H.
34414         * modules/gettimeofday (configure.ac): Declare indicator.
34415         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
34416         in use.
34417
34418         closein-tests: silence compiler warning
34419         * tests/test-closein.c (main): Ignore fread result.
34420         * modules/closein-tests (Depends-on): Add ignore-value.
34421
34422         tests: silence warning about system return
34423         * tests/test-areadlink-with-size.c (main): Ignore system result.
34424         * tests/test-areadlink.c (main): Likewise.
34425         * tests/test-areadlinkat-with-size.c (main): Likewise.
34426         * tests/test-areadlinkat.c (main): Likewise.
34427         * tests/test-canonicalize-lgpl.c (main): Likewise.
34428         * tests/test-canonicalize.c (main): Likewise.
34429         * tests/test-chown.c (main): Likewise.
34430         * tests/test-fchownat.c (main): Likewise.
34431         * tests/test-fdutimensat.c (main): Likewise.
34432         * tests/test-fstatat.c (main): Likewise.
34433         * tests/test-futimens.c (main): Likewise.
34434         * tests/test-lchown.c (main): Likewise.
34435         * tests/test-link.c (main): Likewise.
34436         * tests/test-linkat.c (main): Likewise.
34437         * tests/test-lstat.c (main): Likewise.
34438         * tests/test-mkdir.c (main): Likewise.
34439         * tests/test-mkdirat.c (main): Likewise.
34440         * tests/test-mkfifo.c (main): Likewise.
34441         * tests/test-mkfifoat.c (main): Likewise.
34442         * tests/test-mknod.c (main): Likewise.
34443         * tests/test-readlink.c (main): Likewise.
34444         * tests/test-remove.c (main): Likewise.
34445         * tests/test-rename.c (main): Likewise.
34446         * tests/test-renameat.c (main): Likewise.
34447         * tests/test-rmdir.c (main): Likewise.
34448         * tests/test-symlink.c (main): Likewise.
34449         * tests/test-symlinkat.c (main): Likewise.
34450         * tests/test-unlink.c (main): Likewise.
34451         * tests/test-unlinkat.c (main): Likewise.
34452         * tests/test-utimens.c (main): Likewise.
34453         * tests/test-utimensat.c (main): Likewise.
34454         * modules/areadlink-tests (Depends-on): Add ignore-value.
34455         * modules/areadlink-with-size-tests (Depends-on): Likewise.
34456         * modules/areadlinkat-tests (Depends-on): Likewise.
34457         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
34458         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34459         * modules/canonicalize-tests (Depends-on): Likewise.
34460         * modules/chown-tests (Depends-on): Likewise.
34461         * modules/fdutimensat-tests (Depends-on): Likewise.
34462         * modules/futimens-tests (Depends-on): Likewise.
34463         * modules/lchown-tests (Depends-on): Likewise.
34464         * modules/link-tests (Depends-on): Likewise.
34465         * modules/linkat-tests (Depends-on): Likewise.
34466         * modules/lstat-tests (Depends-on): Likewise.
34467         * modules/mkdir-tests (Depends-on): Likewise.
34468         * modules/mkfifo-tests (Depends-on): Likewise.
34469         * modules/mkfifoat-tests (Depends-on): Likewise.
34470         * modules/mknod-tests (Depends-on): Likewise.
34471         * modules/openat-tests (Depends-on): Likewise.
34472         * modules/readlink-tests (Depends-on): Likewise.
34473         * modules/remove-tests (Depends-on): Likewise.
34474         * modules/rename-tests (Depends-on): Likewise.
34475         * modules/renameat-tests (Depends-on): Likewise.
34476         * modules/rmdir-tests (Depends-on): Likewise.
34477         * modules/symlink-tests (Depends-on): Likewise.
34478         * modules/symlinkat-tests (Depends-on): Likewise.
34479         * modules/unlink-tests (Depends-on): Likewise.
34480         * modules/utimens-tests (Depends-on): Likewise.
34481         * modules/utimensat-tests (Depends-on): Likewise.
34482
34483 2010-01-31  Bruno Haible  <bruno@clisp.org>
34484
34485         Perform the same test for many <math.h> functions.
34486         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
34487         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
34488         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
34489         of gl_MATHFUNC.
34490         * modules/acos (configure.ac): Likewise.
34491         * modules/asin (configure.ac): Likewise.
34492         * modules/atan (configure.ac): Likewise.
34493         * modules/atan2 (configure.ac): Likewise.
34494         * modules/cbrt (configure.ac): Likewise.
34495         * modules/copysign (configure.ac): Likewise.
34496         * modules/cos (configure.ac): Likewise.
34497         * modules/cosh (configure.ac): Likewise.
34498         * modules/erf (configure.ac): Likewise.
34499         * modules/erfc (configure.ac): Likewise.
34500         * modules/exp (configure.ac): Likewise.
34501         * modules/fmod (configure.ac): Likewise.
34502         * modules/hypot (configure.ac): Likewise.
34503         * modules/j0 (configure.ac): Likewise.
34504         * modules/j1 (configure.ac): Likewise.
34505         * modules/jn (configure.ac): Likewise.
34506         * modules/lgamma (configure.ac): Likewise.
34507         * modules/log (configure.ac): Likewise.
34508         * modules/log10 (configure.ac): Likewise.
34509         * modules/log1p (configure.ac): Likewise.
34510         * modules/pow (configure.ac): Likewise.
34511         * modules/remainder (configure.ac): Likewise.
34512         * modules/sin (configure.ac): Likewise.
34513         * modules/sinh (configure.ac): Likewise.
34514         * modules/tan (configure.ac): Likewise.
34515         * modules/tanh (configure.ac): Likewise.
34516         * modules/y0 (configure.ac): Likewise.
34517         * modules/y1 (configure.ac): Likewise.
34518         * modules/yn (configure.ac): Likewise.
34519         Suggested by Paolo Bonzini.
34520
34521 2010-01-31  Bruno Haible  <bruno@clisp.org>
34522
34523         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
34524
34525 2010-01-31  Bruno Haible  <bruno@clisp.org>
34526
34527         Work around getdelim() bug on FreeBSD 8.0.
34528         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
34529         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
34530         not work.
34531         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
34532         is 1.
34533         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
34534         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
34535         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
34536         a non-zero size.
34537         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
34538
34539 2010-01-31  Bruno Haible  <bruno@clisp.org>
34540
34541         Work around getline() bug on FreeBSD 8.0.
34542         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
34543         and a non-zero size.
34544         * tests/test-getline.c (main): Likewise.
34545         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
34546         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
34547
34548 2010-01-28  Eric Blake  <ebb9@byu.net>
34549
34550         regex: fix build failure
34551         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
34552         platforms.
34553
34554 2010-01-28  Jim Meyering  <meyering@redhat.com>
34555
34556         regex: do not ignore memory allocation failure
34557         * lib/regex_internal.c (create_cd_newstate): Detect
34558         re_node_set_init_copy failure.   Extracted from glibc commit
34559         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34560
34561         regex: sync more white-space changes from libc
34562         * lib/regex_internal.c: White-space only changes.
34563         * lib/regexec.c: Likewise.
34564
34565         regex: add many uses of __attribute_warn_unused_result__
34566         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
34567         * lib/regexec.c: Likewise.
34568         Extracted from a messy glibc commit.
34569
34570         regcomp.c: spelling and merge-artifact from glibc
34571         * lib/regcomp.c: Merge remainder of glibc's
34572         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34573
34574         regcomp.c: sync white-space changes from glibc
34575         * lib/regcomp.c: Merge to accommodate white space
34576         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34577
34578         regcomp.c: do not ignore internal return values
34579         * lib/regcomp.c: Do not ignore internal return values.
34580         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
34581         but without its white-space changes and spelling fixes.
34582
34583         regex_internal.h: define __attribute_warn_unused_result__
34584         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
34585
34586         maint: add a syntax-check rule to check for vulnerable Makefile.in
34587         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
34588
34589 2010-01-27  Jim Meyering  <meyering@redhat.com>
34590
34591         ncftpput-ftp: clean up spaces
34592         * build-aux/ncftpput-ftp: Make Copyright line consistent.
34593         Remove trailing blanks.
34594
34595 2010-01-27  Simon Josefsson  <simon@josefsson.org>
34596
34597         * build-aux/git-version-gen: Fix copyright statement.
34598         * build-aux/gnupload: Likewise.
34599         * tests/test-arcfour.c: Likewise.
34600         * tests/test-arctwo.c: Likewise.
34601         * tests/test-count-one-bits.c: Likewise.
34602         * tests/test-crc.c: Likewise.
34603         * tests/test-des.c: Likewise.
34604         * tests/test-gc-arcfour.c: Likewise.
34605         * tests/test-gc-arctwo.c: Likewise.
34606         * tests/test-gc-des.c: Likewise.
34607         * tests/test-gc-hmac-md5.c: Likewise.
34608         * tests/test-gc-hmac-sha1.c: Likewise.
34609         * tests/test-gc-md2.c: Likewise.
34610         * tests/test-gc-md4.c: Likewise.
34611         * tests/test-gc-md5.c: Likewise.
34612         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34613         * tests/test-gc-rijndael.c: Likewise.
34614         * tests/test-gc-sha1.c: Likewise.
34615         * tests/test-gc.c: Likewise.
34616         * tests/test-gethostname.c: Likewise.
34617         * tests/test-gettimeofday.c: Likewise.
34618         * tests/test-hash.c: Likewise.
34619         * tests/test-hmac-md5.c: Likewise.
34620         * tests/test-hmac-sha1.c: Likewise.
34621         * tests/test-md2.c: Likewise.
34622         * tests/test-md4.c: Likewise.
34623         * tests/test-md5.c: Likewise.
34624         * tests/test-memchr.c: Likewise.
34625         * tests/test-memchr2.c: Likewise.
34626         * tests/test-memcmp.c: Likewise.
34627         * tests/test-memmem.c: Likewise.
34628         * tests/test-memrchr.c: Likewise.
34629         * tests/test-rawmemchr.c: Likewise.
34630         * tests/test-read-file.c: Likewise.
34631         * tests/test-rijndael.c: Likewise.
34632         * tests/test-sockets.c: Likewise.
34633         * tests/test-strchrnul.c: Likewise.
34634         * tests/test-strstr.c: Likewise.
34635         * tests/test-strtod.c: Likewise.
34636         * build-aux/ncftpput-ftp: Likewise.
34637
34638 2010-01-26  Eric Blake  <ebb9@byu.net>
34639
34640         ignore-value: update recommended header name
34641         * modules/ignore-value (Include): Only use <> for headers that
34642         exist in glibc.
34643
34644 2010-01-26  Jim Meyering  <meyering@redhat.com>
34645
34646         test-userspec.c: avoid compiler warnings
34647         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
34648         and "initialization discards qualifiers..." warnings.
34649         Put the first "uid" in its own scope, and make char* members "const".
34650
34651 2010-01-25  Bruno Haible  <bruno@clisp.org>
34652
34653         gnulib-tool: Make warning diagnostics consistent.
34654         * gnulib-tool (func_warning): New function.
34655         Use it everywhere where gnulib-tool produces output to stderr and it is
34656         not a fatal error.
34657
34658 2010-01-25  Bruno Haible  <bruno@clisp.org>
34659
34660         Fix test dependencies.
34661         * modules/xstrtol-tests (Depends-on): Add inttypes.
34662         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
34663
34664 2010-01-25 Pádraig Brady <P@draigBrady.com>
34665
34666         syntax-check: detect incorrect boolean macro values in config.h
34667         * modules/maintainer-makefile (configure.ac): Parameterize the location
34668         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
34669         The logic is from Eric Blake and the location indicated by Jim Meyering.
34670         Note the more natural CONFIG_HEADER name is prohibited by automake
34671         for backwards compatibility reasons.
34672         * top/maint.mk (sc_Wundef_boolean): New rule.
34673
34674 2010-01-25  Jim Meyering  <meyering@redhat.com>
34675
34676         bootstrap: detect MacOS 10.6's shasum, too
34677         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
34678         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
34679
34680 2010-01-23  Jim Meyering  <meyering@redhat.com>
34681
34682         xstrtoll: new module
34683         * modules/xstrtoll: New file.
34684         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
34685         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
34686         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
34687         ./configure fails if you use this module and lack "long long".
34688         * modules/xstrtoll-tests: New module.
34689         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
34690         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
34691         new init.sh-based test framework.
34692
34693 2010-01-24  Bruno Haible  <bruno@clisp.org>
34694
34695         Tests for module 'yn'.
34696         * modules/yn-tests: New file.
34697         * tests/test-yn.c: New file.
34698
34699         Tests for module 'y1'.
34700         * modules/y1-tests: New file.
34701         * tests/test-y1.c: New file.
34702
34703         Tests for module 'y0'.
34704         * modules/y0-tests: New file.
34705         * tests/test-y0.c: New file.
34706
34707         Tests for module 'tanh'.
34708         * modules/tanh-tests: New file.
34709         * tests/test-tanh.c: New file.
34710
34711         Tests for module 'tan'.
34712         * modules/tan-tests: New file.
34713         * tests/test-tan.c: New file.
34714
34715         Tests for module 'sqrt'.
34716         * modules/sqrt-tests: New file.
34717         * tests/test-sqrt.c: New file.
34718
34719         Tests for module 'sinh'.
34720         * modules/sinh-tests: New file.
34721         * tests/test-sinh.c: New file.
34722
34723         Tests for module 'sin'.
34724         * modules/sin-tests: New file.
34725         * tests/test-sin.c: New file.
34726
34727         Tests for module 'rint'.
34728         * modules/rint-tests: New file.
34729         * tests/test-rint.c: New file.
34730
34731         Tests for module 'remainder'.
34732         * modules/remainder-tests: New file.
34733         * tests/test-remainder.c: New file.
34734
34735         Tests for module 'pow'.
34736         * modules/pow-tests: New file.
34737         * tests/test-pow.c: New file.
34738
34739         Tests for module 'nextafter'.
34740         * modules/nextafter-tests: New file.
34741         * tests/test-nextafter.c: New file.
34742
34743         Tests for module 'modf'.
34744         * modules/modf-tests: New file.
34745         * tests/test-modf.c: New file.
34746
34747         Tests for module 'logb'.
34748         * modules/logb-tests: New file.
34749         * tests/test-logb.c: New file.
34750
34751         Tests for module 'log1p'.
34752         * modules/log1p-tests: New file.
34753         * tests/test-log1p.c: New file.
34754
34755         Tests for module 'log10'.
34756         * modules/log10-tests: New file.
34757         * tests/test-log10.c: New file.
34758
34759         Tests for module 'log'.
34760         * modules/log-tests: New file.
34761         * tests/test-log.c: New file.
34762
34763         Tests for module 'lgamma'.
34764         * modules/lgamma-tests: New file.
34765         * tests/test-lgamma.c: New file.
34766
34767         Tests for module 'ldexp'.
34768         * modules/ldexp-tests: New file.
34769         * tests/test-ldexp.c: New file.
34770
34771         Tests for module 'jn'.
34772         * modules/jn-tests: New file.
34773         * tests/test-jn.c: New file.
34774
34775         Tests for module 'j1'.
34776         * modules/j1-tests: New file.
34777         * tests/test-j1.c: New file.
34778
34779         Tests for module 'j0'.
34780         * modules/j0-tests: New file.
34781         * tests/test-j0.c: New file.
34782
34783         Tests for module 'hypot'.
34784         * modules/hypot-tests: New file.
34785         * tests/test-hypot.c: New file.
34786
34787         Tests for module 'fmod'.
34788         * modules/fmod-tests: New file.
34789         * tests/test-fmod.c: New file.
34790
34791         Tests for module 'fabs'.
34792         * modules/fabs-tests: New file.
34793         * tests/test-fabs.c: New file.
34794
34795         Tests for module 'exp'.
34796         * modules/exp-tests: New file.
34797         * tests/test-exp.c: New file.
34798
34799         Tests for module 'erfc'.
34800         * modules/erfc-tests: New file.
34801         * tests/test-erfc.c: New file.
34802
34803         Tests for module 'erf'.
34804         * modules/erf-tests: New file.
34805         * tests/test-erf.c: New file.
34806
34807         Tests for module 'cosh'.
34808         * modules/cosh-tests: New file.
34809         * tests/test-cosh.c: New file.
34810
34811         Tests for module 'cos'.
34812         * modules/cos-tests: New file.
34813         * tests/test-cos.c: New file.
34814
34815         Tests for module 'copysign'.
34816         * modules/copysign-tests: New file.
34817         * tests/test-copysign.c: New file.
34818
34819         Tests for module 'cbrt'.
34820         * modules/cbrt-tests: New file.
34821         * tests/test-cbrt.c: New file.
34822
34823         Tests for module 'atan2'.
34824         * modules/atan2-tests: New file.
34825         * tests/test-atan2.c: New file.
34826
34827         Tests for module 'atan'.
34828         * modules/atan-tests: New file.
34829         * tests/test-atan.c: New file.
34830
34831         Tests for module 'asin'.
34832         * modules/asin-tests: New file.
34833         * tests/test-asin.c: New file.
34834
34835         Tests for module 'acos'.
34836         * modules/acos-tests: New file.
34837         * tests/test-acos.c: New file.
34838
34839 2010-01-24  Bruno Haible  <bruno@clisp.org>
34840
34841         Fix tests for common <math.h> functions.
34842         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
34843         code snippet that references the function pointer, rather than merely
34844         calling the function. Substitute the FUNC_LIBM variable.
34845         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
34846         * modules/acos (configure.ac): Likewise.
34847         * modules/asin (configure.ac): Likewise.
34848         * modules/atan (configure.ac): Likewise.
34849         * modules/atan2 (configure.ac): Likewise.
34850         * modules/cbrt (configure.ac): Likewise.
34851         * modules/copysign (configure.ac): Likewise.
34852         * modules/cos (configure.ac): Likewise.
34853         * modules/cosh (configure.ac): Likewise.
34854         * modules/erf (configure.ac): Likewise.
34855         * modules/erfc (configure.ac): Likewise.
34856         * modules/exp (configure.ac): Likewise.
34857         * modules/fabs (configure.ac): Likewise.
34858         * modules/fmod (configure.ac): Likewise.
34859         * modules/hypot (configure.ac): Likewise.
34860         * modules/j0 (configure.ac): Likewise.
34861         * modules/j1 (configure.ac): Likewise.
34862         * modules/jn (configure.ac): Likewise.
34863         * modules/ldexp (configure.ac): Likewise.
34864         * modules/lgamma (configure.ac): Likewise.
34865         * modules/log (configure.ac): Likewise.
34866         * modules/log10 (configure.ac): Likewise.
34867         * modules/log1p (configure.ac): Likewise.
34868         * modules/logb (configure.ac): Likewise.
34869         * modules/modf (configure.ac): Likewise.
34870         * modules/nextafter (configure.ac): Likewise.
34871         * modules/pow (configure.ac): Likewise.
34872         * modules/remainder (configure.ac): Likewise.
34873         * modules/rint (configure.ac): Likewise.
34874         * modules/sin (configure.ac): Likewise.
34875         * modules/sinh (configure.ac): Likewise.
34876         * modules/tan (configure.ac): Likewise.
34877         * modules/tanh (configure.ac): Likewise.
34878         * modules/y0 (configure.ac): Likewise.
34879         * modules/y1 (configure.ac): Likewise.
34880         * modules/yn (configure.ac): Likewise.
34881
34882 2010-01-24  Bruno Haible  <bruno@clisp.org>
34883
34884         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
34885         * tests/test-acosl.c (x): New variable.
34886         (main): Store argument in x and fetch it from x.
34887         * tests/test-asinl.c (x): New variable.
34888         (main): Store argument in x and fetch it from x.
34889         * tests/test-atanl.c (x): New variable.
34890         (main): Store argument in x and fetch it from x.
34891         * tests/test-cosl.c (x): New variable.
34892         (main): Store argument in x and fetch it from x.
34893         * tests/test-expl.c (x): New variable.
34894         (main): Store argument in x and fetch it from x.
34895         * tests/test-logl.c (x): New variable.
34896         (main): Store argument in x and fetch it from x.
34897         * tests/test-sinl.c (x): New variable.
34898         (main): Store argument in x and fetch it from x.
34899         * tests/test-sqrtl.c (x): New variable.
34900         (main): Store argument in x and fetch it from x.
34901         * tests/test-tanl.c (x): New variable.
34902         (main): Store argument in x and fetch it from x.
34903
34904 2010-01-24  Bruno Haible  <bruno@clisp.org>
34905
34906         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
34907         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
34908         assignments to the initial TESTS_ENVIRONMENT.
34909         * doc/gnulib.texi (Unit test modules): Document it.
34910         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
34911         TESTS_ENVIRONMENT.
34912         * modules/btowc-tests (Makefile.am): Likewise.
34913         * modules/c-stack-tests (Makefile.am): Likewise.
34914         * modules/c-strcase-tests (Makefile.am): Likewise.
34915         * modules/copy-file-tests (Makefile.am): Likewise.
34916         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
34917         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
34918         * modules/mbrtowc-tests (Makefile.am): Likewise.
34919         * modules/mbscasecmp-tests (Makefile.am): Likewise.
34920         * modules/mbscasestr-tests (Makefile.am): Likewise.
34921         * modules/mbschr-tests (Makefile.am): Likewise.
34922         * modules/mbscspn-tests (Makefile.am): Likewise.
34923         * modules/mbsinit-tests (Makefile.am): Likewise.
34924         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
34925         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
34926         * modules/mbspbrk-tests (Makefile.am): Likewise.
34927         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
34928         * modules/mbsrchr-tests (Makefile.am): Likewise.
34929         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
34930         * modules/mbsspn-tests (Makefile.am): Likewise.
34931         * modules/mbsstr-tests (Makefile.am): Likewise.
34932         * modules/nl_langinfo-tests (Makefile.am): Likewise.
34933         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
34934         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
34935         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
34936         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
34937         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
34938         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
34939         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
34940         * modules/wcrtomb-tests (Makefile.am): Likewise.
34941         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
34942         * modules/wcsrtombs-tests (Makefile.am): Likewise.
34943         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
34944         assignments from TESTS_ENVIRONMENT.
34945         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
34946         augmentation.
34947         * modules/argp-version-etc-tests (Makefile.am): Likewise.
34948         * modules/atexit-tests (Makefile.am): Likewise.
34949         * modules/binary-io-tests (Makefile.am): Likewise.
34950         * modules/closein-tests (Makefile.am): Likewise.
34951         * modules/dprintf-posix-tests (Makefile.am): Likewise.
34952         * modules/exclude-tests (Makefile.am): Likewise.
34953         * modules/fflush-tests (Makefile.am): Likewise.
34954         * modules/fpending-tests (Makefile.am): Likewise.
34955         * modules/fprintf-posix-tests (Makefile.am): Likewise.
34956         * modules/freadahead-tests (Makefile.am): Likewise.
34957         * modules/freadptr-tests (Makefile.am): Likewise.
34958         * modules/freadseek-tests (Makefile.am): Likewise.
34959         * modules/fseek-tests (Makefile.am): Likewise.
34960         * modules/fseeko-tests (Makefile.am): Likewise.
34961         * modules/ftell-tests (Makefile.am): Likewise.
34962         * modules/ftello-tests (Makefile.am): Likewise.
34963         * modules/idpriv-drop-tests (Makefile.am): Likewise.
34964         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
34965         * modules/lseek-tests (Makefile.am): Likewise.
34966         * modules/parse-duration-tests (Makefile.am): Likewise.
34967         * modules/perror-tests (Makefile.am): Likewise.
34968         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
34969         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
34970         * modules/pipe-tests (Makefile.am): Likewise.
34971         * modules/pread-tests (Makefile.am): Likewise.
34972         * modules/printf-posix-tests (Makefile.am): Likewise.
34973         * modules/select-tests (Makefile.am): Likewise.
34974         * modules/sigpipe-tests (Makefile.am): Likewise.
34975         * modules/tsearch-tests (Makefile.am): Likewise.
34976         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
34977         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
34978         * modules/uniname/uniname-tests (Makefile.am): Likewise.
34979         * modules/uniwidth/width-tests (Makefile.am): Likewise.
34980         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
34981         * modules/version-etc-tests (Makefile.am): Likewise.
34982         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
34983         * modules/vprintf-posix-tests (Makefile.am): Likewise.
34984         * modules/xalloc-die-tests (Makefile.am): Likewise.
34985         * modules/xprintf-posix-tests (Makefile.am): Likewise.
34986         * modules/xstrtoimax-tests (Makefile.am): Likewise.
34987         * modules/xstrtol-tests (Makefile.am): Likewise.
34988         * modules/xstrtoumax-tests (Makefile.am): Likewise.
34989         * modules/yesno-tests (Makefile.am): Likewise.
34990         Suggested by Jim Meyering.
34991
34992 2010-01-24  Bruno Haible  <bruno@clisp.org>
34993
34994         More documentation.
34995         * doc/gnulib.texi (Writing modules): New chapter.
34996         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
34997         the new chapter.
34998
34999 2010-01-24  Jim Meyering  <meyering@redhat.com>
35000
35001         maint.mk: do not prepend "./" after filtering
35002         * top/maint.mk (_prepend_srcdir_prefix): New variable
35003         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
35004         "./" when $(srcdir) is ".".
35005
35006         define STREQ(a,b) consistently, removing useless parentheses
35007         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
35008         since the only risk is that "a" or "b" contains an unparenthesized
35009         comma, but if either did that, STREQ would have 3 or more arguments.
35010         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
35011         * lib/fts.c (STREQ): Remove unnecessary parentheses.
35012         * lib/hash-triple.c (STREQ): Likewise.
35013         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
35014         * lib/getugroups.c (STREQ): Likewise.
35015
35016 2010-01-23  Jim Meyering  <meyering@redhat.com>
35017
35018         maint.mk: fix syntax-check in a non-srcdir build directory
35019         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
35020         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
35021
35022 2010-01-22  Jim Meyering  <meyering@redhat.com>
35023
35024         userspec: add unit tests
35025         * tests/test-userspec.c: New file.
35026         * modules/userspec-tests: Likewise.
35027
35028 2010-01-21  Jim Meyering  <meyering@redhat.com>
35029
35030         maint.mk: handle source file names containing "." robustly
35031         * top/maint.mk (_dot_escaped_srcdir): Define.
35032         (VC_LIST): Use it in LHS of sed substitution.
35033
35034 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
35035
35036         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
35037         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
35038         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
35039         from a non-srcdir build.
35040
35041 2010-01-20  Eric Blake  <ebb9@byu.net>
35042
35043         warn-on-use: use instead of link-warning
35044         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
35045         * modules/unistd (Depends-on, Makefile.am): Likewise.
35046         * modules/arpa_inet (Depends-on): Replace link-warning with
35047         warn-on-use.
35048         (Makefile.am): Update rules accordingly.
35049         * modules/ctype (Depends-on, Makefile.am): Likewise.
35050         * modules/dirent (Depends-on, Makefile.am): Likewise.
35051         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
35052         * modules/inttypes (Depends-on, Makefile.am): Likewise.
35053         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35054         * modules/locale (Depends-on, Makefile.am): Likewise.
35055         * modules/math (Depends-on, Makefile.am): Likewise.
35056         * modules/search (Depends-on, Makefile.am): Likewise.
35057         * modules/signal (Depends-on, Makefile.am): Likewise.
35058         * modules/spawn (Depends-on, Makefile.am): Likewise.
35059         * modules/stdlib (Depends-on, Makefile.am): Likewise.
35060         * modules/string (Depends-on, Makefile.am): Likewise.
35061         * modules/strings (Depends-on, Makefile.am): Likewise.
35062         * modules/sys_file (Depends-on, Makefile.am): Likewise.
35063         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
35064         * modules/sys_select (Depends-on, Makefile.am): Likewise.
35065         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
35066         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
35067         * modules/sys_times (Depends-on, Makefile.am): Likewise.
35068         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35069         * modules/wchar (Depends-on, Makefile.am): Likewise.
35070         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
35071         should be poisoned.
35072         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
35073         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
35074         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
35075         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35076         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35077         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
35078         * m4/math_h.m4 (gl_MATH_H): Likewise.
35079         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
35080         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
35081         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
35082         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
35083         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
35084         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
35085         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
35086         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
35087         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
35088         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35089         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
35090         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
35091         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35092         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
35093         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
35094         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35095         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
35096         GL_LINK_WARNING.
35097         * lib/ctype.in.h: Likewise.
35098         * lib/dirent.in.h: Likewise.
35099         * lib/fcntl.in.h: Likewise.
35100         * lib/inttypes.in.h: Likewise.
35101         * lib/langinfo.in.h: Likewise.
35102         * lib/locale.in.h: Likewise.
35103         * lib/math.in.h: Likewise.
35104         * lib/search.in.h: Likewise.
35105         * lib/signal.in.h: Likewise.
35106         * lib/spawn.in.h: Likewise.
35107         * lib/stdio.in.h: Likewise.
35108         * lib/stdlib.in.h: Likewise.
35109         * lib/string.in.h: Likewise.
35110         * lib/strings.in.h: Likewise.
35111         * lib/sys_file.in.h: Likewise.
35112         * lib/sys_ioctl.in.h: Likewise.
35113         * lib/sys_select.in.h: Likewise.
35114         * lib/sys_socket.in.h: Likewise.
35115         * lib/sys_stat.in.h: Likewise.
35116         * lib/sys_times.in.h: Likewise.
35117         * lib/sys_utsname.in.h: Likewise.
35118         * lib/unistd.in.h: Likewise.
35119         * lib/wchar.in.h: Likewise.
35120
35121 2010-01-20  Bruno Haible  <bruno@clisp.org>
35122
35123         Avoid duplicate -lm.
35124         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
35125         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
35126         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
35127         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
35128         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
35129         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
35130         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
35131         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
35132         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
35133         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
35134         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
35135         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
35136         Reported by Paolo Bonzini.
35137
35138 2010-01-19  Bruno Haible  <bruno@clisp.org>
35139
35140         langinfo, nl_langinfo: Relicense under LGPLv2+.
35141         * modules/langinfo (License): Change to LGPLv2+.
35142         * modules/nl_langinfo (License): Likewise.
35143         Patch by David Lutterkort <lutter@redhat.com>.
35144
35145 2010-01-19  Bruno Haible  <bruno@clisp.org>
35146
35147         Avoid compilation error with cc on OSF/1 5.1.
35148         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
35149         statement, not before.
35150         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35151
35152 2010-01-18  Bruno Haible  <bruno@clisp.org>
35153
35154         Avoid a link error due to the __printf__ symbol.
35155         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
35156         and 2.6.x.
35157         (__format__, __printf__): Remove definitions.
35158         * lib/argp-fmtstream.h: Likewise.
35159         * lib/argp.h: Likewise.
35160         * lib/error.h: Likewise.
35161         * lib/vasnprintf.h: Likewise.
35162         * lib/xprintf.h: Likewise.
35163         * lib/xvasprintf.h: Likewise.
35164         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35165
35166 2010-01-18  Bruno Haible  <bruno@clisp.org>
35167
35168         Tests for module 'tanl'.
35169         * modules/tanl-tests: New file.
35170         * tests/test-tanl.c: New file.
35171
35172         Tests for module 'sqrtl'.
35173         * modules/sqrtl-tests: New file.
35174         * tests/test-sqrtl.c: New file.
35175
35176         Tests for module 'sinl'.
35177         * modules/sinl-tests: New file.
35178         * tests/test-sinl.c: New file.
35179
35180         Tests for module 'logl'.
35181         * modules/logl-tests: New file.
35182         * tests/test-logl.c: New file.
35183
35184         Tests for module 'expl'.
35185         * modules/expl-tests: New file.
35186         * tests/test-expl.c: New file.
35187
35188         Tests for module 'cosl'.
35189         * modules/cosl-tests: New file.
35190         * tests/test-cosl.c: New file.
35191
35192         Tests for module 'atanl'.
35193         * modules/atanl-tests: New file.
35194         * tests/test-atanl.c: New file.
35195
35196         Tests for module 'asinl'.
35197         * modules/asinl-tests: New file.
35198         * tests/test-asinl.c: New file.
35199
35200         Tests for module 'acosl'.
35201         * modules/acosl-tests: New file.
35202         * tests/test-acosl.c: New file.
35203
35204         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
35205         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
35206         tanl): Use the standard gnulib idiom.
35207         * lib/cosl.c: Don't include trigl.c and sincosl.c.
35208         * lib/sinl.c: Likewise.
35209         * lib/tanl.c: Don't include trigl.c.
35210         (kernel_tanl): Make static.
35211         * lib/sincosl.c: Include trigl.h first.
35212         * lib/trigl.c: Likewise.
35213         * m4/acosl.m4: New file.
35214         * m4/asinl.m4: New file.
35215         * m4/atanl.m4: New file.
35216         * m4/cosl.m4: New file.
35217         * m4/expl.m4: New file.
35218         * m4/logl.m4: New file.
35219         * m4/sinl.m4: New file.
35220         * m4/sqrtl.m4: New file.
35221         * m4/tanl.m4: New file.
35222         * m4/mathl.m4: Remove file.
35223         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
35224         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
35225         Don't initialize GNULIB_MATHL.
35226         * modules/acosl: New file.
35227         * modules/asinl: New file.
35228         * modules/atanl: New file.
35229         * modules/cosl: New file.
35230         * modules/expl: New file.
35231         * modules/logl: New file.
35232         * modules/sinl: New file.
35233         * modules/sqrtl: New file.
35234         * modules/tanl: New file.
35235         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
35236         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
35237         substitute GNULIB_MATHL.
35238         * modules/mathl: Rewritten.
35239         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
35240         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
35241         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
35242         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
35243         * doc/posix-functions/expl.texi: Mention the 'expl' module.
35244         * doc/posix-functions/logl.texi: Mention the 'logl' module.
35245         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
35246         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
35247         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
35248
35249 2010-01-18  Bruno Haible  <bruno@clisp.org>
35250
35251         sqrt: Make gl_FUNC_SQRT requirable.
35252         * m4/sqrt.m4: New file.
35253         * modules/sqrt (Files): Add it.
35254         (configure.ac): Invoke gl_FUNC_SQRT.
35255
35256 2010-01-18  Bruno Haible  <bruno@clisp.org>
35257
35258         New modules for common <math.h> functions.
35259         * m4/mathfunc.m4: New file.
35260         * modules/acos: New file.
35261         * modules/asin: New file.
35262         * modules/atan: New file.
35263         * modules/atan2: New file.
35264         * modules/cbrt: New file.
35265         * modules/copysign: New file.
35266         * modules/cos: New file.
35267         * modules/cosh: New file.
35268         * modules/erf: New file.
35269         * modules/erfc: New file.
35270         * modules/exp: New file.
35271         * modules/fabs: New file.
35272         * modules/fmod: New file.
35273         * modules/hypot: New file.
35274         * modules/j0: New file.
35275         * modules/j1: New file.
35276         * modules/jn: New file.
35277         * modules/ldexp: New file.
35278         * modules/lgamma: New file.
35279         * modules/log: New file.
35280         * modules/log10: New file.
35281         * modules/log1p: New file.
35282         * modules/logb: New file.
35283         * modules/modf: New file.
35284         * modules/nextafter: New file.
35285         * modules/pow: New file.
35286         * modules/remainder: New file.
35287         * modules/rint: New file.
35288         * modules/sin: New file.
35289         * modules/sinh: New file.
35290         * modules/sqrt: New file.
35291         * modules/tan: New file.
35292         * modules/tanh: New file.
35293         * modules/y0: New file.
35294         * modules/y1: New file.
35295         * modules/yn: New file.
35296         * doc/posix-functions/acos.texi: Mention the 'acos' module.
35297         * doc/posix-functions/asin.texi: Mention the 'asin' module.
35298         * doc/posix-functions/atan.texi: Mention the 'atan' module.
35299         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
35300         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
35301         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
35302         * doc/posix-functions/cos.texi: Mention the 'cos' module.
35303         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
35304         * doc/posix-functions/erf.texi: Mention the 'erf' module.
35305         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
35306         * doc/posix-functions/exp.texi: Mention the 'exp' module.
35307         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
35308         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
35309         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
35310         * doc/posix-functions/j0.texi: Mention the 'j0' module.
35311         * doc/posix-functions/j1.texi: Mention the 'j1' module.
35312         * doc/posix-functions/jn.texi: Mention the 'jn' module.
35313         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
35314         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
35315         * doc/posix-functions/log.texi: Mention the 'log' module.
35316         * doc/posix-functions/log10.texi: Mention the 'log10' module.
35317         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
35318         * doc/posix-functions/logb.texi: Mention the 'logb' module.
35319         * doc/posix-functions/modf.texi: Mention the 'modf' module.
35320         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
35321         * doc/posix-functions/pow.texi: Mention the 'pow' module.
35322         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
35323         * doc/posix-functions/rint.texi: Mention the 'rint' module.
35324         * doc/posix-functions/sin.texi: Mention the 'sin' module.
35325         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
35326         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
35327         * doc/posix-functions/tan.texi: Mention the 'tan' module.
35328         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
35329         * doc/posix-functions/y0.texi: Mention the 'y0' module.
35330         * doc/posix-functions/y1.texi: Mention the 'y1' module.
35331         * doc/posix-functions/yn.texi: Mention the 'yn' module.
35332
35333 2010-01-18  Jim Meyering  <meyering@redhat.com>
35334
35335         ignore-value: relax license to LGPLv2+
35336         * modules/ignore-value (License): Relax to LGPLv2+.
35337
35338         getdate: don't leak when TZ contains two or more '"'s
35339         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
35340         double quote in TZ after the first one.
35341
35342         readtokens: do not leak internal token_lengths buffer
35343         * lib/readtokens.c (readtokens): Free the local, lengths,
35344         when the supplied "token_lengths" parameter is NULL.
35345
35346 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35347
35348         Fix a couple of missing LIBTHREAD link failures on AIX.
35349         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
35350         $(LIBTHREAD).
35351         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
35352
35353         Link test-poll against INET_PTON_LIB.
35354         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
35355         for inet_pton on Solaris 10.
35356
35357 2010-01-17  Bruno Haible  <bruno@clisp.org>
35358
35359         unistdio/*-sprintf: Fix typo in module description.
35360         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
35361         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
35362         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
35363         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
35364         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
35365         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
35366         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
35367         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35368
35369 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35370
35371         gnulib-tool: fix filelist for AIX, HP-UX ksh.
35372         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
35373         variables in shell case patterns, for AIX and HP-UX ksh.
35374
35375         Split large sed scripts, for HP-UX sed.
35376         * modules/stdio: Split sed scripts around 50 sed commands,
35377         to avoid HP-UX limit of 99 commands, in the near future.
35378         * modules/string: Likewise.
35379         * modules/unistd: Likewise.
35380
35381         gnulib-tool: avoid writing in the current directory.
35382         * gnulib-tool (func_emit_lib_Makefile_am)
35383         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
35384         not in the current directory, so concurrent gnulib-tool
35385         instances do not interfere.
35386
35387 2010-01-16  Jim Meyering  <meyering@redhat.com>
35388
35389         doc: update users.txt
35390         * users.txt: Add grep.
35391         (diffutils, gzip): Update URLs.
35392
35393 2010-01-12  Bruno Haible  <bruno@clisp.org>
35394
35395         posix_spawn: Avoid test failure on Cygwin.
35396         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
35397         characters.
35398         Reported by Simon Josefsson.
35399
35400 2010-01-12  Bruno Haible  <bruno@clisp.org>
35401
35402         * tests/test-cond.c (main): When skipping the test, show the reason.
35403
35404 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35405
35406         * lib/striconv.c (str_cd_iconv): Avoid if before free.
35407
35408 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35409
35410         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
35411         VC_LIST_ALWAYS_EXCLUDE_REGEX.
35412
35413 2010-01-12  Eric Blake  <ebb9@byu.net>
35414
35415         build: guarantee AS_VAR_IF
35416         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
35417         (gl_AS_VAR_IF): Move...
35418         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
35419         Reported by Simon Josefsson.
35420
35421 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35422
35423         * lib/stdio.in.h: Fix typo.
35424
35425 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35426
35427         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
35428         libgpg-error.
35429
35430 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35431
35432         * tests/test-xalloc-die.sh: Use $EXEEXT.
35433
35434 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35435             Bruno Haible  <bruno@clisp.org>
35436
35437         getlogin, getlogin_r: Avoid test failure.
35438         * tests/test-getlogin.c: Include <stdio.h>.
35439         (main): Skip the test when the function fails because stdin is not a
35440         tty.
35441         * tests/test-getlogin_r.c: Include <stdio.h>.
35442         (main): Skip the test when the function fails because stdin is not a
35443         tty.
35444
35445 2010-01-11  Eric Blake  <ebb9@byu.net>
35446
35447         tests: avoid more large file warnings
35448         * tests/test-fflush.c: Avoid warning about ftell use.
35449         * tests/test-fseek.c: Avoid warning about fseek use.
35450
35451 2010-01-10  Bruno Haible  <bruno@clisp.org>
35452
35453         nproc: Work better on Linux when /proc and /sys are not mounted.
35454         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
35455         as lower bound when, on glibc/Linux systems,
35456         sysconf (_SC_NPROCESSORS_CONF) returns 1.
35457         Suggested by Pádraig Brady <P@draigbrady.com>.
35458         Reported by Dmitry V. Levin <ldv@altlinux.org>.
35459
35460         nproc: Refactor.
35461         * lib/nproc.c (num_processors_via_affinity_mask): New function,
35462         extracted from num_processors.
35463         (num_processors): Call it.
35464
35465 2010-01-11  Jim Meyering  <meyering@redhat.com>
35466
35467         utimecmp: avoid new warning from upcoming gcc-4.5.0
35468         * lib/utimecmp.c (BILLION): Define using #define rather than an
35469         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
35470
35471 2010-01-11  Eric Blake  <ebb9@byu.net>
35472
35473         math: add portability warnings for classification macros
35474         * modules/math (Depends-on): Add warn-on-use.
35475         (Makefile.am): Provide new substitutions.
35476         * m4/math_h.m4 (gl_MATH_H): Require inline.
35477         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
35478         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
35479         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
35480         implement warnings.
35481
35482         unistd: warn on use of environ without module
35483         * modules/unistd (Depends-on): Add warn-on-use.
35484         (Makefile.am): Provide new substitutions.
35485         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
35486         * lib/unistd.in.h (environ): Wrap with a warning helper function.
35487
35488         stdio: warn on suspicious uses
35489         * modules/stdio (Depends-on): Add warn-on-use.
35490         (Makefile.am): Provide new substitutions.
35491         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
35492         fseeko.
35493         * lib/stdio.in.h (gets): Always warn on use.
35494         (fseek, ftell): Adjust when warnings are issued, and honor
35495         _GL_NO_LARGE_FILES as a way to silence the warning.
35496         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
35497         any warning about large file offsets.
35498         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
35499         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
35500         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
35501         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
35502         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
35503         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
35504         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
35505         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
35506
35507         warn-on-use: new module
35508         * modules/warn-on-use: New file.
35509         * build-aux/warn-on-use.h: Likewise.
35510         * m4/warn-on-use.m4: Likewise.
35511         * MODULES.html.sh (Support for building): Mention it.
35512
35513 2010-01-10  Bruno Haible  <bruno@clisp.org>
35514
35515         Tests for module 'unistr/u32-strdup'.
35516         * modules/unistr/u32-strdup-tests: New file.
35517         * tests/unistr/test-u32-strdup.c: New file.
35518
35519         Tests for module 'unistr/u16-strdup'.
35520         * modules/unistr/u16-strdup-tests: New file.
35521         * tests/unistr/test-u16-strdup.c: New file.
35522
35523         Tests for module 'unistr/u8-strdup'.
35524         * modules/unistr/u8-strdup-tests: New file.
35525         * tests/unistr/test-u8-strdup.c: New file.
35526         * tests/unistr/test-strdup.h: New file.
35527
35528         Tests for module 'unistr/u32-strncmp'.
35529         * modules/unistr/u32-strncmp-tests: New file.
35530         * tests/unistr/test-u32-strncmp.c: New file.
35531
35532         Tests for module 'unistr/u16-strncmp'.
35533         * modules/unistr/u16-strncmp-tests: New file.
35534         * tests/unistr/test-u16-strncmp.c: New file.
35535
35536         Tests for module 'unistr/u8-strncmp'.
35537         * modules/unistr/u8-strncmp-tests: New file.
35538         * tests/unistr/test-u8-strncmp.c: New file.
35539         * tests/unistr/test-strncmp.h: New file.
35540
35541         Tests for module 'unistr/u32-strcoll'.
35542         * modules/unistr/u32-strcoll-tests: New file.
35543         * tests/unistr/test-u32-strcoll.c: New file.
35544
35545         Tests for module 'unistr/u16-strcoll'.
35546         * modules/unistr/u16-strcoll-tests: New file.
35547         * tests/unistr/test-u16-strcoll.c: New file.
35548
35549         Tests for module 'unistr/u8-strcoll'.
35550         * modules/unistr/u8-strcoll-tests: New file.
35551         * tests/unistr/test-u8-strcoll.c: New file.
35552
35553         Tests for module 'unistr/u32-strcmp'.
35554         * modules/unistr/u32-strcmp-tests: New file.
35555         * tests/unistr/test-u32-strcmp.c: New file.
35556         * tests/unistr/test-u32-strcmp.h: New file.
35557
35558         Tests for module 'unistr/u16-strcmp'.
35559         * modules/unistr/u16-strcmp-tests: New file.
35560         * tests/unistr/test-u16-strcmp.c: New file.
35561         * tests/unistr/test-u16-strcmp.h: New file.
35562
35563         Tests for module 'unistr/u8-strcmp'.
35564         * modules/unistr/u8-strcmp-tests: New file.
35565         * tests/unistr/test-u8-strcmp.c: New file.
35566         * tests/unistr/test-u8-strcmp.h: New file.
35567         * tests/unistr/test-strcmp.h: New file.
35568
35569         Tests for module 'unistr/u32-strncat'.
35570         * modules/unistr/u32-strncat-tests: New file.
35571         * tests/unistr/test-u32-strncat.c: New file.
35572
35573         Tests for module 'unistr/u16-strncat'.
35574         * modules/unistr/u16-strncat-tests: New file.
35575         * tests/unistr/test-u16-strncat.c: New file.
35576
35577         Tests for module 'unistr/u8-strncat'.
35578         * modules/unistr/u8-strncat-tests: New file.
35579         * tests/unistr/test-u8-strncat.c: New file.
35580         * tests/unistr/test-strncat.h: New file.
35581
35582         Tests for module 'unistr/u32-strcat'.
35583         * modules/unistr/u32-strcat-tests: New file.
35584         * tests/unistr/test-u32-strcat.c: New file.
35585
35586         Tests for module 'unistr/u16-strcat'.
35587         * modules/unistr/u16-strcat-tests: New file.
35588         * tests/unistr/test-u16-strcat.c: New file.
35589
35590         Tests for module 'unistr/u8-strcat'.
35591         * modules/unistr/u8-strcat-tests: New file.
35592         * tests/unistr/test-u8-strcat.c: New file.
35593         * tests/unistr/test-strcat.h: New file.
35594
35595         Tests for module 'unistr/u32-stpncpy'.
35596         * modules/unistr/u32-stpncpy-tests: New file.
35597         * tests/unistr/test-u32-stpncpy.c: New file.
35598
35599         Tests for module 'unistr/u16-stpncpy'.
35600         * modules/unistr/u16-stpncpy-tests: New file.
35601         * tests/unistr/test-u16-stpncpy.c: New file.
35602
35603         Tests for module 'unistr/u8-stpncpy'.
35604         * modules/unistr/u8-stpncpy-tests: New file.
35605         * tests/unistr/test-u8-stpncpy.c: New file.
35606         * tests/unistr/test-stpncpy.h: New file.
35607
35608         Tests for module 'unistr/u32-strncpy'.
35609         * modules/unistr/u32-strncpy-tests: New file.
35610         * tests/unistr/test-u32-strncpy.c: New file.
35611
35612         Tests for module 'unistr/u16-strncpy'.
35613         * modules/unistr/u16-strncpy-tests: New file.
35614         * tests/unistr/test-u16-strncpy.c: New file.
35615
35616         Tests for module 'unistr/u8-strncpy'.
35617         * modules/unistr/u8-strncpy-tests: New file.
35618         * tests/unistr/test-u8-strncpy.c: New file.
35619         * tests/unistr/test-strncpy.h: New file.
35620
35621         Tests for module 'unistr/u32-stpcpy'.
35622         * modules/unistr/u32-stpcpy-tests: New file.
35623         * tests/unistr/test-u32-stpcpy.c: New file.
35624
35625         Tests for module 'unistr/u16-stpcpy'.
35626         * modules/unistr/u16-stpcpy-tests: New file.
35627         * tests/unistr/test-u16-stpcpy.c: New file.
35628
35629         Tests for module 'unistr/u8-stpcpy'.
35630         * modules/unistr/u8-stpcpy-tests: New file.
35631         * tests/unistr/test-u8-stpcpy.c: New file.
35632         * tests/unistr/test-stpcpy.h: New file.
35633
35634         Tests for module 'unistr/u32-strcpy'.
35635         * modules/unistr/u32-strcpy-tests: New file.
35636         * tests/unistr/test-u32-strcpy.c: New file.
35637
35638         Tests for module 'unistr/u16-strcpy'.
35639         * modules/unistr/u16-strcpy-tests: New file.
35640         * tests/unistr/test-u16-strcpy.c: New file.
35641
35642         Tests for module 'unistr/u8-strcpy'.
35643         * modules/unistr/u8-strcpy-tests: New file.
35644         * tests/unistr/test-u8-strcpy.c: New file.
35645         * tests/unistr/test-strcpy.h: New file.
35646
35647         Tests for module 'unistr/u32-strnlen'.
35648         * modules/unistr/u32-strnlen-tests: New file.
35649         * tests/unistr/test-u32-strnlen.c: New file.
35650
35651         Tests for module 'unistr/u16-strnlen'.
35652         * modules/unistr/u16-strnlen-tests: New file.
35653         * tests/unistr/test-u16-strnlen.c: New file.
35654
35655         Tests for module 'unistr/u8-strnlen'.
35656         * modules/unistr/u8-strnlen-tests: New file.
35657         * tests/unistr/test-u8-strnlen.c: New file.
35658         * tests/unistr/test-strnlen.h: New file.
35659
35660         Tests for module 'unistr/u32-strlen'.
35661         * modules/unistr/u32-strlen-tests: New file.
35662         * tests/unistr/test-u32-strlen.c: New file.
35663
35664         Tests for module 'unistr/u16-strlen'.
35665         * modules/unistr/u16-strlen-tests: New file.
35666         * tests/unistr/test-u16-strlen.c: New file.
35667
35668         Tests for module 'unistr/u8-strlen'.
35669         * modules/unistr/u8-strlen-tests: New file.
35670         * tests/unistr/test-u8-strlen.c: New file.
35671
35672         Tests for module 'unistr/u32-prev'.
35673         * modules/unistr/u32-prev-tests: New file.
35674         * tests/unistr/test-u32-prev.c: New file.
35675
35676         Tests for module 'unistr/u16-prev'.
35677         * modules/unistr/u16-prev-tests: New file.
35678         * tests/unistr/test-u16-prev.c: New file.
35679
35680         Tests for module 'unistr/u8-prev'.
35681         * modules/unistr/u8-prev-tests: New file.
35682         * tests/unistr/test-u8-prev.c: New file.
35683
35684         Tests for module 'unistr/u32-next'.
35685         * modules/unistr/u32-next-tests: New file.
35686         * tests/unistr/test-u32-next.c: New file.
35687
35688         Tests for module 'unistr/u16-next'.
35689         * modules/unistr/u16-next-tests: New file.
35690         * tests/unistr/test-u16-next.c: New file.
35691
35692         Tests for module 'unistr/u8-next'.
35693         * modules/unistr/u8-next-tests: New file.
35694         * tests/unistr/test-u8-next.c: New file.
35695
35696         Tests for module 'unistr/u32-strmbtouc'.
35697         * modules/unistr/u32-strmbtouc-tests: New file.
35698         * tests/unistr/test-u32-strmbtouc.c: New file.
35699
35700         Tests for module 'unistr/u16-strmbtouc'.
35701         * modules/unistr/u16-strmbtouc-tests: New file.
35702         * tests/unistr/test-u16-strmbtouc.c: New file.
35703
35704         Tests for module 'unistr/u8-strmbtouc'.
35705         * modules/unistr/u8-strmbtouc-tests: New file.
35706         * tests/unistr/test-u8-strmbtouc.c: New file.
35707
35708         Tests for module 'unistr/u32-strmblen'.
35709         * modules/unistr/u32-strmblen-tests: New file.
35710         * tests/unistr/test-u32-strmblen.c: New file.
35711
35712         Tests for module 'unistr/u16-strmblen'.
35713         * modules/unistr/u16-strmblen-tests: New file.
35714         * tests/unistr/test-u16-strmblen.c: New file.
35715
35716         Tests for module 'unistr/u8-strmblen'.
35717         * modules/unistr/u8-strmblen-tests: New file.
35718         * tests/unistr/test-u8-strmblen.c: New file.
35719
35720         Tests for module 'unistr/u32-cpy-alloc'.
35721         * modules/unistr/u32-cpy-alloc-tests: New file.
35722         * tests/unistr/test-u32-cpy-alloc.c: New file.
35723
35724         Tests for module 'unistr/u16-cpy-alloc'.
35725         * modules/unistr/u16-cpy-alloc-tests: New file.
35726         * tests/unistr/test-u16-cpy-alloc.c: New file.
35727
35728         Tests for module 'unistr/u8-cpy-alloc'.
35729         * modules/unistr/u8-cpy-alloc-tests: New file.
35730         * tests/unistr/test-u8-cpy-alloc.c: New file.
35731         * tests/unistr/test-cpy-alloc.h: New file.
35732
35733         Tests for module 'unistr/u32-mbsnlen'.
35734         * modules/unistr/u32-mbsnlen-tests: New file.
35735         * tests/unistr/test-u32-mbsnlen.c: New file.
35736
35737         Tests for module 'unistr/u16-mbsnlen'.
35738         * modules/unistr/u16-mbsnlen-tests: New file.
35739         * tests/unistr/test-u16-mbsnlen.c: New file.
35740
35741         Tests for module 'unistr/u8-mbsnlen'.
35742         * modules/unistr/u8-mbsnlen-tests: New file.
35743         * tests/unistr/test-u8-mbsnlen.c: New file.
35744
35745         Tests for module 'unistr/u32-chr'.
35746         * modules/unistr/u32-chr-tests: New file.
35747         * tests/unistr/test-u32-chr.c: New file.
35748
35749         Tests for module 'unistr/u16-chr'.
35750         * modules/unistr/u16-chr-tests: New file.
35751         * tests/unistr/test-u16-chr.c: New file.
35752
35753         Tests for module 'unistr/u8-chr'.
35754         * modules/unistr/u8-chr-tests: New file.
35755         * tests/unistr/test-u8-chr.c: New file.
35756         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
35757
35758         Tests for module 'unistr/u32-cmp2'.
35759         * modules/unistr/u32-cmp2-tests: New file.
35760         * tests/unistr/test-u32-cmp2.c: New file.
35761
35762         Tests for module 'unistr/u16-cmp2'.
35763         * modules/unistr/u16-cmp2-tests: New file.
35764         * tests/unistr/test-u16-cmp2.c: New file.
35765
35766         Tests for module 'unistr/u8-cmp2'.
35767         * modules/unistr/u8-cmp2-tests: New file.
35768         * tests/unistr/test-u8-cmp2.c: New file.
35769         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
35770
35771         Tests for module 'unistr/u32-cmp'.
35772         * modules/unistr/u32-cmp-tests: New file.
35773         * tests/unistr/test-u32-cmp.c: New file.
35774
35775         Tests for module 'unistr/u16-cmp'.
35776         * modules/unistr/u16-cmp-tests: New file.
35777         * tests/unistr/test-u16-cmp.c: New file.
35778
35779         Tests for module 'unistr/u8-cmp'.
35780         * modules/unistr/u8-cmp-tests: New file.
35781         * tests/unistr/test-u8-cmp.c: New file.
35782         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
35783
35784         Tests for module 'unistr/u32-set'.
35785         * modules/unistr/u32-set-tests: New file.
35786         * tests/unistr/test-u32-set.c: New file.
35787
35788         Tests for module 'unistr/u16-set'.
35789         * modules/unistr/u16-set-tests: New file.
35790         * tests/unistr/test-u16-set.c: New file.
35791
35792         Tests for module 'unistr/u8-set'.
35793         * modules/unistr/u8-set-tests: New file.
35794         * tests/unistr/test-u8-set.c: New file.
35795         * tests/unistr/test-set.h: New file.
35796
35797         Tests for module 'unistr/u32-move'.
35798         * modules/unistr/u32-move-tests: New file.
35799         * tests/unistr/test-u32-move.c: New file.
35800
35801         Tests for module 'unistr/u16-move'.
35802         * modules/unistr/u16-move-tests: New file.
35803         * tests/unistr/test-u16-move.c: New file.
35804
35805         Tests for module 'unistr/u8-move'.
35806         * modules/unistr/u8-move-tests: New file.
35807         * tests/unistr/test-u8-move.c: New file.
35808         * tests/unistr/test-move.h: New file.
35809
35810         Tests for module 'unistr/u32-cpy'.
35811         * modules/unistr/u32-cpy-tests: New file.
35812         * tests/unistr/test-u32-cpy.c: New file.
35813
35814         Tests for module 'unistr/u16-cpy'.
35815         * modules/unistr/u16-cpy-tests: New file.
35816         * tests/unistr/test-u16-cpy.c: New file.
35817
35818         Tests for module 'unistr/u8-cpy'.
35819         * modules/unistr/u8-cpy-tests: New file.
35820         * tests/unistr/test-u8-cpy.c: New file.
35821         * tests/unistr/test-cpy.h: New file.
35822
35823 2010-01-09  Bruno Haible  <bruno@clisp.org>
35824
35825         Tests for module 'unistr/u32-uctomb'.
35826         * modules/unistr/u32-uctomb-tests: New file.
35827         * tests/unistr/test-u32-uctomb.c: New file.
35828
35829         Tests for module 'unistr/u16-uctomb'.
35830         * modules/unistr/u16-uctomb-tests: New file.
35831         * tests/unistr/test-u16-uctomb.c: New file.
35832
35833         Tests for module 'unistr/u8-uctomb'.
35834         * modules/unistr/u8-uctomb-tests: New file.
35835         * tests/unistr/test-u8-uctomb.c: New file.
35836
35837         Tests for module 'unistr/u32-mbtoucr'.
35838         * modules/unistr/u32-mbtoucr-tests: New file.
35839         * tests/unistr/test-u32-mbtoucr.c: New file.
35840
35841         Tests for module 'unistr/u16-mbtoucr'.
35842         * modules/unistr/u16-mbtoucr-tests: New file.
35843         * tests/unistr/test-u16-mbtoucr.c: New file.
35844
35845         Tests for module 'unistr/u8-mbtoucr'.
35846         * modules/unistr/u8-mbtoucr-tests: New file.
35847         * tests/unistr/test-u8-mbtoucr.c: New file.
35848
35849         Tests for module 'unistr/u32-mbtouc'.
35850         * modules/unistr/u32-mbtouc-tests: New file.
35851         * tests/unistr/test-u32-mbtouc.c: New file.
35852
35853         Tests for module 'unistr/u16-mbtouc'.
35854         * modules/unistr/u16-mbtouc-tests: New file.
35855         * tests/unistr/test-u16-mbtouc.c: New file.
35856
35857         Tests for module 'unistr/u8-mbtouc'.
35858         * modules/unistr/u8-mbtouc-tests: New file.
35859         * tests/unistr/test-u8-mbtouc.c: New file.
35860
35861         Tests for module 'unistr/u32-mbtouc-unsafe'.
35862         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
35863         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
35864         * tests/unistr/test-u32-mbtouc.h: New file.
35865
35866         Tests for module 'unistr/u16-mbtouc-unsafe'.
35867         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
35868         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
35869         * tests/unistr/test-u16-mbtouc.h: New file.
35870
35871         Tests for module 'unistr/u8-mbtouc-unsafe'.
35872         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
35873         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
35874         * tests/unistr/test-u8-mbtouc.h: New file.
35875
35876         Tests for module 'unistr/u32-mblen'.
35877         * modules/unistr/u32-mblen-tests: New file.
35878         * tests/unistr/test-u32-mblen.c: New file.
35879
35880         Tests for module 'unistr/u16-mblen'.
35881         * modules/unistr/u16-mblen-tests: New file.
35882         * tests/unistr/test-u16-mblen.c: New file.
35883
35884         Tests for module 'unistr/u8-mblen'.
35885         * modules/unistr/u8-mblen-tests: New file.
35886         * tests/unistr/test-u8-mblen.c: New file.
35887
35888         Tests for module 'unistr/u32-to-u16'.
35889         * modules/unistr/u32-to-u16-tests: New file.
35890         * tests/unistr/test-u32-to-u16.c: New file.
35891
35892         Tests for module 'unistr/u32-to-u8'.
35893         * modules/unistr/u32-to-u8-tests: New file.
35894         * tests/unistr/test-u32-to-u8.c: New file.
35895
35896         Tests for module 'unistr/u16-to-u32'.
35897         * modules/unistr/u16-to-u32-tests: New file.
35898         * tests/unistr/test-u16-to-u32.c: New file.
35899
35900         Tests for module 'unistr/u16-to-u8'.
35901         * modules/unistr/u16-to-u8-tests: New file.
35902         * tests/unistr/test-u16-to-u8.c: New file.
35903
35904         Tests for module 'unistr/u8-to-u32'.
35905         * modules/unistr/u8-to-u32-tests: New file.
35906         * tests/unistr/test-u8-to-u32.c: New file.
35907
35908         Tests for module 'unistr/u8-to-u16'.
35909         * modules/unistr/u8-to-u16-tests: New file.
35910         * tests/unistr/test-u8-to-u16.c: New file.
35911
35912         Tests for module 'unistr/u32-check'.
35913         * modules/unistr/u32-check-tests: New file.
35914         * tests/unistr/test-u32-check.c: New file.
35915
35916         Tests for module 'unistr/u16-check'.
35917         * modules/unistr/u16-check-tests: New file.
35918         * tests/unistr/test-u16-check.c: New file.
35919
35920         Tests for module 'unistr/u8-check'.
35921         * modules/unistr/u8-check-tests: New file.
35922         * tests/unistr/test-u8-check.c: New file.
35923
35924         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
35925         (category_equals): New function.
35926         (main): Add more tests.
35927         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
35928
35929         * tests/unictype/test-bidi_byname.c (main): Add more tests.
35930
35931 2010-01-10  Bruno Haible  <bruno@clisp.org>
35932
35933         unistr/u*-strcoll: Try harder to distinguish different strings.
35934         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
35935         compare s1 and s2 to see if they are different.
35936
35937 2010-01-10  Bruno Haible  <bruno@clisp.org>
35938
35939         unistr/u*-stpncpy: Fix the return value.
35940         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
35941         description of the return value consistent with stpncpy in glibc.
35942         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
35943         written non-NUL unit.
35944
35945 2010-01-10  Bruno Haible  <bruno@clisp.org>
35946
35947         unistr/u*-next: Add missing dependencies.
35948         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
35949         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
35950         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
35951
35952 2010-01-10  Bruno Haible  <bruno@clisp.org>
35953
35954         unistr/u8-mbsnlen: Fix return value for incomplete character.
35955         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
35956         u8_mblen.
35957         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
35958         Remove unistr/u8-mblen.
35959         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
35960         u16_mblen.
35961         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
35962         Remove unistr/u16-mblen.
35963
35964 2010-01-10  Bruno Haible  <bruno@clisp.org>
35965
35966         wchar: Fix compilation error when <wchar.h> is used from coreutils.
35967         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
35968         Reported by Brian Gough <bjg@gnu.org> and
35969         Chris Clayton <chris2553@googlemail.com> via
35970         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
35971
35972 2010-01-09  Bruno Haible  <bruno@clisp.org>
35973
35974         unistr/u16-to-u32: Reject invalid input.
35975         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
35976         u16_mbtouc.
35977         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
35978         Remove unistr/u16-mbtouc.
35979
35980         unistr/u16-to-u8: Reject invalid input.
35981         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
35982         u16_mbtouc.
35983         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
35984         Remove unistr/u16-mbtouc.
35985
35986         unistr/u8-to-u32: Reject invalid input.
35987         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
35988         u8_mbtouc.
35989         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
35990         Remove unistr/u8-mbtouc.
35991
35992         unistr/u8-to-u16: Reject invalid input.
35993         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
35994         u8_mbtouc.
35995         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
35996         Remove unistr/u8-mbtouc.
35997
35998 2010-01-09  Bruno Haible  <bruno@clisp.org>
35999
36000         Tests for module 'getlogin'.
36001         * modules/getlogin-tests: New file.
36002         * tests/test-getlogin.c: New file.
36003
36004         New module 'getlogin'.
36005         * lib/unistd.in.h (getlogin): New declaration.
36006         * lib/getlogin.c: New file.
36007         * m4/getlogin.m4: New file.
36008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
36009         HAVE_GETLOGIN.
36010         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
36011         HAVE_GETLOGIN.
36012         * modules/getlogin: New file.
36013         * doc/posix-functions/getlogin.texi: Mention the new module.
36014         Reported by John W. Eaton <jwe@gnu.org>.
36015
36016 2010-01-09  Bruno Haible  <bruno@clisp.org>
36017
36018         getlogin_r: Support for native Windows.
36019         * lib/getlogin_r.c: Include <windows.h>
36020         (getlogin_r): Implement for native Windows.
36021         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
36022         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
36023         via John W. Eaton <jwe@gnu.org>.
36024
36025 2010-01-09  Bruno Haible  <bruno@clisp.org>
36026
36027         getlogin_r: Small fixes.
36028         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
36029         succeeds.
36030         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
36031         before testing whether getlogin_r is declared. No need to set
36032         HAVE_DECL_GETLOGIN_R to 1.
36033         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
36034
36035 2010-01-09  Bruno Haible  <bruno@clisp.org>
36036
36037         * lib/unistd.in.h (getlogin_r): Add comment.
36038
36039 2010-01-09  Bruno Haible  <bruno@clisp.org>
36040
36041         Tests for module 'getlogin_r'.
36042         * modules/getlogin_r-tests: New file.
36043         * tests/test-getlogin_r.c: New file.
36044
36045 2010-01-09  Jim Meyering  <meyering@redhat.com>
36046
36047         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
36048         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
36049         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
36050
36051 2010-01-08  Simon Josefsson  <simon@josefsson.org>
36052
36053         * lib/dup2.c (rpl_dup2): Improve comment.
36054
36055 2010-01-08  Eric Blake  <ebb9@byu.net>
36056
36057         maint.mk: allow packages to add makefile @@ exceptions
36058         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
36059         (sc_makefile_check): Rename...
36060         (sc_makefile_at_at_check): ...to this, and use hook.
36061
36062         dup2: work around mingw bug
36063         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
36064         Reported by Simon Josefsson.
36065
36066 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
36067
36068         glob: Fix C++ compilation.
36069         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
36070         C++.
36071
36072 2010-01-07  Bruno Haible  <bruno@clisp.org>
36073
36074         Fix indentation of wctype.in.h, broken since 2007-01-06.
36075         * lib/wctype.in.h: Fix indentation of preprocessor directives.
36076
36077 2010-01-07  Bruno Haible  <bruno@clisp.org>
36078
36079         mbslen: Avoid collision with system function.
36080         * lib/string.in.h [MirBSD]: Include <wchar.h>.
36081         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
36082         * m4/mbslen.m4: New file.
36083         * modules/mbslen (Files): Add it.
36084         (configure.ac): Invoke gl_MBSLEN.
36085         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
36086         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
36087         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
36088         via Ian Beckwith <ianb@erislabs.net>.
36089
36090 2010-01-07  Bruno Haible  <bruno@clisp.org>
36091
36092         dirent: Document the last fix.
36093         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
36094
36095 2010-01-07  Bruno Haible  <bruno@clisp.org>
36096
36097         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
36098         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
36099         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
36100         va_list are defined.
36101         * doc/posix-headers/stdio.texi: Document the bug of missing types.
36102         Reported by Eric Blake.
36103
36104 2010-01-07  Bruno Haible  <bruno@clisp.org>
36105
36106         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
36107         * modules/xlist (Depends-on): Add 'list',
36108         * modules/xoset (Depends-on): Add 'oset'.
36109         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36110
36111 2010-01-07  Bruno Haible  <bruno@clisp.org>
36112
36113         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
36114         * doc/posix-functions/strncasecmp.texi: Likewise.
36115
36116 2010-01-07  Bruno Haible  <bruno@clisp.org>
36117
36118         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
36119
36120 2010-01-07  John W. Eaton  <jwe@octave.org>
36121
36122         wctype: allow C++ use
36123         * lib/wctype.in.h: Add extern "C" block for C++.
36124
36125 2010-01-06  Eric Blake  <ebb9@byu.net>
36126
36127         maint.mk: detect incorrect GFDL usage
36128         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
36129
36130 2010-01-06  Jim Meyering  <meyering@redhat.com>
36131         and Eric Blake  <ebb9@byu.net>
36132
36133         maint.mk: ignore multi-line copyright in NEWS
36134         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
36135
36136 2010-01-06  Eric Blake  <ebb9@byu.net>
36137
36138         select: add missing dependency
36139         * modules/select-tests (Depends-on): Move sockets dependency...
36140         * modules/select (Depends-on): ...here.
36141         Reported by Ian Beckwith.
36142
36143         doc: regenerate INSTALL
36144         * doc/INSTALL: Reflect recent autoconf update.
36145         * doc/INSTALL.ISO: Likewise.
36146         * doc/INSTALL.UTF-8: Likewise.
36147
36148         pread: fix compilation on glibc
36149         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
36150         Reported by Ralf Wildenhues.
36151
36152         dirent: fix test failure
36153         * lib/dirent.in.h (includes): Guarantee ino_t.
36154         Reported by Ralf Wildenhues.
36155
36156 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
36157
36158         linkat, renameat: avoid bad free
36159         * lib/at-func2.c (at_func2): Fix typo.
36160         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
36161
36162 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36163
36164         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
36165         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
36166         to avoid failure of symlink test later.
36167
36168 2010-01-06  Eric Blake  <ebb9@byu.net>
36169
36170         stdio, unistd: guarantee ssize_t
36171         * lib/unistd.in.h (includes): Ensure that types required by POSIX
36172         2008 are exposed when needed.
36173         * lib/stdio.in.h (includes): Likewise.
36174         Reported by Ralf Wildenhues.
36175
36176 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
36177
36178         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
36179         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
36180         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
36181
36182 2010-01-06  Jim Meyering  <meyering@redhat.com>
36183
36184         readtokens: this module *does* require xalloc.h
36185         It uses only functions that were omitted by the old syntax-check rule.
36186         * lib/readtokens.c: Include "xalloc.h" once again.
36187         * modules/readtokens (Depends-on): Add xalloc.
36188         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
36189
36190 2010-01-05  Eric Blake  <ebb9@byu.net>
36191
36192         maint: support 'make announcement' from a VPATH build
36193         * top/maint.mk (announcement): Look for correct NEWS file.
36194
36195 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
36196
36197         utimens (fdutimens): ignore a negative FD, per contract
36198         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
36199         when we have a valid file descriptor.  Otherwise, using a brand
36200         new glibc (with just-patched futimens that now fails with EBADF)
36201         would cause this function to fail with ENOSYS.
36202         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
36203         See also http://bugzilla.redhat.com/552320.
36204
36205 2010-01-05  Eric Blake  <ebb9@byu.net>
36206
36207         strcase: document what it provides
36208         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
36209         gnulib module.
36210         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
36211         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
36212
36213 2010-01-05  Jim Meyering  <meyering@redhat.com>
36214
36215         maint: remove useless inclusions of "xalloc.h"
36216         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
36217         * lib/readtokens.c: Likewise.
36218         * lib/same.c: Likewise.
36219         * modules/getloadavg (Depends-on): Remove xalloc.
36220         * modules/readtokens: Likewise.
36221         * modules/same: Likewise.
36222
36223         maint.mk: include 4 more function names in alloca.h-checking regexp
36224         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
36225         regexp.  Before, we would give a false-positive (saying alloca.h
36226         is included unnecessarily) when the only uses involved omitted symbols.
36227
36228         xalloc.h: use consistent formatting
36229         * lib/xalloc.h: Move declarations to start in the first column.
36230
36231 2010-01-05  Eric Blake  <ebb9@byu.net>
36232
36233         mkdir: avoid xalloc
36234         * lib/mkdir.c (includes): Drop unused header.
36235         Reported by John W. Eaton.
36236
36237 2010-01-04  Jim Meyering  <meyering@redhat.com>
36238
36239         nl_langinfo: avoid configure-time syntax error
36240         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
36241         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
36242         the empty string.  Don't let that provoke a shell syntax error.
36243
36244         regcomp, regexec, fnmatch: avoid array bounds read error
36245         * lib/regcomp.c (build_equiv_class): From glibc:
36246         Use only the low 24 bits of a findidx return value as an index
36247         into the weights array.  Patch by Ulrich Drepper:
36248         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
36249         * lib/regexec.c (check_node_accept_bytes): Likewise.
36250         * lib/fnmatch_loop.c (FCT): Likewise.
36251
36252         regcomp: skip collseq lookup when there are no rules
36253         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
36254         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
36255
36256         regcomp: recognize ill-formed { } expressions
36257         * lib/regcomp.c (parse_dup_op): From glibc:
36258         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
36259
36260         regcomp: fix typo in comment
36261         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
36262         s/satisfy/satisfies/.
36263
36264         regcomp: sync from glibc: remove dead store
36265         * lib/regcomp.c (duplicate_node_closure): Remove useless
36266         search_duplicated_node call and dead store.
36267
36268         regcomp: sync from glibc; always use nl_langinfo
36269         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
36270         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
36271         * modules/regex (Depends-on): Add nl_langinfo.
36272
36273 2010-01-04  Eric Blake  <ebb9@byu.net>
36274
36275         fdopendir: fix configure test
36276         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
36277
36278 2010-01-01  Bruno Haible  <bruno@clisp.org>
36279
36280         wchar: Remove unused configure check.
36281         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
36282
36283 2010-01-01  Eric Blake  <ebb9@byu.net>
36284
36285         headers: make check of system header explicit
36286         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
36287         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
36288         ourselves.
36289         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36290         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36291         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
36292         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
36293         internals.
36294         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
36295         missing.
36296         Suggested by Bruno Haible.
36297
36298 2010-01-01  Jim Meyering  <meyering@redhat.com>
36299
36300         ChangeLog: tweak to eliminate unnecessary copyright line
36301         * ChangeLog: Remove a copyright line that was mistakenly updated
36302         by today's update-copyright run.  Reported by Eric Blake.
36303
36304         test-update-copyright: don't let envvar setting cause test failure
36305         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
36306
36307 2010-01-01  Bruno Haible  <bruno@clisp.org>
36308
36309         localename: Avoid gcc warning.
36310         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
36311         function if it is not used.
36312
36313 2010-01-01  Jim Meyering  <meyering@redhat.com>
36314
36315         update nearly all FSF copyright year lists to include 2010
36316         Use the same procedure as for 2009, outlined in
36317         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
36318
36319         version-etc: set COPYRIGHT_YEAR to 2010
36320         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
36321
36322 2009-12-31  Eric Blake  <ebb9@byu.net>
36323
36324         doc: correct availability of cygwin 1.5.x getopt
36325         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
36326         variables.
36327         * doc/posix-functions/opterr.texi (opterr): Likewise.
36328         * doc/posix-functions/optind.texi (optind): Likewise.
36329         * doc/posix-functions/optopt.texi (optopt): Likewise.
36330         * doc/posix-functions/tzname.texi (tzname): Likewise.
36331
36332         openat: update maintainer
36333         * modules/openat (Maintainer): Add myself.
36334
36335         utimens: avoid shadowing warning
36336         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
36337         buffers into one, to avoid shadowing, as well as avoiding a
36338         redundant stat.
36339         Reported by Jim Meyering.
36340
36341         test-dup2: avoid compiler warning
36342         * tests/test-dup2.c (is_inheritable): Only define if used.
36343
36344 2010-01-01  Bruno Haible  <bruno@clisp.org>
36345
36346         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
36347         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
36348         defined, use wctomb instead of wcrtomb.
36349
36350 2010-01-01  Bruno Haible  <bruno@clisp.org>
36351
36352         iconv: Reject native Solaris iconv.
36353         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
36354         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
36355
36356 2009-12-31  Bruno Haible  <bruno@clisp.org>
36357
36358         * tests/test-signal.c (main): Remove test of 'SIG'.
36359
36360 2009-12-31  Bruno Haible  <bruno@clisp.org>
36361
36362         spawn: Fix incomplete fix.
36363         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
36364         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
36365         warnings for GNULIB_POSIXCHECK again.
36366         Reported by Eric Blake.
36367
36368 2009-12-31  Bruno Haible  <bruno@clisp.org>
36369
36370         Avoid namespace pollution on glibc systems.
36371         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
36372         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
36373         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
36374         glibc systems.
36375
36376 2009-12-31  Bruno Haible  <bruno@clisp.org>
36377
36378         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
36379         (gl_REPLACE_WCHAR_H): Turn into a no-op.
36380         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
36381         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
36382         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
36383         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
36384         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
36385
36386 2009-12-31  Bruno Haible  <bruno@clisp.org>
36387
36388         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
36389         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
36390         afterwards.
36391
36392 2009-12-31  Bruno Haible  <bruno@clisp.org>
36393
36394         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
36395         SYS_UTSNAME_H.
36396
36397 2009-12-31  Bruno Haible  <bruno@clisp.org>
36398
36399         spawn: Fix misapplied patch.
36400         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
36401         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
36402         warnings for GNULIB_POSIXCHECK.
36403
36404 2009-12-31  Bruno Haible  <bruno@clisp.org>
36405
36406         times: Update after sys_times changed.
36407         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
36408         * modules/times (Files): Add it.
36409         (configure.ac): Invoke gl_FUNC_TIMES.
36410
36411 2009-12-31  Bruno Haible  <bruno@clisp.org>
36412
36413         Use AC_C_INLINE where necessary.
36414         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
36415         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36416         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
36417         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
36418         * m4/mbfile.m4 (gl_MBFILE): Likewise.
36419         * m4/mbiter.m4 (gl_MBITER): Likewise.
36420         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
36421         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36422         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
36423         * modules/u64 (configure.ac): Likewise.
36424
36425 2009-12-31  Bruno Haible  <bruno@clisp.org>
36426
36427         Use AC_C_INLINE instead of module 'inline' where possible.
36428         * modules/inline (Description): Clarify purpose.
36429         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
36430         * modules/count-one-bits (Depends-on): Remove inline.
36431         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
36432         * modules/openat (Depends-on): Remove inline.
36433         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
36434         instead of depending on module 'inline'.
36435         * modules/filevercmp (Depends-on, configure.ac): Likewise.
36436         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
36437         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
36438         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
36439         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
36440         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
36441         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
36442         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
36443         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
36444         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
36445         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
36446         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
36447         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
36448         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
36449         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
36450         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
36451         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
36452         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
36453         Likewise.
36454         * modules/unictype/property-ascii-hex-digit (Depends-on,
36455         configure.ac): Likewise.
36456         * modules/unictype/property-bidi-arabic-digit (Depends-on,
36457         configure.ac): Likewise.
36458         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
36459         configure.ac): Likewise.
36460         * modules/unictype/property-bidi-block-separator (Depends-on,
36461         configure.ac): Likewise.
36462         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
36463         configure.ac): Likewise.
36464         * modules/unictype/property-bidi-common-separator (Depends-on,
36465         configure.ac): Likewise.
36466         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
36467         Likewise.
36468         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
36469         configure.ac): Likewise.
36470         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
36471         configure.ac): Likewise.
36472         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
36473         configure.ac): Likewise.
36474         * modules/unictype/property-bidi-european-digit (Depends-on,
36475         configure.ac): Likewise.
36476         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
36477         configure.ac): Likewise.
36478         * modules/unictype/property-bidi-left-to-right (Depends-on,
36479         configure.ac): Likewise.
36480         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
36481         configure.ac): Likewise.
36482         * modules/unictype/property-bidi-other-neutral (Depends-on,
36483         configure.ac): Likewise.
36484         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
36485         Likewise.
36486         * modules/unictype/property-bidi-segment-separator (Depends-on,
36487         configure.ac): Likewise.
36488         * modules/unictype/property-bidi-whitespace (Depends-on,
36489         configure.ac): Likewise.
36490         * modules/unictype/property-combining (Depends-on, configure.ac):
36491         Likewise.
36492         * modules/unictype/property-composite (Depends-on, configure.ac):
36493         Likewise.
36494         * modules/unictype/property-currency-symbol (Depends-on,
36495         configure.ac): Likewise.
36496         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
36497         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
36498         Likewise.
36499         * modules/unictype/property-default-ignorable-code-point (Depends-on,
36500         configure.ac): Likewise.
36501         * modules/unictype/property-deprecated (Depends-on, configure.ac):
36502         Likewise.
36503         * modules/unictype/property-diacritic (Depends-on, configure.ac):
36504         Likewise.
36505         * modules/unictype/property-extender (Depends-on, configure.ac):
36506         Likewise.
36507         * modules/unictype/property-format-control (Depends-on, configure.ac):
36508         Likewise.
36509         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
36510         Likewise.
36511         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
36512         Likewise.
36513         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
36514         Likewise.
36515         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
36516         Likewise.
36517         * modules/unictype/property-hyphen (Depends-on, configure.ac):
36518         Likewise.
36519         * modules/unictype/property-id-continue (Depends-on, configure.ac):
36520         Likewise.
36521         * modules/unictype/property-id-start (Depends-on, configure.ac):
36522         Likewise.
36523         * modules/unictype/property-ideographic (Depends-on, configure.ac):
36524         Likewise.
36525         * modules/unictype/property-ids-binary-operator (Depends-on,
36526         configure.ac): Likewise.
36527         * modules/unictype/property-ids-trinary-operator (Depends-on,
36528         configure.ac): Likewise.
36529         * modules/unictype/property-ignorable-control (Depends-on,
36530         configure.ac): Likewise.
36531         * modules/unictype/property-iso-control (Depends-on, configure.ac):
36532         Likewise.
36533         * modules/unictype/property-join-control (Depends-on, configure.ac):
36534         Likewise.
36535         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
36536         Likewise.
36537         * modules/unictype/property-line-separator (Depends-on, configure.ac):
36538         Likewise.
36539         * modules/unictype/property-logical-order-exception (Depends-on,
36540         configure.ac): Likewise.
36541         * modules/unictype/property-lowercase (Depends-on, configure.ac):
36542         Likewise.
36543         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
36544         * modules/unictype/property-non-break (Depends-on, configure.ac):
36545         Likewise.
36546         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
36547         Likewise.
36548         * modules/unictype/property-numeric (Depends-on, configure.ac):
36549         Likewise.
36550         * modules/unictype/property-other-alphabetic (Depends-on,
36551         configure.ac): Likewise.
36552         * modules/unictype/property-other-default-ignorable-code-point
36553         (Depends-on, configure.ac): Likewise.
36554         * modules/unictype/property-other-grapheme-extend (Depends-on,
36555         configure.ac): Likewise.
36556         * modules/unictype/property-other-id-continue (Depends-on,
36557         configure.ac): Likewise.
36558         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
36559         Likewise.
36560         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
36561         Likewise.
36562         * modules/unictype/property-other-math (Depends-on, configure.ac):
36563         Likewise.
36564         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
36565         Likewise.
36566         * modules/unictype/property-paired-punctuation (Depends-on,
36567         configure.ac): Likewise.
36568         * modules/unictype/property-paragraph-separator (Depends-on,
36569         configure.ac): Likewise.
36570         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
36571         Likewise.
36572         * modules/unictype/property-pattern-white-space (Depends-on,
36573         configure.ac): Likewise.
36574         * modules/unictype/property-private-use (Depends-on, configure.ac):
36575         Likewise.
36576         * modules/unictype/property-punctuation (Depends-on, configure.ac):
36577         Likewise.
36578         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
36579         Likewise.
36580         * modules/unictype/property-radical (Depends-on, configure.ac):
36581         Likewise.
36582         * modules/unictype/property-sentence-terminal (Depends-on,
36583         configure.ac): Likewise.
36584         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
36585         Likewise.
36586         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
36587         * modules/unictype/property-terminal-punctuation (Depends-on,
36588         configure.ac): Likewise.
36589         * modules/unictype/property-titlecase (Depends-on, configure.ac):
36590         Likewise.
36591         * modules/unictype/property-unassigned-code-value (Depends-on,
36592         configure.ac): Likewise.
36593         * modules/unictype/property-unified-ideograph (Depends-on,
36594         configure.ac): Likewise.
36595         * modules/unictype/property-uppercase (Depends-on, configure.ac):
36596         Likewise.
36597         * modules/unictype/property-variation-selector (Depends-on,
36598         configure.ac): Likewise.
36599         * modules/unictype/property-white-space (Depends-on, configure.ac):
36600         Likewise.
36601         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
36602         Likewise.
36603         * modules/unictype/property-xid-start (Depends-on, configure.ac):
36604         Likewise.
36605         * modules/unictype/property-zero-width (Depends-on, configure.ac):
36606         Likewise.
36607         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
36608         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
36609         Likewise.
36610
36611 2009-12-31  Bruno Haible  <bruno@clisp.org>
36612
36613         Remove unnecessary AC_C_INLINE invocation.
36614         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
36615         since 2009-08-21.
36616
36617 2009-12-31  Jim Meyering  <meyering@redhat.com>
36618
36619         maint.mk: don't require explicit gpg_key_ID in cfg.mk
36620         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
36621         With this change, we can all remove the gpg_key_ID = ... definition
36622         from our respective cfg.mk files.
36623
36624         maint.mk: create announcement template in ~/, not in /tmp
36625         * top/maint.mk (emit_upload_commands): Adjust.
36626         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
36627         Remove temporary file, .ci-msg.
36628
36629 2009-12-31  Eric Blake  <ebb9@byu.net>
36630
36631         link-warning: always build headers with link warnings
36632         * modules/arpa_inet (Makefile.am): Always build replacement
36633         header.
36634         * modules/ctype (Makefile.am): Likewise.
36635         * modules/dirent (Makefile.am): Likewise.
36636         * modules/inttypes (Makefile.am): Likewise.
36637         * modules/langinfo (Makefile.am): Likewise.
36638         * modules/locale (Makefile.am): Likewise.
36639         * modules/spawn (Makefile.am): Likewise.
36640         * modules/sys_file (Makefile.am): Likewise.
36641         * modules/sys_ioctl (Makefile.am): Likewise.
36642         * modules/sys_select (Makefile.am): Likewise.
36643         * modules/sys_socket (Makefile.am): Likewise.
36644         * modules/sys_times (Makefile.am): Likewise.
36645         * modules/sys_utsname (Makefile.am): Likewise.
36646         * modules/sys_wait (Makefile.am): Likewise.
36647         * modules/wchar (Makefile.am): Likewise.
36648         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
36649         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
36650         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
36651         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
36652         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
36653         Likewise.
36654         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36655         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36656         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
36657         Likewise.
36658         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
36659         Likewise.
36660         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
36661         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
36662         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
36663         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36664         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36665         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36666         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36667         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
36668         (gl_WCHAR_H_DEFAULTS): Likewise.
36669
36670 2009-12-31  Eric Blake  <ebb9@byu.net>
36671
36672         signal, spawn: use link warnings
36673         * lib/signal.in.h (sigset_t): Make unconditional.
36674         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
36675         (sigpending, sigprocmask, sigaction): Add link warnings.
36676         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
36677         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
36678         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
36679         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
36680         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
36681         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
36682         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
36683         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
36684         (posix_spawn_file_actions_destroy)
36685         (posix_spawn_file_actions_addopen)
36686         (posix_spawn_file_actions_addclose)
36687         (posix_spawn_file_actions_adddup2): Likewise.
36688         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
36689         * tests/test-signal.c (main): Enhance test.
36690
36691         spawn: improve wrapper support
36692         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
36693         (gl_SPAWN_H_DEFAULTS): New defaults.
36694         * modules/spawn (Makefile.am): Substitute them.
36695         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
36696         Only declare if missing or broken.
36697
36698         sys_times, sys_utsname: use include_next
36699         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
36700         header.
36701         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
36702         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36703         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36704         * modules/sys_times (Depends-on): Add include_next.
36705         (Makefile.am): Substitute additional values.
36706         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36707         * lib/sys_times.in.h (includes): Include native header, if
36708         available.
36709         * lib/sys_utsname.in.h (includes): Likewise.
36710         * tests/test-sys_times.c (main): Enhance test.
36711
36712         fdutimensat: revert prior patch
36713         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
36714         utimens.h.
36715         Reported by Bruno Haible.
36716
36717 2009-12-30  Eric Blake  <ebb9@byu.net>
36718
36719         sys_wait: drop link-warning dependency
36720         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
36721         link-warning efforts.
36722         * lib/sys_wait.in.h: Likewise.
36723
36724         fdutimensat: remove bogus dependency
36725         * modules/fdutimensat (Depends-on): Drop inline.
36726
36727         unistd: fix typo
36728         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
36729
36730 2009-12-30  Bruno Haible  <bruno@clisp.org>
36731
36732         Fix compilation error with Solaris cc.
36733         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
36734         * lib/unicase/u16-is-invariant.c: Likewise.
36735         * lib/unicase/u32-is-invariant.c: Likewise.
36736         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
36737
36738 2009-12-30  Bruno Haible  <bruno@clisp.org>
36739
36740         Fix test crash.
36741         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
36742         locales.
36743         Reported by Simon Josefsson <simon@josefsson.org>.
36744
36745 2009-12-30  Bruno Haible  <bruno@clisp.org>
36746
36747         Fix compilation error on most platforms.
36748         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
36749         Reported by Simon Josefsson <simon@josefsson.org>
36750         and Nelson H. F. Beebe <beebe@math.utah.edu>.
36751
36752 2009-12-30  Eric Blake  <ebb9@byu.net>
36753
36754         futimens, utimensat: work around ntfs-3g bug
36755         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
36756         a ctime bug is present, and expand workaround to cover ntfs-3g.
36757         * lib/utimens.c (fdutimens, lutimens): Likewise.
36758         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
36759         (validate_timespec): Adjust return value.
36760         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
36761         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36762         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
36763
36764 2009-12-29  Eric Blake  <ebb9@byu.net>
36765
36766         link-warning: make usage consistent
36767         * modules/ctype (Depends-on): Add link-warning.
36768         (Makefile.am): Update rules accordingly.
36769         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36770         * modules/locale (Depends-on, Makefile.am): Likewise.
36771         * modules/sys_file (Makefile.am): Likewise.
36772         * modules/getopt-posix (Makefile.am): Delete unused link warning
36773         efforts.
36774         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
36775         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
36776         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
36777         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
36778
36779         stdio: remove unused variables
36780         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
36781         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
36782         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
36783
36784         tests: test more substitute headers
36785         * modules/ctype-tests: New file.
36786         * modules/dirent-tests: Likewise.
36787         * modules/spawn-tests: Likewise.
36788         * modules/sys_file-tests: Likewise.
36789         * modules/sys_ioctl-tests: Likewise.
36790         * modules/sys_wait-tests: Likewise.
36791         * tests/test-ctype.c: Likewise.
36792         * tests/test-dirent.c: Likewise.
36793         * tests/test-spawn.c: Likewise.
36794         * tests/test-sys_file.c: Likewise.
36795         * tests/test-sys_ioctl.c: Likewise.
36796         * tests/test-sys_wait.c: Likewise.
36797         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
36798         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
36799         whether or not flock is in use.
36800
36801         tests: remove License section from module
36802         * modules/arpa_inet-tests: Remove unneeded section.
36803         * modules/byteswap-tests: Likewise.
36804         * modules/ceilf-tests: Likewise.
36805         * modules/ceill-tests: Likewise.
36806         * modules/crypto/des-tests: Likewise.
36807         * modules/crypto/gc-arcfour-tests: Likewise.
36808         * modules/crypto/gc-arctwo-tests: Likewise.
36809         * modules/crypto/gc-des-tests: Likewise.
36810         * modules/crypto/gc-hmac-md5-tests: Likewise.
36811         * modules/crypto/gc-hmac-sha1-tests: Likewise.
36812         * modules/crypto/gc-md2-tests: Likewise.
36813         * modules/crypto/gc-md4-tests: Likewise.
36814         * modules/crypto/gc-md5-tests: Likewise.
36815         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
36816         * modules/crypto/gc-rijndael-tests: Likewise.
36817         * modules/crypto/gc-sha1-tests: Likewise.
36818         * modules/crypto/gc-tests: Likewise.
36819         * modules/crypto/md2-tests: Likewise.
36820         * modules/crypto/md4-tests: Likewise.
36821         * modules/fcntl-h-tests: Likewise.
36822         * modules/floorf-tests: Likewise.
36823         * modules/floorl-tests: Likewise.
36824         * modules/frexp-nolibm-tests: Likewise.
36825         * modules/frexp-tests: Likewise.
36826         * modules/frexpl-nolibm-tests: Likewise.
36827         * modules/frexpl-tests: Likewise.
36828         * modules/getaddrinfo-tests: Likewise.
36829         * modules/inttypes-tests: Likewise.
36830         * modules/isfinite-tests: Likewise.
36831         * modules/isinf-tests: Likewise.
36832         * modules/ldexpl-tests: Likewise.
36833         * modules/locale-tests: Likewise.
36834         * modules/math-tests: Likewise.
36835         * modules/netdb-tests: Likewise.
36836         * modules/netinet_in-tests: Likewise.
36837         * modules/printf-frexp-tests: Likewise.
36838         * modules/printf-frexpl-tests: Likewise.
36839         * modules/priv-set-tests: Likewise.
36840         * modules/random_r-tests: Likewise.
36841         * modules/round-tests: Likewise.
36842         * modules/roundf-tests: Likewise.
36843         * modules/roundl-tests: Likewise.
36844         * modules/search-tests: Likewise.
36845         * modules/select-tests: Likewise.
36846         * modules/signal-tests: Likewise.
36847         * modules/stdbool-tests: Likewise.
36848         * modules/stddef-tests: Likewise.
36849         * modules/stdint-tests: Likewise.
36850         * modules/stdio-tests: Likewise.
36851         * modules/stdlib-tests: Likewise.
36852         * modules/string-tests: Likewise.
36853         * modules/strings-tests: Likewise.
36854         * modules/sys_select-tests: Likewise.
36855         * modules/sys_socket-tests: Likewise.
36856         * modules/sys_stat-tests: Likewise.
36857         * modules/sys_time-tests: Likewise.
36858         * modules/sys_utsname-tests: Likewise.
36859         * modules/sysexits-tests: Likewise.
36860         * modules/time-tests: Likewise.
36861         * modules/trunc-tests: Likewise.
36862         * modules/truncf-tests: Likewise.
36863         * modules/truncl-tests: Likewise.
36864         * modules/tsearch-tests: Likewise.
36865         * modules/unistd-tests: Likewise.
36866         * modules/wchar-tests: Likewise.
36867         * modules/wctype-tests: Likewise.
36868
36869         tests: fix license on several tests
36870         * tests/test-des.c: Update to GPLv3+.
36871         * tests/test-flock.c: Likewise.
36872         * tests/test-fsync.c: Likewise.
36873         * tests/test-futimens.h: Likewise.
36874         * tests/test-gc-arcfour.c: Likewise.
36875         * tests/test-gc-arctwo.c: Likewise.
36876         * tests/test-gc-des.c: Likewise.
36877         * tests/test-gc-hmac-md5.c: Likewise.
36878         * tests/test-gc-hmac-sha1.c: Likewise.
36879         * tests/test-gc-md2.c: Likewise.
36880         * tests/test-gc-md4.c: Likewise.
36881         * tests/test-gc-md5.c: Likewise.
36882         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36883         * tests/test-gc-rijndael.c: Likewise.
36884         * tests/test-gc-sha1.c: Likewise.
36885         * tests/test-gc.c: Likewise.
36886         * tests/test-getcwd.c: Likewise.
36887         * tests/test-link.c: Likewise.
36888         * tests/test-link.h: Likewise.
36889         * tests/test-lutimens.h: Likewise.
36890         * tests/test-md2.c: Likewise.
36891         * tests/test-md4.c: Likewise.
36892         * tests/test-mkdir.h: Likewise.
36893         * tests/test-rename.c: Likewise.
36894         * tests/test-rename.h: Likewise.
36895         * tests/test-safe-alloc.c: Likewise.
36896         * tests/test-utimens-common.h: Likewise.
36897         * tests/test-utimens.h: Likewise.
36898
36899         maint: sync license texts
36900         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
36901         * doc/gpl-3.0.texi: Revert copyright year update.
36902         * doc/lgpl-3.0.texi: Likewise.
36903
36904 2009-12-29  Jim Meyering  <meyering@redhat.com>
36905
36906         update nearly all FSF copyright year lists to include 2009
36907         The files named by the following are exempted:
36908             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
36909               test -f "$dst" && { echo "$dst"; continue; }
36910               test -d "$dst" || continue
36911               echo "$dst"/$(basename "$src")
36912             done > exempt
36913             git ls-files tests/unictype >> exempt
36914         In the remaining files, convert to all-interval notation if
36915         - there is already at least one year interval like 2000-2003
36916         - the file is maintained by me
36917         - the file is in lib/uni*/, where that style already prevails
36918         Otherwise, use update-copyright's default.
36919
36920 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36921         and Eric Blake  <ebb9@byu.net>
36922
36923         tests: don't require debug system() to pass
36924         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
36925         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36926         * tests/test-unlink.h (test_unlink_func): Likewise.
36927         * tests/test-fstatat.c (main): ...into callers.
36928         * tests/test-lstat.c (main): Likewise.
36929         * tests/test-rmdir.c (main): Likewise.
36930         * tests/test-unlink.c (main): Likewise.
36931         * tests/test-unlinkat.c (main): Likewise.
36932         * tests/test-areadlink-with-size.c (main): Don't require a
36933         debug-only system call to pass, aiding cross-testing to mingw.
36934         * tests/test-areadlink.c (main): Likewise.
36935         * tests/test-areadlinkat-with-size.c (main): Likewise.
36936         * tests/test-areadlinkat.c (main): Likewise.
36937         * tests/test-canonicalize-lgpl.c (main): Likewise.
36938         * tests/test-canonicalize.c (main): Likewise.
36939         * tests/test-chown.c (main): Likewise.
36940         * tests/test-fchownat.c (main): Likewise.
36941         * tests/test-lchown.c (main): Likewise.
36942         * tests/test-fdutimensat.c (main): Likewise.
36943         * tests/test-futimens.c (main): Likewise.
36944         * tests/test-link.c (main): Likewise.
36945         * tests/test-linkat.c (main): Likewise.
36946         * tests/test-mkdir.c (main): Likewise.
36947         * tests/test-mkdirat.c (main): Likewise.
36948         * tests/test-mkfifo.c (main): Likewise.
36949         * tests/test-mkfifoat.c (main): Likewise.
36950         * tests/test-mknod.c (main): Likewise.
36951         * tests/test-readlink.c (main): Likewise.
36952         * tests/test-remove.c (main): Likewise.
36953         * tests/test-rename.c (main): Likewise.
36954         * tests/test-renameat.c (main): Likewise.
36955         * tests/test-symlink.c (main): Likewise.
36956         * tests/test-symlinkat.c (main): Likewise.
36957         * tests/test-utimens.c (main): Likewise.
36958         * tests/test-utimensat.c (main): Likewise.
36959
36960 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36961
36962         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
36963         on $(UNUSED_PARAMETER_H) to avoid build failure.
36964
36965 2009-12-28  Jim Meyering  <meyering@redhat.com>
36966
36967         update-copyright: you may specify a max. line length other than 72
36968         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
36969
36970         maint: use consistent FSF copyright line syntax
36971         * lib/posixtm.c: Add missing comma in FSF copyright line.
36972         * lib/posixtm.h: Likewise.
36973         * lib/getugroups.c: Add missing ", Inc.".
36974
36975         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
36976         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
36977         FSF copyright line.  Remove trailing blanks.
36978
36979 2009-12-28  Eric Blake  <ebb9@byu.net>
36980
36981         test-dup2: reduce dependencies
36982         * modules/cloexec (Configure.ac): Set witness.
36983         * modules/dup2-tests (Depends-on): Drop cloexec.
36984         * tests/test-dup2.c (main): Skip portion of test if cloexec module
36985         not present.
36986         Suggested by Bruno Haible.
36987
36988 2009-12-26  Bruno Haible  <bruno@clisp.org>
36989
36990         Remove an unneeded dependency.
36991         * modules/fseterr (Depends-on): Remove dup2.
36992
36993 2009-12-26  Eric Blake  <ebb9@byu.net>
36994
36995         tests: use macros.h in more places
36996         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
36997         (ASSERT_STREAM): Provide default of stderr.
36998         * tests/test-dirent-safer.c: Include macros.h, using alternate
36999         stream for assertions.
37000         * tests/test-dup-safer.c: Likewise.
37001         * tests/test-freopen-safer.c: Likewise.
37002         * tests/test-getopt.c: Likewise.
37003         * tests/test-openat-safer.c: Likewise.
37004         * tests/test-pipe.c: Likewise.
37005         * tests/test-popen-safer.c: Likewise.
37006         * modules/dirent-safer-tests (Files): Include macros.h.
37007         * modules/unistd-safer-tests (Files): Likewise.
37008         * modules/freopen-safer-tests (Files): Likewise.
37009         * modules/getopt-posix-tests (Files): Likewise.
37010         * modules/openat-safer-tests (Files): Likewise.
37011         * modules/pipe-tests (Files): Likewise.
37012
37013 2009-12-26  Bruno Haible  <bruno@clisp.org>
37014
37015         javacomp: Portability fix.
37016         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
37017         that it also works on Solaris.
37018
37019 2009-12-26  Bruno Haible  <bruno@clisp.org>
37020
37021         localename: Fix storage allocation of gl_locale_name_thread's result.
37022         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
37023         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
37024         all platforms that have 'uselocale'.
37025         (gl_locale_name_thread_unsafe): New function, extracted from
37026         gl_locale_name_thread.
37027         (gl_locale_name_thread): Call struniq on all platforms that have
37028         'uselocale'.
37029         * tests/test-localename.c (test_locale_name_thread): Check that the
37030         resulting strings are permanently allocated.
37031         * modules/localename-tests (Depends-on): Add strdup.
37032
37033 2009-12-26  Bruno Haible  <bruno@clisp.org>
37034
37035         * tests/test-localename.c (categories): Fill in the strings.
37036
37037 2009-12-26  Jim Meyering  <meyering@redhat.com>
37038
37039         isdir: complete the removal of m4/isdir.m4
37040         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
37041
37042         isdir: clean up, since at least grep still uses it
37043         * lib/isdir.c: Include "isdir.h".
37044         (S_ISDIR): Remove now-unneeded definition.
37045         * modules/isdir (Files): Add lib/isdir.h.
37046         * lib/isdir.h: New file, with declaration.
37047         * m4/isdir.m4: Remove file -- unneeded.
37048
37049 2009-12-25  Bruno Haible  <bruno@clisp.org>
37050
37051         selinux-h: Make generated .h files standalone.
37052         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
37053         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
37054         * lib/se-selinux.in.h: Likewise.
37055         * modules/selinux-h (Depends-on): Add unused-parameter.
37056         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
37057         selinux/selinux.h and selinux/context.h.
37058         Suggested by Eric Blake.
37059
37060 2009-12-25  Bruno Haible  <bruno@clisp.org>
37061
37062         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
37063         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
37064         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
37065         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
37066         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
37067
37068 2009-12-24  Bruno Haible  <bruno@clisp.org>
37069
37070         openat: Fix warning.
37071         * lib/openat-proc.c: Include <unistd.h>.
37072
37073 2009-12-24  Bruno Haible  <bruno@clisp.org>
37074
37075         New module 'unused-parameter'.
37076         * build-aux/unused-parameter.h: New file, extracted from earlier
37077         gnulib-common.m4.
37078         * modules/unused-parameter: New file.
37079         * lib/unistr.h: Include unused-parameter.h.
37080         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
37081         _GL_UNUSED.
37082         * modules/unistr/base (Depends-on): Add unused-parameter.
37083
37084 2009-12-24  Bruno Haible  <bruno@clisp.org>
37085
37086         Add missing dependencies to 'extensions' module.
37087         * m4/extensions.m4: Add comment.
37088         * modules/accept4 (Depends-on): Add extensions.
37089         * modules/dup3 (Depends-on): Likewise.
37090         * modules/fcntl (Depends-on): Likewise.
37091         * modules/futimens (Depends-on): Likewise.
37092         * modules/mknod (Depends-on): Likewise.
37093         * modules/pipe2 (Depends-on): Likewise.
37094         * modules/stat-time (Depends-on): Likewise.
37095         * modules/strcasestr-simple (Depends-on): Likewise.
37096         * modules/strsignal (Depends-on): Likewise.
37097         * modules/utimensat (Depends-on): Likewise.
37098         * modules/localcharset (Depends-on): Likewise. Needed because of
37099         gl_FCNTL_O_FLAGS.
37100         * modules/wcrtomb (Depends-on): Likewise. Needed because of
37101         AC_TYPE_MBSTATE_T.
37102         * modules/wcsnrtombs (Depends-on): Likewise.
37103         * modules/wcsrtombs (Depends-on): Likewise.
37104
37105 2009-12-24  Bruno Haible  <bruno@clisp.org>
37106
37107         binary-io: Avoid gcc warning due to SET_BINARY.
37108         * lib/binary-io.h (SET_BINARY): Cast the result to void.
37109         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
37110
37111 2009-12-24  Bruno Haible  <bruno@clisp.org>
37112
37113         Avoid future namespace pollution on glibc systems.
37114         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
37115         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
37116         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
37117         glibc systems.
37118
37119 2009-12-24  Bruno Haible  <bruno@clisp.org>
37120
37121         Refactor common macros used in tests.
37122         * tests/macros.h: New file.
37123         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
37124         and/or <stdlib.h>, if appropriate.
37125         (ASSERT, SIZEOF): Remove macros.
37126         * tests/test-areadlink-with-size.c: Likewise.
37127         * tests/test-areadlinkat.c: Likewise.
37128         * tests/test-areadlinkat-with-size.c: Likewise.
37129         * tests/test-argmatch.c: Likewise.
37130         * tests/test-argv-iter.c: Likewise.
37131         * tests/test-array-mergesort.c: Likewise.
37132         * tests/test-array_list.c: Likewise.
37133         * tests/test-array_oset.c: Likewise.
37134         * tests/test-avltree_list.c: Likewise.
37135         * tests/test-avltree_oset.c: Likewise.
37136         * tests/test-avltreehash_list.c: Likewise.
37137         * tests/test-base64.c: Likewise.
37138         * tests/test-binary-io.c: Likewise.
37139         * tests/test-bitrotate.c: Likewise.
37140         * tests/test-btowc.c: Likewise.
37141         * tests/test-byteswap.c: Likewise.
37142         * tests/test-c-ctype.c: Likewise.
37143         * tests/test-c-stack.c: Likewise.
37144         * tests/test-c-strcasecmp.c: Likewise.
37145         * tests/test-c-strcasestr.c: Likewise.
37146         * tests/test-c-strncasecmp.c: Likewise.
37147         * tests/test-c-strstr.c: Likewise.
37148         * tests/test-canonicalize-lgpl.c: Likewise.
37149         * tests/test-canonicalize.c: Likewise.
37150         * tests/test-carray_list.c: Likewise.
37151         * tests/test-ceilf1.c: Likewise.
37152         * tests/test-ceilf2.c: Likewise.
37153         * tests/test-ceill.c: Likewise.
37154         * tests/test-chown.c: Likewise.
37155         * tests/test-cloexec.c: Likewise.
37156         * tests/test-copy-acl.c: Likewise.
37157         * tests/test-copy-file.c: Likewise.
37158         * tests/test-count-one-bits.c: Likewise.
37159         * tests/test-dprintf-posix.c: Likewise.
37160         * tests/test-dup2.c: Likewise.
37161         * tests/test-dup3.c: Likewise.
37162         * tests/test-duplocale.c: Likewise.
37163         * tests/test-fbufmode.c: Likewise.
37164         * tests/test-fchdir.c: Likewise.
37165         * tests/test-fchownat.c: Likewise.
37166         * tests/test-fcntl-safer.c: Likewise.
37167         * tests/test-fcntl.c: Likewise.
37168         * tests/test-fdopendir.c: Likewise.
37169         * tests/test-fdutimensat.c: Likewise.
37170         * tests/test-fflush2.c: Likewise.
37171         * tests/test-file-has-acl.c: Likewise.
37172         * tests/test-filevercmp.c: Likewise.
37173         * tests/test-flock.c: Likewise.
37174         * tests/test-floorf1.c: Likewise.
37175         * tests/test-floorf2.c: Likewise.
37176         * tests/test-floorl.c: Likewise.
37177         * tests/test-fnmatch.c: Likewise.
37178         * tests/test-fopen.h: Likewise.
37179         * tests/test-fpending.c: Likewise.
37180         * tests/test-fprintf-posix.c: Likewise.
37181         * tests/test-fpurge.c: Likewise.
37182         * tests/test-freadable.c: Likewise.
37183         * tests/test-freadahead.c: Likewise.
37184         * tests/test-freading.c: Likewise.
37185         * tests/test-freadptr.c: Likewise.
37186         * tests/test-freadptr2.c: Likewise.
37187         * tests/test-freadseek.c: Likewise.
37188         * tests/test-freopen.c: Likewise.
37189         * tests/test-frexp.c: Likewise.
37190         * tests/test-frexpl.c: Likewise.
37191         * tests/test-fseek.c: Likewise.
37192         * tests/test-fseeko.c: Likewise.
37193         * tests/test-fstatat.c: Likewise.
37194         * tests/test-fstrcmp.c: Likewise.
37195         * tests/test-fsync.c: Likewise.
37196         * tests/test-ftell.c: Likewise.
37197         * tests/test-ftello.c: Likewise.
37198         * tests/test-func.c: Likewise.
37199         * tests/test-futimens.c: Likewise.
37200         * tests/test-fwritable.c: Likewise.
37201         * tests/test-fwriting.c: Likewise.
37202         * tests/test-getcwd.c: Likewise.
37203         * tests/test-getdate.c: Likewise.
37204         * tests/test-getdelim.c: Likewise.
37205         * tests/test-getdtablesize.c: Likewise.
37206         * tests/test-getgroups.c: Likewise.
37207         * tests/test-getline.c: Likewise.
37208         * tests/test-getndelim2.c: Likewise.
37209         * tests/test-glob.c: Likewise.
37210         * tests/test-hash.c: Likewise.
37211         * tests/test-i-ring.c: Likewise.
37212         * tests/test-iconv-utf.c: Likewise.
37213         * tests/test-iconv.c: Likewise.
37214         * tests/test-idpriv-drop.c: Likewise.
37215         * tests/test-idpriv-droptemp.c: Likewise.
37216         * tests/test-inet_ntop.c: Likewise.
37217         * tests/test-inet_pton.c: Likewise.
37218         * tests/test-isblank.c: Likewise.
37219         * tests/test-isfinite.c: Likewise.
37220         * tests/test-isinf.c: Likewise.
37221         * tests/test-isnan.c: Likewise.
37222         * tests/test-isnand.h: Likewise.
37223         * tests/test-isnanf.h: Likewise.
37224         * tests/test-isnanl.h: Likewise.
37225         * tests/test-lchown.c: Likewise.
37226         * tests/test-ldexpl.c: Likewise.
37227         * tests/test-link.c: Likewise.
37228         * tests/test-linkat.c: Likewise.
37229         * tests/test-linked_list.c: Likewise.
37230         * tests/test-linkedhash_list.c: Likewise.
37231         * tests/test-localename.c: Likewise.
37232         * tests/test-lseek.c: Likewise.
37233         * tests/test-lstat.c: Likewise.
37234         * tests/test-mbmemcasecmp.c: Likewise.
37235         * tests/test-mbmemcasecoll.c: Likewise.
37236         * tests/test-mbrtowc.c: Likewise.
37237         * tests/test-mbscasecmp.c: Likewise.
37238         * tests/test-mbscasestr1.c: Likewise.
37239         * tests/test-mbscasestr2.c: Likewise.
37240         * tests/test-mbscasestr3.c: Likewise.
37241         * tests/test-mbscasestr4.c: Likewise.
37242         * tests/test-mbschr.c: Likewise.
37243         * tests/test-mbscspn.c: Likewise.
37244         * tests/test-mbsinit.c: Likewise.
37245         * tests/test-mbsncasecmp.c: Likewise.
37246         * tests/test-mbsnrtowcs.c: Likewise.
37247         * tests/test-mbspbrk.c: Likewise.
37248         * tests/test-mbspcasecmp.c: Likewise.
37249         * tests/test-mbsrchr.c: Likewise.
37250         * tests/test-mbsrtowcs.c: Likewise.
37251         * tests/test-mbsspn.c: Likewise.
37252         * tests/test-mbsstr1.c: Likewise.
37253         * tests/test-mbsstr2.c: Likewise.
37254         * tests/test-mbsstr3.c: Likewise.
37255         * tests/test-memchr.c: Likewise.
37256         * tests/test-memchr2.c: Likewise.
37257         * tests/test-memcmp.c: Likewise.
37258         * tests/test-memmem.c: Likewise.
37259         * tests/test-memrchr.c: Likewise.
37260         * tests/test-mkdir.c: Likewise.
37261         * tests/test-mkdirat.c: Likewise.
37262         * tests/test-mkfifo.c: Likewise.
37263         * tests/test-mkfifoat.c: Likewise.
37264         * tests/test-mknod.c: Likewise.
37265         * tests/test-nanosleep.c: Likewise.
37266         * tests/test-nl_langinfo.c: Likewise.
37267         * tests/test-obstack-printf.c: Likewise.
37268         * tests/test-open.c: Likewise.
37269         * tests/test-openat.c: Likewise.
37270         * tests/test-pipe-filter-gi1.c: Likewise.
37271         * tests/test-pipe-filter-gi2-main.c: Likewise.
37272         * tests/test-pipe-filter-ii1.c: Likewise.
37273         * tests/test-pipe-filter-ii2-main.c: Likewise.
37274         * tests/test-pipe2.c: Likewise.
37275         * tests/test-popen.h: Likewise.
37276         * tests/test-posixtm.c: Likewise.
37277         * tests/test-pread.c: Likewise.
37278         * tests/test-printf-frexp.c: Likewise.
37279         * tests/test-printf-frexpl.c: Likewise.
37280         * tests/test-printf-posix.c: Likewise.
37281         * tests/test-priv-set.c: Likewise.
37282         * tests/test-quotearg.c: Likewise.
37283         * tests/test-random_r.c: Likewise.
37284         * tests/test-rawmemchr.c: Likewise.
37285         * tests/test-rbtree_list.c: Likewise.
37286         * tests/test-rbtree_oset.c: Likewise.
37287         * tests/test-rbtreehash_list.c: Likewise.
37288         * tests/test-readlink.c: Likewise.
37289         * tests/test-remove.c: Likewise.
37290         * tests/test-rename.c: Likewise.
37291         * tests/test-renameat.c: Likewise.
37292         * tests/test-rmdir.c: Likewise.
37293         * tests/test-round1.c: Likewise.
37294         * tests/test-roundf1.c: Likewise.
37295         * tests/test-roundl.c: Likewise.
37296         * tests/test-safe-alloc.c: Likewise.
37297         * tests/test-sameacls.c: Likewise.
37298         * tests/test-set-mode-acl.c: Likewise.
37299         * tests/test-setenv.c: Likewise.
37300         * tests/test-sigaction.c: Likewise.
37301         * tests/test-signbit.c: Likewise.
37302         * tests/test-sleep.c: Likewise.
37303         * tests/test-snprintf-posix.c: Likewise.
37304         * tests/test-snprintf.c: Likewise.
37305         * tests/test-sprintf-posix.c: Likewise.
37306         * tests/test-stat-time.c: Likewise.
37307         * tests/test-stat.c: Likewise.
37308         * tests/test-strcasestr.c: Likewise.
37309         * tests/test-strchrnul.c: Likewise.
37310         * tests/test-strerror.c: Likewise.
37311         * tests/test-striconv.c: Likewise.
37312         * tests/test-striconveh.c: Likewise.
37313         * tests/test-striconveha.c: Likewise.
37314         * tests/test-strsignal.c: Likewise.
37315         * tests/test-strstr.c: Likewise.
37316         * tests/test-strtod.c: Likewise.
37317         * tests/test-strverscmp.c: Likewise.
37318         * tests/test-symlink.c: Likewise.
37319         * tests/test-symlinkat.c: Likewise.
37320         * tests/test-trunc1.c: Likewise.
37321         * tests/test-trunc2.c: Likewise.
37322         * tests/test-truncf1.c: Likewise.
37323         * tests/test-truncf2.c: Likewise.
37324         * tests/test-truncl.c: Likewise.
37325         * tests/test-uname.c: Likewise.
37326         * tests/test-unlink.c: Likewise.
37327         * tests/test-unlinkat.c: Likewise.
37328         * tests/test-unsetenv.c: Likewise.
37329         * tests/test-usleep.c: Likewise.
37330         * tests/test-utimens.c: Likewise.
37331         * tests/test-utimensat.c: Likewise.
37332         * tests/test-vasnprintf-posix.c: Likewise.
37333         * tests/test-vasnprintf-posix2.c: Likewise.
37334         * tests/test-vasnprintf.c: Likewise.
37335         * tests/test-vasprintf-posix.c: Likewise.
37336         * tests/test-vasprintf.c: Likewise.
37337         * tests/test-vdprintf-posix.c: Likewise.
37338         * tests/test-vfprintf-posix.c: Likewise.
37339         * tests/test-vprintf-posix.c: Likewise.
37340         * tests/test-vsnprintf-posix.c: Likewise.
37341         * tests/test-vsnprintf.c: Likewise.
37342         * tests/test-vsprintf-posix.c: Likewise.
37343         * tests/test-wcrtomb.c: Likewise.
37344         * tests/test-wcsnrtombs.c: Likewise.
37345         * tests/test-wcsrtombs.c: Likewise.
37346         * tests/test-wctype.c: Likewise.
37347         * tests/test-wcwidth.c: Likewise.
37348         * tests/test-xfprintf-posix.c: Likewise.
37349         * tests/test-xmemdup0.c: Likewise.
37350         * tests/test-xprintf-posix.c: Likewise.
37351         * tests/test-xvasprintf.c: Likewise.
37352         * tests/unicase/test-locale-language.c: Likewise.
37353         * tests/unicase/test-mapping-part1.h: Likewise.
37354         * tests/unicase/test-predicate-part1.h: Likewise.
37355         * tests/unicase/test-u8-casecmp.c: Likewise.
37356         * tests/unicase/test-u8-casecoll.c: Likewise.
37357         * tests/unicase/test-u8-casefold.c: Likewise.
37358         * tests/unicase/test-u8-is-cased.c: Likewise.
37359         * tests/unicase/test-u8-is-casefolded.c: Likewise.
37360         * tests/unicase/test-u8-is-lowercase.c: Likewise.
37361         * tests/unicase/test-u8-is-titlecase.c: Likewise.
37362         * tests/unicase/test-u8-is-uppercase.c: Likewise.
37363         * tests/unicase/test-u8-tolower.c: Likewise.
37364         * tests/unicase/test-u8-totitle.c: Likewise.
37365         * tests/unicase/test-u8-toupper.c: Likewise.
37366         * tests/unicase/test-u16-casecmp.c: Likewise.
37367         * tests/unicase/test-u16-casecoll.c: Likewise.
37368         * tests/unicase/test-u16-casefold.c: Likewise.
37369         * tests/unicase/test-u16-is-cased.c: Likewise.
37370         * tests/unicase/test-u16-is-casefolded.c: Likewise.
37371         * tests/unicase/test-u16-is-lowercase.c: Likewise.
37372         * tests/unicase/test-u16-is-titlecase.c: Likewise.
37373         * tests/unicase/test-u16-is-uppercase.c: Likewise.
37374         * tests/unicase/test-u16-tolower.c: Likewise.
37375         * tests/unicase/test-u16-totitle.c: Likewise.
37376         * tests/unicase/test-u16-toupper.c: Likewise.
37377         * tests/unicase/test-u32-casecmp.c: Likewise.
37378         * tests/unicase/test-u32-casecoll.c: Likewise.
37379         * tests/unicase/test-u32-casefold.c: Likewise.
37380         * tests/unicase/test-u32-is-cased.c: Likewise.
37381         * tests/unicase/test-u32-is-casefolded.c: Likewise.
37382         * tests/unicase/test-u32-is-lowercase.c: Likewise.
37383         * tests/unicase/test-u32-is-titlecase.c: Likewise.
37384         * tests/unicase/test-u32-is-uppercase.c: Likewise.
37385         * tests/unicase/test-u32-tolower.c: Likewise.
37386         * tests/unicase/test-u32-totitle.c: Likewise.
37387         * tests/unicase/test-u32-toupper.c: Likewise.
37388         * tests/unicase/test-ulc-casecmp.c: Likewise.
37389         * tests/unicase/test-ulc-casecoll.c: Likewise.
37390         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37391         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
37392         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37393         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37394         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
37395         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
37396         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37397         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37398         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37399         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
37400         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37401         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37402         * tests/unictype/test-bidi_byname.c: Likewise.
37403         * tests/unictype/test-bidi_name.c: Likewise.
37404         * tests/unictype/test-bidi_of.c: Likewise.
37405         * tests/unictype/test-bidi_test.c: Likewise.
37406         * tests/unictype/test-block_list.c: Likewise.
37407         * tests/unictype/test-block_of.c: Likewise.
37408         * tests/unictype/test-block_test.c: Likewise.
37409         * tests/unictype/test-categ_and.c: Likewise.
37410         * tests/unictype/test-categ_and_not.c: Likewise.
37411         * tests/unictype/test-categ_byname.c: Likewise.
37412         * tests/unictype/test-categ_name.c: Likewise.
37413         * tests/unictype/test-categ_none.c: Likewise.
37414         * tests/unictype/test-categ_of.c: Likewise.
37415         * tests/unictype/test-categ_or.c: Likewise.
37416         * tests/unictype/test-categ_test_withtable.c: Likewise.
37417         * tests/unictype/test-combining.c: Likewise.
37418         * tests/unictype/test-decdigit.c: Likewise.
37419         * tests/unictype/test-digit.c: Likewise.
37420         * tests/unictype/test-mirror.c: Likewise.
37421         * tests/unictype/test-numeric.c: Likewise.
37422         * tests/unictype/test-pr_byname.c: Likewise.
37423         * tests/unictype/test-pr_test.c: Likewise.
37424         * tests/unictype/test-predicate-part1.h: Likewise.
37425         * tests/unictype/test-scripts.c: Likewise.
37426         * tests/unictype/test-sy_c_ident.c: Likewise.
37427         * tests/unictype/test-sy_java_ident.c: Likewise.
37428         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
37429         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
37430         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
37431         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
37432         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
37433         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
37434         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
37435         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
37436         * tests/uninorm/test-canonical-decomposition.c: Likewise.
37437         * tests/uninorm/test-compat-decomposition.c: Likewise.
37438         * tests/uninorm/test-composition.c: Likewise.
37439         * tests/uninorm/test-decomposing-form.c: Likewise.
37440         * tests/uninorm/test-decomposition.c: Likewise.
37441         * tests/uninorm/test-u8-nfc.c: Likewise.
37442         * tests/uninorm/test-u8-nfd.c: Likewise.
37443         * tests/uninorm/test-u8-nfkc.c: Likewise.
37444         * tests/uninorm/test-u8-nfkd.c: Likewise.
37445         * tests/uninorm/test-u8-normcmp.c: Likewise.
37446         * tests/uninorm/test-u8-normcoll.c: Likewise.
37447         * tests/uninorm/test-u16-nfc.c: Likewise.
37448         * tests/uninorm/test-u16-nfd.c: Likewise.
37449         * tests/uninorm/test-u16-nfkc.c: Likewise.
37450         * tests/uninorm/test-u16-nfkd.c: Likewise.
37451         * tests/uninorm/test-u16-normcmp.c: Likewise.
37452         * tests/uninorm/test-u16-normcoll.c: Likewise.
37453         * tests/uninorm/test-u32-nfc.c: Likewise.
37454         * tests/uninorm/test-u32-nfd.c: Likewise.
37455         * tests/uninorm/test-u32-nfkc.c: Likewise.
37456         * tests/uninorm/test-u32-nfkd.c: Likewise.
37457         * tests/uninorm/test-u32-normalize-big.c: Likewise.
37458         * tests/uninorm/test-u32-normcmp.c: Likewise.
37459         * tests/uninorm/test-u32-normcoll.c: Likewise.
37460         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
37461         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
37462         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
37463         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
37464         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
37465         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
37466         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
37467         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
37468         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
37469         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
37470         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
37471         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
37472         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
37473         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
37474         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
37475         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
37476         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
37477         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
37478         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
37479         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
37480         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
37481         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
37482         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
37483         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
37484         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
37485         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
37486         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
37487         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
37488         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
37489         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
37490         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
37491         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
37492         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
37493         * tests/uniwidth/test-u8-strwidth.c: Likewise.
37494         * tests/uniwidth/test-u8-width.c: Likewise.
37495         * tests/uniwidth/test-u16-strwidth.c: Likewise.
37496         * tests/uniwidth/test-u16-width.c: Likewise.
37497         * tests/uniwidth/test-u32-strwidth.c: Likewise.
37498         * tests/uniwidth/test-u32-width.c: Likewise.
37499         * tests/uniwidth/test-uc_width.c: Likewise.
37500         * tests/uniwidth/test-uc_width2.c: Likewise.
37501         * modules/acl-tests (Files): Add tests/macros.h.
37502         * modules/areadlink-tests (Files): Likewise.
37503         * modules/areadlink-with-size-tests (Files): Likewise.
37504         * modules/areadlinkat-tests (Files): Likewise.
37505         * modules/areadlinkat-with-size-tests (Files): Likewise.
37506         * modules/argmatch-tests (Files): Likewise.
37507         * modules/argv-iter-tests (Files): Likewise.
37508         * modules/array-list-tests (Files): Likewise.
37509         * modules/array-mergesort-tests (Files): Likewise.
37510         * modules/array-oset-tests (Files): Likewise.
37511         * modules/avltree-list-tests (Files): Likewise.
37512         * modules/avltree-oset-tests (Files): Likewise.
37513         * modules/avltreehash-list-tests (Files): Likewise.
37514         * modules/base64-tests (Files): Likewise.
37515         * modules/binary-io-tests (Files): Likewise.
37516         * modules/bitrotate-tests (Files): Likewise.
37517         * modules/btowc-tests (Files): Likewise.
37518         * modules/byteswap-tests (Files): Likewise.
37519         * modules/c-ctype-tests (Files): Likewise.
37520         * modules/c-stack-tests (Files): Likewise.
37521         * modules/c-strcase-tests (Files): Likewise.
37522         * modules/c-strcasestr-tests (Files): Likewise.
37523         * modules/c-strstr-tests (Files): Likewise.
37524         * modules/canonicalize-lgpl-tests (Files): Likewise.
37525         * modules/canonicalize-tests (Files): Likewise.
37526         * modules/carray-list-tests (Files): Likewise.
37527         * modules/ceilf-tests (Files): Likewise.
37528         * modules/ceill-tests (Files): Likewise.
37529         * modules/chown-tests (Files): Likewise.
37530         * modules/cloexec-tests (Files): Likewise.
37531         * modules/copy-file-tests (Files): Likewise.
37532         * modules/count-one-bits-tests (Files): Likewise.
37533         * modules/dprintf-posix-tests (Files): Likewise.
37534         * modules/dup2-tests (Files): Likewise.
37535         * modules/dup3-tests (Files): Likewise.
37536         * modules/duplocale-tests (Files): Likewise.
37537         * modules/fbufmode-tests (Files): Likewise.
37538         * modules/fchdir-tests (Files): Likewise.
37539         * modules/fcntl-safer-tests (Files): Likewise.
37540         * modules/fcntl-tests (Files): Likewise.
37541         * modules/fdopendir-tests (Files): Likewise.
37542         * modules/fdutimensat-tests (Files): Likewise.
37543         * modules/fflush-tests (Files): Likewise.
37544         * modules/filevercmp-tests (Files): Likewise.
37545         * modules/flock-tests (Files): Likewise.
37546         * modules/floorf-tests (Files): Likewise.
37547         * modules/floorl-tests (Files): Likewise.
37548         * modules/fnmatch-tests (Files): Likewise.
37549         * modules/fopen-safer-tests (Files): Likewise.
37550         * modules/fopen-tests (Files): Likewise.
37551         * modules/fpending-tests (Files): Likewise.
37552         * modules/fprintf-posix-tests (Files): Likewise.
37553         * modules/fpurge-tests (Files): Likewise.
37554         * modules/freadable-tests (Files): Likewise.
37555         * modules/freadahead-tests (Files): Likewise.
37556         * modules/freading-tests (Files): Likewise.
37557         * modules/freadptr-tests (Files): Likewise.
37558         * modules/freadseek-tests (Files): Likewise.
37559         * modules/freopen-tests (Files): Likewise.
37560         * modules/frexp-nolibm-tests (Files): Likewise.
37561         * modules/frexp-tests (Files): Likewise.
37562         * modules/frexpl-nolibm-tests (Files): Likewise.
37563         * modules/frexpl-tests (Files): Likewise.
37564         * modules/fseek-tests (Files): Likewise.
37565         * modules/fseeko-tests (Files): Likewise.
37566         * modules/fstrcmp-tests (Files): Likewise.
37567         * modules/fsync-tests (Files): Likewise.
37568         * modules/ftell-tests (Files): Likewise.
37569         * modules/ftello-tests (Files): Likewise.
37570         * modules/func-tests (Files): Likewise.
37571         * modules/futimens-tests (Files): Likewise.
37572         * modules/fwritable-tests (Files): Likewise.
37573         * modules/fwriting-tests (Files): Likewise.
37574         * modules/getcwd-tests (Files): Likewise.
37575         * modules/getdate-tests (Files): Likewise.
37576         * modules/getdelim-tests (Files): Likewise.
37577         * modules/getdtablesize-tests (Files): Likewise.
37578         * modules/getgroups-tests (Files): Likewise.
37579         * modules/getline-tests (Files): Likewise.
37580         * modules/getndelim2-tests (Files): Likewise.
37581         * modules/glob-tests (Files): Likewise.
37582         * modules/hash-tests (Files): Likewise.
37583         * modules/i-ring-tests (Files): Likewise.
37584         * modules/iconv-tests (Files): Likewise.
37585         * modules/iconv_open-utf-tests (Files): Likewise.
37586         * modules/idpriv-drop-tests (Files): Likewise.
37587         * modules/idpriv-droptemp-tests (Files): Likewise.
37588         * modules/inet_ntop-tests (Files): Likewise.
37589         * modules/inet_pton-tests (Files): Likewise.
37590         * modules/isblank-tests (Files): Likewise.
37591         * modules/isfinite-tests (Files): Likewise.
37592         * modules/isinf-tests (Files): Likewise.
37593         * modules/isnan-tests (Files): Likewise.
37594         * modules/isnand-nolibm-tests (Files): Likewise.
37595         * modules/isnand-tests (Files): Likewise.
37596         * modules/isnanf-nolibm-tests (Files): Likewise.
37597         * modules/isnanf-tests (Files): Likewise.
37598         * modules/isnanl-nolibm-tests (Files): Likewise.
37599         * modules/isnanl-tests (Files): Likewise.
37600         * modules/lchown-tests (Files): Likewise.
37601         * modules/ldexpl-tests (Files): Likewise.
37602         * modules/link-tests (Files): Likewise.
37603         * modules/linkat-tests (Files): Likewise.
37604         * modules/linked-list-tests (Files): Likewise.
37605         * modules/linkedhash-list-tests (Files): Likewise.
37606         * modules/localename-tests (Files): Likewise.
37607         * modules/lseek-tests (Files): Likewise.
37608         * modules/lstat-tests (Files): Likewise.
37609         * modules/mbmemcasecmp-tests (Files): Likewise.
37610         * modules/mbmemcasecoll-tests (Files): Likewise.
37611         * modules/mbrtowc-tests (Files): Likewise.
37612         * modules/mbscasecmp-tests (Files): Likewise.
37613         * modules/mbscasestr-tests (Files): Likewise.
37614         * modules/mbschr-tests (Files): Likewise.
37615         * modules/mbscspn-tests (Files): Likewise.
37616         * modules/mbsinit-tests (Files): Likewise.
37617         * modules/mbsncasecmp-tests (Files): Likewise.
37618         * modules/mbsnrtowcs-tests (Files): Likewise.
37619         * modules/mbspbrk-tests (Files): Likewise.
37620         * modules/mbspcasecmp-tests (Files): Likewise.
37621         * modules/mbsrchr-tests (Files): Likewise.
37622         * modules/mbsrtowcs-tests (Files): Likewise.
37623         * modules/mbsspn-tests (Files): Likewise.
37624         * modules/mbsstr-tests (Files): Likewise.
37625         * modules/memchr-tests (Files): Likewise.
37626         * modules/memchr2-tests (Files): Likewise.
37627         * modules/memcmp-tests (Files): Likewise.
37628         * modules/memmem-tests (Files): Likewise.
37629         * modules/memrchr-tests (Files): Likewise.
37630         * modules/mkdir-tests (Files): Likewise.
37631         * modules/mkfifo-tests (Files): Likewise.
37632         * modules/mkfifoat-tests (Files): Likewise.
37633         * modules/mknod-tests (Files): Likewise.
37634         * modules/nanosleep-tests (Files): Likewise.
37635         * modules/nl_langinfo-tests (Files): Likewise.
37636         * modules/obstack-printf-tests (Files): Likewise.
37637         * modules/open-tests (Files): Likewise.
37638         * modules/openat-tests (Files): Likewise.
37639         * modules/pipe-filter-gi-tests (Files): Likewise.
37640         * modules/pipe-filter-ii-tests (Files): Likewise.
37641         * modules/pipe2-tests (Files): Likewise.
37642         * modules/popen-safer-tests (Files): Likewise.
37643         * modules/popen-tests (Files): Likewise.
37644         * modules/posixtm-tests (Files): Likewise.
37645         * modules/pread-tests (Files): Likewise.
37646         * modules/printf-frexp-tests (Files): Likewise.
37647         * modules/printf-frexpl-tests (Files): Likewise.
37648         * modules/printf-posix-tests (Files): Likewise.
37649         * modules/priv-set-tests (Files): Likewise.
37650         * modules/quotearg-tests (Files): Likewise.
37651         * modules/random_r-tests (Files): Likewise.
37652         * modules/rawmemchr-tests (Files): Likewise.
37653         * modules/rbtree-list-tests (Files): Likewise.
37654         * modules/rbtree-oset-tests (Files): Likewise.
37655         * modules/rbtreehash-list-tests (Files): Likewise.
37656         * modules/readlink-tests (Files): Likewise.
37657         * modules/remove-tests (Files): Likewise.
37658         * modules/rename-tests (Files): Likewise.
37659         * modules/renameat-tests (Files): Likewise.
37660         * modules/rmdir-tests (Files): Likewise.
37661         * modules/round-tests (Files): Likewise.
37662         * modules/roundf-tests (Files): Likewise.
37663         * modules/roundl-tests (Files): Likewise.
37664         * modules/safe-alloc-tests (Files): Likewise.
37665         * modules/setenv-tests (Files): Likewise.
37666         * modules/sigaction-tests (Files): Likewise.
37667         * modules/signbit-tests (Files): Likewise.
37668         * modules/sleep-tests (Files): Likewise.
37669         * modules/snprintf-posix-tests (Files): Likewise.
37670         * modules/snprintf-tests (Files): Likewise.
37671         * modules/sprintf-posix-tests (Files): Likewise.
37672         * modules/stat-tests (Files): Likewise.
37673         * modules/stat-time-tests (Files): Likewise.
37674         * modules/strcasestr-tests (Files): Likewise.
37675         * modules/strchrnul-tests (Files): Likewise.
37676         * modules/strerror-tests (Files): Likewise.
37677         * modules/striconv-tests (Files): Likewise.
37678         * modules/striconveh-tests (Files): Likewise.
37679         * modules/striconveha-tests (Files): Likewise.
37680         * modules/strsignal-tests (Files): Likewise.
37681         * modules/strstr-tests (Files): Likewise.
37682         * modules/strtod-tests (Files): Likewise.
37683         * modules/strverscmp-tests (Files): Likewise.
37684         * modules/symlink-tests (Files): Likewise.
37685         * modules/symlinkat-tests (Files): Likewise.
37686         * modules/trunc-tests (Files): Likewise.
37687         * modules/truncf-tests (Files): Likewise.
37688         * modules/truncl-tests (Files): Likewise.
37689         * modules/uname-tests (Files): Likewise.
37690         * modules/unicase/cased-tests (Files): Likewise.
37691         * modules/unicase/ignorable-tests (Files): Likewise.
37692         * modules/unicase/locale-language-tests (Files): Likewise.
37693         * modules/unicase/tolower-tests (Files): Likewise.
37694         * modules/unicase/totitle-tests (Files): Likewise.
37695         * modules/unicase/toupper-tests (Files): Likewise.
37696         * modules/unicase/u8-casecmp-tests (Files): Likewise.
37697         * modules/unicase/u8-casecoll-tests (Files): Likewise.
37698         * modules/unicase/u8-casefold-tests (Files): Likewise.
37699         * modules/unicase/u8-is-cased-tests (Files): Likewise.
37700         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
37701         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
37702         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
37703         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
37704         * modules/unicase/u8-tolower-tests (Files): Likewise.
37705         * modules/unicase/u8-totitle-tests (Files): Likewise.
37706         * modules/unicase/u8-toupper-tests (Files): Likewise.
37707         * modules/unicase/u16-casecmp-tests (Files): Likewise.
37708         * modules/unicase/u16-casecoll-tests (Files): Likewise.
37709         * modules/unicase/u16-casefold-tests (Files): Likewise.
37710         * modules/unicase/u16-is-cased-tests (Files): Likewise.
37711         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
37712         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
37713         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
37714         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
37715         * modules/unicase/u16-tolower-tests (Files): Likewise.
37716         * modules/unicase/u16-totitle-tests (Files): Likewise.
37717         * modules/unicase/u16-toupper-tests (Files): Likewise.
37718         * modules/unicase/u32-casecmp-tests (Files): Likewise.
37719         * modules/unicase/u32-casecoll-tests (Files): Likewise.
37720         * modules/unicase/u32-casefold-tests (Files): Likewise.
37721         * modules/unicase/u32-is-cased-tests (Files): Likewise.
37722         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
37723         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
37724         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
37725         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
37726         * modules/unicase/u32-tolower-tests (Files): Likewise.
37727         * modules/unicase/u32-totitle-tests (Files): Likewise.
37728         * modules/unicase/u32-toupper-tests (Files): Likewise.
37729         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
37730         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
37731         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
37732         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
37733         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
37734         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
37735         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
37736         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
37737         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
37738         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
37739         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
37740         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
37741         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
37742         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
37743         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
37744         * modules/unictype/bidicategory-name-tests (Files): Likewise.
37745         * modules/unictype/bidicategory-of-tests (Files): Likewise.
37746         * modules/unictype/bidicategory-test-tests (Files): Likewise.
37747         * modules/unictype/block-list-tests (Files): Likewise.
37748         * modules/unictype/block-of-tests (Files): Likewise.
37749         * modules/unictype/block-test-tests (Files): Likewise.
37750         * modules/unictype/category-C-tests (Files): Likewise.
37751         * modules/unictype/category-Cc-tests (Files): Likewise.
37752         * modules/unictype/category-Cf-tests (Files): Likewise.
37753         * modules/unictype/category-Cn-tests (Files): Likewise.
37754         * modules/unictype/category-Co-tests (Files): Likewise.
37755         * modules/unictype/category-Cs-tests (Files): Likewise.
37756         * modules/unictype/category-L-tests (Files): Likewise.
37757         * modules/unictype/category-Ll-tests (Files): Likewise.
37758         * modules/unictype/category-Lm-tests (Files): Likewise.
37759         * modules/unictype/category-Lo-tests (Files): Likewise.
37760         * modules/unictype/category-Lt-tests (Files): Likewise.
37761         * modules/unictype/category-Lu-tests (Files): Likewise.
37762         * modules/unictype/category-M-tests (Files): Likewise.
37763         * modules/unictype/category-Mc-tests (Files): Likewise.
37764         * modules/unictype/category-Me-tests (Files): Likewise.
37765         * modules/unictype/category-Mn-tests (Files): Likewise.
37766         * modules/unictype/category-N-tests (Files): Likewise.
37767         * modules/unictype/category-Nd-tests (Files): Likewise.
37768         * modules/unictype/category-Nl-tests (Files): Likewise.
37769         * modules/unictype/category-No-tests (Files): Likewise.
37770         * modules/unictype/category-P-tests (Files): Likewise.
37771         * modules/unictype/category-Pc-tests (Files): Likewise.
37772         * modules/unictype/category-Pd-tests (Files): Likewise.
37773         * modules/unictype/category-Pe-tests (Files): Likewise.
37774         * modules/unictype/category-Pf-tests (Files): Likewise.
37775         * modules/unictype/category-Pi-tests (Files): Likewise.
37776         * modules/unictype/category-Po-tests (Files): Likewise.
37777         * modules/unictype/category-Ps-tests (Files): Likewise.
37778         * modules/unictype/category-S-tests (Files): Likewise.
37779         * modules/unictype/category-Sc-tests (Files): Likewise.
37780         * modules/unictype/category-Sk-tests (Files): Likewise.
37781         * modules/unictype/category-Sm-tests (Files): Likewise.
37782         * modules/unictype/category-So-tests (Files): Likewise.
37783         * modules/unictype/category-Z-tests (Files): Likewise.
37784         * modules/unictype/category-Zl-tests (Files): Likewise.
37785         * modules/unictype/category-Zp-tests (Files): Likewise.
37786         * modules/unictype/category-Zs-tests (Files): Likewise.
37787         * modules/unictype/category-and-not-tests (Files): Likewise.
37788         * modules/unictype/category-and-tests (Files): Likewise.
37789         * modules/unictype/category-byname-tests (Files): Likewise.
37790         * modules/unictype/category-name-tests (Files): Likewise.
37791         * modules/unictype/category-none-tests (Files): Likewise.
37792         * modules/unictype/category-of-tests (Files): Likewise.
37793         * modules/unictype/category-or-tests (Files): Likewise.
37794         * modules/unictype/category-test-withtable-tests (Files): Likewise.
37795         * modules/unictype/combining-class-tests (Files): Likewise.
37796         * modules/unictype/ctype-alnum-tests (Files): Likewise.
37797         * modules/unictype/ctype-alpha-tests (Files): Likewise.
37798         * modules/unictype/ctype-blank-tests (Files): Likewise.
37799         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
37800         * modules/unictype/ctype-digit-tests (Files): Likewise.
37801         * modules/unictype/ctype-graph-tests (Files): Likewise.
37802         * modules/unictype/ctype-lower-tests (Files): Likewise.
37803         * modules/unictype/ctype-print-tests (Files): Likewise.
37804         * modules/unictype/ctype-punct-tests (Files): Likewise.
37805         * modules/unictype/ctype-space-tests (Files): Likewise.
37806         * modules/unictype/ctype-upper-tests (Files): Likewise.
37807         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
37808         * modules/unictype/decimal-digit-tests (Files): Likewise.
37809         * modules/unictype/digit-tests (Files): Likewise.
37810         * modules/unictype/mirror-tests (Files): Likewise.
37811         * modules/unictype/numeric-tests (Files): Likewise.
37812         * modules/unictype/property-alphabetic-tests (Files): Likewise.
37813         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
37814         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
37815         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
37816         Likewise.
37817         * modules/unictype/property-bidi-block-separator-tests (Files):
37818         Likewise.
37819         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
37820         Likewise.
37821         * modules/unictype/property-bidi-common-separator-tests (Files):
37822         Likewise.
37823         * modules/unictype/property-bidi-control-tests (Files): Likewise.
37824         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
37825         Likewise.
37826         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
37827         Likewise.
37828         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
37829         Likewise.
37830         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
37831         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
37832         Likewise.
37833         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
37834         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
37835         Likewise.
37836         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
37837         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
37838         * modules/unictype/property-bidi-segment-separator-tests (Files):
37839         Likewise.
37840         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
37841         * modules/unictype/property-byname-tests (Files): Likewise.
37842         * modules/unictype/property-combining-tests (Files): Likewise.
37843         * modules/unictype/property-composite-tests (Files): Likewise.
37844         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
37845         * modules/unictype/property-dash-tests (Files): Likewise.
37846         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
37847         * modules/unictype/property-default-ignorable-code-point-tests (Files):
37848         Likewise.
37849         * modules/unictype/property-deprecated-tests (Files): Likewise.
37850         * modules/unictype/property-diacritic-tests (Files): Likewise.
37851         * modules/unictype/property-extender-tests (Files): Likewise.
37852         * modules/unictype/property-format-control-tests (Files): Likewise.
37853         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
37854         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
37855         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
37856         * modules/unictype/property-hex-digit-tests (Files): Likewise.
37857         * modules/unictype/property-hyphen-tests (Files): Likewise.
37858         * modules/unictype/property-id-continue-tests (Files): Likewise.
37859         * modules/unictype/property-id-start-tests (Files): Likewise.
37860         * modules/unictype/property-ideographic-tests (Files): Likewise.
37861         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
37862         * modules/unictype/property-ids-trinary-operator-tests (Files):
37863         Likewise.
37864         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
37865         * modules/unictype/property-iso-control-tests (Files): Likewise.
37866         * modules/unictype/property-join-control-tests (Files): Likewise.
37867         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
37868         * modules/unictype/property-line-separator-tests (Files): Likewise.
37869         * modules/unictype/property-logical-order-exception-tests (Files):
37870         Likewise.
37871         * modules/unictype/property-lowercase-tests (Files): Likewise.
37872         * modules/unictype/property-math-tests (Files): Likewise.
37873         * modules/unictype/property-non-break-tests (Files): Likewise.
37874         * modules/unictype/property-not-a-character-tests (Files): Likewise.
37875         * modules/unictype/property-numeric-tests (Files): Likewise.
37876         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
37877         * modules/unictype/property-other-default-ignorable-code-point-tests
37878         (Files): Likewise.
37879         * modules/unictype/property-other-grapheme-extend-tests (Files):
37880         Likewise.
37881         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
37882         * modules/unictype/property-other-id-start-tests (Files): Likewise.
37883         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
37884         * modules/unictype/property-other-math-tests (Files): Likewise.
37885         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
37886         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
37887         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
37888         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
37889         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
37890         * modules/unictype/property-private-use-tests (Files): Likewise.
37891         * modules/unictype/property-punctuation-tests (Files): Likewise.
37892         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
37893         * modules/unictype/property-radical-tests (Files): Likewise.
37894         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
37895         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
37896         * modules/unictype/property-space-tests (Files): Likewise.
37897         * modules/unictype/property-terminal-punctuation-tests (Files):
37898         Likewise.
37899         * modules/unictype/property-test-tests (Files): Likewise.
37900         * modules/unictype/property-titlecase-tests (Files): Likewise.
37901         * modules/unictype/property-unassigned-code-value-tests (Files):
37902         Likewise.
37903         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
37904         * modules/unictype/property-uppercase-tests (Files): Likewise.
37905         * modules/unictype/property-variation-selector-tests (Files): Likewise.
37906         * modules/unictype/property-white-space-tests (Files): Likewise.
37907         * modules/unictype/property-xid-continue-tests (Files): Likewise.
37908         * modules/unictype/property-xid-start-tests (Files): Likewise.
37909         * modules/unictype/property-zero-width-tests (Files): Likewise.
37910         * modules/unictype/scripts-tests (Files): Likewise.
37911         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
37912         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
37913         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
37914         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
37915         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
37916         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
37917         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
37918         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
37919         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
37920         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
37921         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
37922         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
37923         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
37924         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
37925         * modules/uninorm/composition-tests (Files): Likewise.
37926         * modules/uninorm/decomposing-form-tests (Files): Likewise.
37927         * modules/uninorm/decomposition-tests (Files): Likewise.
37928         * modules/uninorm/filter-tests (Files): Likewise.
37929         * modules/uninorm/nfc-tests (Files): Likewise.
37930         * modules/uninorm/nfd-tests (Files): Likewise.
37931         * modules/uninorm/nfkc-tests (Files): Likewise.
37932         * modules/uninorm/nfkd-tests (Files): Likewise.
37933         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
37934         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
37935         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
37936         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
37937         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
37938         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
37939         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
37940         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37941         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
37942         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
37943         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
37944         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
37945         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37946         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
37947         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
37948         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
37949         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
37950         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37951         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
37952         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
37953         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
37954         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
37955         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37956         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
37957         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
37958         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
37959         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
37960         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
37961         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
37962         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
37963         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
37964         * modules/uniwidth/u8-width-tests (Files): Likewise.
37965         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
37966         * modules/uniwidth/u16-width-tests (Files): Likewise.
37967         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
37968         * modules/uniwidth/u32-width-tests (Files): Likewise.
37969         * modules/uniwidth/width-tests (Files): Likewise.
37970         * modules/unlink-tests (Files): Likewise.
37971         * modules/unsetenv-tests (Files): Likewise.
37972         * modules/usleep-tests (Files): Likewise.
37973         * modules/utimens-tests (Files): Likewise.
37974         * modules/utimensat-tests (Files): Likewise.
37975         * modules/vasnprintf-posix-tests (Files): Likewise.
37976         * modules/vasnprintf-tests (Files): Likewise.
37977         * modules/vasprintf-posix-tests (Files): Likewise.
37978         * modules/vasprintf-tests (Files): Likewise.
37979         * modules/vdprintf-posix-tests (Files): Likewise.
37980         * modules/vfprintf-posix-tests (Files): Likewise.
37981         * modules/vprintf-posix-tests (Files): Likewise.
37982         * modules/vsnprintf-posix-tests (Files): Likewise.
37983         * modules/vsnprintf-tests (Files): Likewise.
37984         * modules/vsprintf-posix-tests (Files): Likewise.
37985         * modules/wcrtomb-tests (Files): Likewise.
37986         * modules/wcsnrtombs-tests (Files): Likewise.
37987         * modules/wcsrtombs-tests (Files): Likewise.
37988         * modules/wctype-tests (Files): Likewise.
37989         * modules/wcwidth-tests (Files): Likewise.
37990         * modules/xmemdup0-tests (Files): Likewise.
37991         * modules/xprintf-posix-tests (Files): Likewise.
37992         * modules/xvasprintf-tests (Files): Likewise.
37993
37994 2009-12-24  Eric Blake  <ebb9@byu.net>
37995
37996         test-nanosleep: fix typo
37997         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
37998         patch.
37999         Reported by Bruno Haible.
38000
38001 2009-12-24  Bruno Haible  <bruno@clisp.org>
38002
38003         Reduce namespace pollution on glibc systems.
38004         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
38005         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
38006         systems.
38007         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
38008         <getopt.h> on glibc systems.
38009         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
38010         systems.
38011         * lib/fcntl.c: Include <unistd.h> here instead.
38012
38013 2009-12-24  Bruno Haible  <bruno@clisp.org>
38014
38015         * lib/stdlib.in.h (includes): Fix typo in today's commit.
38016
38017 2009-12-24  Eric Blake  <ebb9@byu.net>
38018
38019         tests: add signature checks
38020         * tests/signature.h (SIGNATURE_CHECK): New file.
38021         * modules/atexit-tests (Files): Use it.
38022         * modules/btowc-tests (Files): Likewise.
38023         * modules/canonicalize-lgpl-tests (Files): Likewise.
38024         * modules/ceilf-tests (Files): Likewise.
38025         * modules/ceill-tests (Files): Likewise.
38026         * modules/chown-tests (Files): Likewise.
38027         * modules/dprintf-posix-tests (Files): Likewise.
38028         * modules/dup2-tests (Files): Likewise.
38029         * modules/dup3-tests (Files): Likewise.
38030         * modules/duplocale-tests (Files): Likewise.
38031         * modules/fchdir-tests (Files): Likewise.
38032         * modules/fcntl-tests (Files): Likewise.
38033         * modules/fdopendir-tests (Files): Likewise.
38034         * modules/fflush-tests (Files): Likewise.
38035         * modules/flock-tests (Files): Likewise.
38036         * modules/floorf-tests (Files): Likewise.
38037         * modules/floorl-tests (Files): Likewise.
38038         * modules/fnmatch-tests (Files): Likewise.
38039         * modules/fopen-tests (Files): Likewise.
38040         * modules/fprintf-posix-tests (Files): Likewise.
38041         * modules/freopen-tests (Files): Likewise.
38042         * modules/frexp-nolibm-tests (Files): Likewise.
38043         * modules/frexp-tests (Files): Likewise.
38044         * modules/frexpl-nolibm-tests (Files): Likewise.
38045         * modules/frexpl-tests (Files): Likewise.
38046         * modules/fseek-tests (Files): Likewise.
38047         * modules/fseeko-tests (Files): Likewise.
38048         * modules/fsync-tests (Files): Likewise.
38049         * modules/ftell-tests (Files): Likewise.
38050         * modules/ftello-tests (Files): Likewise.
38051         * modules/futimens-tests (Files): Likewise.
38052         * modules/getaddrinfo-tests (Files): Likewise.
38053         * modules/getcwd-tests (Files): Likewise.
38054         * modules/getdelim-tests (Files): Likewise.
38055         * modules/getdtablesize-tests (Files): Likewise.
38056         * modules/getgroups-tests (Files): Likewise.
38057         * modules/gethostname-tests (Files): Likewise.
38058         * modules/getline-tests (Files): Likewise.
38059         * modules/getopt-posix-tests (Files): Likewise.
38060         * modules/gettimeofday-tests (Files): Likewise.
38061         * modules/glob-tests (Files): Likewise.
38062         * modules/iconv-tests (Files): Likewise.
38063         * modules/inet_ntop-tests (Files): Likewise.
38064         * modules/inet_pton-tests (Files): Likewise.
38065         * modules/isblank-tests (Files): Likewise.
38066         * modules/lchown-tests (Files): Likewise.
38067         * modules/ldexpl-tests (Files): Likewise.
38068         * modules/link-tests (Files): Likewise.
38069         * modules/linkat-tests (Files): Likewise.
38070         * modules/lseek-tests (Files): Likewise.
38071         * modules/lstat-tests (Files): Likewise.
38072         * modules/mbrtowc-tests (Files): Likewise.
38073         * modules/mbsinit-tests (Files): Likewise.
38074         * modules/mbsnrtowcs-tests (Files): Likewise.
38075         * modules/mbsrtowcs-tests (Files): Likewise.
38076         * modules/memchr-tests (Files): Likewise.
38077         * modules/memcmp-tests (Files): Likewise.
38078         * modules/memmem-tests (Files): Likewise.
38079         * modules/memrchr-tests (Files): Likewise.
38080         * modules/mkdir-tests (Files): Likewise.
38081         * modules/mkfifo-tests (Files): Likewise.
38082         * modules/mkfifoat-tests (Files): Likewise.
38083         * modules/mknod-tests (Files): Likewise.
38084         * modules/nanosleep-tests (Files): Likewise.
38085         * modules/nl_langinfo-tests (Files): Likewise.
38086         * modules/obstack-printf-tests (Files): Likewise.
38087         * modules/open-tests (Files): Likewise.
38088         * modules/openat-tests (Files): Likewise.
38089         * modules/perror-tests (Files): Likewise.
38090         * modules/pipe2-tests (Files): Likewise.
38091         * modules/poll-tests (Files): Likewise.
38092         * modules/popen-tests (Files): Likewise.
38093         * modules/posix_spawn-tests (Files): Likewise.
38094         * modules/posix_spawnp-tests (Files): Likewise.
38095         * modules/pread-tests (Files): Likewise.
38096         * modules/printf-posix-tests (Files): Likewise.
38097         * modules/pty-tests (Files): Likewise.
38098         * modules/random_r-tests (Files): Likewise.
38099         * modules/rawmemchr-tests (Files): Likewise.
38100         * modules/readlink-tests (Files): Likewise.
38101         * modules/remove-tests (Files): Likewise.
38102         * modules/rename-tests (Files): Likewise.
38103         * modules/renameat-tests (Files): Likewise.
38104         * modules/rmdir-tests (Files): Likewise.
38105         * modules/round-tests (Files): Likewise.
38106         * modules/roundf-tests (Files): Likewise.
38107         * modules/roundl-tests (Files): Likewise.
38108         * modules/select-tests (Files): Likewise.
38109         * modules/setenv-tests (Files): Likewise.
38110         * modules/sigaction-tests (Files): Likewise.
38111         * modules/sleep-tests (Files): Likewise.
38112         * modules/snprintf-posix-tests (Files): Likewise.
38113         * modules/snprintf-tests (Files): Likewise.
38114         * modules/sprintf-posix-tests (Files): Likewise.
38115         * modules/stat-tests (Files): Likewise.
38116         * modules/strcasestr-tests (Files): Likewise.
38117         * modules/strchrnul-tests (Files): Likewise.
38118         * modules/strerror-tests (Files): Likewise.
38119         * modules/strsignal-tests (Files): Likewise.
38120         * modules/strstr-tests (Files): Likewise.
38121         * modules/strtod-tests (Files): Likewise.
38122         * modules/strverscmp-tests (Files): Likewise.
38123         * modules/symlink-tests (Files): Likewise.
38124         * modules/symlinkat-tests (Files): Likewise.
38125         * modules/times-tests (Files): Likewise.
38126         * modules/trunc-tests (Files): Likewise.
38127         * modules/truncf-tests (Files): Likewise.
38128         * modules/truncl-tests (Files): Likewise.
38129         * modules/tsearch-tests (Files): Likewise.
38130         * modules/uname-tests (Files): Likewise.
38131         * modules/unlink-tests (Files): Likewise.
38132         * modules/unsetenv-tests (Files): Likewise.
38133         * modules/usleep-tests (Files): Likewise.
38134         * modules/utimensat-tests (Files): Likewise.
38135         * modules/vasprintf-tests (Files): Likewise.
38136         * modules/vdprintf-posix-tests (Files): Likewise.
38137         * modules/vfprintf-posix-tests (Files): Likewise.
38138         * modules/vprintf-posix-tests (Files): Likewise.
38139         * modules/vsnprintf-posix-tests (Files): Likewise.
38140         * modules/vsnprintf-tests (Files): Likewise.
38141         * modules/vsprintf-posix-tests (Files): Likewise.
38142         * modules/wcrtomb-tests (Files): Likewise.
38143         * modules/wcsnrtombs-tests (Files): Likewise.
38144         * modules/wcsrtombs-tests (Files): Likewise.
38145         * modules/wcwidth-tests (Files): Likewise.
38146         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
38147         * tests/test-isinf.c (isinf): Likewise.
38148         * tests/test-isnan.c (isnan): Likewise.
38149         * tests/test-signbit.c (signbit): Likewise.
38150         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
38151         declaration, either as macro or with correct signature.
38152         (select): Ensure function under test is declared with correct
38153         signature in correct header.
38154         * tests/test-atexit.c (atexit): Likewise.
38155         * tests/test-btowc.c (btowc): Likewise.
38156         * tests/test-canonicalize-lgpl.c (realpath)
38157         (canonicalize_file_name): Likewise.
38158         * tests/test-ceilf1.c (ceilf): Likewise.
38159         * tests/test-ceill.c (ceill): Likewise.
38160         * tests/test-chown.c (chown): Likewise.
38161         * tests/test-dprintf-posix.c (dprintf): Likewise.
38162         * tests/test-dup2.c (dup2): Likewise.
38163         * tests/test-dup3.c (dup3): Likewise.
38164         * tests/test-duplocale.c (duplocale): Likewise.
38165         * tests/test-fchdir.c (fchdir): Likewise.
38166         * tests/test-fchownat.c (fchownat): Likewise.
38167         * tests/test-fcntl.c (fcntl): Likewise.
38168         * tests/test-fdopendir.c (fdopendir): Likewise.
38169         * tests/test-fflush.c (fflush): Likewise.
38170         * tests/test-flock.c (flock): Likewise.
38171         * tests/test-floorf1.c (floorf): Likewise.
38172         * tests/test-floorl.c (floorl): Likewise.
38173         * tests/test-fnmatch.c (fnmatch): Likewise.
38174         * tests/test-fopen.c (fopen): Likewise.
38175         * tests/test-fprintf-posix.c (fprintf): Likewise.
38176         * tests/test-freopen.c (freopen): Likewise.
38177         * tests/test-frexp.c (frexp): Likewise.
38178         * tests/test-frexpl.c (frexpl): Likewise.
38179         * tests/test-fseek.c (fseek): Likewise.
38180         * tests/test-fseeko.c (fseeko): Likewise.
38181         * tests/test-fstatat.c (fstatat): Likewise.
38182         * tests/test-fsync.c (fsync): Likewise.
38183         * tests/test-ftell.c (ftell): Likewise.
38184         * tests/test-ftello.c (ftello): Likewise.
38185         * tests/test-futimens.c (futimens): Likewise.
38186         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
38187         (gai_strerror): Likewise.
38188         * tests/test-getcwd.c (getcwd): Likewise.
38189         * tests/test-getdelim.c (getdelim): Likewise.
38190         * tests/test-getdtablesize.c (getdtablesize): Likewise.
38191         * tests/test-getgroups.c (getgroups): Likewise.
38192         * tests/test-gethostname.c (gethostname): Likewise.
38193         * tests/test-getline.c (getline): Likewise.
38194         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
38195         Likewise.
38196         * tests/test-gettimeofday.c (gettimeofday): Likewise.
38197         * tests/test-glob.c (glob, globfree): Likewise.
38198         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
38199         * tests/test-inet_ntop.c (inet_ntop): Likewise.
38200         * tests/test-inet_pton.c (inet_pton): Likewise.
38201         * tests/test-isblank.c (isblank): Likewise.
38202         * tests/test-lchown.c (lchown): Likewise.
38203         * tests/test-ldexpl.c (ldexpl): Likewise.
38204         * tests/test-link.c (link): Likewise.
38205         * tests/test-linkat.c (linkat): Likewise.
38206         * tests/test-lseek.c (lseek): Likewise.
38207         * tests/test-lstat.c (lstat): Likewise.
38208         * tests/test-mbrtowc.c (mbrtowc): Likewise.
38209         * tests/test-mbsinit.c (mbsinit): Likewise.
38210         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
38211         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
38212         * tests/test-memchr.c (memchr): Likewise.
38213         * tests/test-memcmp.c (memcmp): Likewise.
38214         * tests/test-memmem.c (memmem): Likewise.
38215         * tests/test-memrchr.c (memrchr): Likewise.
38216         * tests/test-mkdir.c (mkdir): Likewise.
38217         * tests/test-mkdirat.c (mkdirat): Likewise.
38218         * tests/test-mkfifo.c (mkfifo): Likewise.
38219         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
38220         * tests/test-mknod.c (mknod): Likewise.
38221         * tests/test-nanosleep.c (nanosleep): Likewise.
38222         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
38223         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
38224         Likewise.
38225         * tests/test-open.c (open): Likewise.
38226         * tests/test-openat.c (openat): Likewise.
38227         * tests/test-perror.c (perror): Likewise.
38228         * tests/test-pipe2.c (pipe2): Likewise.
38229         * tests/test-poll.c (poll): Likewise.
38230         * tests/test-popen.c (popen, pclose): Likewise.
38231         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
38232         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
38233         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
38234         (posix_spawn_file_actions_destroy)
38235         (posix_spawn_file_actions_addclose)
38236         (posix_spawn_file_actions_addopen)
38237         (posix_spawn_file_actions_adddup2): Likewise.
38238         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
38239         * tests/test-pread.c (pread): Likewise.
38240         * tests/test-printf-posix.c (printf): Likewise.
38241         * tests/test-pty.c (openpty, forkpty): Likewise.
38242         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
38243         (random_r): Likewise.
38244         * tests/test-rawmemchr.c (rawmemchr): Likewise.
38245         * tests/test-readlink.c (readlink): Likewise.
38246         * tests/test-remove.c (remove): Likewise.
38247         * tests/test-rename.c (rename): Likewise.
38248         * tests/test-renameat.c (renameat): Likewise.
38249         * tests/test-rmdir.c (rmdir): Likewise.
38250         * tests/test-round1.c (round): Likewise.
38251         * tests/test-roundf1.c (roundf): Likewise.
38252         * tests/test-roundl.c (roundl): Likewise.
38253         * tests/test-setenv.c (setenv): Likewise.
38254         * tests/test-sigaction.c (sigaction): Likewise.
38255         * tests/test-sleep.c (sleep): Likewise.
38256         * tests/test-snprintf.c (snprintf): Likewise.
38257         * tests/test-sprintf-posix.c (sprintf): Likewise.
38258         * tests/test-stat.c (stat): Likewise.
38259         * tests/test-stpncpy.c (stpncpy): Likewise.
38260         * tests/test-strcasestr.c (strcasestr): Likewise.
38261         * tests/test-strchrnul.c (strchrnul): Likewise.
38262         * tests/test-strerror.c (strerror): Likewise.
38263         * tests/test-strsignal.c (strsignal): Likewise.
38264         * tests/test-strstr.c (strstr): Likewise.
38265         * tests/test-strtod.c (strtod): Likewise.
38266         * tests/test-strverscmp.c (strverscmp): Likewise.
38267         * tests/test-symlink.c (symlink): Likewise.
38268         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
38269         * tests/test-times.c (times): Likewise.
38270         * tests/test-trunc1.c (trunc): Likewise.
38271         * tests/test-truncf1.c (truncf): Likewise.
38272         * tests/test-truncl.c (truncl): Likewise.
38273         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
38274         Likewise.
38275         * tests/test-uname.c (uname): Likewise.
38276         * tests/test-unlink.c (unlink): Likewise.
38277         * tests/test-unlinkat.c (unlinkat): Likewise.
38278         * tests/test-unsetenv.c (unsetenv): Likewise.
38279         * tests/test-usleep.c (usleep): Likewise.
38280         * tests/test-utimensat.c (utimensat): Likewise.
38281         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
38282         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
38283         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
38284         * tests/test-vprintf-posix.c (vprintf): Likewise.
38285         * tests/test-vsnprintf.c (vsnprintf): Likewise.
38286         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
38287         * tests/test-wcrtomb.c (wcrtomb): Likewise.
38288         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
38289         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
38290         * tests/test-wcwidth.c (wcwidth): Likewise.
38291
38292         build: pull in conditional headers during GNULIB_POSIXCHECK
38293         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
38294         definitions from any conditionally-included headers.
38295         * lib/stdlib.in.h (includes): Likewise.
38296         * lib/unistd.in.h (includes): Likewise.
38297
38298 2009-12-24  Bruno Haible  <bruno@clisp.org>
38299
38300         * tests/test-argv-iter.c: Include header file being tested immediately
38301         after config.h.
38302         * tests/test-base64.c: Likewise.
38303         * tests/test-flock.c: Likewise.
38304         * tests/test-fsync.c: Likewise.
38305         * tests/test-getdate.c: Likewise.
38306         * tests/test-getndelim2.c: Likewise.
38307         * tests/test-isfinite.c: Likewise.
38308         * tests/test-isinf.c: Likewise.
38309         * tests/test-strerror.c: Likewise.
38310         * tests/test-strsignal.c: Likewise.
38311
38312 2009-12-23  Eric Blake  <ebb9@byu.net>
38313
38314         unistd: work around cygwin bug
38315         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
38316         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
38317         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38318
38319 2009-12-23  Bruno Haible  <bruno@clisp.org>
38320
38321         localename: More tests.
38322         * tests/test-localename.c (SIZEOF): New macro.
38323         (categories): New variable.
38324         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
38325         test_locale_name_default): Add test w.r.t. thread locale.
38326         (test_locale_name_thread): New function.
38327         (main): Invoke it.
38328
38329         localename: Make aware of thread locale.
38330         * lib/localename.h (gl_locale_name_thread): New declaration.
38331         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
38332         behaviour with respect to thread locale.
38333         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
38334         <langinfo.h>, glthread/lock.h.
38335         (SIZE_BITS): New macro.
38336         (string_hash): New function.
38337         (struct hash_node): New type.
38338         (HASH_TABLE_SIZE): New macro.
38339         (struniq_hash_table, struniq_lock): New variables.
38340         (struniq): New function.
38341         (gl_locale_name_thread): New function.
38342         (gl_locale_name): Invoke it.
38343         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
38344         * modules/localename (Depends-on): Add lock.
38345         Reported by Mike Gran <spk121@yahoo.com>.
38346
38347 2009-12-23  Eric Blake  <ebb9@byu.net>
38348
38349         va-args: new module
38350         * modules/va-args: New file.
38351         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
38352         * MODULES.html.sh (Core language properties): Mention it.
38353
38354         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
38355         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
38356         named alias for __attribute__((__unused__)).
38357         * lib/chown.c: Update client.
38358         * lib/fchmodat.c: Likewise.
38359         * lib/fts.c: Likewise.
38360         * lib/getdate.y: Likewise.
38361         * lib/getgroups.c: Likewise.
38362         * lib/getopt.c: Likewise.
38363         * lib/getugroups.c: Likewise.
38364         * lib/mkdir.c: Likewise.
38365         * lib/mkfifo.c: Likewise.
38366         * lib/mkfifoat.c: Likewise.
38367         * lib/mknod.c: Likewise.
38368         * lib/mknodat.c: Likewise.
38369         * lib/readlink.c: Likewise.
38370         * lib/se-context.in.h: Likewise.
38371         * lib/se-selinux.in.h: Likewise.
38372         * lib/sockets.c: Likewise.
38373         * lib/symlink.c: Likewise.
38374         * lib/symlinkat.c: Likewise.
38375         * lib/unicodeio.c: Likewise.
38376         * lib/unistr.h: Likewise.
38377         * tests/test-areadlink.c: Likewise.
38378         * tests/test-areadlinkat.c: Likewise.
38379         * tests/test-filenamecat.c: Likewise.
38380         * tests/test-fseeko.c: Likewise.
38381         * tests/test-ftello.c: Likewise.
38382         * tests/test-getdate.c: Likewise.
38383         * tests/test-getgroups.c: Likewise.
38384         * tests/test-gethostname.c: Likewise.
38385         * tests/test-quotearg.c: Likewise.
38386         * tests/test-version-etc.c: Likewise.
38387         * tests/test-xalloc-die.c: Likewise.
38388         * tests/test-xfprintf-posix.c: Likewise.
38389         * tests/test-xprintf-posix.c: Likewise.
38390         * tests/test-xvasprintf.c: Likewise.
38391
38392         tests: avoid compiler warnings
38393         * tests/test-fcntl.c (main): Delete unused parameters.
38394         * tests/test-freopen-safer.c (main): Likewise.
38395         * tests/test-xalloc-die.c (main): Mark unused parameters.
38396         * tests/test-fseeko.c (main): Likewise.
38397         * tests/test-ftello.c (main): Likewise.
38398         * tests/test-nanosleep.c (main): Avoid declaration warning.
38399         * tests/test-sleep.c (main): Likewise.
38400         * tests/test-unsetenv.c (main): Silence warning about string
38401         literal.
38402         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
38403
38404 2009-12-23  Bruno Haible  <bruno@clisp.org>
38405
38406         * tests/test-localename.c (test_locale_name): New function, extracted
38407         from main. Also test mixed situations.
38408         (test_locale_name_posix, test_locale_name_environ,
38409         test_locale_name_default): New functions.
38410         (main): Invoke them all.
38411         * modules/localename-tests (configure.ac): Test for newlocale.
38412
38413 2009-12-23  Bruno Haible  <bruno@clisp.org>
38414
38415         unistd: Ensure getcwd gets declared before being overridden.
38416         * lib/unistd.in.h: Conditionally include <io.h>.
38417
38418 2009-12-22  Bruno Haible  <bruno@clisp.org>
38419
38420         wchar: Diagnose broken combination of glibc and gcc versions and flags.
38421         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
38422         (gl_WCHAR_H): Invoke it.
38423         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
38424         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
38425         Reported by Karl Berry <karl@freefriends.org>.
38426
38427 2009-12-22  Eric Blake  <ebb9@byu.net>
38428
38429         math, unistd: avoid redundant includes
38430         * lib/math.in.h (isnan): No need to re-include <math.h>.
38431         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
38432
38433         getsubopt: work around cygwin bug
38434         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
38435         avoid conflicting with system getsubopt.
38436         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
38437         bug.
38438
38439         getopt: synchronize from glibc
38440         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
38441         parameter order.  Adjust all callers.
38442         (_getopt_internal_r, main): Adjust quoting in error messages.
38443         Drop considerations for outdated POSIX 1003.2 error message.
38444         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
38445         callers.
38446         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
38447
38448         test-getopt: test stderr behavior
38449         * modules/getopt-posix-tests (Depends-on): Add dup2.
38450         * tests/test-getopt.c (ASSERT): Avoid stderr.
38451         (main): Move stderr to a temporary file.
38452         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
38453         Instead, add parameter to inform caller if output occurred.
38454         (test_getopt): Adjust all existing tests to expect silence, and
38455         add new tests of leading ":".
38456         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
38457         glibc shortcomings with leading "-:" or "+:" in optstring.
38458         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38459         Likewise.
38460         * doc/posix-functions/getopt.texi (getopt): Likewise.
38461
38462         test-getopt: enhance test
38463         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
38464         supports optind=0.
38465         * tests/test-getopt.c (OPTIND_MIN): Move...
38466         * tests/test-getopt.h (OPTIND_MIN): ...here.
38467         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
38468         Require that optind=0 works, since modern BSD supports it in
38469         addition to optreset, and since coreutils expects it.
38470         (test_getopt_long_only): New test.
38471         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
38472         glibc shortcomings with 'W;', and enforcement of optind=0.
38473         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38474         Likewise.
38475
38476 2009-12-21  Bruno Haible  <bruno@clisp.org>
38477
38478         localename: Improvements for MacOS X and Cygwin.
38479         * lib/localename.h (gl_locale_name_environ): New declaration.
38480         * lib/localename.c (gl_locale_name_environ): New function, extracted from
38481         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
38482         (gl_locale_name_posix): Invoke it.
38483         (gl_locale_name_default): Add comments. Use Windows native API also on
38484         Cygwin.
38485
38486 2009-12-21  Bruno Haible  <bruno@clisp.org>
38487
38488         Update list of Win32 locale ids.
38489         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
38490         (LANG_SAMI): Renamed from LANG_SAAMI.
38491         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
38492         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
38493         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
38494         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
38495         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
38496         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
38497         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
38498         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
38499         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
38500         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
38501         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
38502         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
38503         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
38504         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
38505         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
38506         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
38507         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
38508         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
38509         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
38510         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
38511         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
38512         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
38513         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
38514         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
38515         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
38516         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
38517         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
38518         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
38519         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
38520         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
38521         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
38522         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
38523         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
38524         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
38525         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
38526         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
38527         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
38528         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
38529         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
38530         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
38531         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
38532         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
38533         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
38534         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
38535         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
38536         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
38537         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
38538         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
38539         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
38540         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
38541         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
38542         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
38543         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
38544         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
38545         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
38546         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
38547         Add more languages and countries for Sami, Sorbian. Add more countries
38548         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
38549         for Pashto. Change country for Syriac, Tswana.
38550
38551 2009-12-21  Eric Blake  <ebb9@byu.net>
38552
38553         test-utimens: avoid spurious failure
38554         * tests/test-chown.h (nap): Factor...
38555         * tests/nap.h: ...into new file.
38556         * tests/test-lchown.h (nap): Avoid duplication.
38557         * tests/test-utimens-common.h (nap): Use shared implementation,
38558         necessary on file systems with 1-second resolution.
38559         * modules/chown-tests (Files): Include new file.
38560         * modules/fdutimensat-tests (Files): Likewise.
38561         * modules/futimens-tests (Files): Likewise.
38562         * modules/lchown-tests (Files): Likewise.
38563         * modules/openat-tests (Files): Likewise.
38564         * modules/utimens-tests (Files): Likewise.
38565         * modules/utimensat-tests (Files): Likewise.
38566
38567 2009-12-19  Eric Blake  <ebb9@byu.net>
38568
38569         futimens, utimensat: work around Linux bug
38570         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
38571         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38572         * lib/utimensat.c (rpl_utimensat): Work around it.
38573         * lib/futimens.c (rpl_futimens): Adjust comment.
38574
38575         utimens: work around Linux ctime bug
38576         * lib/utimens.c (detect_ctime_bug): New helper function.
38577         (update_timespec): Differentiate between workaround needed for
38578         this bug vs. what is needed for systems that lack utimensat.
38579         (fdutimens, lutimens): Work around bug.
38580
38581         utimens: check for ctime update
38582         * tests/test-utimens-common.h (check_ctime): Define.
38583         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
38584         * tests/test-futimens.h (test_futimens): Likewise.
38585         * tests/test-lutimens.h (test_lutimens): Likewise.
38586         * doc/posix-functions/futimens.texi (futimens): Document the bug.
38587         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38588
38589 2009-12-19  Bruno Haible  <bruno@clisp.org>
38590
38591         dprintf-posix: Check against memory leak fixed on 2009-12-15.
38592         * tests/test-dprintf-posix2.sh: New file.
38593         * tests/test-dprintf-posix2.c: New file.
38594         * modules/dprintf-posix-tests (Files): Add them.
38595         (configure.ac): Check for getrlimit and setrlimit.
38596         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38597
38598 2009-12-19  Bruno Haible  <bruno@clisp.org>
38599
38600         fprintf-posix: Check against memory leak fixed on 2009-12-15.
38601         * tests/test-fprintf-posix3.sh: New file.
38602         * tests/test-fprintf-posix3.c: New file.
38603         * modules/fprintf-posix-tests (Files): Add them.
38604         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38605
38606 2009-12-19  Eric Blake  <ebb9@byu.net>
38607
38608         dirfd: fix prototype
38609         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
38610         * lib/dirfd.c (dirfd): Likewise.
38611
38612         canonicalize: reduce memory usage
38613         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
38614         allocation to size.
38615         Reported by Solar Designer <solar@openwall.com>.
38616
38617 2009-12-19  Bruno Haible  <bruno@clisp.org>
38618
38619         New module attribute 'Applicability'.
38620         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
38621         * gnulib-tool: New option --extract-applicability.
38622         (func_usage): Document it.
38623         (sed_extract_prog): Recognize it.
38624         (func_get_applicability): New function.
38625         (func_import): Generalize handling of 'link-warning' module.
38626         * modules/link-warning (Applicability): New section.
38627         * modules/arg-nonnull (Applicability): New section.
38628         Repoted by Simon Josefsson <simon@josefsson.org>.
38629
38630 2009-12-19  Bruno Haible  <bruno@clisp.org>
38631
38632         fflush: tweak
38633         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
38634         * lib/fseeko.c (rpl_fseeko): Likewise.
38635
38636 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
38637
38638         * lib/gl_list.h: Fix typo in comment.
38639
38640 2009-12-16  Eric Blake  <ebb9@byu.net>
38641
38642         fcntl: use to simplify other modules
38643         * modules/cloexec (Depends-on): Add fcntl.
38644         * modules/fchdir (Depends-on): Likewise.
38645         * modules/fd-safer-flag (Depends-on): Likewise.
38646         * modules/unistd-safer (Depends-on): Likewise.
38647         * modules/dup3 (configure.ac): Set module indicator.
38648         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
38649         missing.
38650         * lib/fchdir.c (_gl_register_dup): Fix comment.
38651         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
38652         * lib/dup-safer.c (dup_safer): Likewise.
38653         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
38654         * lib/dup3.c (dup3): Likewise.
38655         * tests/test-fchdir.c (main): Enhance test.
38656         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
38657
38658         fcntl: port portions of fcntl to mingw
38659         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
38660         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
38661         replacement for mingw.
38662         * modules/fcntl (Description): Update.
38663         (Depends-on): Add dup2.
38664         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
38665         * modules/fcntl-h (Makefile.am): Substitute it.
38666         * lib/fcntl.in.h (fcntl): Update declaration.
38667         (F_DUPFD, F_GETFD): New macros, when needed.
38668         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38669         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
38670         * tests/test-fcntl.c (check_flags, main): Enhance test for items
38671         we now guarantee.
38672
38673         fcntl: work around cygwin bug in F_DUPFD
38674         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
38675         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
38676         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
38677         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
38678         * doc/posix-functions/fcntl.texi (fcntl): Document it.
38679
38680         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
38681         * modules/fcntl (Files): List new files.
38682         (configure.ac): Run a test.
38683         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
38684         * lib/fcntl.c (rpl_fcntl): Likewise.
38685         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
38686         (gl_FCNTL_H): Always replace fcntl.h.
38687         * modules/fcntl-h (Makefile.am): Substitute witnesses.
38688         * lib/fcntl.in.h (fcntl): Declare replacement.
38689         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
38690         needed, plus a witness.
38691         * doc/posix-functions/fcntl.texi (fcntl): Document this.
38692         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
38693         * tests/test-fcntl.c: New file.
38694         * modules/fcntl-tests: Likewise.
38695
38696         binary-io: avoid potential compilation warning
38697         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
38698         directives.
38699
38700         fflush: avoid compilation error on NetBSD
38701         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
38702         between off_t and fpos_t, since the latter is sometimes a struct.
38703         * lib/fseeko.c (rpl_fseeko): Likewise.
38704         Reported by Alexander Nasonov <alnsn@yandex.ru>.
38705
38706 2009-12-15  Eric Blake  <ebb9@byu.net>
38707
38708         fcntl-h, stdio, sys_ioctl: fix declarations
38709         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
38710         function must not take arguments.
38711         * lib/sys_ioctl.in.h (ioctl): Likewise.
38712         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
38713         (open): Add a link warning.
38714
38715 2009-12-15  Jim Meyering  <meyering@redhat.com>
38716
38717         areadlink, areadlink-with-size: relax license to LGPLv2+
38718         * modules/areadlink (License): Relax to LGPLv2+.
38719         * modules/areadlink-with-size (License): Likewise.
38720
38721 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
38722             Bruno Haible  <bruno@clisp.org>
38723
38724         *printf: Fix memory leak.
38725         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
38726         * lib/vfprintf.c (vfprintf): Likewise.
38727         * lib/dprintf.c (dprintf): Likewise.
38728         * lib/vdprintf.c (vdprintf): Likewise.
38729
38730 2009-12-14  Eric Blake  <ebb9@byu.net>
38731
38732         accept4: adjust module dependencies
38733         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
38734
38735         utimens: one more try at avoiding compiler warning
38736         * lib/utimens.c (lutimens): Lower scope of result.
38737
38738 2009-12-13  Bruno Haible  <bruno@clisp.org>
38739
38740         Move the malloc checking from module 'list' to new module 'xlist'.
38741         * modules/xlist: New file.
38742         * lib/gl_xlist.h: New file.
38743         * lib/gl_xlist.c: New file.
38744         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
38745         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
38746         gl_list_add_last, gl_list_add_before, gl_list_add_after,
38747         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
38748         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
38749         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
38750         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
38751         gl_sortedlist_nx_add): New declarations.
38752         (struct gl_list_implementation): Rename and change methods accordingly.
38753         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
38754         (gl_list_nx_create): Renamed from gl_list_create.
38755         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38756         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38757         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38758         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38759         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38760         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38761         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38762         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38763         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
38764         gl_list_create_empty.
38765         (gl_list_nx_create): Renamed from gl_list_create.
38766         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38767         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38768         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38769         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38770         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38771         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38772         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38773         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38774         * lib/gl_array_list.c: Don't include xalloc.h.
38775         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
38776         NULL upon out-of-memory.
38777         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
38778         out-of-memory.
38779         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
38780         Change return type to 'int'.
38781         (gl_array_nx_set_at): Renamed from gl_array_set_at.
38782         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38783         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
38784         upon out-of-memory.
38785         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
38786         upon out-of-memory.
38787         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
38788         upon out-of-memory.
38789         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
38790         upon out-of-memory.
38791         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
38792         out-of-memory.
38793         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
38794         Update.
38795         (gl_array_list_implementation): Update.
38796         * lib/gl_carray_list.c: Don't include xalloc.h.
38797         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
38798         Return NULL upon out-of-memory.
38799         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
38800         out-of-memory.
38801         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
38802         Change return type to 'int'.
38803         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
38804         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38805         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
38806         upon out-of-memory.
38807         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
38808         upon out-of-memory.
38809         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
38810         out-of-memory.
38811         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
38812         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
38813         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
38814         Update.
38815         (gl_carray_list_implementation): Update.
38816         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
38817         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
38818         gl_linked_create_empty. Return NULL upon out-of-memory.
38819         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
38820         out-of-memory.
38821         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
38822         Change return type to 'int'. Return -1 upon out-of-memory.
38823         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
38824         out-of-memory.
38825         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
38826         upon out-of-memory.
38827         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
38828         upon out-of-memory.
38829         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
38830         NULL upon out-of-memory.
38831         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
38832         upon out-of-memory.
38833         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
38834         out-of-memory.
38835         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
38836         Update.
38837         * lib/gl_linked_list.c: Don't include xalloc.h.
38838         (gl_linked_list_implementation): Update.
38839         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
38840         (add_to_bucket): Change return type to 'int'.
38841         (gl_linkedhash_list_implementation): Update.
38842         * lib/gl_anytree_list1.h (free_subtree): New function.
38843         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
38844         gl_tree_create_empty. Return NULL upon out-of-memory.
38845         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
38846         Change return type to 'int'. Return -1 upon out-of-memory.
38847         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
38848         out-of-memory.
38849         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
38850         (gl_tree_remove_node): New function, moved here from
38851         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
38852         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
38853         Update.
38854         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
38855         malloc, not xmalloc. Return NULL upon out-of-memory.
38856         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38857         out-of-memory.
38858         (gl_tree_remove_node_from_tree): New function, extracted from
38859         gl_tree_remove_node.
38860         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38861         upon out-of-memory.
38862         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38863         out-of-memory.
38864         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38865         upon out-of-memory.
38866         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38867         upon out-of-memory.
38868         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38869         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
38870         not xmalloc. Return NULL upon out-of-memory.
38871         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38872         out-of-memory.
38873         (gl_tree_remove_node_from_tree): New function, extracted from
38874         gl_tree_remove_node.
38875         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38876         upon out-of-memory.
38877         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38878         out-of-memory.
38879         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38880         upon out-of-memory.
38881         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38882         upon out-of-memory.
38883         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38884         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
38885         gl_anytree_list1.h before gl_anyavltree_list2.h.
38886         (gl_avltree_list_implementation): Update.
38887         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
38888         gl_anytree_list1.h before gl_anyavltree_list2.h.
38889         (gl_rbtree_list_implementation): Update.
38890         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
38891         Change return type to 'int'. Return -1 upon out-of-memory. Use
38892         __builtin_expect.
38893         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
38894         (gl_avltreehash_list_implementation): Update.
38895         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
38896         (gl_rbtreehash_list_implementation): Update.
38897         * modules/array-list (Depends-on): Remove xalloc.
38898         * modules/carray-list (Depends-on): Likewise.
38899         * modules/linked-list (Depends-on): Likewise.
38900         * modules/linkedhash-list (Depends-on): Likewise.
38901         * modules/avltree-list (Depends-on): Likewise.
38902         * modules/rbtree-list (Depends-on): Likewise.
38903         * modules/avltreehash-list (Depends-on): Likewise.
38904         * modules/rbtreehash-list (Depends-on): Likewise.
38905
38906         * modules/xsublist: New file.
38907         * lib/gl_xsublist.h: New file.
38908         * lib/gl_xsublist.c: New file.
38909         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
38910         (gl_sublist_nx_create): New declaration.
38911         * lib/gl_sublist.c: Don't include xalloc.h.
38912         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
38913         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
38914         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
38915         Change return type to 'int'. Return -1 upon out-of-memory.
38916         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
38917         upon out-of-memory.
38918         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
38919         NULL upon out-of-memory.
38920         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
38921         upon out-of-memory.
38922         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
38923         NULL upon out-of-memory.
38924         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
38925         NULL upon out-of-memory.
38926         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
38927         upon out-of-memory.
38928         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
38929         (gl_sublist_list_implementation): Update.
38930         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
38931         upon out-of-memory.
38932         * modules/sublist (Depends-on): Remove xalloc.
38933
38934         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
38935         * tests/test-carray_list.c: Likewise.
38936         * tests/test-linked_list.c: Likewise.
38937         * tests/test-linkedhash_list.c: Likewise.
38938         * tests/test-avltree_list.c: Likewise.
38939         * tests/test-rbtree_list.c: Likewise.
38940         * tests/test-avltreehash_list.c: Likewise.
38941         * tests/test-rbtreehash_list.c: Likewise.
38942         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
38943         * modules/carray-list-tests (Makefile.am): Likewise.
38944         * modules/linked-list-tests (Makefile.am): Likewise.
38945         * modules/linkedhash-list-tests (Makefile.am): Likewise.
38946         * modules/avltree-list-tests (Makefile.am): Likewise.
38947         * modules/rbtree-list-tests (Makefile.am): Likewise.
38948         * modules/avltreehash-list-tests (Makefile.am): Likewise.
38949         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
38950
38951         * NEWS: Mention the changes.
38952
38953         * lib/clean-temp.c: Include gl_xlist.h.
38954         * modules/clean-temp (Depends-on): Add xlist.
38955
38956         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
38957         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
38958
38959         * tests/test-array_oset.c: Include gl_xlist.h.
38960         * modules/array-oset-tests (Depends-on): Add xlist.
38961
38962         Reported by José E. Marchesi <jemarch@gnu.org>.
38963
38964 2009-12-13  Bruno Haible  <bruno@clisp.org>
38965
38966         Move the malloc checking from module 'oset' to new module 'xoset'.
38967         * modules/xoset: New file.
38968         * lib/gl_xoset.h: New file.
38969         * lib/gl_xoset.c: New file.
38970         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
38971         declarations.
38972         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
38973         (struct gl_oset_implementation): Rename and change methods accordingly.
38974         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
38975         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38976         'int'. Mark as __warn_unused_result__.
38977         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
38978         gl_oset_create_empty.
38979         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38980         'int'.
38981         * lib/gl_array_oset.c: Don't include xalloc.h.
38982         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
38983         malloc, not xmalloc.
38984         (grow): Change return type to 'int'. Don't call xalloc_die.
38985         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
38986         to 'int'.
38987         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
38988         'int'.
38989         (gl_array_oset_implementation): Update.
38990         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
38991         gl_tree_create_empty.
38992         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
38993         'int'.
38994         * lib/gl_avltree_oset.c: Don't include xalloc.h.
38995         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
38996         xmalloc.
38997         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
38998         not xmalloc.
38999         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
39000         xmalloc.
39001         (gl_avltree_oset_implementation): Update.
39002         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
39003         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
39004         xmalloc.
39005         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
39006         not xmalloc.
39007         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
39008         xmalloc.
39009         (gl_rbtree_oset_implementation): Update.
39010         * modules/array-oset (Depends-on): Remove xalloc.
39011         * modules/avltree-oset (Depends-on): Likewise.
39012         * modules/rbtree-oset (Depends-on): Likewise.
39013         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
39014         * tests/test-avltree_oset.c: Likewise.
39015         * tests/test-rbtree_oset.c: Likewise.
39016         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
39017         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
39018         * modules/rbtree-oset-tests (Makefile.am): Likewise.
39019         * NEWS: Mention the change.
39020
39021 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
39022
39023         maint.mk: allow a project to override release-prep commands
39024         * top/maint.mk (alpha, beta, stable): Move release-preparatory
39025         commands into a new rule.
39026         (release-prep): New rule.
39027         (release-prep-hook): New overridable variable.
39028
39029 2009-12-13  Bruno Haible  <bruno@clisp.org>
39030
39031         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
39032
39033 2009-12-13  Jim Meyering  <meyering@redhat.com>
39034
39035         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
39036         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
39037
39038 2009-12-12  Bruno Haible  <bruno@clisp.org>
39039
39040         duplocale: Tweak.
39041         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
39042
39043 2009-12-12  Karl Berry  <karl@gnu.org>
39044
39045         * config/srclist.txt (strtoll.c): tab changes, no more sync.
39046
39047 2009-12-12  Bruno Haible  <bruno@clisp.org>
39048
39049         * m4/po.m4: Undo incorrect untabification.
39050
39051 2009-12-12  Bruno Haible  <bruno@clisp.org>
39052
39053         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
39054         * modules/c-strtod (Depends-on): Add locale.
39055         * modules/c-strtold (Depends-on): Likewise.
39056
39057 2009-12-12  Bruno Haible  <bruno@clisp.org>
39058
39059         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
39060
39061 2009-12-11  Eric Blake  <ebb9@byu.net>
39062
39063         setenv: relax requirement in light of POSIX ruling
39064         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
39065         not NULL.
39066         * tests/test-setenv.c (main): Relax test.
39067         * tests/test-unsetenv.c (main): Likewise.
39068         * doc/posix-functions/setenv.texi (setenv): Document this.
39069         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
39070
39071 2009-12-11  Bruno Haible  <bruno@clisp.org>
39072
39073         New module 'fd-safer-flag'.
39074         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
39075         * lib/dup-safer.c (dup_safer_flag): Remove function.
39076         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
39077         * lib/fd-safer.c (fd_safer_flag): Remove function.
39078         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
39079         * modules/cloexec (configure.ac): Drop indicator macro.
39080         * modules/fd-safer-flag: New file.
39081         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
39082         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
39083         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
39084
39085 2009-12-11  Bruno Haible  <bruno@clisp.org>
39086
39087         Tests for module 'nl_langinfo'.
39088         * modules/nl_langinfo-tests: New file.
39089         * tests/test-nl_langinfo.sh: New file.
39090         * tests/test-nl_langinfo.c: New file.
39091
39092         New module 'nl_langinfo'.
39093         * lib/nl_langinfo.c: New file.
39094         * m4/nl_langinfo.m4: New file.
39095         * modules/nl_langinfo: New file.
39096         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
39097
39098 2009-12-11  Bruno Haible  <bruno@clisp.org>
39099
39100         Tests for module 'langinfo'.
39101         * modules/langinfo-tests: New file.
39102         * tests/test-langinfo.c: New file.
39103
39104         New module 'langinfo'.
39105         * lib/langinfo.in.h: New file.
39106         * m4/langinfo_h.m4: New file.
39107         * modules/langinfo: New file.
39108         * doc/posix-headers/langinfo.texi: Mention the new module.
39109
39110 2009-12-11  Bruno Haible  <bruno@clisp.org>
39111
39112         * lib/config.charset: Untabify.
39113
39114 2009-12-11  Bruno Haible  <bruno@clisp.org>
39115
39116         * modules/unistd-safer (configure.ac): Drop indicator macro.
39117
39118 2009-12-11  Bruno Haible  <bruno@clisp.org>
39119
39120         Move pipe2-safer code to its own file.
39121         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
39122         * lib/pipe-safer.c (pipe2_safer): Remove function.
39123         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
39124         (Makefile.am): Add it to lib_SOURCES.
39125
39126 2009-12-10  Bruno Haible  <bruno@clisp.org>
39127
39128         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
39129
39130 2009-12-10  Bruno Haible  <bruno@clisp.org>
39131
39132         Declare which arguments expect non-NULL values, for GCC and clang.
39133         * build-aux/arg-nonnull.h: New file.
39134         * modules/arg-nonnull: New file.
39135         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
39136         (inet_ntop, inet_pton): Use it.
39137         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
39138         (closedir, dirfd, opendir, scandir, alphasort): Use it.
39139         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
39140         (open, openat): Use it.
39141         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
39142         (fnmatch): Use it.
39143         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
39144         (getopt, getopt_long, getopt_long_only): Use it.
39145         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
39146         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
39147         Use it.
39148         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
39149         (iconv_open): Use it.
39150         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
39151         (strtoimax, strtoumax): Use it.
39152         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
39153         (duplocale): Use it.
39154         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
39155         (frexp, frexpl): Use it.
39156         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
39157         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
39158         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
39159         (tsearch, tfind, tdelete, twalk): Use it.
39160         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
39161         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
39162         sigpending): Use it.
39163         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
39164         (posix_spawn, posix_spawnp, posix_spawnattr_init,
39165         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
39166         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
39167         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
39168         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
39169         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
39170         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
39171         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
39172         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
39173         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
39174         Use it.
39175         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
39176         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
39177         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
39178         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
39179         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
39180         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
39181         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
39182         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
39183         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
39184         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
39185         strtoull, unsetenv): Use it.
39186         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
39187         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
39188         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
39189         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
39190         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
39191         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
39192         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
39193         (strcasecmp, strncasecmp): Use it.
39194         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
39195         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
39196         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
39197         rpl_setsockopt): Use it.
39198         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
39199         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
39200         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
39201         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
39202         (gettimeofday): Use it.
39203         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
39204         (times): Use it.
39205         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
39206         (uname): Use it.
39207         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
39208         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
39209         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
39210         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
39211         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
39212         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
39213         unlinkat, write): Use it.
39214         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
39215         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
39216         * lib/argv-iter.h: Include arg-nonnull.h.
39217         (_ATTRIBUTE_NONNULL_): Remove macro.
39218         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
39219         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
39220         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
39221         optimization.
39222         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
39223         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
39224         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
39225         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
39226         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
39227         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
39228         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
39229         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
39230         * modules/arpa_inet (Depends-on): Add arg-nonnull.
39231         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
39232         * modules/dirent (Depends-on): Add arg-nonnull.
39233         (Makefile.am): Insert arg-nonnull.h into dirent.h.
39234         * modules/fcntl-h (Depends-on): Add arg-nonnull.
39235         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
39236         * modules/fnmatch (Depends-on): Add arg-nonnull.
39237         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
39238         * modules/getopt-posix (Depends-on): Add arg-nonnull.
39239         (Makefile.am): Insert arg-nonnull.h into getopt.h.
39240         * modules/glob (Depends-on): Add arg-nonnull.
39241         (Makefile.am): Insert arg-nonnull.h into glob.h.
39242         * modules/iconv_open (Depends-on): Add arg-nonnull.
39243         (Makefile.am): Insert arg-nonnull.h into iconv.h.
39244         * modules/inttypes (Depends-on): Add arg-nonnull.
39245         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
39246         * modules/locale (Depends-on): Add arg-nonnull.
39247         (Makefile.am): Insert arg-nonnull.h into locale.h.
39248         * modules/math (Depends-on): Add arg-nonnull.
39249         (Makefile.am): Insert arg-nonnull.h into math.h.
39250         * modules/netdb (Depends-on): Add arg-nonnull.
39251         (Makefile.am): Insert arg-nonnull.h into netdb.h.
39252         * modules/search (Depends-on): Add arg-nonnull.
39253         (Makefile.am): Insert arg-nonnull.h into search.h.
39254         * modules/signal (Depends-on): Add arg-nonnull.
39255         (Makefile.am): Insert arg-nonnull.h into signal.h.
39256         * modules/spawn (Depends-on): Add arg-nonnull.
39257         (Makefile.am): Insert arg-nonnull.h into spawn.h.
39258         * modules/stdio (Depends-on): Add arg-nonnull.
39259         (Makefile.am): Insert arg-nonnull.h into stdio.h.
39260         * modules/stdlib (Depends-on): Add arg-nonnull.
39261         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
39262         * modules/string (Depends-on): Add arg-nonnull.
39263         (Makefile.am): Insert arg-nonnull.h into string.h.
39264         * modules/strings (Depends-on): Add arg-nonnull.
39265         (Makefile.am): Insert arg-nonnull.h into strings.h.
39266         * modules/sys_socket (Depends-on): Add arg-nonnull.
39267         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
39268         * modules/sys_stat (Depends-on): Add arg-nonnull.
39269         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
39270         * modules/sys_time (Depends-on): Add arg-nonnull.
39271         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
39272         * modules/sys_times (Depends-on): Add arg-nonnull.
39273         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
39274         * modules/sys_utsname (Depends-on): Add arg-nonnull.
39275         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
39276         * modules/time (Depends-on): Add arg-nonnull.
39277         (Makefile.am): Insert arg-nonnull.h into time.h.
39278         * modules/unistd (Depends-on): Add arg-nonnull.
39279         (Makefile.am): Insert arg-nonnull.h into unistd.h.
39280         * modules/wchar (Depends-on): Add arg-nonnull.
39281         (Makefile.am): Insert arg-nonnull.h into wchar.h.
39282         * modules/argv-iter (Depends-on): Add arg-nonnull.
39283         * tests/test-canonicalize.c (null_ptr): New function.
39284         (main): Use it.
39285         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
39286         (main): Use it.
39287         * tests/test-memmem.c (null_ptr): New function.
39288         (main): Use it.
39289         Reported by Jim Meyering.
39290
39291 2009-12-10  Bruno Haible  <bruno@clisp.org>
39292
39293         Use spaces for indentation, not tabs.
39294         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
39295         * m4/*.m4: Untabify.
39296         * build-aux/*.h: Untabify.
39297         * tests/**/*.[hc]: Untabify.
39298         * README: New section "Indent with spaces, not TABs", based on
39299         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
39300         * NEWS: Mention the change.
39301
39302 2009-12-10  Bruno Haible  <bruno@clisp.org>
39303
39304         pty test: Fix link error.
39305         * modules/pty-tests (Makefile.am): Add the default LDADD value to
39306         test_pty_LDADD.
39307
39308 2009-12-07  Simon Josefsson  <simon@josefsson.org>
39309
39310         * modules/pty: New file.
39311         * modules/pty-tests: New file.
39312         * m4/pty.m4: New file.
39313         * tests/test-pty.c: New file.
39314         * doc/glibc-headers/pty.texi: Modified.
39315         * doc/glibc-functions/forkpty.texi: Modified.
39316         * doc/glibc-functions/openpty.texi: Modified.
39317
39318 2009-12-10  Bruno Haible  <bruno@clisp.org>
39319
39320         Avoid syntax error in C++ mode.
39321         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
39322
39323 2009-12-10  Bruno Haible  <bruno@clisp.org>
39324
39325         Use sed with option -e.
39326         * gnulib-tool (func_version, func_emit_copyright_notice,
39327         func_emit_initmacro_end, func_import, func_create_testdir): Pass
39328         option -e to sed.
39329         * modules/link-warning (Makefile.am): Likewise.
39330
39331 2009-12-10  Jim Meyering  <meyering@redhat.com>
39332
39333         mgetgroups: do not write bytes beyond end of malloc'd buffer
39334         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
39335         username, we call getgroups with a one-element-shorter buffer,
39336         but still told it the length was original, max_n_groups.
39337
39338 2009-12-09  Eric Blake  <ebb9@byu.net>
39339
39340         cloexec: relax license
39341         * modules/cloexec (Maintainer): Add myself.
39342         (License): Use LGPL, not GPL.
39343
39344         link-warning: optimize generation
39345         * modules/link-warning (Makefile.am): Reduce process usage.
39346
39347 2009-12-09  Bruno Haible  <bruno@clisp.org>
39348
39349         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
39350         workaround was added on 2009-11-17.
39351
39352 2009-12-09  Jim Meyering  <meyering@redhat.com>
39353             Bruno Haible  <bruno@clisp.org>
39354
39355         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
39356         * modules/link-warning (Makefile.am): Make the comment-removing sed
39357         command more robust in the face of bootstrap-prepended comment lines.
39358
39359 2009-12-09  Bruno Haible  <bruno@clisp.org>
39360
39361         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
39362         most one group.
39363
39364 2009-12-09  Simon Josefsson <simon@josefsson.org>
39365             Bruno Haible  <bruno@clisp.org>
39366
39367         * build-aux/link-warning.h: Add copyright notice.
39368         * modules/link-warning (Makefile.am): Generate link-warning.h from
39369         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
39370         * NEWS: Mention change in link-warning module.
39371         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
39372         * modules/dirent (Makefile.am): Add dependency to dirent.h.
39373         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
39374         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
39375         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
39376         * modules/math (Makefile.am): Add dependency to math.h.
39377         * modules/search (Makefile.am): Add dependency to search.h.
39378         * modules/signal (Makefile.am): Add dependency to signal.h.
39379         * modules/spawn (Makefile.am): Add dependency to spawn.h.
39380         * modules/stdio (Makefile.am): Add dependency to stdio.h.
39381         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
39382         * modules/string (Makefile.am): Add dependency to string.h.
39383         * modules/strings (Makefile.am): Add dependency to strings.h.
39384         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
39385         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
39386         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
39387         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
39388         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
39389         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
39390         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
39391         * modules/unistd (Makefile.am): Add dependency to unistd.h.
39392         * modules/wchar (Makefile.am): Add dependency to wchar.h.
39393
39394 2009-12-09  Bruno Haible  <bruno@clisp.org>
39395
39396         fchdir: Optimize away rpl_fstat when possible.
39397         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
39398         REPLACE_OPEN_DIRECTORY.
39399         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
39400
39401 2009-12-09  Bruno Haible  <bruno@clisp.org>
39402
39403         * lib/fchdir.c: Update comment.
39404
39405 2009-12-09  Bruno Haible  <bruno@clisp.org>
39406
39407         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
39408
39409 2009-12-08  Eric Blake  <ebb9@byu.net>
39410
39411         fchdir: avoid memory leak on re-registration.
39412         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
39413
39414 2009-12-08  Jim Meyering  <meyering@redhat.com>
39415
39416         init.sh: avoid Solaris 10 /bin/sh portability problem
39417         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
39418         sourced script:
39419           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
39420           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
39421           bar
39422         tests/init.sh relied on that, accepting a --set-path=DIR argument,
39423         and two tests used that idiom.
39424         * tests/init.sh: Update suggested usage comments.
39425         (path_prepend_): New function, to be used in place
39426         of the --src-path=DIR option.
39427         (setup_): Move PATH-prepending code into path_prepend_.
39428         * tests/test-pread.sh: Adapt to new usage.
39429         * tests/test-xalloc-die.sh: Likewise.
39430
39431 2009-12-08  Simon Josefsson  <simon@josefsson.org>
39432
39433         * doc/gnulib.texi (Glibc pty.h): Add.
39434         * doc/glibc-functions/forkpty.texi: Add.
39435         * doc/glibc-functions/openpty.texi: Add.
39436         Suggested by Bruno Haible.
39437
39438 2009-12-08  Eric Blake  <ebb9@byu.net>
39439
39440         fchdir: fix logic bugs
39441         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
39442         * tests/test-fchdir.c (main): Enhance test.
39443         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
39444         is in use.
39445
39446         dup2: fix logic bugs
39447         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
39448         REPLACE_DUP2 to decide when rpl_dup2 is needed.
39449         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
39450         exists.
39451         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
39452
39453 2009-12-07  Eric Blake  <ebb9@byu.net>
39454
39455         unlink: fix m4 detection
39456         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
39457
39458         unistd-safer: add unit test
39459         * modules/unistd-safer-tests: New file.
39460         * tests/test-dup-safer.c: Likewise.
39461         * tests/test-cloexec.c (setmode): Avoid compiler warning.
39462         * tests/test-dup2.c (setmode): Likewise.
39463         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
39464
39465         cloexec: preserve text vs. binary across dup_cloexec
39466         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
39467         mode.
39468         * modules/dup2-tests (Depends-on): Add binary-io.
39469         * modules/cloexec-tests (Depends-on): Likewise.
39470         * tests/test-dup2.c (setmode, is_mode): New helpers.
39471         (main): Add tests that translation mode is preserved.
39472         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
39473         Reported by Bruno Haible.
39474
39475         mgetgroups: reduce duplicate listings
39476         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
39477         resulting array.
39478         * tests/test-chown.h (test_chown): Simplify client.
39479         * tests/test-lchown.h (test_lchown): Likewise.
39480
39481 2009-12-06  Bruno Haible  <bruno@clisp.org>
39482
39483         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
39484         value.
39485
39486 2009-12-06  Bruno Haible  <bruno@clisp.org>
39487
39488         * lib/progname.c: Include stdio.h, stdlib.h.
39489         (set_program_name): Reject a NULL argument.
39490
39491 2009-12-05  Eric Blake  <ebb9@byu.net>
39492
39493         pipe2-safer: new module
39494         * modules/pipe2-safer: New file.
39495         * lib/unistd-safer.h (pipe2_safer): New prototype.
39496         * lib/unistd--.h (pipe2): New wrapper.
39497         * lib/pipe-safer.c (pipe2_safer): New function.
39498         * modules/pipe (Depends-on): Add pipe2-safer.
39499         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
39500
39501         stdlib-safer: preserve cloexec flag for mkostemp[s]
39502         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
39503         fd_safer_flag.
39504
39505         unistd-safer: allow preservation of cloexec status via flag
39506         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
39507         prototypes.
39508         * lib/dup-safer.c (dup_safer_flag): New function.
39509         * lib/fd-safer.c (fd_safer_flag): Likewise.
39510         * modules/cloexec (configure.ac): Set witness.
39511
39512         test-dup2: enhance test
39513         * modules/dup2-tests (Depends-on): Add cloexec.
39514         * tests/test-dup2.c (main): Enhance test.
39515
39516         cloexec: add dup_cloexec
39517         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
39518         header and comments.
39519         * lib/cloexec.c (set_cloexec_flag): Add comments.
39520         (dup_cloexec): New function, with mingw implementation borrowed
39521         from...
39522         * lib/w32spawn.h (dup_noinherit): ...here.
39523         * modules/execute (Depends-on): Add cloexec.
39524         * modules/pipe (Depends-on): Likewise.
39525         * modules/cloexec (Depends-on): Add dup2.
39526         * modules/cloexec-tests (Files): New file.
39527         * tests/test-cloexec.c: Likewise.
39528
39529         test-xalloc-die: fix test for mingw
39530         * modules/xalloc-die-tests (Files): Add tests/init.sh.
39531         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
39532         directory and .exe suffix off argv[0] output.
39533
39534         test-fseeko: fix test for mingw
39535         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
39536         than undefining fseek, so test will pass on mingw.
39537
39538 2009-12-05  Bruno Haible  <bruno@clisp.org>
39539
39540         * lib/progname.h (set_program_name): Clarify specification.
39541         * lib/progname.c (set_program_name): Likewise.
39542         Reported by Jim Meyering.
39543
39544 2009-12-05  Jim Meyering  <meyering@redhat.com>
39545
39546         maint.mk: backslash-escape parens in default regexp
39547         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
39548         backslash-escape the literal parentheses.
39549
39550         maint.mk: news-date-check: use grep -E
39551         * top/maint.mk (today): Define a Make variable, not a...
39552         (news-date-check): ...shell variable.
39553         (news-date-regexp): Use the Make variable.
39554         Use grep's -E option.  Change the failing diagnostic to mention
39555         the variable, $(news-date-regexp).
39556
39557 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
39558
39559         maintainer-makefile: allow customization of NEWS entry format
39560         * top/maint.mk (news-date-regexp): New overridable variable.
39561         (news-date-check): Use it.
39562
39563 2009-12-04  Eric Blake  <ebb9@byu.net>
39564
39565         mgetgroups: add xgetgroups, and avoid ENOSYS failures
39566         * lib/mgetgroups.h (xgetgroups): New prototype.
39567         * lib/mgetgroups.c (xgetgroups): New wrapper.
39568         (mgetgroups): Handle ENOSYS.
39569         * modules/mgetgroups (Depends-on): Add realloc.
39570         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
39571
39572         mgetgroups: avoid argument promotion issues with -1
39573         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
39574         for invalid gid_t.
39575         * tests/test-chown.h (getegid, test_chown): Likewise.
39576         * tests/test-lchown.h (getegid, test_lchown): Likewise.
39577
39578 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
39579
39580         exclude: Fix header file problems.
39581         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
39582
39583 2009-12-01  Jim Meyering  <meyering@redhat.com>
39584
39585         fts: fts_open: do not let an empty string cause immediate failure
39586         This is required in support of GNU rm, for which the command
39587         "rm A '' B" must process and remove both A and B, in spite of
39588         the empty string argument.
39589         * lib/fts.c (fts_open): Do not let the presence of an empty string
39590         cause fts_open to fail immediately.  Most fts-using tools must be
39591         able to process all arguments, in order, and can be expected to
39592         diagnose such arguments themselves.
39593
39594 2009-11-30  Eric Blake  <ebb9@byu.net>
39595
39596         utimens: fix compilation error
39597         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
39598         Declare variable at right scope.
39599
39600 2009-11-29  Jim Meyering  <meyering@redhat.com>
39601
39602         bootstrap: handle perl-5.11's changed --version output
39603         * build-aux/bootstrap (get_version): Handle perl separately,
39604         since perl-5.11's --version output is different.
39605
39606 2009-11-28  Jim Meyering  <meyering@redhat.com>
39607
39608         userspec: depend on the inttostr module, too
39609         * modules/userspec (Depends-on): Add inttostr.
39610
39611         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
39612         * lib/userspec.c (parse_with_separator): Do not accept a user ID
39613         number of MAXUID when it evaluates to (uid_t) -1.
39614         Likewise for group ID.  Reported by Matt McCutchen in
39615         <http://savannah.gnu.org/bugs/?28113>
39616
39617         userspec: reformat to use spaces, not TABs
39618         * lib/userspec.c: Expand TABs to spaces.
39619         Add Emacs' "indent-tabs-mode: nil" hint.
39620
39621 2009-11-27  Eric Blake  <ebb9@byu.net>
39622
39623         getopt-gnu: flush out another BSD bug
39624         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
39625         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
39626         flush out BSD bug.
39627         * tests/test-getopt.h (test_getopt): End lists with NULL.
39628         * tests/test-getopt_long.h (test_getopt_long): Likewise.
39629         (test_getopt_long_posix): Enhance test.
39630         * modules/getopt-posix-tests (Depends-on): Add stdbool.
39631         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
39632         getopt-gnu.
39633         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39634         Likewise.
39635
39636 2009-11-27  Simon Josefsson  <simon@josefsson.org>
39637
39638         * modules/idpriv-droptemp-tests (Notice): Fix text.
39639
39640 2009-11-27  Jim Meyering  <meyering@redhat.com>
39641
39642         test-xalloc-die: avoid spurious failure due to libtool argv difference
39643         In a libtool-enabled project, this test would fail due to a difference
39644         in the emitted program name, e.g.,
39645         -test-xalloc-die: memory exhausted
39646         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
39647         Use program to avoid that.
39648         * modules/xalloc-die-tests (Depends-on): Add progname.
39649         * tests/test-xalloc-die.c: Include progname.h".
39650         (program_name): Remove decl.
39651         (main): Call set_program_name.
39652         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
39653
39654 2009-11-26  Richard Jones  <rjones@redhat.com>
39655
39656         w32sock: leave win32 error in place.
39657         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
39658
39659 2009-11-26  Eric Blake  <ebb9@byu.net>
39660
39661         init.sh: suggest to use skip_ and fail_ functions in comments
39662         * tests/init.sh: Add a sentence.
39663
39664 2009-11-25  Bruno Haible  <bruno@clisp.org>
39665
39666         init.sh: add documentation in comments
39667         * tests/init.sh: Add some developer and user documentation.
39668
39669 2009-11-26  Jim Meyering  <meyering@redhat.com>
39670
39671         init.sh: accommodate even those who specify bogus srcdir manually
39672         * tests/init.sh: Normally, srcdir is guaranteed by automake and
39673         configure-time tests to be sanitized, so that there is no need to
39674         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
39675         (with no double quotes) suffices.  However, since tests may be
39676         invoked manually, and since you may explicitly set srcdir to the
39677         name of a directory containing spaces, do quote its uses here.
39678         * tests/test-pread.sh: Likewise.
39679         Suggested by Bruno Haible.
39680
39681         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
39682         * tests/test-pread.sh: Write no data into the pipe, because
39683         test-pread actually reads none.  This avoids a diagnostic,
39684         "bash: echo: write error: Broken pipe", that arises in the unusual
39685         event something is ignoring SIGPIPE, and might be interpreted
39686         as some sort of failure.  Reported by Bruno Haible.
39687
39688 2009-11-25  Jim Meyering  <meyering@redhat.com>
39689
39690         test-pread: cover failure with ESPIPE and EINVAL
39691         * tests/test-pread.c (main): Test for failure, too.
39692         * tests/test-pread.sh: Invoke with stdin on a pipe.
39693         Suggested by Eric Blake.
39694
39695         pread: improvement and fix
39696         * modules/pread (Depends-on): Depend on lseek, for portability to
39697         e.g., mingw.  Suggested by Eric Blake.
39698         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
39699
39700         unistd.in.h: correct declaration of pread
39701         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
39702         Reported by Richard W.M. Jones.
39703
39704         test-pread.sh: distribute the test script
39705         * modules/pread-tests (Files): Include test-pread.sh.
39706
39707         test-pread.sh: clean up
39708         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
39709         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
39710         That is unnecessary, since it's always ".".
39711         Suggestion from Eric Blake.
39712
39713         test-pread.sh: make executable
39714         * tests/test-pread.sh: Set executable bit.
39715         Reported by Eric Blake.
39716
39717         correct typo in test-pread.sh
39718         * tests/test-pread.sh: Add #! line.
39719
39720         test pread
39721         * tests/test-pread.c: New file.
39722         * tests/test-pread.sh: Likewise.
39723         * modules/pread-tests: Likewise.
39724
39725         pread: new module
39726         * modules/pread: New file.
39727         * lib/unistd.in.h (pread): Define/declare.
39728         * lib/pread.c (pread): New file.
39729         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
39730         * modules/unistd (Makefile.am): Substitute witnesses.
39731         * doc/posix-functions/pread.texi (pread): Update.
39732         * MODULES.html.sh: Add pread.
39733
39734 2009-11-25  Jim Meyering  <meyering@redhat.com>
39735
39736         tests/init.sh: new file to be used via most *.sh tests
39737         * tests/init.sh: New file.
39738
39739 2009-11-25  Eric Blake  <ebb9@byu.net>
39740
39741         utimens: work around older Linux failure with symlinks
39742         * lib/utimens.c (lutimensat_works_really): New variable.
39743         (fdutimens, lutimens): Use it to manage kernels that support
39744         nanosecond times on files, but not on symlinks.
39745         Reported by OndÅ™ej Vašík.
39746
39747         utimes: fix configure grammar
39748         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
39749
39750 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
39751
39752         regex: Fix fastmap for multibyte character ranges.
39753         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
39754         characters when a multibyte character range is included.
39755
39756 2009-11-22  Andy Wingo  <wingo@pobox.com>
39757
39758         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
39759         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
39760
39761 2009-11-24  Bruno Haible  <bruno@clisp.org>
39762
39763         doc: Most *_l functions exist in MacOS X 10.5.
39764         * doc/posix-functions/duplocale.texi: Update platforms list.
39765         * doc/posix-functions/freelocale.texi: Likewise.
39766         * doc/posix-functions/newlocale.texi: Likewise.
39767         * doc/posix-functions/uselocale.texi: Likewise.
39768         * doc/posix-functions/isalnum_l.texi: Likewise.
39769         * doc/posix-functions/isalpha_l.texi: Likewise.
39770         * doc/posix-functions/isblank_l.texi: Likewise.
39771         * doc/posix-functions/iscntrl_l.texi: Likewise.
39772         * doc/posix-functions/isdigit_l.texi: Likewise.
39773         * doc/posix-functions/isgraph_l.texi: Likewise.
39774         * doc/posix-functions/islower_l.texi: Likewise.
39775         * doc/posix-functions/isprint_l.texi: Likewise.
39776         * doc/posix-functions/ispunct_l.texi: Likewise.
39777         * doc/posix-functions/isspace_l.texi: Likewise.
39778         * doc/posix-functions/isupper_l.texi: Likewise.
39779         * doc/posix-functions/iswalnum_l.texi: Likewise.
39780         * doc/posix-functions/iswalpha_l.texi: Likewise.
39781         * doc/posix-functions/iswblank_l.texi: Likewise.
39782         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39783         * doc/posix-functions/iswctype_l.texi: Likewise.
39784         * doc/posix-functions/iswdigit_l.texi: Likewise.
39785         * doc/posix-functions/iswgraph_l.texi: Likewise.
39786         * doc/posix-functions/iswlower_l.texi: Likewise.
39787         * doc/posix-functions/iswprint_l.texi: Likewise.
39788         * doc/posix-functions/iswpunct_l.texi: Likewise.
39789         * doc/posix-functions/iswspace_l.texi: Likewise.
39790         * doc/posix-functions/iswupper_l.texi: Likewise.
39791         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39792         * doc/posix-functions/isxdigit_l.texi: Likewise.
39793         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
39794         * doc/posix-functions/strcasecmp_l.texi: Likewise.
39795         * doc/posix-functions/strcoll_l.texi: Likewise.
39796         * doc/posix-functions/strfmon_l.texi: Likewise.
39797         * doc/posix-functions/strftime_l.texi: Likewise.
39798         * doc/posix-functions/strncasecmp_l.texi: Likewise.
39799         * doc/posix-functions/strxfrm_l.texi: Likewise.
39800         * doc/posix-functions/tolower_l.texi: Likewise.
39801         * doc/posix-functions/toupper_l.texi: Likewise.
39802         * doc/posix-functions/towctrans_l.texi: Likewise.
39803         * doc/posix-functions/towlower_l.texi: Likewise.
39804         * doc/posix-functions/towupper_l.texi: Likewise.
39805         * doc/posix-functions/wcscoll_l.texi: Likewise.
39806         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39807         * doc/posix-functions/wctrans_l.texi: Likewise.
39808         * doc/posix-functions/wctype_l.texi: Likewise.
39809         * doc/glibc-functions/strptime_l.texi: Likewise.
39810         * doc/glibc-functions/strtod_l.texi: Likewise.
39811         * doc/glibc-functions/strtof_l.texi: Likewise.
39812         * doc/glibc-functions/strtol_l.texi: Likewise.
39813         * doc/glibc-functions/strtold_l.texi: Likewise.
39814         * doc/glibc-functions/strtoll_l.texi: Likewise.
39815         * doc/glibc-functions/strtoul_l.texi: Likewise.
39816         * doc/glibc-functions/strtoull_l.texi: Likewise.
39817         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39818         * doc/glibc-functions/wcstod_l.texi: Likewise.
39819         * doc/glibc-functions/wcstof_l.texi: Likewise.
39820         * doc/glibc-functions/wcstol_l.texi: Likewise.
39821         * doc/glibc-functions/wcstold_l.texi: Likewise.
39822         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39823         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39824         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39825
39826 2009-11-24  Bruno Haible  <bruno@clisp.org>
39827
39828         duplocale: Fix logic bug.
39829         * lib/duplocale.c: Don't include <langinfo.h>.
39830         (_NL_LOCALE_NAME): Remove macro.
39831         (rpl_duplocale): Use setlocale instead of nl_langinfo.
39832         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
39833
39834 2009-11-23  Jim Meyering  <meyering@redhat.com>
39835
39836         test-update-copyright: don't hard-code /usr/bin/perl
39837         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
39838         perl to print the current year.  Gilles Espinasse reported that
39839         the replaced use of perl was hard-coded as /usr/bin/perl.
39840
39841 2009-11-23  Bruno Haible  <bruno@clisp.org>
39842
39843         duplocale: Add support for glibc 2.3.x.
39844         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
39845
39846 2009-11-22  Bruno Haible  <bruno@clisp.org>
39847
39848         vasnprintf: Tiny optimization.
39849         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
39850         MacOS X.
39851
39852 2009-11-22  Bruno Haible  <bruno@clisp.org>
39853
39854         Tests for module 'duplocale'.
39855         * modules/duplocale-tests: New file.
39856         * tests/test-duplocale.c: New file.
39857
39858         New module 'duplocale'.
39859         * m4/duplocale.m4: New file.
39860         * lib/locale.in.h (duplocale): New declaration.
39861         * lib/duplocale.c: New file.
39862         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
39863         gl_LOCALE_H_DEFAULTS): New macros.
39864         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
39865         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
39866         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
39867         REPLACE_DUPLOCALE.
39868         * modules/duplocale: New file.
39869         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
39870
39871 2009-11-22  Bruno Haible  <bruno@clisp.org>
39872
39873         * modules/locale-tests (configure.ac): Test for newlocale function.
39874         * tests/test-locale.c: When the system has extended locale functions,
39875         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
39876
39877         locale: Make locale_t available when possible.
39878         * lib/locale.in.h: Include <xlocale.h> when it exists.
39879         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
39880         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
39881         * modules/locale (Depends-on): Add extensions.
39882         (Makefile.am): Also substitute HAVE_XLOCALE_H.
39883         * doc/posix-headers/locale.texi: Document the problem with locale_t.
39884
39885 2009-11-22  Bruno Haible  <bruno@clisp.org>
39886
39887         Add comments.
39888         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
39889         invocation.
39890         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
39891         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
39892         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39893
39894 2009-11-22  Bruno Haible  <bruno@clisp.org>
39895
39896         error: account for the possibility of freopen (stdout).
39897         * lib/error.c: Include <unistd.h>.
39898         (flush_stdout): New function, extracted from error and error_at_line.
39899         Determine stdout's fd dynamically.
39900         (error, error_at_line): Invoke flush_stdout.
39901         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
39902         * modules/error (Depends-on): Add unistd.
39903
39904 2009-11-22  Bruno Haible  <bruno@clisp.org>
39905
39906         diffseq: Add comment.
39907         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
39908
39909 2009-11-22  Jim Meyering  <meyering@redhat.com>
39910
39911         c-stack: avoid defining an unused static function
39912         * lib/c-stack.c (find_stack_direction): Do not define this function
39913         when it will not be used.
39914
39915         diffseq: avoid spurious gcc warnings
39916         * lib/diffseq.h (IF_LINT2): Define.
39917         (compareseq): Use it to initialize two members of "part".
39918         This avoids two used-uninitialized warnings.
39919
39920 2009-11-21  Jim Meyering  <meyering@redhat.com>
39921
39922         c-stack: avoid "ignoring return value of `write'" warning
39923         * lib/c-stack.c: Include "ignore-value.h".
39924         (die): Explicitly ignore each write return value.
39925         * modules/c-stack (Depends-on): Add ignore-value.
39926
39927 2009-11-21  Bruno Haible  <bruno@clisp.org>
39928
39929         diffseq: reduce scope of variable 'best'.
39930         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
39931         variable, earlier used for two different purposes.
39932
39933 2009-11-21  Jim Meyering  <meyering@redhat.com>
39934
39935         diffseq: remove useless assignment to "best"
39936         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
39937         assignment.  At that point "best" is already guaranteed to be zero.
39938
39939 2009-11-20  Eric Blake  <ebb9@byu.net>
39940
39941         build: mention ftp redirector in release announcements
39942         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
39943         values that used to come from cfg.mk; mention FTP redirect URL.
39944         * build-aux/announce-gen: Mention the mirror list.
39945         Suggested by Karl Berry.
39946
39947         nanosleep: improve port to mingw
39948         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
39949         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
39950         LIB_NANOSLEEP, but only when needed.
39951         * modules/select (Link): Document LIBSOCKET.
39952         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
39953         enough.
39954
39955         nanosleep: work around cygwin bug
39956         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
39957         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
39958         bug.
39959         (getnow): Delete, not needed.
39960         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
39961         LIB_CLOCK_GETTIME.
39962         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
39963         clock-time, gettime.
39964         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
39965         bug.
39966         * modules/nanosleep-tests: New test.
39967         * tests/test-nanosleep.c: New file.
39968
39969         sleep: work around cygwin bug
39970         * lib/sleep.c (rpl_sleep): Work around the bug.
39971         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
39972         (gl_PREREQ_SLEEP): Delete unused macro.
39973         * modules/sleep (Depends-on): Add verify.
39974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39975         * modules/unistd (Makefile.am): Substitute witness.
39976         * lib/unistd.in.h (sleep): Update prototype.
39977         * doc/posix-functions/sleep.texi (sleep): Document the bug.
39978         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
39979         * modules/sleep-tests (Depends-on): Check for alarm.
39980
39981 2009-11-20  Jim Meyering  <meyering@redhat.com>
39982
39983         maint.mk: improve sc_prohibit_magic_number_exit
39984         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
39985         so it does not match uses like System.exit(1).
39986         Add comments showing how to correct all offenders.
39987
39988 2009-11-19  Eric Blake  <ebb9@byu.net>
39989
39990         xalloc-die-tests: add missing library
39991         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
39992
39993         test-xvasprintf: silence compiler warnings
39994         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
39995         empty string from gcc.
39996
39997 2009-11-19  Jim Meyering  <meyering@redhat.com>
39998
39999         xfreopen: new module, from coreutils
40000         * modules/xfreopen: New module.
40001         * lib/xfreopen.c: New file.
40002         * lib/xfreopen.h: New file.
40003         * MODULES.html.sh (File stream based Input/Output"): Add it.
40004
40005 2009-11-19  Eric Blake  <ebb9@byu.net>
40006
40007         manywarnings: depend on warnings
40008         * modules/manywarnings (Depends-on): Add warnings.
40009
40010         build: avoid compiler warnings
40011         * lib/select.c (rpl_select): Delete unused variable.
40012         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
40013
40014 2009-11-18  Eric Blake  <ebb9@byu.net>
40015
40016         tests: avoid false negative with --with-packager
40017         * tests/test-version-etc.sh: Discard packager information.
40018         * tests/test-argp-version-etc-1.sh: Likewise.
40019         Reported by Mike Frysinger.
40020
40021         utimens: fix regression on Solaris
40022         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
40023         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
40024         can only change fd timestamps via futimesat.  Instead, use an
40025         additional witness macro to avoid BSD bug.
40026         Reported by Jim Meyering.
40027
40028 2009-11-17  Eric Blake  <ebb9@byu.net>
40029
40030         usleep: use it to simplify tests
40031         * modules/stat-time-tests (Depends-on): Add usleep.
40032         (configure.ac): Drop usleep check.
40033         * modules/chown-tests (Depends-on, configure.ac): Likewise.
40034         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
40035         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
40036         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
40037         * modules/openat-tests (Depends-on, configure.ac): Likewise.
40038         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
40039         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
40040         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
40041         Likewise.
40042         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
40043         * tests/test-lchown.h (nap): Likewise.
40044         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
40045         * tests/test-stat-time.c (nap): Likewise.
40046         * tests/test-utimens-common.h (nap): Update comments.
40047
40048         usleep: new module
40049         * modules/usleep: New file.
40050         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
40051         * lib/usleep.c (usleep): Likewise.
40052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40053         * modules/unistd (Makefile.am): Substitute witnesses.
40054         * lib/unistd.in.h (usleep): Add declaration.
40055         * doc/pastposix-functions/usleep.texi (usleep): Document this.
40056         * MODULES.html.sh (Date and time): Likewise.
40057         * modules/usleep-tests (Depends-on): New test.
40058         * tests/test-usleep.c: New file.
40059
40060         chown: work around OpenBSD bug
40061         * lib/chown.c (rpl_chown): Work around the bug.
40062         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
40063         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
40064         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
40065         * modules/chown (Depends-on): Add stdbool.
40066         * modules/lchown (Depends-on): Likewise.
40067         * doc/posix-functions/chown.texi (chown): Document the bug.
40068         * doc/posix-functions/lchown.texi (lchown): Likewise.
40069         * tests/test-lchown.h (test_chown): Relax test.
40070
40071         mkstemp: avoid conflict with C++ keyword template
40072         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
40073         * lib/mkostemp.c (mkostemp): Likewise.
40074         * lib/mkostemps.c (mkostemps): Likewise.
40075         * lib/mkstemp.c (mkstemp): Likewise.
40076         * lib/mkstemps.c (mkstemps): Likewise.
40077
40078         xalloc-die-tests: optimize
40079         * tests/test-xalloc-die.sh: Reduce number of processes.
40080
40081 2009-11-17  Simon Josefsson  <simon@josefsson.org>
40082
40083         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
40084         patch from ludo@gnu.org (Ludovic Courtès).
40085
40086 2009-11-17  Jim Meyering  <meyering@redhat.com>
40087
40088         version-etc: use proper license string
40089         * modules/version-etc (License): Use LGPL, not LGPLv3+.
40090         * modules/version-etc-fsf: Likewise.
40091
40092 2009-11-17  Simon Josefsson  <simon@josefsson.org>
40093
40094         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
40095         printed to stdout.  Deal with EOL differences.
40096
40097 2009-11-17  Eric Blake  <ebb9@byu.net>
40098
40099         unsetenv: work around Solaris bug
40100         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
40101         * lib/unsetenv.c (rpl_unsetenv): Work around it.
40102         Reported by Jim Meyering.
40103
40104         vasnprintf: avoid compiler warnings
40105         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
40106         variables.
40107         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
40108
40109 2009-11-17  Simon Josefsson  <simon@josefsson.org>
40110
40111         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
40112         settings since xalloc-die is no longer the self test,
40113         xalloc-die.sh is.
40114
40115 2009-11-17  Jim Meyering  <meyering@redhat.com>
40116
40117         test-xalloc-die.sh: make the code agree with the commit log
40118         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
40119         at the end, just in case you happen to have a test-xalloc-die
40120         program in some other PATH directory.
40121
40122         test-xalloc-die.sh: fix a portability bug
40123         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
40124         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
40125         Otherwise, argv[0] (as often seen in diagnostics) would be too
40126         system-dependent, sometimes with, and sometimes without the leading "./".
40127
40128         version-etc-fsf: relax license to LGPLv3+
40129         * modules/version-etc-fsf (License): Relax license.
40130
40131 2009-11-16  Eric Blake  <ebb9@byu.net>
40132
40133         xalloc-die-tests: avoid printing null pointer
40134         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
40135         shell script.
40136         * tests/test-xalloc-die.c (program_name): Declare.
40137         * tests/test-xalloc-die.sh (tmpfiles): New file.
40138
40139         setenv, unsetenv: work around various bugs
40140         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
40141         (setenv) [HAVE_SETENV]: Work around bugs.
40142         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
40143         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
40144         for bugs.
40145         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
40146         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
40147         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
40148         * modules/stdlib (Makefile.am): Update substitutions.
40149         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
40150         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
40151         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
40152         * modules/setenv-tests: New test.
40153         * modules/unsetenv-tests: Likewise.
40154         * tests/test-setenv.c: New file.
40155         * tests/test-unsetenv.c: Likewise.
40156
40157 2009-11-16  Jim Meyering  <meyering@redhat.com>
40158
40159         version-etc: relax license to LGPLv3+
40160         * modules/version-etc (License): Relax license.
40161
40162         better AC_REQUIRE expanded-before-required-warning avoidance
40163         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
40164         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
40165         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
40166         which is no longer needed.
40167
40168 2009-11-16  Eric Blake  <ebb9@byu.net>
40169
40170         test-freading: clean up temporary file
40171         * tests/test-freading.c (main): Remove file on success, and use
40172         ASSERT more liberally.
40173         Reported by Jim Meyering.
40174
40175 2009-11-16  Jim Meyering  <meyering@redhat.com>
40176
40177         avoid new AC_REQUIRE expanded-before-required warnings
40178         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
40179         merely using it.
40180         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
40181         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
40182
40183 2009-11-15  Simon Josefsson  <simon@josefsson.org>
40184
40185         * tests/test-xalloc-die.c: New file.
40186         * modules/xalloc-die-tests: New file.
40187         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
40188         XFAIL_TESTS so it can be appended by modules.
40189
40190 2009-11-15  Simon Josefsson  <simon@josefsson.org>
40191
40192         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
40193         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
40194
40195 2009-11-14  Eric Blake  <ebb9@byu.net>
40196
40197         fnmatch: avoid compiler warning
40198         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
40199         to silence compiler warning about mismatch signedness in ?:.
40200         Reported by Robert Millan.
40201
40202         intprops: add double-inclusion guard
40203         * lib/intprops.h: Allow idempotent includes.
40204         Suggested by Bruce Korb.
40205
40206         openat: detect Solaris fchownat bug
40207         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
40208         penalizing glibc chownat when only lchownat is broken.
40209         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
40210         trailing slash bugs.
40211         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
40212         * modules/openat-tests (Files): Include more files.
40213         (Depends-on): Add mgetgroups, sleep, stat-time.
40214         (configure.ac): Add additional checks.
40215         (Makefile.am): Build new test.
40216         * tests/test-fchownat.c: New file.
40217
40218         lchown: detect Solaris and FreeBSD bug
40219         * lib/lchown.c (rpl_lchown): Work around bug.
40220         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
40221         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40222         * modules/unistd (Makefile.am): Populate it.
40223         * lib/unistd.in.h (lchown): Update declaration.
40224         * doc/posix-functions/lchown.texi (lchown): Document the bug.
40225         * modules/lchown-tests: New file.
40226         * tests/test-lchown.h (test_lchown): Likewise.
40227         * tests/test-lchown.c (main): Likewise.
40228
40229         chown: detect Solaris and FreeBSD bug
40230         * lib/chown.c (rpl_chown): Work around bug.
40231         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
40232         (gl_PREREQ_CHOWN): Delete.
40233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40234         * modules/unistd (Makefile.am): Populate it.
40235         * lib/unistd.in.h (chown): Update declaration.
40236         * lib/lchown.c (chown): Update client.
40237         * modules/lchown (Depends-on): Add lstat.
40238         * doc/posix-functions/chown.texi (chown): Document the bug.
40239         * doc/posix-functions/getgroups.texi (getgroups): Document
40240         getgroups pitfall.
40241         * modules/chown-tests: New file.
40242         * tests/test-chown.h (test_chown): Likewise.
40243         * tests/test-chown.c (main): Likewise.
40244
40245 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
40246
40247         gnulib-tool: correctly detect absence of m4 directories
40248         * gnulib-tool: Avoid extra newline on data passed to wc -l.
40249
40250 2009-11-14  Jim Meyering  <meyering@redhat.com>
40251
40252         maint.mk: Prohibit inclusion of "xalloc.h" without use.
40253         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
40254
40255 2009-11-14  John W. Eaton  <jwe@gnu.org>
40256
40257         strftime.h: wrap function declaration in extern "C" block
40258         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
40259
40260 2009-11-13  Eric Blake  <ebb9@byu.net>
40261
40262         getgroups: avoid compiler warning
40263         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
40264
40265         getgroups: work around FreeBSD bug
40266         * lib/getgroups.c (rpl_getgroups): Work around the bug.
40267         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
40268         * doc/posix-functions/getgroups.texi (getgroups): Document it.
40269         * tests/test-getgroups.c (main): Fix buffer overrun.
40270
40271         getgroups: avoid compilation failure
40272         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
40273         * modules/getgroups (Depends-on): Add stdint.
40274
40275 2009-11-13  Jim Meyering  <meyering@redhat.com>
40276
40277         test-getgroups: avoid compilation failure
40278         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
40279
40280 2009-11-13  Eric Blake  <ebb9@byu.net>
40281
40282         mgetgroups: new module, taken from coreutils
40283         * modules/mgetgroups: New file.
40284         * lib/mgetgroups.h: Likewise.
40285         * lib/mgetgroups.c (mgetgroups): Likewise.
40286         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
40287         * MODULES.html.sh (Users and groups): Mention it.
40288
40289         getgroups: don't expose GETGROUPS_T to user
40290         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
40291         an element at a time if GETGROUPS_T is wrong size.
40292         * lib/getugroups.h (getugroups): Change signature.
40293         * lib/unistd.in.h (getgroups): Likewise.
40294         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
40295         signature needs fixing.
40296         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
40297         AC_TYPE_GETGROUPS.
40298         * modules/group-member (Depends-on): Add getgroups.
40299         * lib/group-member.c (group_info, get_group_info): Use gid_t.
40300         (group_member): Rely on getgroups replacement.
40301         * lib/getugroups.c (getugroups): Use gid_t.
40302         * tests/test-getgroups.c (main): Likewise.
40303         * NEWS: Mention the signature change.
40304         * doc/posix-functions/getgroups.texi (getgroups): Mention the
40305         problem with signature.
40306         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
40307         GETGROUPS_T is still useful for setgroups.
40308
40309         getgroups, getugroups: provide stubs for mingw
40310         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
40311         * lib/getugroups.c (getugroups): Likewise.
40312         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
40313         function.  Modernize replacement scheme.
40314         (gl_PREREQ_GETGROUPS): Delete.
40315         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
40316         * modules/getgroups (configure.ac): Declare witness.
40317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
40318         * modules/unistd (Depends-on): Substitute witness.
40319         * lib/unistd.in.h (getgroups): Declare replacement.
40320
40321         getgroups: avoid calling exit
40322         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
40323         drop xalloc.
40324         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
40325         dependencies.
40326         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
40327         exiting, in the rare case of malloc failure.
40328
40329         getgroups: fix logic error
40330         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
40331         has more than 20 groups.
40332         * modules/getgroups-tests: New test.
40333         * tests/test-getgroups.c: New file.
40334
40335 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40336
40337         * tests/test-base64.c: Improve.
40338
40339 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40340
40341         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
40342         Blake <ebb9@byu.net>.
40343
40344 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40345
40346         * tests/test-xvasprintf.c: Add %s%s related checks.
40347
40348 2009-11-12  Eric Blake  <ebb9@byu.net>
40349
40350         version-etc: match standards.texi style
40351         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
40352         and use <> only for URLs.
40353
40354 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
40355
40356         fts: do not fail on a submount during traversal
40357         * lib/fts.c (fts_build): Read the stat info again after opening
40358         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
40359         Original report at http://bugzilla.redhat.com/501848.
40360
40361 2009-11-12  Jim Meyering  <meyering@redhat.com>
40362
40363         bootstrap: sync from coreutils
40364         * build-aux/bootstrap (bootstrap_epilogue): New function.
40365         Use git_modules_config in one more place.  This make bootstrap's
40366         --gnulib-srcdir option more useful for testing.
40367
40368         bootstrap: generalize autoheader check
40369         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
40370         AC_CONFIG_HEADERS.
40371
40372 2009-11-11  Eric Blake  <ebb9@byu.net>
40373
40374         mkfifoat: use new modules for Solaris and BSD bugs
40375         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
40376         * lib/mkfifoat.c (mknodat): Split...
40377         * lib/mknodat.c (mknodat): ...into new file.
40378         * modules/mkfifoat (Files): Ship new file.
40379         (Depends-on): Add mkfifo, mknod.
40380         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
40381         (Depends-on): Add symlink.
40382         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
40383         redundant with test_mkfifo.h.
40384         (do_mkfifoat, do_mknodat): New helpers.
40385
40386         mknod: new module
40387         * modules/mknod: New file.
40388         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
40389         * lib/mknod.c (mknod): Likewise.
40390         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
40391         defaults.
40392         * modules/sys_stat (Makefile.am): Substitute them.
40393         * lib/sys_stat.in.h (mknod): Declare replacement.
40394         * MODULES.html.sh (Support for systems lacking POSIX:2008):
40395         Document it.
40396         * doc/posix-functions/mknod.texi (mknod): Likewise.
40397         * modules/mknod-tests: New test.
40398         * tests/test-mknod.c: Likewise.
40399
40400         mkfifo: new module
40401         * modules/mkfifo: New file.
40402         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
40403         * lib/mkfifo.c (mkfifo): Likewise.
40404         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
40405         defaults.
40406         * modules/sys_stat (Makefile.am): Substitute them.
40407         * lib/sys_stat.in.h (mkfifo): Declare replacement.
40408         * MODULES.html.sh (Support for systems lacking POSIX:2008):
40409         Document it.
40410         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
40411         * modules/mkfifo-tests: New test.
40412         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
40413         from test-mkfifoat.c.
40414         * tests/test-mkfifo.c: New file.
40415
40416         readlink: detect FreeBSD bug
40417         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
40418         slash on symlink.
40419         * doc/posix-functions/readlink.texi (readlink): Document the bug.
40420         * tests/test-readlink.h (test_readlink): Enhance test.
40421
40422         symlink: detect FreeBSD bug
40423         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
40424         slash on symlink.
40425         * doc/posix-functions/symlink.texi (symlink): Document the bug.
40426         * tests/test-symlink.h (test_symlink): Enhance test.
40427
40428 2009-11-10  Eric Blake  <ebb9@byu.net>
40429
40430         link: detect FreeBSD bug
40431         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
40432         symlink.
40433         * doc/posix-functions/link.texi (link): Document the bug.
40434         * tests/test-link.h (test_link): Enhance test.
40435         * tests/test-linkat.c (main): Update caller.
40436
40437         unlink, remove: detect FreeBSD bug
40438         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
40439         slash on symlink.
40440         * doc/posix-functions/unlink.texi (unlink): Document the bug.
40441         * doc/posix-functions/remove.texi (remove): Likewise.
40442         * tests/test-unlink.h (test_unlink): Enhance test.
40443         * tests/test-remove.c (main): Likewise.
40444
40445 2009-11-09  Eric Blake  <ebb9@byu.net>
40446
40447         rename: detect FreeBSD bug
40448         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
40449         slash on symlink.
40450         * modules/renameat-tests (Depends-on): Add filenamecat.
40451         * tests/test-rename.h (test_rename): Allow one more errno.
40452         * tests/test-renameat.c (main): Likewise.
40453         * doc/posix-functions/rename.texi (rename): Document the bug.
40454
40455         open: detect FreeBSD bug
40456         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
40457         symlink.
40458         * doc/posix-functions/open.texi (open): Document the bug.
40459         * doc/posix-functions/utimes.texi (utimes): Likewise.
40460         * tests/test-open.h (test_open): Add parameters, and test symlink
40461         handling.
40462         * tests/test-open.c (main): Adjust caller.
40463         * tests/test-fcntl-safer.c (main): Likewise.
40464         * modules/open-tests (Depends-on): Add stdbool, symlink.
40465         * modules/fcntl-safer-tests (Depends-on): Likewise.
40466         * tests/test-openat.c (main): Add test-open tests.
40467
40468         stat: detect FreeBSD bug
40469         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
40470         symlink.
40471         * doc/posix-functions/stat.texi (stat): Document the bug.
40472         * tests/test-stat.h (test_stat_func): Add argument.
40473         * tests/test-stat.c (main): Adjust caller.
40474         * tests/test-fstatat.c (main): Likewise.
40475         * modules/stat-tests (Depends-on): Add stdbool, symlink.
40476         Reported by Jim Meyering.
40477
40478 2009-11-09  James Youngman  <jay@gnu.org>
40479
40480         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
40481         * lib/strftime.c: Correct placement of #include "ignore-value.h".
40482
40483 2009-11-08  Jim Meyering  <meyering@redhat.com>
40484
40485         utimens: remove invalid futimesat call
40486         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
40487         It used the file descriptor of the target file as the DIR_FD
40488         parameter and NULL as the file name.  That caused failure with
40489         errno == EFAULT on FreeBSD-8.0-rc2
40490
40491 2009-11-07  Eric Blake  <ebb9@byu.net>
40492
40493         fflush, freadseek: use fseeko, not fseek
40494         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
40495         (clear_ungetc_buffer): Avoid potential problems on large files.
40496         * lib/freadseek.c (freadseek): Likewise.
40497         * modules/freadseek (Depends-on): Add fseeko.
40498         * modules/fseek (configure.ac): Set a witness.
40499         * tests/test-fflush.c (main): Use fseeko.
40500         * tests/test-fpurge.c (fseek): Disable link warning.
40501         * tests/test-freadable.c (fseek): Likewise.
40502         * tests/test-freading.c (fseek): Likewise.
40503         * tests/test-fseeko.c (fseek): Likewise.
40504         * tests/test-ftell.c (fseek): Likewise.
40505         * tests/test-ftello.c (fseek): Likewise.
40506         * tests/test-fwritable.c (fseek): Likewise.
40507         * tests/test-fwriting.c (fseek): Likewise.
40508
40509 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40510
40511         * modules/memchr (Depends-on): Drop getpagesize dependency.
40512
40513 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40514
40515         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
40516         Reported by Ludovic Courtès.
40517         * build-aux/pmccabe2html: Improve example usage.
40518         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
40519
40520 2009-11-06  Jim Meyering  <meyering@redhat.com>
40521
40522         do-release-commit-and-tag: New module.
40523         Automate the release-commit and tag process.
40524         * build-aux/do-release-commit-and-tag: New script, from coreutils.
40525         * modules/do-release-commit-and-tag: New file.
40526         * MODULES.html.sh (Support for maintaining and releasing): Add it.
40527
40528 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40529
40530         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
40531         because test-select.c uses inet_pton.
40532
40533 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40534
40535         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
40536         GETADDRINFO_LIB.  Bump serial number.
40537         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
40538         Suggested by Eric Blake <ebb9@byu.net>.
40539
40540 2009-11-05  Eric Blake  <ebb9@byu.net>
40541
40542         strtod: detect darwin bug
40543         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
40544         Reported by Leo Davis.
40545
40546         freopen-safer: new module
40547         * modules/freopen-safer: New module.
40548         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
40549         * lib/freopen-safer.c (freopen_safer): New file.
40550         * lib/stdio-safer.h (freopen_safer): New declaration.
40551         * lib/stdio--.h (freopen): New override.
40552         * MODULES.html.sh (File stream based Input/Output): Mention it.
40553         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
40554         freopen-safer module.
40555         * doc/posix-functions/stderr.texi (stderr): Likewise.
40556         * doc/posix-functions/stdin.texi (stdin): Likewise.
40557         * doc/posix-functions/stdout.texi (stdout): Likewise.
40558         * modules/freopen-safer-tests: New test.
40559         * tests/test-reopen-safer.c: New file.
40560
40561 2009-11-05  Jim Meyering  <meyering@redhat.com>
40562
40563         maint.mk: Prohibit inclusion of "close-stream.h" without use.
40564         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
40565
40566 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40567
40568         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
40569
40570 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40571
40572         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
40573
40574 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40575
40576         Fix link error.
40577         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
40578         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40579
40580 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40581
40582         * tests/test-func.c: Also test value of __func__.
40583
40584 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40585
40586         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
40587         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
40588
40589 2009-11-05  Bruno Haible  <bruno@clisp.org>
40590
40591         Fix link error.
40592         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
40593         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40594         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
40595
40596 2009-11-05  Bruno Haible  <bruno@clisp.org>
40597
40598         Tests for module 'inet_pton'.
40599         * modules/inet_pton-tests: New file.
40600         * tests/test-inet_pton.c: New file.
40601
40602 2009-11-05  Bruno Haible  <bruno@clisp.org>
40603
40604         Tests for module 'inet_ntop'.
40605         * modules/inet_ntop-tests: New file.
40606         * tests/test-inet_ntop.c: New file.
40607
40608 2009-11-04  Eric Blake  <ebb9@byu.net>
40609
40610         stdlib-safer: wrap all mkstemp variants
40611         * modules/mkostemp (configure.ac): Set witness.
40612         * modules/mkostemps (configure.ac): Likewise.
40613         * modules/mkstemps (configure.ac): Likewise.
40614         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
40615         (mkstemps_safer): Wrap more functions.
40616         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
40617         wrapping.
40618         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
40619         (mkstemps_safer): Implement the wrappers.
40620
40621         mkstemps, mkostemps: new modules
40622         * modules/mkostemps: New module.
40623         * modules/mkstemps: Likewise.
40624         * lib/mkostemps.c (mkostemps): New file.
40625         * lib/mkstemps.c (mkstemps): Likewise.
40626         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
40627         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
40628         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
40629         * modules/stdlib (Makefile.am): Substitute them.
40630         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
40631         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
40632         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
40633         * doc/gnulib.texi (Glibc stdlib.h): Include them.
40634         * MODULES.html.sh (File system functions): Mention them.
40635
40636         tempname: resync from glibc
40637         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
40638         same values for __GT_FILE as glibc.  Abort even when assertions
40639         are disabled.
40640         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
40641         match its value otherwise.  Allow idempotent inclusion.
40642         * lib/mkdtemp.c (mkdtemp): Adjust caller.
40643         * lib/mkostemp.c (mkostemp): Likewise.
40644         * lib/mkstemp.c (mkstemp): Likewise.
40645         * lib/tmpfile.c (tmpfile): Likewise.
40646         * NEWS: Document this.
40647
40648         utimens: fix use of futimens on older Linux
40649         * lib/utimens.c (fdutimens): Use updated, rather than original,
40650         timespec to avoid bug in older Linux kernel.
40651         Reported by Simon Josefsson.
40652
40653 2009-11-04  Bruno Haible  <bruno@clisp.org>
40654
40655         Make num_processors more flexible and consistent.
40656         * lib/nproc.h (enum nproc_query): New type.
40657         (num_processors): Add a 'query' argument.
40658         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
40659         (num_processors): Add a 'query' argument. Test the value of the
40660         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
40661         mingw, count the number of CPUs available for the current process.
40662         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
40663         Check for sched_getaffinity and sched_getaffinity_np.
40664         * modules/nproc (Depends-on): Add c-ctype, extensions.
40665         * NEWS: Mention the change.
40666
40667 2009-11-03  Bruno Haible  <bruno@clisp.org>
40668
40669         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
40670
40671 2009-11-03  Jim Meyering  <meyering@redhat.com>
40672
40673         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
40674         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
40675         if it is defined.
40676
40677 2009-11-02  Eric Blake  <ebb9@byu.net>
40678
40679         mktime, timegm: share common declaration
40680         * lib/mktime-internal.h: New file.
40681         * lib/mktime.c: Use it rather than open-coding a declaration.
40682         * lib/timegm.c: Likewise.
40683         * modules/mktime (Files): Ship it.
40684         * modules/timegm (Files): Likewise.
40685         Suggested by Bruno Haible.
40686
40687         test-update-copyright: update test to match script changes
40688         * tests/test-update-copyright.sh: Avoid hard-coding perl
40689         location.  Don't update *.bak created by earlier runs.
40690
40691 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
40692             Simon Josefsson  <simon@josefsson.org>
40693             Bruno Haible  <bruno@clisp.org>
40694
40695         Fix link error on Solaris 8.
40696         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
40697         also in libnsl. Define also INET_PTON_LIB.
40698         * modules/inet_pton (Link): New section.
40699
40700 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40701             Bruno Haible  <bruno@clisp.org>
40702
40703         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
40704         * modules/inet_ntop (Link): New section.
40705         Reported by Boyan Kasarov <bkasarov@gmail.com>.
40706
40707 2009-11-02  Eric Blake  <ebb9@byu.net>
40708
40709         maint: avoid compiler warnings in m4 macros
40710         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
40711         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
40712
40713 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40714
40715         * m4/pmccabe2html.m4: Remove file.
40716         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
40717         function.  Change maintainer.
40718         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
40719         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
40720         Courtès).
40721
40722 2009-10-31  Eric Blake  <ebb9@byu.net>
40723
40724         fseeko: fix m4 regression
40725         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
40726         regression from 2009-10-27.
40727         Reported by Ralf Wildenhues.
40728
40729 2009-10-31  Jim Meyering  <meyering@redhat.com>
40730
40731         inttostr: aesthetics and improved (compile-time) safety
40732         Define inttype_is_signed rather than inttype_is_unsigned,
40733         since the sole use is via "#if inttype_is_signed".
40734         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
40735         inttype_is_unsigned.
40736         * lib/offtostr.c (inttype_is_signed): Likewise.
40737         * lib/uinttostr.c (inttype_is_signed): Likewise.
40738         * lib/umaxtostr.c (inttype_is_signed): Likewise.
40739         * lib/inttostr.c (inttostr): Use verify to cross-check the
40740         inttype_is_signed value and the signedness of the actual type.
40741         * modules/inttostr (Depends-on): Add verify.
40742
40743 2009-10-30  Eric Blake  <ebb9@byu.net>
40744
40745         build: avoid compiler warnings
40746         * lib/fchmodat.c (lchmod): Mark unused variables.
40747         * lib/getopt.c (_getopt_initialize): Likewise.
40748         * lib/mktime.c (__mktime_internal): Provide prototype.
40749         * lib/inttostr.c (inttostr): Avoid compiler warning even with
40750         older gcc that do not understand #pragma GCC diagnostic.
40751         * lib/uinttostr.c (inttype_is_unsigned): Define.
40752         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
40753
40754 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
40755
40756         stat: fix compilation on AIX
40757         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
40758         only see struct stat64.
40759
40760 2009-10-30  Eric Blake  <ebb9@byu.net>
40761
40762         exclude: make more robust
40763         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
40764         rather than masking a coding bug.
40765         Suggested by Bruno Haible.
40766
40767 2009-10-30  Jim Meyering  <meyering@redhat.com>
40768
40769         perl scripts: remove #!/usr/bin/perl in favor of more portable...
40770         Rather than putting #!/usr/bin/perl on the first line,
40771         start with a variant of what's recommended by "man perlrun" that
40772         invokes the first "perl" program from your shell's search path.
40773         * build-aux/gitlog-to-changelog: Replace #!... as above.
40774         Add a "Local Variables" perl mode setting.
40775         Prompted by a patch from Ludovic Courtès.
40776         Improved by Eric Blake.
40777         * build-aux/useless-if-before-free: Likewise.
40778         * build-aux/announce-gen: Likewise.
40779         * build-aux/update-copyright: Likewise.
40780
40781 2009-10-29  Eric Blake  <ebb9@byu.net>
40782
40783         filenamecat-lgpl: adjust clients
40784         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
40785         filenamecat.
40786         * modules/renameat (Depends-on): Likewise.
40787
40788         filenamecat: split into filenamecat-lgpl
40789         * modules/filenamecat-lgpl: New module.
40790         * modules/filenamecat (Files): Move library-safe files into
40791         filenamecat-lgpl.
40792         (Depends-on): Add filenamecat-lgpl.
40793         (configure.ac): Declare witness.
40794         * lib/filenamecat.h (file_name_concat): Only declare when using
40795         GPL module.
40796         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
40797         Move...
40798         * lib/filenamecat-lgpl.c: ...into new file.
40799         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
40800         (gl_FILE_NAME_CONCAT): Use it.
40801         * MODULES.html.sh (File system functions): Mention new module.
40802
40803         argp: avoid memory leak
40804         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
40805         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
40806         base_name, since the latter malloc()s and can call exit().
40807         Leak introduced 2006-07-03.
40808
40809         dirname-lgpl: adjust clients that don't need full dirname
40810         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
40811         * modules/filenamecat (Depends-on): Likewise.
40812         * modules/linkat (Depends-on): Likewise.
40813         * modules/mkancesdirs (Depends-on): Likewise.
40814         * modules/mkdir (Depends-on): Likewise.
40815         * modules/openat (Depends-on): Likewise.
40816         * modules/savewd (Depends-on): Likewise.
40817         * modules/rename (Depends-on): Likewise.
40818         (License): Relax license.
40819         * modules/mkdir-tests (Depends-on): Drop progname.
40820         (Makefile.am): Delete unneeded LDADD.
40821         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
40822
40823         dirname: split into dirname-lgpl
40824         * modules/dirname-lgpl: New module.
40825         * modules/dirname (Files): Move library-safe files into
40826         dirname-lgpl.
40827         (Depends-on): Add dirname-lgpl.
40828         (configure.ac): Declare witness.
40829         * modules/double-slash-root (License): Relax license.
40830         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
40831         module.
40832         * lib/dirname.c (dir_len, mdir_name): Move...
40833         * lib/dirname-lgpl.c: ...into new file.
40834         * lib/basename.c (last_component, base_len): Move...
40835         * lib/basename-lgpl.c: ...into new file.
40836         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
40837         (gl_DIRNAME): Use it.
40838         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
40839         Mention new module.
40840         * modules/dirname-tests (Depends-on): Add progname.
40841         * tests/test-dirname.c (program_name): Delete.
40842
40843         mkdir: make safe for libraries
40844         * modules/mkdir (Depends-on): Drop xalloc.
40845         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
40846         exit.
40847
40848         tests: avoid some compiler warnings
40849         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
40850         literals.
40851         * tests/test-memchr.c (main): Avoid type mismatch.
40852         * tests/test-arpa_inet.c (main): Avoid unused parameters.
40853         * tests/test-base64.c (main): Likewise.
40854         * tests/test-getdelim.c (main): Likewise.
40855         * tests/test-gethostname.c (main): Likewise.
40856         * tests/test-getline.c (main): Likewise.
40857         * tests/test-netinet_in.c (main): Likewise.
40858         * tests/test-select.c (open_server_socket, main): Likewise.
40859         * tests/test-select-stdin.c (main): Likewise.
40860         * tests/test-sockets.c (main): Likewise.
40861         * tests/test-strsignal.c (main): Likewise.
40862         * tests/test-sys_select.c (main): Likewise.
40863         * tests/test-sys_socket.c (main): Likewise.
40864         * tests/test-u64.c (main): Likewise.
40865         * tests/test-xfprintf-posix.c (main): Likewise.
40866         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
40867
40868         sockets: avoid compiler warning
40869         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
40870
40871         maint: detect usage(1) and other suspicious exits
40872         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
40873
40874 2009-10-29  Jim Meyering  <meyering@redhat.com>
40875
40876         timespec: long-to-int truncation could make timespec_cmp malfunction
40877         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
40878         a multiple of 2^32 nanoseconds as no difference.
40879
40880 2009-10-28  Jim Meyering  <meyering@redhat.com>
40881
40882         fprintftime: wrap macro code argument in "do {...} while(0)"
40883         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
40884         cpy macro must be a statement that can be followed by a semicolon.
40885         Now that the else clause contains a comment and is hence longer
40886         than one line, I require curly braces.  That in turn requires
40887         that we wrap this code block in the standard do...while(0).
40888
40889         fprintftime: remove stray semicolon from previous change
40890         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
40891
40892         fprintftime: avoid a warning about ignored fwrite return value
40893         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
40894         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
40895         that is unsafe.
40896         * modules/fprintftime (Depends-on): Add ignore-value.
40897
40898         exclude: avoid an unwarranted warning
40899         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
40900
40901 2009-10-27  Eric Blake  <ebb9@byu.net>
40902
40903         fseek: avoid compilation failure when fflush is replaced
40904         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
40905         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
40906         module is in use.
40907         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
40908         module is not in use; since REPLACE_FSEEK worked otherwise.
40909         (GNULIB_FTELLO): Likewise for ftell.
40910         Reported by Ian Beckwith and others.
40911
40912 2009-10-27  Bruno Haible  <bruno@clisp.org>
40913
40914         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
40915         Reported by Jim Meyering.
40916
40917 2009-10-27  Jim Meyering  <jim@meyering.net>
40918             Bruno Haible  <bruno@clisp.org>
40919
40920         Avoid warning despite dropping the return value of fwrite.
40921         * lib/unicodeio.c: Include ignore-value.h.
40922         (fwrite_success_callback): Explicitly ignore fwrite's return value.
40923         * modules/unicodeio (Depends-on): Add ignore-value.
40924
40925 2009-10-26  Eric Blake  <ebb9@byu.net>
40926
40927         areadlinkat: fix fallback path
40928         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
40929         pointer and zero.
40930
40931 2009-10-22  Pádraig Brady  <P@draigBrady.com>
40932
40933         Use a better IO block size for modern systems
40934         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
40935         * lib/md2.c: Likewise.
40936         * lib/md4.c: Likewise.
40937         * lib/md5.c: Likewise.
40938         * lib/sha1.c: Likewise.
40939         * lib/sha256.c: Likewise.
40940         * lib/sha512.c: Likewise.
40941
40942 2009-10-22  Eric Blake  <ebb9@byu.net>
40943
40944         tests: avoid several compiler warnings
40945         * tests/test-getcwd.c (main): Avoid buffer underflow.
40946         * tests/test-getdate.c (main): String literals are not safe with
40947         putenv, so use setenv.  Declare unused argument.
40948         * modules/getdate-tests (Depends-on): Add setenv.
40949         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
40950         problems with string literals in char *.
40951         * tests/test-hash.c (main): Avoid shadowing declaration.
40952         (insert_new): Treat string literals as char const *.
40953         * tests/test-getopt.h (test_getopt): Likewise.
40954         (getopt_loop): Alter types to minimize casting elsewhere.
40955         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
40956         (test_getopt_long_posix): Likewise.
40957         (do_getopt_long): Add wrapper to minimize casting.
40958         * tests/test-atexit.c (clear_temp_file): Use void.
40959         * tests/test-areadlink-with-size.c (main): Declare unused
40960         arguments.
40961         * tests/test-areadlink.c (main): Likewise.
40962         * tests/test-areadlinkat-with-size.c (main): Likewise.
40963         * tests/test-areadlinkat.c (main): Likewise.
40964         * tests/test-canonicalize-lgpl.c (main): Likewise.
40965         * tests/test-canonicalize.c (main): Likewise.
40966         * tests/test-dirent-safer.c (main): Likewise.
40967         * tests/test-dirname.c (main): Likewise.
40968         * tests/test-dup2.c (main): Likewise.
40969         * tests/test-fchdir.c (main): Likewise.
40970         * tests/test-fcntl-h.c (main): Likewise.
40971         * tests/test-fcntl-safer.c (main): Likewise.
40972         * tests/test-fdopendir.c (main): Likewise.
40973         * tests/test-fdutimensat.c (main): Likewise.
40974         * tests/test-fflush.c (main): Likewise.
40975         * tests/test-filenamecat.c (main): Likewise.
40976         * tests/test-filevercmp.c (main): Likewise.
40977         * tests/test-fopen-safer.c (main): Likewise.
40978         * tests/test-fopen.c (main): Likewise.
40979         * tests/test-fpending.c (main): Likewise.
40980         * tests/test-fpurge.c (main): Likewise.
40981         * tests/test-freading.c (main): Likewise.
40982         * tests/test-fstatat.c (main): Likewise.
40983         * tests/test-fsync.c (main): Likewise.
40984         * tests/test-futimens.c (main): Likewise.
40985         * tests/test-getndelim2.c (main): Likewise.
40986         * tests/test-gettimeofday.c (main): Likewise.
40987         * tests/test-getopt.c (main): Likewise.
40988         * tests/test-i-ring.c (main): Likewise.
40989         * tests/test-inttypes.c (main): Likewise.
40990         * tests/test-link.c (main): Likewise.
40991         * tests/test-lstat.c (main): Likewise.
40992         * tests/test-math.c (main): Likewise.
40993         * tests/test-md5.c (main): Likewise.
40994         * tests/test-memchr2.c (main): Likewise.
40995         * tests/test-memrchr.c (main): Likewise.
40996         * tests/test-mkdir.c (main): Likewise.
40997         * tests/test-mkdirat.c (main): Likewise.
40998         * tests/test-mkfifoat.c (main): Likewise.
40999         * tests/test-open.c (main): Likewise.
41000         * tests/test-openat-safer.c (main): Likewise.
41001         * tests/test-openat.c (main): Likewise.
41002         * tests/test-quotearg.c (main): Likewise.
41003         * tests/test-rawmemchr.c (main): Likewise.
41004         * tests/test-readlink.c (main): Likewise.
41005         * tests/test-remove.c (main): Likewise.
41006         * tests/test-rename.c (main): Likewise.
41007         * tests/test-renameat.c (main): Likewise.
41008         * tests/test-rmdir.c (main): Likewise.
41009         * tests/test-sha1.c (main): Likewise.
41010         * tests/test-signal.c (main): Likewise.
41011         * tests/test-sigaction.c (main): Likewise.
41012         * tests/test-stat.c (main): Likewise.
41013         * tests/test-stat-time.c (main): Likewise.
41014         * tests/test-stddef.c (main): Likewise.
41015         * tests/test-stdint.c (main): Likewise.
41016         * tests/test-stdio.c (main): Likewise.
41017         * tests/test-stdlib.c (main): Likewise.
41018         * tests/test-strchrnul.c (main): Likewise.
41019         * tests/test-strerror.c (main): Likewise.
41020         * tests/test-string.c (main): Likewise.
41021         * tests/test-strtod.c (main): Likewise.
41022         * tests/test-strverscmp.c (main): Likewise.
41023         * tests/test-symlink.c (main): Likewise.
41024         * tests/test-symlinkat.c (main): Likewise.
41025         * tests/test-sys_stat.c (main): Likewise.
41026         * tests/test-sys_time.c (main): Likewise.
41027         * tests/test-time.c (main): Likewise.
41028         * tests/test-unistd.c (main): Likewise.
41029         * tests/test-unlink.c (main): Likewise.
41030         * tests/test-unlinkat.c (main): Likewise.
41031         * tests/test-utimens.c (main): Likewise.
41032         * tests/test-utimensat.c (main): Likewise.
41033         * tests/test-version-etc.c (main): Likewise.
41034         * tests/test-wchar.c (main): Likewise.
41035         * tests/test-wctype.c (main): Likewise.
41036         * tests/test-xprintf-posix.c (main): Likewise.
41037         * tests/test-posixtm.c (main): Likewise.
41038         (STREQ): Delete unused macro.
41039         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
41040         shadowed variables.
41041         * tests/test-memchr.c (main): Likewise.
41042
41043 2009-10-21  Eric Blake  <ebb9@byu.net>
41044
41045         areadlinkat: avoid failure on older glibc
41046         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
41047         rather than mis-comparing 0 against FUNC_RESULT of char*.
41048
41049 2009-10-21  Bruno Haible  <bruno@clisp.org>
41050
41051         * modules/stpncpy (License): Relicense under LGPLv2+.
41052         Reported by David Lutterkort <lutter@redhat.com>.
41053
41054 2009-10-20  Eric Blake  <ebb9@byu.net>
41055
41056         utimensat: work around Solaris 9 bug
41057         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
41058         has trailing slash bugs.
41059         * tests/test-lutimens.h (test_lutimens): Enhance test.
41060         * tests/test-utimens.h (test_utimens): Likewise.
41061         * doc/posix-functions/utime.texi (utime): Enhance documentation.
41062         * doc/posix-functions/utimes.texi (utimes): Likewise.
41063         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41064         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
41065         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
41066         * doc/posix-functions/futimens.texi (futimens): Likewise.
41067
41068         fdutimensat: new module
41069         * modules/fdutimensat: New file.
41070         * lib/fdutimensat.c (fdutimensat): Likewise.
41071         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
41072         * MODULES.html.sh (File system functions): Mention module.
41073         * modules/fdutimensat-tests: New test.
41074         * tests/test-fdutimensat.c: Likewise.
41075
41076         doc: regenerate INSTALL
41077         * doc/INSTALL: Reflect recent autoconf update.
41078         * doc/INSTALL.ISO: Likewise.
41079         * doc/INSTALL.UTF-8: Likewise.
41080
41081 2009-10-20  Pádraig Brady  <P@draigBrady.com>
41082
41083         acl: warn if ACL support is not detected
41084         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
41085
41086 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
41087
41088         * lib/nproc.h: Add extern "C" block for C++.
41089
41090 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
41091             Bruno Haible  <bruno@clisp.org>
41092
41093         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
41094         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
41095         * doc/posix-functions/isalpha.texi: Likewise.
41096         * doc/posix-functions/isblank.texi: Likewise.
41097         * doc/posix-functions/iscntrl.texi: Likewise.
41098         * doc/posix-functions/isdigit.texi: Likewise.
41099         * doc/posix-functions/isgraph.texi: Likewise.
41100         * doc/posix-functions/islower.texi: Likewise.
41101         * doc/posix-functions/isprint.texi: Likewise.
41102         * doc/posix-functions/ispunct.texi: Likewise.
41103         * doc/posix-functions/isspace.texi: Likewise.
41104         * doc/posix-functions/isupper.texi: Likewise.
41105         * doc/posix-functions/isxdigit.texi: Likewise.
41106
41107 2009-10-18  Bruno Haible  <bruno@clisp.org>
41108
41109         Tests for module 'isblank'.
41110         * modules/isblank-tests: New file.
41111         * tests/test-isblank.c: New file.
41112
41113         New module 'isblank'.
41114         * lib/isblank.c: New file.
41115         * m4/isblank.m4: New file.
41116         * modules/isblank: New file.
41117         * doc/posix-functions/isblank.texi: Mention the new module.
41118
41119 2009-10-18  Bruno Haible  <bruno@clisp.org>
41120
41121         New module 'ctype'.
41122         * lib/ctype.in.h: New file.
41123         * m4/ctype.m4: New file.
41124         * modules/ctype: New file.
41125         * doc/posix-headers/ctype.texi: Mention the new module.
41126
41127 2009-10-18  Jim Meyering  <meyering@redhat.com>
41128
41129         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
41130         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
41131         right after its initialization, rather than farther down.
41132         Keeping these in close proximity makes it easier to ensure
41133         that each such variable is initialized.  E.g.,
41134
41135             LIB_CLOCK_GETTIME=
41136             AC_SUBST([LIB_CLOCK_GETTIME])
41137
41138         This change also increments these serial numbers.
41139         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
41140         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41141         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41142
41143 2009-10-18  Bruno Haible  <bruno@clisp.org>
41144
41145         Don't let environment variables perturb build.
41146         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
41147         (gl_PREREQ_GETHRXTIME): ... not here.
41148
41149 2009-10-18  Bruno Haible  <bruno@clisp.org>
41150
41151         Avoid symlink attack in localcharset module.
41152         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
41153         (O_NOFOLLOW): Define fallback.
41154         (get_charset_aliases): Don't open the file if it is a symbolic link.
41155         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
41156         gl_FCNTL_H.
41157         (gl_FCNTL_H): Require it.
41158         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
41159         * modules/localcharset (Files): Add m4/fcntl_h.m4.
41160         Reported by Fergal Glynn <fglynn@veracode.com>.
41161
41162 2009-10-18  Bruno Haible  <bruno@clisp.org>
41163
41164         Implement nproc for mingw.
41165         * lib/nproc.c: Include <windows.h>
41166         (num_processors): On native Windows platforms, try GetSystemInfo.
41167
41168 2009-10-18  Bruno Haible  <bruno@clisp.org>
41169
41170         Implement nproc for IRIX.
41171         * lib/nproc.c: Include <sys/sysmp.h>.
41172         (num_processors): On IRIX systems, try sysmp.
41173         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
41174
41175 2009-10-18  Bruno Haible  <bruno@clisp.org>
41176
41177         Implement nproc for HP-UX.
41178         * lib/nproc.c: Include <sys/pstat.h>
41179         (num_processors): On HP-UX systems, try pstat_getdynamic.
41180         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
41181         pstat_getdynamic.
41182
41183 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
41184             Bruno Haible  <bruno@clisp.org>
41185
41186         Implement nproc for NetBSD, OpenBSD.
41187         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
41188         (ARRAY_SIZE): New macro.
41189         (num_processors): On BSD systems, try sysctl of HW_NCPU.
41190         * m4/nproc.m4: New file.
41191         * modules/nproc (Files): Add m4/nproc.m4.
41192         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
41193         (Makefile.am): Instead, augment lib_SOURCES.
41194
41195 2009-10-18  Bruno Haible  <bruno@clisp.org>
41196
41197         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
41198         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
41199         sys/param.h.
41200
41201 2009-10-16  Eric Blake  <ebb9@byu.net>
41202
41203         utimensat: new module
41204         * modules/utimensat: New file.
41205         * lib/utimensat.c (utimensat): Likewise.
41206         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
41207         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
41208         so we can work around Linux bugs.
41209         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41210         * modules/sys_stat (Makefile.am): Substitute them.
41211         * lib/sys_stat.in.h (utimensat): Declare it.
41212         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41213         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41214         * modules/utimensat-tests: New test.
41215         * tests/test-utimensat.c: Likewise.
41216
41217         utimens: let lutimens work on non-symlinks
41218         * lib/utimens.c (lutimens): Fall back to utimens rather than
41219         failing with ENOSYS, when file is not a symlink.
41220         (utimens): Reduce redirection.
41221         * tests/test-lutimens.h (test_lutimens): Update test to cover
41222         non-symlinks.
41223         * tests/test-utimens.h (test_utimens): Update test to cover
41224         symlinks.
41225         * tests/test-utimens.c (main): Update caller.
41226
41227         utimens: cache whether utimensat syscall works
41228         * lib/utimens.c (utimensat_works_really): New cache variable.
41229         (fdutimens, lutimens): Use it to avoid failing syscall.
41230
41231         test-stat-time, test-utimens: improve portability
41232         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
41233         ext4 on alpha, and for cygwin.
41234         * tests/test-utimens-common.h: New file.
41235         (nap): Factor delays into single function.
41236         * tests/test-lutimens.h (test_lutimens): Use new header.
41237         * tests/test-futimens.h (test_futimens): Likewise.
41238         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
41239         timestamps to occur from same machine, as was done previously for
41240         test_utimens.
41241         * modules/utimens-tests (Files): Ship new file.
41242         * modules/futimens-tests (Files): Likewise.
41243         Reported in part by Jim Meyering.
41244
41245         sys_stat: sort replacement declarations
41246         * lib/sys_stat.in.h: Sort declarations.
41247         * lib/futimens.c (futimens): Fix typo.
41248
41249 2009-10-15  Jim Meyering  <meyering@redhat.com>
41250
41251         don't let environment settings perturb build
41252         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
41253         could cause a configure-time and/or build-time malfunction.
41254         Typically, a configure-time function-in-library test is performed
41255         via code like this:
41256
41257           LIB_VAR=
41258           AC_SUBST([LIB_VAR])
41259           prefix_saved_LIBS=$LIBS
41260             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
41261                        [test "$ac_cv_search_FUNC" = "none required" ||
41262                         LIB_VAR=$ac_cv_search_FUNC])
41263           LIBS=$prefix_saved_LIBS
41264
41265         However, in each of the files affected by this change, the LIB_VAR=
41266         initialization was omitted.  Thus, when set in the environment, its
41267         value would propagate into generated Makefiles when FUNC is not found
41268         in LIB_NAME.
41269         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
41270         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41271         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41272
41273 2009-10-14  Eric Blake  <ebb9@byu.net>
41274
41275         fchdir: avoid infinite recursion in mingw
41276         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
41277         recursing.
41278
41279         test-stat-time: port to mingw
41280         * tests/test-stat-time.c (force_unlink): Return a value.
41281         (test_ctime) [W32]: Fix compilation error.
41282         (nap): Don't call usleep with too large an argument.  Use
41283         force_unlink.
41284         * doc/pastposix-functions/usleep.texi (usleep): Document the
41285         portability issue.
41286
41287 2009-10-13  Jim Meyering  <meyering@redhat.com>
41288
41289         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
41290         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
41291         * modules/pipe-filter-ii: Likewise.
41292         * modules/sys_socket-tests: Likewise.
41293         * modules/tsearch-tests: Likewise.
41294         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
41295         (check): Depend on it.
41296
41297 2009-10-12  Eric Blake  <ebb9@byu.net>
41298
41299         utimens-tests: port to NFS file systems
41300         * tests/test-utimens.h (test_utimens): Refactor utimecmp
41301         comparisons to avoid spurious failures from timestamp drift
41302         between NFS machines.
41303
41304 2009-10-12  Eric Blake  <ebb9@byu.net>
41305
41306         stat-time-tests: minor cleanups
41307         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
41308         * tests/test-stat-time.c (nap): Separate assignment from call.
41309         Suggested by Paolo Bonzini and Bruno Haible.
41310
41311         sys_stat: guarantee struct timespec
41312         * lib/sys_stat.in.h (includes): Always include <time.h>
41313         * modules/sys_stat (Depends-on): Add time.
41314         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
41315         mode_t permission values.
41316         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
41317         get at subsecond timestamps.
41318
41319 2009-10-10  Eric Blake  <ebb9@byu.net>
41320
41321         futimens: new module
41322         * modules/futimens: New file.
41323         * lib/futimens.c (futimens): Likewise.
41324         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
41325         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
41326         we can work around Linux bugs.
41327         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41328         * modules/sys_stat (Makefile.am): Substitute them.
41329         * lib/sys_stat.in.h (futimens): Declare it.
41330         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41331         * doc/posix-functions/futimens.texi (futimens): Likewise.
41332         * modules/futimens-tests: New test.
41333         * tests/test-futimens.c: Likewise.
41334
41335         utimens: introduce fdutimens
41336         * lib/utimens.h (fdutimens): New prototype.
41337         * lib/utimens.c (gl_futimens): Move guts...
41338         (fdutimens): ...to new interface.
41339         * tests/test-utimens.c (do_fdutimens): Use it.
41340
41341         utimens: add UTIME_NOW and UTIME_OMIT support
41342         * lib/utimens.c (validate_timespec, update_timespec): New helper
41343         functions.
41344         (gl_futimens, lutimens): Use them.
41345         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
41346         stdbool, sys_stat.
41347         (Link): Mention resulting library dependency.
41348         * modules/utimecmp (Link): Likewise.
41349         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
41350         (Makefile.am): Pick up library dependency.
41351         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
41352         definition.
41353         * tests/test-sys_stat.c: Test the definitions.
41354         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
41355         * NEWS: Document library dependency.
41356
41357         utimecmp: support symlink timestamps
41358         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
41359         hashing when possible.  Use pathconf when available.
41360         (SYSCALL_RESOLUTION): Recognize tighter resolution.
41361         * modules/utimecmp (Depends-on): Add lstat.
41362
41363         utimens: add lutimens interface
41364         * lib/utimens.c (lutimens): New function.
41365         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
41366         * lib/utimens.h (lutimens): Declare new interface.
41367         * tests/test-utimens.c (main): Enhance test.
41368         * tests/test-lutimens.h (test_lutimens): New file.
41369         * modules/utimens-tests (Files): Distribute it.
41370         (Depends-on): Add symlink.
41371         (configure.ac): Check for usleep.
41372
41373         utimens: validate futimens usage
41374         * lib/utimens.c (gl_futimens): Require valid fd up front, using
41375         fewer syscalls on failure later on.  Avoid compiler warning on
41376         mingw.
41377         * modules/utimens (Depends-on): Add dup2.
41378
41379         utimens: add test
41380         * modules/utimens-tests: New test.
41381         * tests/test-utimens.h: New file.
41382         * tests/test-futimens.h: Likewise.
41383         * tests/test-utimens.c: Likewise.
41384
41385         doc: mention timestamp portability issues
41386         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
41387         instead.
41388         * doc/posix-functions/utime.texi (utime): Likewise.
41389         * doc/posix-functions/utimes.texi (utimes): Likewise.
41390         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
41391         instead.
41392         * doc/posix-functions/futimens.texi (futimens): Mention utimens
41393         module.
41394         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41395         Mention weakness with symlink timestamps.
41396         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
41397         to utimensat/futimens instead.
41398         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
41399
41400         test-dup2: enhance test
41401         * tests/test-dup2.c (main): Also check AT_FDCWD.
41402
41403         test-stat-time: avoid more spurious failures
41404         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
41405         xfs; and avoid race if the two timestamps cross quantization edge.
41406
41407         relocatable: prefer 'file system' over 'filesystem'
41408         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
41409         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
41410         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
41411         * doc/relocatable.texi (Enabling Relocatability): Likewise.
41412         * lib/relocatable.c (compute_curr_prefix): Likewise.
41413
41414 2009-10-10  Jim Meyering  <meyering@redhat.com>
41415
41416         stat-time-tests: check for the usleep function
41417         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
41418
41419 2009-10-10  Bruno Haible  <bruno@clisp.org>
41420
41421         * modules/xnanosleep: Put the Link section after the Include section.
41422
41423 2009-10-09  Eric Blake  <ebb9@byu.net>
41424
41425         dup2: work around FreeBSD 6.1 bug
41426         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
41427         * doc/posix-functions/dup2.texi (dup2): Document it.
41428         Reported by Nelson H. F. Beebe and Jim Meyering.
41429
41430         test-stat-time: port to buggy NFS clients
41431         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
41432         (test_ctime): Also skip test if mtime and ctime are skewed.
41433
41434         maint: prefer 'file system' over 'filesystem'
41435         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
41436         * doc/posix-functions/lstat.texi (lstat): Likewise.
41437         * lib/file-has-acl.c (file_has_acl): Likewise.
41438         * lib/fwriteerror.c [TEST]: Likewise.
41439         * tests/test-areadlink.h (test_areadlink): Likewise.
41440         * tests/test-areadlinkat-with-size.c (main): Likewise.
41441         * tests/test-areadlinkat.c (main): Likewise.
41442         * tests/test-canonicalize-lgpl.c (main): Likewise.
41443         * tests/test-canonicalize.c (main): Likewise.
41444         * tests/test-fstatat.c (main): Likewise.
41445         * tests/test-linkat.c (main): Likewise.
41446         * tests/test-lstat.h (test_lstat_func): Likewise.
41447         * tests/test-mkdir.h (test_mkdir): Likewise.
41448         * tests/test-readlink.h (test_readlink): Likewise.
41449         * tests/test-remove.c (main): Likewise.
41450         * tests/test-rename.h (test_rename): Likewise.
41451         * tests/test-renameat.c (main): Likewise.
41452         * tests/test-rmdir.h (test_rmdir_func): Likewise.
41453         * tests/test-symlink.h (test_symlink): Likewise.
41454         * tests/test-symlinkat.c (main): Likewise.
41455         * tests/test-unlink.h (test_unlink_func): Likewise.
41456         * tests/test-unlinkat.c (main): Likewise.
41457
41458         maint: make realtime library usage explicit
41459         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
41460         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
41461         * modules/settime (Link): Likewise.
41462         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
41463
41464         test-stat-time: speed up execution
41465         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
41466         warning on mingw.
41467         (nap): New helper function.
41468         (prepare_test): Use it to reduce sleep time.
41469         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
41470         execution.
41471         * modules/stat-time-tests (configure.ac): Check for usleep.
41472
41473 2009-10-09  Jim Meyering  <meyering@redhat.com>
41474
41475         selinux-h: always use getfilecon wrappers
41476         * lib/getfilecon.c: New file.
41477         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
41478         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
41479         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
41480         (fgetfilecon): Provide a stub.
41481         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
41482         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
41483         file unconditionally.
41484         When <selinux/selinux.h> is found, arrange to use wrappers.
41485         * modules/selinux-h (Files): Add getfilecon.c.
41486         (Makefile.am): Substitute include-next-related bits
41487         into the now-always-generated selinux/selinux.h file.
41488         * doc/glibc-functions/lgetfilecon.texi: New file.
41489         * doc/glibc-functions/fgetfilecon.texi: New file.
41490         * doc/glibc-functions/getfilecon.texi: New file.
41491         * doc/glibc-functions/getfilecon-desc.texi: New file.
41492         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
41493         which to pull in the new files.
41494         * MODULES.html.sh (Misc): Add selinux-h.
41495
41496 2009-10-08  Jim Meyering  <meyering@redhat.com>
41497
41498         unistd: fix comment typo
41499         * lib/unistd.in.h (euidaccess): Fix a comment typo.
41500
41501 2009-10-08  Eric Blake  <ebb9@byu.net>
41502
41503         areadlink: use SIZE_MAX consistently
41504         * modules/areadlink (Depends-on): Add stdint.
41505         * modules/areadlink-with-size (Depends-on): Likewise.
41506         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
41507         gives NULL; drop sys/types, since unistd gives size_t; and add
41508         stdint for SIZE_MAX.
41509         (SIZE_MAX): Rely on headers.
41510         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
41511         and add stdint.
41512         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
41513         (SIZE_MAX): Likewise.
41514         (INITIAL_BUF_SIZE): Turn into enum.
41515         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
41516
41517 2009-10-08  Jim Meyering  <meyering@redhat.com>
41518
41519         areadlinkat: avoid compilation failure
41520         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
41521         Fix typo in comment.
41522
41523 2009-10-07  Eric Blake  <ebb9@byu.net>
41524
41525         areadlinkat-with-size: new module
41526         * modules/areadlinkat-with-size: New module.
41527         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
41528         * lib/areadlink.h (areadlinkat): Declare it.
41529         * MODULES.html.sh (File system functions): Mention it.
41530         * modules/areadlinkat-with-size-tests: New test.
41531         * tests/test-areadlinkat-with-size.c: New file.
41532
41533         xreadlinkat: new module
41534         * modules/xreadlinkat: New module.
41535         * lib/xreadlinkat.c (xreadlinkat): New file.
41536         * lib/xreadlink.h (xreadlinkat): Declare it.
41537         * MODULES.html.sh (File system functions): Mention it.
41538
41539         areadlinkat: new module
41540         * lib/at-func.c (FUNC_FAIL): New define.
41541         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
41542         * modules/areadlinkat: New module.
41543         * lib/linkat.c (areadlinkat): Move...
41544         * lib/areadlinkat.c (areadlinkat): ...to new file.
41545         * lib/areadlink.h (areadlinkat): Declare it.
41546         * modules/linkat (Depends-on): Add areadlinkat.
41547         * MODULES.html.sh (File system functions): Mention it.
41548         * modules/areadlinkat-tests: New test.
41549         * tests/test-areadlinkat.c: New file.
41550
41551         areadlink, areadlink-with-size: add tests
41552         * modules/areadlink-tests: New test.
41553         * modules/areadlink-with-size-tests: Likewise.
41554         * tests/test-areadlink.h: New file.
41555         * tests/test-areadlink.c: Likewise.
41556         * tests/test-areadlink-with-size.c: Likewise.
41557
41558         maint: minor cleanups
41559         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
41560         _UNUSED_PARAMETER_ instead.
41561         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
41562         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
41563         * modules/linkat-tests (Files): Distribute test-link.h.
41564
41565         openat, utimens: whitespace cleanup
41566         * lib/openat.c: Prefer space throughout, rather than mix of 8
41567         spaces vs. tabs.
41568         * lib/at-func.c: Likewise.
41569         * lib/utimens.c: Likewise.
41570
41571         openat: avoid using wrong fd
41572         * lib/openat.c (openat_permissive): Reject user's fd if saving the
41573         working directory chooses same fd.
41574         * lib/at-func.c (AT_FUNC_NAME): Likewise.
41575
41576         mkdir, mkdirat: fix cygwin 1.5.x bug
41577         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
41578         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
41579         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
41580         bug.
41581         (gl_PREREQ_MKDIR): Delete unused macro.
41582         * modules/mkdir (Files): Track file rename.
41583         (configure.ac): Update macro name.
41584         * modules/openat (Depends-on): Add mkdir.
41585         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
41586
41587         mkdir, mkdirat: add tests
41588         * modules/mkdir-tests: New test.
41589         * tests/test-mkdir.h: New file.
41590         * tests/test-mkdir.c: Likewise.
41591         * tests/test-mkdirat.c: Likewise.
41592         * modules/openat-tests (Files): Add new files.
41593         (Makefile.am): Run new test.
41594
41595 2009-10-06  Eric Blake  <ebb9@byu.net>
41596
41597         doc: tweak *at function documentation
41598         * doc/posix-functions/faccessat.texi (faccessat): Mention
41599         known issue with replacement.
41600         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
41601         * doc/posix-functions/linkat.texi (linkat): Likewise.
41602         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41603         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41604         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41605         * doc/posix-functions/renameat.texi (renameat): Likewise.
41606         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41607
41608         openat: fix GNU/Hurd bug in unlinkat
41609         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
41610         broken.
41611         * doc/posix-functions/unlink.texi (unlink): Document this.
41612         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
41613
41614         fdopendir: fix GNU/Hurd bug
41615         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
41616         allowing non-directory fds.
41617         * lib/fdopendir.c (rpl_fdopendir): Work around it.
41618         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
41619         * modules/dirent (Makefile.am): Substitute it.
41620         * lib/dirent.in.h (fdopendir): Declare replacement.
41621         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
41622         * tests/test-fdopendir.c (main): Test something other than
41623         /dev/null, since on Hurd that behaves like a directory.
41624
41625         test-symlink: port to GNU/Hurd
41626         * tests/test-symlink.h (test_symlink): Relax expected errno.
41627
41628         doc: tweak more cygwin information
41629         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
41630         now compatible with glibc.
41631         * doc/posix-functions/getopt.texi (getopt): Likewise.
41632
41633         getopt-gnu: add another test
41634         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
41635         guarantee behavior relied on by m4.
41636         * tests/test-getopt.c (main): Use it.
41637         * modules/getopt-posix-tests (Depends-on): Add setenv.
41638         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
41639
41640         getopt: fix compilation on darwin
41641         * lib/getopt.in.h (includes): Leave breadcrumbs during system
41642         include.
41643         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
41644         Reported by Ludovic Courtès.
41645
41646 2009-10-06  Bruno Haible  <bruno@clisp.org>
41647
41648         * modules/size_max (Description): Discourage its use.
41649         Reported by Simon Josefsson.
41650
41651 2009-10-06  Jim Meyering  <meyering@redhat.com>
41652
41653         linkat: avoid compilation failure
41654         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
41655
41656 2009-10-05  Eric Blake  <ebb9@byu.net>
41657
41658         linkat: support Linux 2.6.17
41659         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
41660         linkat on Linux, but allow cache variable override.
41661         * lib/linkat.c (rpl_linkat): Define override.
41662         * modules/linkat (Depends-on): Add symlinkat.
41663         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
41664         * modules/unistd (Makefile.am): Substitute it.
41665         * lib/unistd.in.h (linkat): Declare replacement.
41666         Reported by Pádraig Brady.
41667
41668         quotearg: port test to systems with C.UTF-8 locale
41669         * tests/test-quotearg.c (struct result_strings): Add another
41670         member, differentiating between C.ASCII and C.UTF-8 handling.
41671         (compare_strings): Add parameter.
41672         (main): Adjust all callers.
41673
41674         getopt: avoid clash with FreeBSD _getopt_internal
41675         * lib/getopt.in.h (_getopt_internal): Override the name.
41676         * lib/getopt_int.h (includes): Pick up any overrides.
41677         Reported by Reuben Thomas.
41678
41679         hash: allow C89 compilation
41680         * lib/hash.c (check_tuning): Move declaration before statement.
41681         Reported by Reuben Thomas.
41682
41683 2009-10-05  Karl Berry  <karl@gnu.org>
41684
41685         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
41686
41687 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
41688             Bruno Haible  <bruno@clisp.org>
41689
41690         * lib/uname.c (uname): Use a table-driven algorithm to compute
41691         Windows NT versions.
41692
41693 2009-10-04  Bruno Haible  <bruno@clisp.org>
41694
41695         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
41696         program_invocation_short_name.
41697         * modules/progname (configure.ac): Test for presence of
41698         program_invocation_short_name.
41699         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
41700
41701 2009-10-04  Bruno Haible  <bruno@clisp.org>
41702
41703         * lib/progname.c (set_program_name): Fix comment.
41704         Reported by Jim Meyering.
41705
41706 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41707             Bruno Haible  <bruno@clisp.org>
41708
41709         * lib/uname.c: Include <string.h>.
41710         (uname): Do only one call to GetVersionEx in the common case.
41711
41712 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41713             Bruno Haible  <bruno@clisp.org>
41714
41715         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
41716         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
41717         (uname): Add support for Windows CE and various non-x86 CPU types.
41718
41719 2009-10-03  Bruno Haible  <bruno@clisp.org>
41720
41721         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
41722         invocation to tests/configure.ac.
41723         Reported by Ian Beckwith <ianb@erislabs.net>.
41724
41725 2009-10-02  Eric Blake  <ebb9@byu.net>
41726
41727         fchdir: avoid compiler warning
41728         * lib/fchdir.c (canonicalize_file_name)
41729         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
41730
41731         test-open: support mingw errno values
41732         * tests/test-open.h (test_open): Relax test.
41733         * tests/test-fopen.h (test_fopen): Likewise.
41734         * tests/test-openat-safer.c (main): Likewise.
41735
41736         open: fix opening directory on mingw
41737         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
41738
41739         test-open: on GNU/Hurd, /dev/null is a directory
41740         * tests/test-fopen.h (main): Rename...
41741         (test_fopen): ...to this.  Use a guaranteed non-directory when
41742         confirming open behavior on trailing slash.
41743         * tests/test-openat-safer.c (main): Likewise.
41744         * tests/test-open.h (main): Likewise....
41745         (test_open): ...to this.
41746         * tests/test-fopen.c (main): Adjust caller.
41747         * tests/test-fopen-safer.c (main): Likewise.
41748         * tests/test-open.c (main): Likewise.
41749         * tests/test-fcntl-safer.c (main): Likewise.
41750         Reported by Samuel Thibault.
41751
41752         rename, fchdir: don't ignore chdir failure
41753         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
41754         * lib/rename.c (rpl_rename) [W32]: Likewise.
41755         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
41756         an empty destination directory if source cannot be renamed,
41757         although there is still possibility for failure.
41758         * doc/posix-functions/rename.texi (rename): Document the race.
41759         Reported by Jim Meyering.
41760
41761         maint: cleanup whitespace in recent commits
41762         * lib/rename.c (rpl_rename): Remove tabs.
41763         * tests/test-link.h (test_link): Likewise.
41764         * lib/fchdir.c (get_name): Likewise.
41765         Reported by Jim Meyering.
41766
41767 2009-10-02  Ben Pfaff  <blp@gnu.org>
41768
41769         relocatable-prog-wrapper: Add missing dependency on
41770         double-slash-root.
41771         * modules/relocatable-prog-wrapper: Add dependency.
41772         Reported by Ian Beckwith <ianb@erislabs.net>.
41773
41774 2009-10-02  Eric Blake  <ebb9@byu.net>
41775
41776         renameat: fix Solaris bugs
41777         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
41778         needed fixing.
41779         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
41780         * modules/stdio (Makefile.am): Substitute it.
41781         * lib/stdio.in.h (renameat): Declare replacement.
41782         * lib/renameat.c (rpl_renameat): Implement fix.
41783
41784         renameat: new module
41785         * modules/renameat: New file.
41786         * lib/renameat.c (renameat): Likewise.
41787         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
41788         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41789         * modules/stdio (Makefile.am): Substitute them.
41790         * lib/stdio.in.h (renameat): Declare it.
41791         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41792         * doc/posix-functions/renameat.texi (renameat): Likewise.
41793         * modules/renameat-tests: New test.
41794         * tests/test-renameat.c: Likewise.
41795
41796         rename: fix mingw bugs
41797         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
41798         directory overwrite bugs.
41799
41800         rename: fix another cygwin 1.5 bug
41801         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
41802         checks.
41803         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
41804         unnecessary cygwin workarounds.  Also work around bug with moving
41805         full directory onto an empty one.
41806         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
41807
41808         rename-dest-slash: merge into rename module
41809         * modules/rename-dest-slash (Status): Mark obsolete.
41810         (Depends-on): Add rename.
41811         (Files): Let rename do it all.
41812         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
41813         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
41814         * m4/rename-dest-slash.m4: ...so this file can be deleted.
41815         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
41816         * lib/rename.c (rpl_rename): Update comments.
41817
41818         rename: fix cygwin 1.5.x bugs
41819         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
41820         * lib/rename.c (rpl_rename): Work around them.
41821         * modules/rename (Depends-on): Add same-inode.
41822
41823         rename: fix Solaris 10 bug
41824         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41825         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
41826         was the only bug.
41827
41828         rename: fix Solaris 9 bug
41829         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
41830         on non-directory.  Avoid calling exit.
41831         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
41832         strdup.
41833         * modules/rename-tests (Depends-on): Drop lstat.
41834         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41835         (gl_PREREQ_RENAME): Delete unused macro.
41836
41837         rename-dest-slash: fix NetBSD bug
41838         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
41839         links.
41840         * modules/rename-dest-slash (Depends-on): Add same-inode.
41841
41842         rename-tests: new test, exposes several platform bugs
41843         * modules/rename-tests: New file.
41844         * tests/test-rename.h: Likewise.
41845         * tests/test-rename.c: Likewise.
41846         * doc/posix-functions/rename.texi (rename): Improve documentation,
41847         including bugs that will eventually be fixed in gnulib.
41848
41849 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
41850
41851         * lib/uname.c: Include <stdlib.h>
41852         (uname): Assume version info is available.
41853
41854 2009-10-02  Jim Meyering  <meyering@redhat.com>
41855
41856         gnu-web-doc-update: correct --help output
41857         * build-aux/gnu-web-doc-update: Make --help output relevant.
41858
41859         gnu-web-doc-update: add standard options
41860         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
41861
41862         gnu-web-doc-update: New module.
41863         Use this script to automatically update the on-line web documentation
41864         for your GNU project at http://www.gnu.org/software/$pkg/manual/
41865         * modules/gnu-web-doc-update: New file, from coreutils.
41866         * build-aux/gnu-web-doc-update: New script.
41867
41868 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
41869
41870         link: LoadLibrary is not needed.
41871         * lib/link.c: Use GetModuleHandle.
41872
41873 2009-10-01  Eric Blake  <ebb9@byu.net>
41874
41875         getopt: bump serial number
41876         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
41877         change.
41878
41879         tests: tighten link, rmdir, and remove tests
41880         * tests/test-link.h (includes): No need to use <config.h> here.
41881         Clean up if directory hard link was created, otherwise test for
41882         trailing '.'.
41883         * tests/test-linkat.c (main): Simplify.
41884         * tests/test-remove.c (main): Enhance test for trailing '.'.
41885         * tests/test-rmdir.h (test_rmdir_func): Likewise.
41886
41887 2009-10-01  Jim Meyering  <meyering@redhat.com>
41888
41889         maint.mk: requiring "make major" was annoying, for a "minor" release.
41890         What is intended is "stable", to contrast with alpha and beta,
41891         so require "make stable", not "make major".
41892         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
41893         (get_tool_versions): Likewise.
41894         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
41895
41896 2009-09-30  Ben Pfaff  <blp@gnu.org>
41897
41898         Fix broken build of replacement for Windows tmpfile().
41899         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
41900         flags argument added along with the 'mkostemp' module.
41901
41902 2009-09-28  Bruno Haible  <bruno@clisp.org>
41903
41904         Avoid identifier clash with POSIX function 'remove' defined as a macro.
41905         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
41906         to 'remove_elt'.
41907         (gl_list_remove): Update.
41908         * lib/gl_list.c (gl_list_remove): Update.
41909         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
41910         to 'remove_elt'.
41911         (gl_oset_remove): Update.
41912         * lib/gl_list.c (gl_oset_remove): Update.
41913         Reported by Eric Blake.
41914
41915 2009-09-28  Eric Blake  <ebb9@byu.net>
41916
41917         doc: mention yet more cygwin 1.7 status
41918         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
41919         cygwin.
41920         * doc/glibc-functions/execvpe.texi (execvpe): New file.
41921         * doc/gnulib.texi (Glibc unistd.h): Mention it.
41922
41923         argp: fix test failure
41924         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
41925         that are not upper-case.  Pass correct range to tolower.
41926
41927 2009-09-27  Jim Meyering  <meyering@redhat.com>
41928
41929         test-yesno: work around sparc-dash here-document infelicity
41930         Without this change, the literal \177 byte in a here document
41931         would make dash 0.5.5.1-3 access uninitialized memory.
41932         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
41933         Instead, use a marker, "@", and filter through tr to create the desired
41934         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
41935
41936 2009-09-27  Bruno Haible  <bruno@clisp.org>
41937
41938         Disable untested support for new flavours of ACLs on AIX.
41939         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
41940         progress.
41941         * lib/set-mode-acl.c (qset_acl): Likewise.
41942
41943 2008-12-07  Bruno Haible  <bruno@clisp.org>
41944
41945         Add support for new flavours of ACLs on AIX. (Untested.)
41946         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
41947         (file_has_acl): Add support for newer AIX.
41948         * lib/set-mode-acl.c (qset_acl): Likewise.
41949         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
41950         Rainer Tammer <tammer@tammer.net>.
41951
41952 2009-09-26  Eric Blake  <ebb9@byu.net>
41953
41954         argp: fix compilation of getopt
41955         * lib/getopt.in.h (includes): Use different guard than glibc.
41956         Reported by Sergey Poznyakoff.
41957
41958         doc: mention more cygwin 1.7 status
41959         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
41960         bug.
41961         * doc/posix-functions/execl.texi (execl): Likewise.
41962         * doc/posix-functions/execle.texi (execle): Likewise.
41963         * doc/posix-functions/execlp.texi (execlp): Likewise.
41964         * doc/posix-functions/execv.texi (execv): Likewise.
41965         * doc/posix-functions/execve.texi (execve): Likewise.
41966         * doc/posix-functions/execvp.texi (execvp): Likewise.
41967         * doc/glibc-functions/canonicalize_file_name.texi
41968         (canonicalize_file_name): Cygwin 1.7 now provides this.
41969         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
41970         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
41971         on AT_SYMLINK_NOFOLLOW.
41972
41973 2009-09-24  Eric Blake  <ebb9@byu.net>
41974
41975         test-linkat: make test more robust
41976         * tests/test-linkat.c (main): Avoid collision with EEXIST.
41977
41978         getopt: fix inclusion guards for cygwin
41979         * modules/getopt-posix (Depends-on): Add include-next.
41980         (Makefile.am): Substitute more items in replacement header.
41981         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
41982         <getopt.h>.
41983         * lib/getopt.in.h (includes): Use split inclusion guard, and
41984         prefer <getopt.h> over include <unistd.h> when one is present.
41985         (option): Also override name of 'struct option'.
41986
41987         same-inode: revert prior change; it is not yet ready
41988         * NEWS: Undo mention of this change.
41989         * lib/same-inode.h (same-inode.h): Undo tri-state change.
41990         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41991         * lib/cycle-check.c (cycle_check): Likewise.
41992         * lib/same.c (same_name): Likewise.
41993         * lib/at-func2.c (at_func2): Likewise.
41994
41995 2009-09-23  Eric Blake  <ebb9@byu.net>
41996
41997         linkat: new module
41998         * modules/linkat: New file.
41999         * lib/at-func2.c (at_func2): Likewise.
42000         * lib/linkat.c (linkat): Likewise.
42001         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
42002         * lib/openat-priv.h (at_func2): Add declaration.
42003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42004         * modules/unistd (Makefile.am): Substitute them.
42005         * lib/unistd.in.h (linkat): Declare it.
42006         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42007         * doc/posix-functions/linkat.texi (linkat): Likewise.
42008         * doc/posix-functions/link.texi (link): Tweak wording.
42009         * tests/test-link.c (main): Move guts...
42010         * tests/test-link.h (test_link): ...into new file.
42011         * modules/linkat-tests: New test.
42012         * tests/test-linkat.c: Likewise.
42013         * modules/link-tests (Files): Ship new file.
42014         (Depends-on): Add stdbool.
42015
42016         dirname: add library-safe mdir_name
42017         * lib/dirname.h (mdir_name): New prototype.
42018         * lib/dirname.c (dir_name): Move guts...
42019         (mdir_name): ...to new function that avoids xalloc_die.
42020
42021         fchdir: another mingw fix
42022         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
42023         * lib/fchdir.c (get_name): New helper method; skips canonicalize
42024         on mingw (where it has not yet been ported), and make it optional
42025         elsewhere.
42026         (_gl_register_fd): Use it.
42027
42028         same-inode: make SAME_INODE tri-state, to port to mingw
42029         * NEWS: Mention this change.
42030         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
42031         st_ino always being 0.
42032         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
42033         * lib/cycle-check.c (cycle_check): Likewise.
42034         * lib/same.c (same_name): Likewise.
42035
42036         lstat: avoid mingw compilation error
42037         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
42038         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
42039         lstat ourselves.
42040         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
42041         was adequate.
42042         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
42043         the checks for lstat.
42044         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
42045
42046         link: fix test failure on Solaris 9
42047         * lib/link.c (rpl_link): Don't assume link will catch bogus
42048         trailing slash on source.
42049
42050         test-symlinkat: enhance test
42051         * tests/test-readlink.c (main): Move guts...
42052         * tests/test-readlink.h (test_readlink): ...into new file.
42053         * tests/test-symlink.c (main): Move guts...
42054         * tests/test-symlink.h (test_symlink): ...into new file.
42055         * tests/test-symlinkat.c (main): Use new files for further
42056         coverage.
42057         (do_symlink, do_readlink): New helper functions.
42058         * modules/symlink-tests (Files): Ship new file.
42059         (Depends-on): Add stdbool.
42060         * modules/readlink-tests (Files): Ship new file.
42061         (Depends-on): Add stdbool.
42062         * modules/symlinkat-tests (Files): Use new files.
42063
42064 2009-09-23  Eric Blake  <ebb9@byu.net>
42065
42066         readlink: document portability issue with symlink length
42067         * doc/posix-functions/lstat.texi (lstat): Mention that some file
42068         systems have bogus st_size on symlinks, and mention the
42069         areadlink-with-size module.
42070         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
42071         * doc/posix-functions/readlink.texi (readlink): Mention the
42072         areadlink module, and ERANGE failure.
42073         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42074         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
42075
42076         readlink: fix Solaris 9 bug with trailing slash
42077         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
42078         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
42079         * doc/posix-functions/readlink.texi (readlink): Document this.
42080         * modules/readlink-tests: New test.
42081         * tests/test-readlink.c: Likewise.
42082
42083         readlink: fix cygwin 1.5.x bug with return type
42084         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
42085         * lib/unistd.in.h (readlink): Use ssize_t.
42086         * lib/readlink.c (readlink): Likewise.
42087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42088         * modules/unistd (Makefile.am): Substitute it.
42089         * lib/unistd.in.h (readlink): Declare replacement.
42090         * doc/posix-functions/readlink.texi (readlink): Document this.
42091
42092         symlink: use throughout gnulib
42093         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
42094         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
42095         symlink is not used.
42096         * modules/symlinkat (Depends-on): Add symlink.
42097         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
42098         * modules/canonicalize-tests (Depends-on): Likewise.
42099         * modules/lstat-tests (Depends-on): Likewise.
42100         * modules/openat-tests (Depends-on): Likewise.
42101         * modules/remove-tests (Depends-on): Likewise.
42102         * modules/rmdir-tests (Depends-on): Likewise.
42103         * modules/unlink-tests (Depends-on): Likewise.
42104         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
42105         * tests/test-canonicalize.c (symlink): Likewise.
42106         * tests/test-fstatat.c (symlink): Likewise.
42107         * tests/test-lstat.c (symlink): Likewise.
42108         * tests/test-remove.c (symlink): Likewise.
42109         * tests/test-rmdir.c (symlink): Likewise.
42110         * tests/test-unlink.c (symlink): Likewise.
42111         * tests/test-unlinkat.c (symlink): Likewise.
42112
42113         symlink: new module, for Solaris 9 bug
42114         * modules/symlink: New file.
42115         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
42116         * lib/symlink.c: Likewise.
42117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
42118         * modules/unistd (Makefile.am): Substitute them.
42119         * lib/unistd.in.h (symlink): Declare replacement.
42120         * MODULES.html.sh (File system functions): Mention it.
42121         * doc/posix-functions/symlink.texi (symlink): Likewise.
42122         * modules/symlink-tests: New test.
42123         * tests/test-symlink.c: Likewise.
42124
42125 2009-09-23  Bruno Haible  <bruno@clisp.org>
42126
42127         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
42128         when needed.
42129         Test case: gnulib-tool --import --with-tests atexit inttypes.
42130         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
42131
42132 2009-09-23  Bruno Haible  <bruno@clisp.org>
42133
42134         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
42135         subcommand, not in a subshell.
42136
42137 2009-09-22  Eric Blake  <ebb9@byu.net>
42138
42139         unistd: sort replacement declarations
42140         * lib/unistd.in.h: Sort declarations.
42141
42142         open, openat: minor optimization
42143         * lib/open.c (open): If open succeeded, len is non-zero.
42144         * lib/openat.c (rpl_openat): Likewise.
42145
42146         link-follow: ensure correct result
42147         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
42148         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
42149         distinguish between possible failures.
42150
42151 2009-09-21  Eric Blake  <ebb9@byu.net>
42152
42153         fts: avoid compiler warning
42154         * lib/fts.c (dirent_inode_sort_may_be_useful)
42155         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
42156
42157 2009-09-19  Bruno Haible  <bruno@clisp.org>
42158
42159         * lib/progreloc.c (canonicalize_file_name): New declaration.
42160
42161 2009-09-19  Eric Blake  <ebb9@byu.net>
42162
42163         link: fix quoting
42164         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
42165
42166         openat: fix openat bugs on Solaris 9
42167         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
42168         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
42169         * modules/openat (Depends-on): Add open.
42170         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
42171         * modules/fcntl-h (Makefile.am): Substitute it.
42172         * lib/fcntl.in.h (openat): Declare replacement.
42173         * doc/posix-functions/openat.texi (openat): Document this.
42174
42175         openat: move fstatat and unlinkat into correct files
42176         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
42177         compiled.
42178         * lib/openat.c (fstatat, unlinkat): Move...
42179         * lib/fstatat.c (fstatat): ...into correct files.
42180         * lib/unlinkat.c (unlinkat): Likewise.
42181
42182         openat: fix unlinkat bugs on Solaris 9
42183         * lib/unlinkat.c (unlinkat): New file.
42184         * modules/openat (Depends-on): Add unlink.
42185         (Files): Distribute it.
42186         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
42187         trailing slash behavior is broken.
42188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42189         * modules/unistd (Makefile.am): Substitute it.
42190         * lib/unistd.in.h (unlinkat): Declare replacement.
42191         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
42192
42193         openat: fix fstatat bugs on Solaris 9
42194         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
42195         stat.
42196         * doc/posix-functions/fstatat.texi (fstatat): Document this.
42197
42198         test-unlinkat: enhance test, to expose Solaris 9 bug
42199         * tests/test-unlink.c (main): Factor guts...
42200         * tests/test-unlink.h (test_rmdir_func): ...into new file.
42201         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
42202         * tests/test-rmdir.c (main): Adjust caller.
42203         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
42204         (unlinker): New helper function.
42205         (rmdirat): Enhance check.
42206         * modules/rmdir-tests (Depends-on): Add stdbool.
42207         * modules/unlink-tests (Depends-on): Likewise.
42208         (Files): Add test-unlink.h.
42209         * modules/openat-tests (Files): Likewise.
42210         (Depends-on): Add unlinkdir.
42211
42212         test-fstatat: new test, to expose Solaris 9 bugs
42213         * tests/test-stat.c (main): Factor guts...
42214         * tests/test-stat.h (test_stat_func): ...into new file.
42215         * tests/test-lstat.c (main): Factor guts...
42216         * tests/test-lstat.h (test_lstat_func): ...into new file.
42217         * tests/test-fstatat.c: New file.
42218         * modules/stat-tests (Files): Add test-stat.h.
42219         * modules/lstat-tests (Files): Add test-lstat.h.
42220         (Depends-on): Add stdbool.
42221         * modules/openat-tests (Depends-on): Add pathmax.
42222         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
42223         (Makefile.am): Run new test.
42224
42225         remove: new module, for mingw and Solaris 9 bugs
42226         * modules/remove: New file.
42227         * lib/remove.c: Likewise.
42228         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
42229         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
42230         * modules/stdio (Makefile.am): Use them.
42231         * lib/stdio.in.h (remove): Declare replacement.
42232         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42233         * doc/posix-functions/remove.texi (remove): Likewise.
42234         * modules/remove-tests: New test.
42235         * tests/test-remove.c: Likewise.
42236
42237         unlink: new module, for Solaris 9 bug
42238         * modules/unlink: New file.
42239         * lib/unlink.c: Likewise.
42240         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
42241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42242         * modules/unistd (Makefile.am): Use them.
42243         * lib/unistd.in.h (stat): Declare replacement.
42244         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42245         * doc/posix-functions/unlink.texi (unlink): Likewise.
42246         * modules/unlink-tests: New test.
42247         * tests/test-unlink.c: Likewise.
42248
42249         lstat: fix Solaris 9 bug
42250         * lib/lstat.c (lstat): Also check for trailing slash on
42251         non-symlink, non-directories.  Use stat module to simplify logic.
42252         * doc/posix-functions/lstat.texi (lstat): Document it.
42253         * modules/lstat-tests (Depends-on): Add errno, same-inode.
42254         (configure.ac): Check for symlink.
42255         * tests/test-lstat.c (main): Add more tests.
42256
42257         stat: add as dependency to other modules
42258         * modules/chown (Depends-on): Add stat.
42259         * modules/euidaccess (Depends-on): Likewise.
42260         * modules/fchdir (Depends-on): Likewise.
42261         * modules/isdir (Depends-on): Likewise.
42262         * modules/link (Depends-on): Likewise.
42263         * modules/lstat (Depends-on): Likewise.
42264         * modules/mkdir-p (Depends-on): Likewise.
42265         * modules/modechange (Depends-on): Likewise.
42266         * modules/open (Depends-on): Likewise.
42267         * modules/readlink (Depends-on): Likewise.
42268         * modules/same (Depends-on): Likewise.
42269
42270         stat: fix Solaris 9 bug
42271         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
42272         slash.
42273         * lib/stat.c (rpl_stat): Work around it.
42274         * doc/posix-functions/stat.texi (stat): Update documentation.
42275
42276         stat: new module, for mingw bug
42277         * modules/stat: New file.
42278         * lib/stat.c: Likewise.
42279         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
42280         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42281         * modules/sys_stat (Makefile.am): Use them.
42282         * lib/sys_stat.in.h (stat): Declare replacement.
42283         * lib/openat.c (fstatat): Deal with lstat and stat being function
42284         macros.
42285         * modules/openat (Depends-on): Add inline.
42286         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42287         * doc/posix-functions/stat.texi (stat): Likewise.
42288         * modules/stat-tests: New test.
42289         * tests/test-stat.c: Likewise.
42290
42291 2009-09-19  Jim Meyering  <meyering@redhat.com>
42292
42293         syntax-check: detect unnecessary inclusion of canonicalize.h
42294         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
42295
42296 2009-09-19  Eric Blake  <ebb9@byu.net>
42297
42298         canonicalize-lgpl: adjust clients to use correct header
42299         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
42300         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
42301         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
42302         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
42303         * lib/progreloc.c (includes): Likewise.
42304
42305 2009-09-19  Jim Meyering  <meyering@redhat.com>
42306
42307         test-posixtm.c: correct a comment
42308         * tests/test-posixtm.c: Correct first-line comment.
42309         Spotted by Eric Blake.
42310
42311 2009-09-16  Jim Meyering  <meyering@redhat.com>
42312
42313         posixtm-tests: make T const-correct; add a test case
42314         * tests/test-posixtm.c (T): Declare const.
42315         Add a test for -(2^31+1).
42316         Remove useless can-succeed-only-in-2002 test.
42317
42318         posixtm-tests: adjust the sole failing test
42319         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
42320         expected output matches what mktime now produces.  Cross-checked via
42321         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
42322
42323         posixtm: move #ifdef'd tests into a new module
42324         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
42325         * tests/test-posixtm.c: ... this new file.
42326         * modules/posixtm-tests: New module.
42327
42328 2009-09-19  Eric Blake  <ebb9@byu.net>
42329
42330         openat: simplify use of at-func.c
42331         * lib/at-func.c (includes): Include prerequisites here, to
42332         simplify requirements on client files.
42333         * lib/openat-priv.h: Add double-inclusion guard.
42334         * lib/faccessat.c (includes): Simplify.
42335         * lib/fchmodat.c (includes): Likewise.
42336         * lib/fchownat.c (includes): Likewise.
42337         * lib/mkdirat.c (includes): Likewise.
42338         * lib/mkfifoat.c (includes): Likewise.
42339         * lib/symlinkat.c (includes): Likewise.
42340
42341         openat: allow return of fd 0
42342         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
42343         * modules/save-cwd (Depends-on): Replace fcntl-safer with
42344         unistd-safer.
42345         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
42346         <fcntl.h>; this module does not leak fds.
42347         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
42348         must be allowed to return 0, leaving openat_safer to add the
42349         safety.
42350         (openat_permissive): Avoid writing to just-opened fd 2 if
42351         restoring the current directory fails.
42352         * lib/openat-die.c (openat_restore_fail): Add comment.
42353         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
42354         (save_cwd): Guarantee safe fd, but without use of open_safer.
42355         * tests/test-openat.c: New test.
42356         * modules/openat-tests (Files, Makefile.am): Distribute and build
42357         new file.
42358
42359         relocatable-prog-wrapper: fix build
42360         * modules/relocatable-prog-wrapper (Files): Update name of
42361         canonicalize m4 file, broken on 2009-09-17.
42362         Reported by emad hajjar <aleppos@hotmail.com>.
42363
42364 2009-09-19  Bruno Haible  <bruno@clisp.org>
42365
42366         * lib/safe-alloc.h: Use the standard header with GPL copyright.
42367         * lib/safe-alloc.c: Likewise.
42368         Reported by Ian Beckwith <ianb@erislabs.net>.
42369
42370 2009-09-18  Bruno Haible  <bruno@clisp.org>
42371
42372         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
42373         Reported by <erobles@sensacd.com.mx>.
42374
42375 2009-09-17  Eric Blake  <ebb9@byu.net>
42376
42377         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
42378         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
42379         slashes when checking if last component is missing.
42380         * tests/test-canonicalize.c (main): Test this.
42381
42382         canonicalize, canonicalize-lgpl: honor // if distinct from /
42383         * modules/canonicalize (Files): Add double-slash-root.m4.
42384         * modules/canonicalize-lgpl (Files): Likewise.
42385         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
42386         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
42387         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
42388         fallback definition.
42389         (canonicalize_filename_mode): Use it to protect //.
42390         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
42391         (__realpath): Likewise.
42392         * tests/test-canonicalize.c (main): Test this.
42393         * tests/test-canonicalize-lgpl.c (main): Likewise.
42394         * modules/canonicalize-tests (Depends-on): Add same-inode.
42395         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
42396
42397         canonicalize-lgpl: fix glibc bug with trailing slash
42398         * m4/canonicalize-lgpl.m4: Move contents...
42399         * m4/canonicalize.m4: ...here.
42400         (gl_CANONICALIZE_LGPL): Factor realpath check...
42401         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
42402         glibc 2.3.5 bug, fixed 2005-04-27.
42403         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
42404         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
42405         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
42406         * modules/canonicalize-lgpl (Files): Manage file rename.
42407         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
42408         * modules/stdlib (Makefile.am): Substitute witness.
42409         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
42410         is needed.
42411         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
42412         replacement is required.
42413         * lib/canonicalize.c (canonicalize_file_name): Likewise.
42414         * doc/glibc-functions/canonicalize_file_name.texi
42415         (canonicalize_file_name): Document this.
42416         * doc/posix-functions/realpath.texi (realpath): Likewise.
42417
42418         canonicalize-lgpl: reject non-directory with trailing slash
42419         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
42420         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
42421         catches failures in glibc 2.3.5.
42422         * tests/test-canonicalize.c (main): Likewise.
42423
42424         canonicalize-lgpl: use native realpath if it works
42425         * lib/canonicalize-lgpl.c (realpath): Guard with
42426         FUNC_REALPATH_WORKS.
42427         * lib/stdlib.in.h (realpath): Make declaration optional based on
42428         HAVE_REALPATH.
42429         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
42430         native realpath works.
42431         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
42432         * modules/stdlib (Makefile.am): Substitute witness.
42433
42434         canonicalize, canonicalize-lgpl: use <stdlib.h>
42435         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
42436         (Include): Mention <stdlib.h>.
42437         (configure.ac): Mention functions we provide.
42438         * modules/canonicalize (configure.ac): Likewise.
42439         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
42440         realpath if canonicalize_file_name is missing.
42441         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
42442         * modules/stdlib (Makefile.am): Substitute witnesses.
42443         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
42444         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
42445         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
42446         * NEWS: Document this.
42447         * doc/glibc-functions/canonicalize_file_name.texi
42448         (canonicalize_file_name): Likewise.
42449         * doc/posix-functions/realpath.texi (realpath): Likewise.
42450         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
42451
42452         test-canonicalize: consolidate into single C program
42453         * tests/test-canonicalize.sh: Delete; move setup into...
42454         * tests/test-canonicalize.c (main): ...the program, making it
42455         easier to run in debugger.  Add some tests.
42456         * modules/canonicalize-tests (Files): Remove unused file.
42457         (Depends-on): Add progname.
42458         (configure.ac, Makefile.am): Simplify.
42459
42460         test-canonicalize-lgpl: consolidate into single C program
42461         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
42462         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
42463         easier to run in debugger.  Add some tests.
42464         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
42465         (configure.ac, Makefile.am): Simplify.
42466
42467         canonicalize: avoid resolvepath
42468         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
42469         unnecessary checks.
42470         * lib/canonicalize.c (includes): Simplify.
42471         (canonicalize_file_name): Drop resolvepath implementation.
42472         * modules/canonicalize (Depends-on): Drop filenamecat.
42473
42474         canonicalize: don't lose errno
42475         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
42476         over calls to free.
42477
42478         canonicalize: simplify errno handling
42479         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
42480         assignment.
42481
42482         canonicalize, canonicalize-lgpl: update module dependencies
42483         * modules/canonicalize (Depends-on): Add extensions, lstat,
42484         pathmax, stdlib.
42485         (Files): Drop pathmax.h.
42486         (configure.ac): Adjust macro name.
42487         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
42488         lstat, stdlib, sys_stat.
42489         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
42490         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
42491         extensions.
42492         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
42493         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
42494         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
42495         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
42496         declaration, if available.
42497         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
42498         we can rely on the readlink module.
42499         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
42500         (includes): Use <unistd.h> unconditionally.
42501
42502 2009-09-17  Eric Blake  <ebb9@byu.net>
42503
42504         maint: make Include sections of modules consistent
42505         * modules/alloca: Use only header name; no need to list #include.
42506         * modules/alloca-opt: Likewise.
42507         * modules/arpa_inet: Likewise.
42508         * modules/canon-host: Likewise.
42509         * modules/configmake: Likewise.
42510         * modules/dirent: Likewise.
42511         * modules/eealloc: Likewise.
42512         * modules/environ: Likewise.
42513         * modules/fchdir: Likewise.
42514         * modules/fcntl: Likewise.
42515         * modules/fcntl-h: Likewise.
42516         * modules/gethrxtime: Likewise.
42517         * modules/gettime: Likewise.
42518         * modules/ignore-value: Likewise.
42519         * modules/inet_ntop: Likewise.
42520         * modules/inet_pton: Likewise.
42521         * modules/inttypes: Likewise.
42522         * modules/isnand-nolibm: Likewise.
42523         * modules/isnanf-nolibm: Likewise.
42524         * modules/mbchar: Likewise.
42525         * modules/mbfile: Likewise.
42526         * modules/mbiter: Likewise.
42527         * modules/mbuiter: Likewise.
42528         * modules/netdb: Likewise.
42529         * modules/netinet_in: Likewise.
42530         * modules/nproc: Likewise.
42531         * modules/pagealign_alloc: Likewise.
42532         * modules/poll: Likewise.
42533         * modules/printf-frexp: Likewise.
42534         * modules/pthread: Likewise.
42535         * modules/putenv: Likewise.
42536         * modules/random_r: Likewise.
42537         * modules/relocatable-prog: Likewise.
42538         * modules/search: Likewise.
42539         * modules/select: Likewise.
42540         * modules/selinux-h: Likewise.
42541         * modules/settime: Likewise.
42542         * modules/signal: Likewise.
42543         * modules/size_max: Likewise.
42544         * modules/socklen: Likewise.
42545         * modules/ssize_t: Likewise.
42546         * modules/stdarg: Likewise.
42547         * modules/stdbool: Likewise.
42548         * modules/stddef: Likewise.
42549         * modules/stdint: Likewise.
42550         * modules/stdio: Likewise.
42551         * modules/stdlib: Likewise.
42552         * modules/string: Likewise.
42553         * modules/strings: Likewise.
42554         * modules/sys_file: Likewise.
42555         * modules/sys_ioctl: Likewise.
42556         * modules/sys_select: Likewise.
42557         * modules/sys_socket: Likewise.
42558         * modules/sys_stat: Likewise.
42559         * modules/sys_time: Likewise.
42560         * modules/sys_times: Likewise.
42561         * modules/sys_utsname: Likewise.
42562         * modules/sys_wait: Likewise.
42563         * modules/sysexits: Likewise.
42564         * modules/time: Likewise.
42565         * modules/times: Likewise.
42566         * modules/tmpfile: Likewise.
42567         * modules/trim: Likewise.
42568         * modules/unistd: Likewise.
42569         * modules/wchar: Likewise.
42570         * modules/wctype: Likewise.
42571
42572 2009-09-17  Bruno Haible  <bruno@clisp.org>
42573
42574         Make getdate.y compile on QNX and NetBSD 5 / i386.
42575         * m4/getdate.m4 (gl_GETDATE): Conditionally define
42576         TIME_T_FITS_IN_LONG_INT.
42577         * lib/getdate.y (long_time_t): New type.
42578         (relative_time): Change type of 'seconds' field to long_time_t.
42579         (get_date): Update types of local variables. Check against overflow
42580         during conversion from long_time_t to time_t.
42581         Reported by Matt Kraai <kraai@ftbfs.org>
42582         and Hasso Tepper <hasso@netbsd.org>.
42583
42584 2009-09-17  Bruno Haible  <bruno@clisp.org>
42585
42586         * modules/COPYING: Update copyright years.
42587         * modules/README: Likeiwse.
42588         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
42589         Reported by Ian Beckwith <ianb@erislabs.net>.
42590
42591 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42592
42593         * users.txt: Update references for gnuit package.
42594
42595 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42596
42597         * m4/getdelim.m4: Fix typo in copyright line.
42598
42599 2009-09-17  Bruno Haible  <bruno@clisp.org>
42600
42601         * lib/atoll.c: Use the standard header with GPL copyright.
42602         * lib/argz.in.h: Likewise.
42603         * lib/glob.c: Likewise.
42604         * lib/glob-libc.h: Likewise.
42605         * lib/random_r.c: Likewise.
42606         * lib/siglist.h: Likewise.
42607         * lib/strsignal.c: Likewise.
42608         Reported by Ian Beckwith <ianb@erislabs.net>.
42609
42610 2009-09-17  Eric Blake  <ebb9@byu.net>
42611
42612         rmdir: ensure correct dependency order
42613         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
42614
42615 2009-09-17  Bruno Haible  <bruno@clisp.org>
42616
42617         Disable assertion that fails on NetBSD 5 / i386.
42618         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
42619         Reported by Sam Steingold <sds@gnu.org>
42620         and Hasso Tepper <hasso@netbsd.org>.
42621
42622 2009-09-16  Eric Blake  <ebb9@byu.net>
42623
42624         unlinkdir: port to mingw
42625         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
42626         on which no one can unlink a directory.
42627
42628         stdlib: sort witness names
42629         * modules/stdlib (Makefile.am): Sort replacements.
42630         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42631         * lib/stdlib.in.h: Likewise.
42632
42633         parse-duration-tests: avoid link failure
42634         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
42635         LIBINTL.
42636         Reported by Tom G. Christensen.
42637
42638         openat-tests: ensure unlinkat behaves like rmdir
42639         * tests/test-rmdir.c (main): Factor guts...
42640         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
42641         * modules/rmdir-tests (Files): Ship new file.
42642         * modules/openat-tests: New test.
42643         * tests/test-unlinkat.c: Likewise.
42644
42645         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
42646         * modules/rmdir-errno (Status, Notice): Now obsolete.
42647
42648         rmdir: work around cygwin 1.5.x and mingw bugs
42649         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
42650         * lib/rmdir.c (rmdir): Work around it.
42651         * modules/rmdir (Status, Notice): No longer obsolete.
42652         (Files): Add dos.m4.
42653         (Depends-on): Add unistd.
42654         (configure.ac): Set witnesses.
42655         (License): Relax to LGPLv2+.
42656         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
42657         * modules/unistd (Makefile.am): Substitute witnesses.
42658         * lib/unistd.in.h (rmdir): Declare replacement.
42659         * doc/posix-functions/rmdir.texi (rmdir): Document this.
42660         * modules/rmdir-tests: New tests.
42661         * tests/test-rmdir.c: Likewise.
42662
42663 2009-09-15  Eric Blake  <ebb9@byu.net>
42664
42665         fchdir: improve use of replacement functions
42666         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
42667         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
42668         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
42669         REPLACE_CLOSEDIR.
42670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
42671         * modules/sys_stat (Makefile.am): Substitute correct witness.
42672         * modules/dirent (Makefile.am): Likewise.
42673         * modules/unistd (Makefile.am): Likewise.
42674         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
42675         * lib/unistd.in.h (dup): Likewise.
42676         * lib/sys_stat.in.h (fstat): Likewise.
42677
42678         maint: ignore gnulib-tool temp files
42679         * .gitignore: Ignore files created during gnulib-tool --test.
42680
42681 2009-09-13  Jim Meyering  <meyering@redhat.com>
42682
42683         posixtm: don't reject a time that specify "60" as the number of seconds
42684         * lib/posixtm.c (posixtime): The code to reject invalid dates
42685         would also reject a time specified with the .60 suffix.
42686         But POSIX allows that, in order to accommodate leap seconds.
42687         So don't reject it.
42688         (main): Adjust tests accordingly.
42689         * modules/posixtm (Depends-on): Add stpcpy.
42690
42691 2009-09-11  Jim Meyering  <meyering@redhat.com>
42692
42693         announce-gen: include [$release_type] in emitted Subject:
42694         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
42695         e.g., [stable] in the emitted Subject: line.
42696
42697 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42698
42699         Remove obsolete macros from several modules.
42700         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
42701         obsolete Autoconf macros with their modern counterparts.
42702         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
42703         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
42704         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
42705         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42706         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
42707         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42708         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42709         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42710         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
42711         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
42712         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
42713         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
42714         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
42715         * m4/sockets.m4 (gl_SOCKETS): Likewise.
42716         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
42717         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
42718         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
42719         * m4/time_r.m4 (gl_TIME_R): Likewise.
42720         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
42721         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
42722         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
42723
42724         Fix copyright header in build-aux scripts.
42725         * build-aux/git-version-gen: Fix copyright header to match GPLv3
42726         recommendation.
42727         * build-aux/ncftpput-ftp: Likewise.
42728         * build-aux/update-copyright: Likewise.
42729
42730 2009-09-09  Eric Blake  <ebb9@byu.net>
42731
42732         test-link: allow Linux choice of errno
42733         * tests/test-link.c (main): Relax test for alternate error.
42734
42735         strndup: fix improper m4 caching
42736         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
42737         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
42738         (gl_PREREQ_STRNDUP): Delete.
42739         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
42740         * modules/string (Makefile.am): Substitute it.
42741         * lib/string.in.h (strndup): Modernize prototype.
42742
42743         getcwd: port to mingw
42744         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
42745         different from the POSIX assumptions made throughout the getcwd
42746         module; fortunately, the mingw getcwd does not need replacement.
42747         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
42748         * modules/getcwd-tests: New test.
42749         * tests/test-getcwd.c: Likewise.
42750
42751         link: fix platform bugs
42752         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
42753         * lib/link.c (link): Work around them.  Fix related mingw bug.
42754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
42755         * modules/unistd (Makefile.am): Substitute it.
42756         * lib/unistd.in.h (link): Declare replacement.
42757         * doc/posix-functions/link.texi (link): Document this.
42758         * modules/link (Depends-on): Add strdup-posix, sys_stat.
42759
42760         test-link: consolidate into single C program, test more cases
42761         * tests/test-link.sh: Delete.
42762         * tests/test-link.c: Test more error conditions.  Exposes bugs on
42763         at least Cygwin and Solaris.
42764         * modules/link-tests (Files): Remove unused file.
42765         (Depends-on): Add errno, sys_stat.
42766         (Makefile.am): Simplify.
42767
42768 2009-09-08  Bruno Haible  <bruno@clisp.org>
42769
42770         Work around towlower, towupper bug on mingw.
42771         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
42772         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
42773         * doc/posix-functions/towlower.texi: Mention the mingw bug.
42774         * doc/posix-functions/towupper.texi: Likewise.
42775         Reported by Eric Blake.
42776
42777 2009-09-08  Jim Meyering  <meyering@redhat.com>
42778
42779         build: don't try to run autoheader if we don't use it
42780         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
42781         is not used in configure.ac.
42782
42783 2009-09-08  Eric Blake  <ebb9@byu.net>
42784
42785         euidaccess: fix compilation error
42786         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
42787
42788         rawmemchr: relax license
42789         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
42790         okay.
42791         Reported by Jim Meyering.
42792
42793         mkfifoat: new module
42794         * modules/mkfifoat: New file.
42795         * lib/mkfifoat.c: Likewise.
42796         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
42797         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42798         * modules/sys_stat (Makefile.am): Use them.
42799         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
42800         * MODULES.html.sh (File system functions): Mention module.
42801         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
42802         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
42803         * modules/mkfifoat-tests: New test.
42804         * tests/test-mkfifoat.c: Likewise.
42805
42806         strchrnul: relax license
42807         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
42808         okay.
42809         Reported by Jim Meyering.
42810
42811 2009-09-08  Eric Blake  <ebb9@byu.net>
42812
42813         fstatat: fix compilation on Solaris
42814         * lib/fstatat.c (includes): Add fcntl.h.
42815         Reported by Pádraig Brady.
42816
42817 2009-09-07  Eric Blake  <ebb9@byu.net>
42818
42819         rename: modernize replacement
42820         * modules/rename (Depends-on): Add stdio.
42821         (configure.ac): Declare witness.
42822         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
42823         stdio take care of replacement.
42824         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
42825         * modules/stdio (Makefile.am): Substitute them.
42826         * lib/stdio.in.h (rename): Declare replacement.
42827         * lib/rename.c (includes): Allow cross-compilation to non-windows
42828         machines.
42829         * doc/posix-functions/rename.texi (rename): Improve
42830         documentation.
42831
42832         stdio: sort witness names
42833         * modules/stdio (Makefile.am): Sort replacements.
42834         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42835         * lib/stdio.in.h: Likewise.
42836
42837         getcwd: minor cleanups
42838         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
42839         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
42840
42841         openat: provide more convenience names
42842         * modules/faccessat (configure.ac): Add C witness.
42843         * lib/unistd.in.h (readlinkat): Fix typo.
42844         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
42845         convenience wrappers.
42846         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
42847         wrappers in syntax checks.
42848
42849 2009-09-06  Eric Blake  <ebb9@byu.net>
42850
42851         doc: fix comments in recent patches
42852         * lib/faccessat.c: Mention correct function.
42853         * lib/fchmodat.c: Likewise.
42854         * lib/fchownat.c: Likewise.
42855         * lib/symlinkat.c: Likewise.
42856         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
42857         constants.
42858
42859         faccessat, symlinkat: continue cleanup of previous patch
42860         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
42861         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42862         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
42863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
42864         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
42865         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
42866         set.
42867
42868 2009-09-06  Bruno Haible  <bruno@clisp.org>
42869
42870         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
42871         (fstatat): Declare if GNULIB_FSTATAT is set.
42872         (mkdirat): Declare if GNULIB_MKDIRAT is set.
42873         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
42874         (unlinkat): Declare if GNULIB_UNLINKAT is set.
42875         * modules/fcntl-h (Files): Remove m4/openat.m4.
42876         * modules/sys_stat (Files): Remove m4/openat.m4.
42877         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
42878         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
42879         * modules/unistd (Files): Remove m4/openat.m4.
42880         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
42881         GNULIB_OPENAT.
42882         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
42883         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
42884         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
42885         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
42886         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
42887         gl_OPENAT_DEFAULTS.
42888         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
42889         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
42890         Don't require gl_OPENAT_DEFAULTS.
42891         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
42892         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
42893         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
42894         (gl_OPENAT_DEFAULTS): Remove macro.
42895
42896 2009-09-06  Bruno Haible  <bruno@clisp.org>
42897
42898         * modules/openat (configure.ac): Remove unneeded witness.
42899
42900 2009-09-06  Bruno Haible  <bruno@clisp.org>
42901
42902         Set errno to ENOSYS when a function is entirely unsupported.
42903         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
42904         EOPNOTSUPP.
42905         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42906         * modules/chown (Depends-on): Remove errno.
42907
42908 2009-09-06  Bruno Haible  <bruno@clisp.org>
42909
42910         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
42911
42912 2009-09-06  Bruno Haible  <bruno@clisp.org>
42913
42914         * lib/sys_stat.in.h: Fix preprocessor command indentation.
42915
42916 2009-09-06  Ben Pfaff  <blp@gnu.org>
42917             Bruno Haible  <bruno@clisp.org>
42918
42919         Work around a glibc bug in strtok_r.
42920         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
42921         Undefine if UNDEFINE_STRTOK_R is set.
42922         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
42923         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42924         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
42925         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
42926         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
42927         UNDEFINE_STRTOK_R.
42928         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
42929
42930 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
42931
42932         exclude: minor fix
42933         * lib/exclude.c: Include wctype.h
42934
42935 2009-09-06  Akim Demaille  <demaille@gostai.com>
42936
42937         bootstrap: improve error message
42938         * build-aux/bootstrap (find_tool): Upon failure, report the list
42939         of candidates.
42940         Honor the initial value of the envvar.
42941
42942 2009-09-05  Eric Blake  <ebb9@byu.net>
42943
42944         symlinkat: new module
42945         * modules/symlinkat: New file.
42946         * lib/symlinkat.c: Likewise.
42947         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
42948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42949         * modules/unistd (Makefile.am): Use them.
42950         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
42951         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
42952         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
42953         * MODULES.html.sh (File system functions): Mention module.
42954         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42955         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42956         * modules/symlinkat-tests: New test.
42957         * tests/test-symlinkat.c: Likewise.
42958
42959         test-openat-safer: add more checks
42960         * tests/test-openat-safer.c (main): Check more code paths.
42961
42962 2009-09-05  Jim Meyering  <meyering@redhat.com>
42963
42964         syntax-check: detect unnecessary inclusion of openat.h
42965         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
42966
42967 2009-09-05  Bruno Haible  <bruno@clisp.org>
42968
42969         Support towlower, towupper.
42970         * doc/posix-functions/towlower.texi: Mention module wctype.
42971         * doc/posix-functions/towupper.texi: Likewise.
42972         * lib/wctype.in.h (towlower, towupper): New functions.
42973         * tests/test-wctype.c: Include stdio.h, stdlib.h.
42974         (ASSERT): New macro.
42975         (e): New variable.
42976         (main): Test also towlower, towupper. Test WEOF argument.
42977         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42978
42979 2009-09-05  Bruno Haible  <bruno@clisp.org>
42980
42981         Fix conversion behaviour when the input is invalid.
42982         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
42983         mark occurring in first pass of indirect conversion.
42984         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
42985         input.
42986         Found by clang's static analyzer.
42987
42988 2009-09-05  Bruno Haible  <bruno@clisp.org>
42989
42990         * tests/test-striconveh.c (main): Test indirect conversion on platforms
42991         where direct conversion is possible.
42992
42993 2009-09-04  Eric Blake  <ebb9@byu.net>
42994
42995         openat: fail with ENOENT on empty name
42996         * lib/openat-proc.c (openat_proc_name): Special-case the empty
42997         buffer.
42998
42999         link-follow: fix logic bug in prior patch
43000         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
43001         reversed sense of yes and no in prior patch.  Avoid confusing
43002         compilation failure with desired semantics.
43003
43004         link-follow: accommodate mingw and cross-compilation
43005         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
43006         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
43007         cross-compilation results to -1, to make linkat easier to
43008         implement when cross-compiling.  Trivially support mingw.
43009         * modules/link-follow (configure.ac): Call new name.
43010         * NEWS: Mention this.
43011
43012 2009-09-03  Eric Blake  <ebb9@byu.net>
43013
43014         faccessat: compile replacement
43015         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
43016         needed.
43017
43018         fts: fix compilation error
43019         * lib/fts.c (includes): Re-add "openat.h", for
43020         openat_needs_fchdir.
43021
43022         faccessat: new module
43023         * modules/faccessat: New file.
43024         * lib/faccessat.c: Likewise.
43025         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
43026         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43027         * modules/unistd (Makefile.am): Use it.
43028         * lib/unistd.in.h (faccessat): Declare it.
43029         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
43030         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
43031         * MODULES.html.sh (File system functions): Mention it.
43032         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
43033         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
43034
43035         euidaccess: prefer POSIX over non-standard implementation
43036         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
43037         * lib/euidaccess.c (euidaccess): Use it if available.
43038
43039         openat: make template easier to use
43040         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
43041         AT_FUNC_F2 to be undefined.
43042         (VALIDATE_FLAG): New macro; use it to reject bad flags.
43043         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
43044         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
43045         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
43046         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
43047         Likewise.
43048         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
43049         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
43050         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
43051         Likewise.
43052
43053         openat: declare in POSIX headers
43054         * NEWS: Mention this.
43055         * modules/openat (configure.ac): Declare witnesses.
43056         (Depends-on): Add fcntl-h, sys_stat, unistd.
43057         (Include): Mention correct headers.
43058         * modules/fcntl-h (Depends-on): Add link-warning.
43059         (Files): Add openat.m4.
43060         (Makefile.am): Substitute witnesses.
43061         * modules/sys_stat (Files, Makefile.am): Likewise.
43062         * modules/unistd (Files, Makefile.am): Likewise.
43063         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
43064         (gl_OPENAT_DEFAULTS): New macro.
43065         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
43066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
43067         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
43068         (SYS_STAT_H): Remove unused variable.
43069         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
43070         * lib/fcntl--.h (includes): Remove unneeded header.
43071         * lib/openat-safer.c (includes): Likewise.
43072         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
43073         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
43074         appropriate headers.
43075         (__OPENAT_PREFIX): Delete.
43076         * lib/fcntl.in.h (openat): Provide declaration.
43077         (AT_FDCWD): Fix Solaris bug.
43078         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
43079         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
43080         * lib/fchmodat.c (includes):  Adjust to find declaration.
43081         * lib/fchownat.c (includes): Likewise.
43082         * lib/mkdirat.c (includes): Likewise.
43083         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
43084         still visible.
43085
43086 2009-09-02  Eric Blake  <ebb9@byu.net>
43087
43088         errno: use consistently
43089         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
43090         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
43091         * lib/canonicalize.c (ELOOP): Likewise.
43092         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
43093         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
43094         * lib/lchown.c (EOPNOTSUPP): Likewise.
43095         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
43096         * lib/savewd.c (ESTALE): Likewise.
43097         * lib/settime.c (ENOSYS): Likewise.
43098         * lib/utimens.c (ENOSYS): Likewise.
43099         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
43100         * lib/chdir-safer.c (ELOOP): Likewise.
43101         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
43102         * modules/c-stack (Depends-on): Add errno.
43103         * modules/canonicalize (Depends-on): Likewise.
43104         * modules/chdir-safer (Depends-on): Likewise.
43105         * modules/fdopendir (Depends-on): Likewise.
43106         * modules/inet_ntop (Depends-on): Likewise.
43107         * modules/inet_pton (Depends-on): Likewise.
43108         * modules/lchown (Depends-on): Likewise.
43109         * modules/openat (Depends-on): Likewise.
43110         * modules/savewd (Depends-on): Likewise.
43111         * modules/settime (Depends-on): Likewise.
43112         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
43113
43114         fts: avoid leaking fds
43115         * modules/fts (Depends-on): Add cloexec.
43116         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
43117         flag.
43118
43119         fts: make directory fds more robust
43120         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
43121         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
43122
43123         backupfile, chdir-long, fts, savedir: make safer
43124         * lib/backupfile.c (includes): Use "dirent--.h", since
43125         numbered_backup can write to stderr during readdir.
43126         * lib/savedir.c (includes): Likewise.
43127         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
43128         emulation can write to stderr on failure.
43129         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
43130         * lib/getcwd.c: Document why opendir_safer is unused.
43131         * lib/glob.c: Likewise.
43132         * lib/scandir.c: Likewise.
43133         * lib/openat-proc.c: Likewise, for open_safer.
43134         * modules/backupfile (Depends-on): Add dirent-safer.
43135         * modules/savedir (Depends-on): Likewise.
43136         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
43137         * modules/chdir-long (Depends-on): Add openat-safer.
43138
43139         openat-safer: new module
43140         * modules/openat-safer: New file.
43141         * lib/openat-safer.c: Likewise.
43142         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
43143         * lib/fcntl-safer.h (openat_safer): Declare.
43144         * lib/fcntl--.h (openat): Override.
43145         * MODULES.html.sh (File descriptor based I/O): Mention it.
43146         * lib/openat.h: Add double-inclusion guards.
43147         * lib/openat.c (includes): Only include "fcntl-safer.h", not
43148         "fcntl--.h", so we can implement openat.
43149         * modules/openat-safer-tests: New test.
43150         * tests/test-openat-safer.c: New file.
43151
43152         dirent-safer: new module
43153         * modules/dirent-safer: New file.
43154         * lib/dirent--.h: Likewise.
43155         * lib/dirent-safer.h: Likewise.
43156         * lib/opendir-safer.c: Likewise.
43157         * m4/dirent-safer.m4: Likewise.
43158         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
43159         * modules/dirent-safer-tests: New test.
43160         * tests/test-dirent-safer.c: New file.
43161         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
43162
43163         fdopendir: optimize on mingw
43164         * lib/unistd.in.h (_gl_directory_name): New prototype.
43165         * lib/fchdir.c (_gl_directory_name): Implement it.
43166         (fchdir): Use it to simplify implementation.
43167         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
43168         fchdir, when available, to avoid calling [f]chdir().
43169
43170         fdopendir: split into its own module
43171         * lib/openat.c (fdopendir): Move...
43172         * lib/fdopendir.c: ...into new file.
43173         * modules/fdopendir: New module.
43174         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
43175         * modules/openat (Depends-on): Add fdopendir.
43176         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
43177         fdopendir here.
43178         * modules/savedir (Depends-on): Only need fdopendir, not full
43179         openat.
43180         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
43181         * lib/openat.h (fdopendir): Drop prototype.
43182         * lib/dirent.in.h (fdopendir): Provide prototype.
43183         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
43184         * modules/dirent (Makefile.am): Substitute them.
43185         * MODULES.html.sh (File system functions): Mention it.
43186         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
43187         * modules/fdopendir-tests: New file.
43188         * tests/test-fdopendir.c: Likewise.
43189
43190         fchdir: use more consistent macro convention
43191         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
43192         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
43193         REPLACE_FCHDIR, rather than relying on config.h macros.
43194         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
43195         inside a single make-time REPLACE_FCHDIR block, rather than using
43196         the config.h FCHDIR_REPLACEMENT.
43197         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
43198         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
43199         Manage fstat replacement.
43200         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
43201         REPLACE_FCHDIR.
43202         * modules/sys_stat (Files): Add m4/unistd_h.m4.
43203         (Makefile.am): Substitute REPLACE_FCHDIR.
43204         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
43205         FCHDIR_REPLACEMENT.
43206         * lib/dup-safer.c (dup_safer): Likewise.
43207         * lib/dup2.c (rpl_dup2): Likewise.
43208         * lib/dup3.c (rpl_dup3): Likewise.
43209         * lib/open.c (rpl_open): Likewise.
43210
43211         fchdir: simplify error handling, and support dup3
43212         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
43213         stdbool, malloc-posix, realloc-posix.
43214         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
43215         (ensure_dirs_slot): Return false on allocation failure.
43216         (rpl_dup2): Delete.
43217         (_gl_register_dup): New function.
43218         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
43219         (_gl_register_fd): Close fd on allocation failure.
43220         * lib/fcntl.in.h (_gl_register_fd): Update signature.
43221         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
43222         prototype.
43223         (rpl_dup2_fchdir): Delete prototype.
43224         * lib/open.c (open): Update caller.
43225         * lib/dup2.c (dup2): Track fchdir metadata.
43226         * lib/dup3.c (dup3): Likewise.
43227         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
43228         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
43229
43230 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43231
43232         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
43233         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
43234         don't pass arguments to AC_OUTPUT.
43235
43236 2009-09-02  Bruno Haible  <bruno@clisp.org>
43237
43238         * modules/mkdtemp (License): Relicense under LGPLv2+.
43239         Reported by Paolo Bonzini.
43240
43241 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43242
43243         Replace uses of obsolete autoconf macros in Jim's modules.
43244         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
43245         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
43246         can evoke a warning from autoconf when run with -Wobsolete
43247         enabled.  They were declared obsolete for good reasons (see
43248         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
43249         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
43250         should not continue using the deprecated macros.
43251         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
43252         obsolete Autoconf macros with modern counterparts.
43253         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
43254         * m4/dos.m4 (gl_AC_DOS): Likewise.
43255         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
43256         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
43257         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
43258         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
43259         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
43260         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
43261         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
43262         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
43263         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
43264         Likewise.
43265         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
43266         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
43267         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
43268         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
43269         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
43270         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
43271
43272 2009-09-01  Eric Blake  <ebb9@byu.net>
43273
43274         fchdir: fix off-by-one bug in previous patch
43275         * lib/fchdir.c (rpl_fstat): Use correct bounds.
43276         (_gl_unregister_fd): Delete useless if.
43277
43278 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
43279
43280         maint.mk: sort the list of syntax-check rules
43281         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
43282         easier to get a sense of progress when the rules are run sequentially
43283         and take a long time.
43284
43285 2009-09-01  Simon Josefsson  <simon@josefsson.org>
43286
43287         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
43288         * modules/netinet_in: Likewise.
43289         * modules/sys_file: Likewise.
43290         * modules/sys_ioctl: Likewise.
43291         * modules/sys_select: Likewise.
43292         * modules/sys_socket: Likewise.
43293         * modules/sys_stat: Likewise.
43294         * modules/sys_time: Likewise.
43295         * modules/sys_times: Likewise.
43296         * modules/sys_utsname: Likewise.
43297         * modules/sys_wait: Likewise.
43298
43299 2009-09-01  Jim Meyering  <meyering@redhat.com>
43300
43301         fts: help ensure that return values are not ignored
43302         * lib/fts_.h (__GNUC_PREREQ): Define.
43303         (__attribute_warn_unused_result__): Define.
43304         (fts_children, fts_close, fts_open, fts_read): Declare with
43305         __attribute_warn_unused_result__.
43306
43307         fts: fts_close now fails also when closing a dir file descriptor fails
43308         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
43309         and propagate to caller, along with errno.
43310
43311         announce-gen: correct formatting in --help output
43312         * build-aux/announce-gen (usage): Move the one-line description in
43313         --help output "up", to where it belongs, just after Usage:.
43314
43315 2009-08-31  Eric Blake  <ebb9@byu.net>
43316
43317         fchdir: port to mingw
43318         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
43319         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
43320         opened, then use a substitute.
43321         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
43322         replacement.
43323         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
43324         (_gl_register_fd): No need to check stat if open already filters
43325         all directories.
43326         (fchdir): Fix error condition to match POSIX.
43327         * modules/fchdir (Depends-on): Add sys_stat.
43328         * doc/posix-functions/open.texi (open): Document the limitation.
43329         * modules/fchdir-tests: New file.
43330         * tests/test-fchdir.c: Likewise.
43331
43332         canonicalize: allow cross-testing from cygwin to mingw
43333         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
43334         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
43335         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
43336         Likewise.
43337         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
43338         target does not support symlinks.
43339         * tests/test-canonicalize-lgpl.sh: Likewise.
43340
43341         chown: avoid compilation warning on mingw
43342         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
43343         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
43344         mingw.
43345         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
43346         * modules/chown (Depends-on): Add errno.
43347
43348 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
43349
43350         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
43351         command.
43352
43353 2009-08-31  Jim Meyering  <meyering@redhat.com>
43354
43355         canonicalize: remove useless initialization
43356         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
43357         initialization of local, "end".
43358
43359 2009-08-30  Bruno Haible  <bruno@clisp.org>
43360
43361         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
43362         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
43363         ENOSYS.
43364
43365 2009-08-30  Bruno Haible  <bruno@clisp.org>
43366
43367         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
43368         /usr/xpg4/bin/tr when it exists.
43369         * tests/test-pipe-filter-gi1.sh: Likewise.
43370
43371 2009-08-30  Bruno Haible  <bruno@clisp.org>
43372
43373         Work around deficient /usr/bin/id program on Solaris.
43374         * tests/test-file-has-acl.sh (ID): New variable.
43375         * tests/test-set-mode-acl.sh (ID): Likewise.
43376         * tests/test-copy-acl.sh (ID): Likewise.
43377         * tests/test-copy-file.sh (ID): Likewise.
43378
43379 2009-08-30  Bruno Haible  <bruno@clisp.org>
43380
43381         New module 'xstriconveh'.
43382         * lib/xstriconveh.h: New file.
43383         * lib/xstriconveh.c: New file.
43384         * modules/xstriconveh: New file.
43385
43386 2009-08-30  Bruno Haible  <bruno@clisp.org>
43387
43388         Make it easier to use mem_cd_iconveh.
43389         * lib/striconveh.h (iconveh_t): New type.
43390         (iconveh_open, iconveh_close): New declarations.
43391         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
43392         with a single 'const iconveh_t *' argument.
43393         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
43394         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
43395         with a single 'const iconveh_t *' argument.
43396         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
43397         * tests/test-striconveh.c (main): Update.
43398         * NEWS: Mention the change.
43399
43400 2009-08-30  Bruno Haible  <bruno@clisp.org>
43401
43402         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
43403         problem.
43404
43405 2009-08-30  Bruno Haible  <bruno@clisp.org>
43406
43407         Work around iconv_open problem on Solaris.
43408         * lib/iconv_open-solaris.gperf: New file.
43409         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
43410         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
43411         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
43412         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
43413         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
43414         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
43415
43416 2009-08-29  Jim Meyering  <meyering@redhat.com>
43417
43418         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
43419         * top/maint.mk (cvs-check): Remove target; it was just an alias
43420         to the better-named vc-diff-check.
43421         (maintainer-distcheck): Remove rule.  It was used only from
43422         the (alpha/beta/major) target, and all of its commands but one
43423         were coreutils-specific.
43424         (vc-dist): Remove rule.
43425         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
43426         Run vc-diff-check, not vc-dist.
43427         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
43428
43429 2009-08-27  Bruno Haible  <bruno@clisp.org>
43430
43431         * tests/test-bitrotate.c (main): Remove test that uses a shift count
43432         of 0.
43433
43434 2009-08-27  Bruno Haible  <bruno@clisp.org>
43435
43436         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
43437         compilers.
43438         * doc/func.texi: Document the SunPRO C bug.
43439
43440 2009-08-27  Bruno Haible  <bruno@clisp.org>
43441
43442         Fix link error on Solaris.
43443         * tests/test-parse-duration.c (xstrdup): Remove function.
43444
43445 2009-08-26  Pádraig Brady  <P@draigbrady.com>
43446
43447         ignore-value: handle pointer types, too
43448         * lib/ignore-value.h (__attribute__): Remove definition.
43449         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
43450         of a more concise and more-often effective "(void) i" statement.
43451         (ignore_ptr): New function to suppress warnings from functions that
43452         return pointers, and to make it explicit that one function doesn't
43453         handle all cases.
43454
43455 2009-08-25  Bruno Haible  <bruno@clisp.org>
43456
43457         dup2: work around a Linux bug.
43458         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
43459         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
43460         * doc/posix-functions/dup2.texi: Mention the Linux bug.
43461         Reported by Simon Josefsson.
43462
43463 2009-08-25  Jim Meyering  <meyering@redhat.com>
43464
43465         libguestfs uses gnulib
43466         * users.txt: Add libguestfs.
43467
43468 2009-08-24  Eric Blake  <ebb9@byu.net>
43469
43470         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
43471         * lib/pipe2.c (includes): Add binary-io.h.
43472         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
43473
43474 2009-08-24  Bruno Haible  <bruno@clisp.org>
43475
43476         Tolerate declared but missing accept4 syscall.
43477         * lib/accept4.c (accept4): Invoke original accept4 function first, if
43478         available.
43479         * lib/sys_socket.in.h (accept4): If the function is already present,
43480         override it.
43481         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
43482         * modules/accept4 (Makefile.am): Compile accept4.c always.
43483         Reported by Paolo Bonzini and Eric Blake.
43484
43485 2009-08-23  Bruno Haible  <bruno@clisp.org>
43486
43487         New module 'accept4'.
43488         * lib/sys_socket.in.h (accept4): New declaration.
43489         * lib/accept4.c: New file.
43490         * m4/accept4.m4: New file.
43491         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
43492         GNULIB_ACCEPT4, HAVE_ACCEPT4.
43493         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
43494         HAVE_ACCEPT4.
43495         * modules/accept4: New file.
43496         * doc/glibc-functions/accept4.texi: Mention the new module.
43497
43498 2009-08-24  Jim Meyering  <meyering@redhat.com>
43499
43500         progname: also set global program_invocation_name, when possible
43501         Before this change, a libtool-enabled program that calls glibc's
43502         error function would report the program name as
43503         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
43504         * modules/progname (configure.ac): Check for a declaration of
43505         program_invocation_name.
43506         * lib/progname.c:  Include <errno.h>.
43507         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
43508         Set program_invocation_name.
43509
43510 2009-08-23  Bruno Haible  <bruno@clisp.org>
43511
43512         * lib/dup3.c: Include <string.h>.
43513
43514 2009-08-23  Bruno Haible  <bruno@clisp.org>
43515
43516         * lib/dup3.c (dup3): Test only once whether the system actually exists.
43517         * lib/pipe2.c (pipe2): Likewise.
43518         Suggested by Eric Blake.
43519
43520 2009-08-23  Bruno Haible  <bruno@clisp.org>
43521
43522         Tolerate declared but missing dup3 syscall.
43523         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
43524         * lib/unistd.in.h (dup3): If the function is already present,
43525         override it.
43526         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
43527         * modules/dup3 (Makefile.am): Compile dup3.c always.
43528         Reported by Paolo Bonzini.
43529
43530 2009-08-23  Bruno Haible  <bruno@clisp.org>
43531
43532         Tolerate declared but missing pipe2 syscall.
43533         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
43534         available.
43535         * lib/unistd.in.h (pipe2): If the function is already present,
43536         override it.
43537         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
43538         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
43539         Reported by Paolo Bonzini.
43540
43541 2009-08-23  Bruno Haible  <bruno@clisp.org>
43542
43543         * lib/pipe2.c (pipe2): Move #ifs inside function.
43544
43545 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43546
43547         quotearg: document limitations of quote_these_too
43548         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
43549         those limitations are created.
43550         * lib/quotearg.h (set_char_quoting): Document that digits and
43551         letters that are special after backslash are not permitted.
43552         (quotearg_char): Cross-reference set_char_quoting documentation.
43553
43554 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
43555
43556         quotearg: implement custom_quoting_style
43557         * lib/quotearg.c: (struct quoting_options): Add left_quote and
43558         right_quote fields.
43559         (set_custom_quoting): New public function.
43560         (quotearg_buffer_restyled): Add left_quote and right_quote
43561         arguments, handle them very much like locale quoting, and update
43562         all uses.
43563         (quotearg_n_custom): New public function.
43564         (quotearg_n_custom_mem): New public function.
43565         (quotearg_custom): New public function.
43566         (quotearg_custom_mem): New public function.
43567         * lib/quotearg.h: Prototype and document new public functions.
43568         (enum quoting_style): For escape_quoting_style and
43569         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
43570         ignored even though they're otherwise like c_quoting_style.
43571         Add custom_quoting_style member and document with comparison to
43572         clocale_quoting_style.
43573         * tests/test-quotearg.c (custom_quotes): New array.
43574         (custom_results): New array.
43575         (main): Extend to test custom quoting.
43576
43577 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43578
43579         quotearg: fix right quote escaping when it's in quote_these_too
43580         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
43581         quote, be sure to prepend only one backslash.
43582         * tests/test-quotearg.c (use_quote_double_quotes): New function.
43583         (main): Test it.
43584
43585 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43586
43587         quotearg-tests: test escaping of embedded locale quotes
43588         * tests/test-quotearg.c (struct result_strings): Add member for
43589         new input.
43590         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
43591         (inputs): Add new input.
43592         (results_g): Add expected results.
43593         (flag_results): Likewise.
43594         (locale_results): Likewise.
43595         (compare_strings): Check those.
43596
43597 2009-08-23  Bruno Haible  <bruno@clisp.org>
43598
43599         Tests for module 'dup3'.
43600         * modules/dup3-tests: New file.
43601         * tests/test-dup3.c: New file.
43602
43603         New module 'dup3'.
43604         * lib/unistd.in.h (dup3): New declaration.
43605         * lib/dup3.c: New file.
43606         * m4/dup3.m4: New file.
43607         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
43608         HAVE_DUP3.
43609         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
43610         * modules/dup3: New file.
43611         * doc/glibc-functions/dup3.texi: Mention the new module.
43612
43613 2009-08-23  Bruno Haible  <bruno@clisp.org>
43614
43615         Tweak the dup2 test.
43616         * tests/test-dup2.c (main): Create the test file empty. Verify that an
43617         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
43618         the test file is still empty. Fix argument order of lseek.
43619
43620 2009-08-23  Bruno Haible  <bruno@clisp.org>
43621
43622         Avoid test link errors when the modules getopt-gnu, gettext are used.
43623         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
43624         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43625
43626 2009-08-23  Bruno Haible  <bruno@clisp.org>
43627
43628         Fix getdtablesize() on mingw.
43629         * lib/getdtablesize.c (getdtablesize): Implement differently.
43630         * lib/unistd.in.h (getdtablesize): Improve comment.
43631
43632 2009-08-23  Bruno Haible  <bruno@clisp.org>
43633
43634         New module 'mkostemp'.
43635         Based on Ulrich Drepper's 2007-08-10 change in glibc.
43636         * lib/stdlib.in.h (mksotemp): New declaration.
43637         * lib/mkostemp.c: New file, from glibc with modifications.
43638         * lib/tempname.h (GT_FILE): Remove outdated comment.
43639         (gen_tempname): Add flags argument.
43640         * lib/tempname.c (__GT_BIGFILE): Remove macro.
43641         (__GT_FILE): Map to 1.
43642         (small_open, large_open): Remove macros.
43643         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
43644         * lib/mkstemp.c (mkstemp): Update.
43645         * lib/mkdtemp.c (mkdtemp): Likewise.
43646         * m4/mkostemp.m4: New file.
43647         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
43648         HAVE_MKOSTEMP.
43649         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
43650         HAVE_MKOSTEMP.
43651         * modules/mkostemp: New file, based on modules/mkstemp.
43652         * doc/glibc-functions/mkostemp.texi: Mention the new module.
43653         * NEWS: Mention the change.
43654
43655 2009-08-23  Bruno Haible  <bruno@clisp.org>
43656
43657         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
43658         Reported by Eric Blake.
43659
43660 2009-08-23  Bruno Haible  <bruno@clisp.org>
43661
43662         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
43663         Reported by Eric Blake.
43664
43665 2009-08-23  Bruno Haible  <bruno@clisp.org>
43666
43667         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
43668         * modules/pipe2 (Depends-on): Likewise.
43669
43670 2009-08-23  Eric Blake  <ebb9@byu.net>
43671
43672         fcntl-h: add O_TTY_INIT support
43673         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
43674         * tests/test-fcntl-h.c (o): Test it.
43675         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43676
43677         fcntl-h: rename from fcntl, in preparation for fcntl(2)
43678         * modules/fcntl: Move <fcntl.h> header replacement...
43679         * modules/fcntl-h: ...to new name, so as not to collide with
43680         like-named function.
43681         * tests/test-fcntl.c: Rename...
43682         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
43683         * modules/fcntl-tests: Rename...
43684         * modules/fcntl-h-tests: ...to this.  Update test file name.
43685         * modules/chdir-long (Depends-on): Update clients.
43686         * modules/chdir-safer (Depends-on): Likewise.
43687         * modules/fcntl-safer (Depends-on): Likewise.
43688         * modules/fts (Depends-on): Likewise.
43689         * modules/mkancesdirs (Depends-on): Likewise.
43690         * modules/mkdir-p (Depends-on): Likewise.
43691         * modules/open (Depends-on): Likewise.
43692         * modules/savewd (Depends-on): Likewise.
43693         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
43694         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43695
43696 2009-08-22  Bruno Haible  <bruno@clisp.org>
43697
43698         * modules/binary-io (License): Relicense under LGPL.
43699         * modules/pipe2 (License): Likewise.
43700
43701 2009-08-22  Bruno Haible  <bruno@clisp.org>
43702
43703         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
43704         return value.
43705         * lib/pipe-filter-gi.c (filter_init): Likewise.
43706         Reported by Eric Blake.
43707
43708 2009-08-22  Bruno Haible  <bruno@clisp.org>
43709
43710         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
43711         * modules/pipe (Depends-on): Add pipe2.
43712
43713 2009-08-22  Bruno Haible  <bruno@clisp.org>
43714
43715         Tests for module 'pipe2'.
43716         * modules/pipe2-tests: New file.
43717         * tests/test-pipe2.c: New file.
43718
43719         New module 'pipe2'.
43720         * lib/unistd.in.h (pipe2): New declaration.
43721         * lib/pipe2.c: New file.
43722         * m4/pipe2.m4: New file.
43723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
43724         HAVE_PIPE2.
43725         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
43726         * modules/pipe2: New file.
43727         * doc/glibc-functions/pipe2.texi: Mention the new module.
43728
43729 2009-08-22  Bruno Haible  <bruno@clisp.org>
43730
43731         Reference some new glibc functions.
43732         * doc/glibc-functions/accept4.texi: New file.
43733         * doc/glibc-functions/dup3.texi: New file.
43734         * doc/glibc-functions/mkostemp.texi: New file.
43735         * doc/glibc-functions/pipe2.texi: New file.
43736         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
43737         (Glibc sys/socket.h): Refer to accept4.
43738         (Glibc unistd.h): Refer to dup3, pipe2.
43739         Reported by Eric Blake.
43740
43741 2009-08-22  Jim Meyering  <meyering@redhat.com>
43742             Bruno Haible  <bruno@clisp.org>
43743
43744         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
43745         This makes it so packages using automake-1.11's silent-rules option
43746         can print e.g., a single "GEN    configmake.h" line, rather than
43747         the 30+ statements that perform the job.  If you want to see the
43748         actual commands, you can still run "make V=1".
43749         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
43750         so that make output is abbreviated when those variables are defined
43751         appropriately.
43752         * modules/argz: Likewise.
43753         * modules/arpa_inet: Likewise.
43754         * modules/byteswap: Likewise.
43755         * modules/configmake: Likewise.
43756         * modules/dirent: Likewise.
43757         * modules/errno: Likewise.
43758         * modules/fcntl: Likewise.
43759         * modules/float: Likewise.
43760         * modules/fnmatch: Likewise.
43761         * modules/getopt-posix: Likewise.
43762         * modules/glob: Likewise.
43763         * modules/iconv_open: Likewise.
43764         * modules/inttypes: Likewise.
43765         * modules/localcharset: Likewise.
43766         * modules/locale: Likewise.
43767         * modules/math: Likewise.
43768         * modules/netdb: Likewise.
43769         * modules/netinet_in: Likewise.
43770         * modules/poll: Likewise.
43771         * modules/posix_spawnp-tests: Likewise.
43772         * modules/sched: Likewise.
43773         * modules/search: Likewise.
43774         * modules/selinux-h: Likewise.
43775         * modules/signal: Likewise.
43776         * modules/spawn: Likewise.
43777         * modules/stdarg: Likewise.
43778         * modules/stdbool: Likewise.
43779         * modules/stddef: Likewise.
43780         * modules/stdint: Likewise.
43781         * modules/stdio: Likewise.
43782         * modules/stdlib: Likewise.
43783         * modules/string: Likewise.
43784         * modules/strings: Likewise.
43785         * modules/sys_file: Likewise.
43786         * modules/sys_ioctl: Likewise.
43787         * modules/sys_select: Likewise.
43788         * modules/sys_socket: Likewise.
43789         * modules/sys_stat: Likewise.
43790         * modules/sys_time: Likewise.
43791         * modules/sys_times: Likewise.
43792         * modules/sys_utsname: Likewise.
43793         * modules/sys_wait: Likewise.
43794         * modules/sysexits: Likewise.
43795         * modules/time: Likewise.
43796         * modules/unistd: Likewise.
43797         * modules/wchar: Likewise.
43798         * modules/wctype: Likewise.
43799
43800 2009-08-22  Jim Meyering  <meyering@redhat.com>
43801
43802         announce-gen: detect write failure
43803         * build-aux/announce-gen: Add Coda at end.
43804         Remove equivalent-but-more-verbose block at top.
43805
43806 2009-08-19  Akim Demaille  <demaille@gostai.com>
43807
43808         bootstrap: --help to stdout.
43809         * bootstrap (usage): Don't send --help to stderr.
43810         Use a here doc instead of a long string.
43811
43812 2009-08-21  Eric Blake  <ebb9@byu.net>
43813
43814         test-popen-safer: split from test-popen
43815         * tests/test-popen.c (main): Move...
43816         * tests/test-popen.h: ...into new file.
43817         * tests/test-popen-safer2.c: New file.
43818         * modules/popen-tests (Files): Add test-popen.h.
43819         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
43820         Suggested by Bruno Haible.
43821
43822         test-fcntl-safer: split from test-open
43823         * tests/test-open.c (main): Move...
43824         * tests/test-open.h: ...into new file.
43825         * tests/test-fcntl-safer.c: New file.
43826         * modules/open-tests (Files): Add test-open.h.
43827         * modules/fcntl-safer-tests: New file.
43828         Suggested by Bruno Haible.
43829
43830         test-fopen-safer: split from test-fopen
43831         * tests/test-fopen.c (main): Move...
43832         * tests/test-fopen.h: ...into new file.
43833         * tests/test-fopen-safer.c: New file.
43834         * modules/fopen-tests (Files): Add test-fopen.h.
43835         * modules/fopen-safer-tests: New file.
43836         Suggested by Bruno Haible.
43837
43838 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43839
43840         popen-safer: test O_CLOEXEC at run-time.
43841         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
43842
43843 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43844
43845         fcntl: move more flags to the header
43846         * lib/cloexec.c: Do not define FD_CLOEXEC here.
43847         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
43848         * lib/fcntl.in.h: Do both things here.
43849
43850 2009-08-21  Jim Meyering  <meyering@redhat.com>
43851
43852         consistently remove $@-t before redirecting to it
43853         * modules/argz: Remove $@-t and $@ before redirecting to the former.
43854         * modules/alloca-opt: Likewise.
43855         * modules/byteswap: Likewise.
43856         * modules/fnmatch: Likewise.
43857         * modules/getopt-posix: Likewise.
43858         * modules/glob: Likewise.
43859         * modules/poll: Likewise.
43860         * modules/posix_spawnp-tests: Likewise.
43861         * modules/sys_socket: Likewise.
43862         * modules/sysexits: Likewise.
43863
43864 2009-08-21  Eric Blake  <ebb9@byu.net>
43865
43866         popen: simplify access to original popen
43867         * lib/popen.c (rpl_popen): No need to worry about popen being a
43868         macro.
43869         Reported by Bruno Haible.
43870
43871 2009-08-20  Eric Blake  <ebb9@byu.net>
43872
43873         build: avoid some compiler warnings
43874         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
43875         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
43876         type.
43877         (new_exclude_segment, excluded_file_pattern_p)
43878         (excluded_file_name_p): Reduce scope.
43879         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
43880         old-style declaration.
43881
43882 2009-08-20  Simon Josefsson  <simon@josefsson.org>
43883
43884         * tests/test-exclude1.sh: Handle Windows EOL.
43885         * tests/test-exclude2.sh: Likewise.
43886         * tests/test-exclude3.sh: Likewise.
43887         * tests/test-exclude4.sh: Likewise.
43888         * tests/test-exclude5.sh: Likewise.
43889         * tests/test-exclude6.sh: Likewise.
43890         * tests/test-exclude7.sh: Likewise.
43891
43892 2009-08-19  Akim Demaille  <demaille@gostai.com>
43893
43894         bootstrap: find sha1sum when named gsha1sum.
43895         * bootstrap (find_tool): New.
43896         ($SHA1SUM): New.
43897         Use it.
43898
43899 2009-08-20  Jim Meyering  <meyering@redhat.com>
43900
43901         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
43902         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
43903         expression that converts "." in a file name to "\." in the resulting
43904         regexp.  Start with a dummy statement, so that prior shell variable
43905         definitions are expanded portably.  Reported by Simon Josefsson.
43906
43907 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
43908
43909         Fix polling for writeability of a screen buffer.
43910         * lib/poll.c: Distinguish input and screen buffers for the
43911         Win32 implementation.
43912         * lib/select.c: Likewise.
43913
43914 2009-08-19  Eric Blake  <ebb9@byu.net>
43915
43916         popen-safer: prevent popen from clobbering std descriptors
43917         * modules/popen-safer: New file.
43918         * lib/popen-safer.c: Likewise.
43919         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
43920         * lib/stdio--.h (popen): Provide override.
43921         * lib/stdio-safer.h (popen_safer): Provide declaration.
43922         * tests/test-popen.c (includes): Partially test this.
43923         * modules/popen-safer-tests: New file, for more tests.
43924         * tests/test-popen-safer.c: Likewise.
43925         * MODULES.html.sh (file stream based Input/Output): Mention it.
43926
43927         tests: test some of the *-safer modules
43928         * modules/fopen-safer (Depends-on): Add fopen.
43929         * modules/fcntl-safer (Depends-on): Add fcntl.
43930         * modules/stdlib-safer (Depends-on): Add stdlib.
43931         (configure.ac): Set indicator.
43932         * modules/unistd-safer (configure.ac): Likewise.
43933         * modules/tmpfile-safer (configure.ac): Likewise.
43934         (Depends-on): Add tmpfile.
43935         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
43936         active.
43937         * tests/test-fopen.c (includes): Test safer versions when they are
43938         in use.
43939         * tests/test-open.c (includes): Likewise.
43940
43941         popen: fix cygwin 1.5 bug when stdin closed
43942         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
43943         * modules/popen: New file.
43944         * modules/popen-tests: Likewise.
43945         * tests/test-popen.c: Likewise.
43946         * m4/popen.m4: Likewise.
43947         * lib/popen.c: Likewise.
43948         * lib/stdio.in.h (popen): New declaration.
43949         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
43950         * modules/stdio (Makefile.am): Likewise.
43951         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
43952
43953 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
43954
43955         maint.mk: give full control over update-copyright exclusions
43956         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
43957         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
43958         (update-copyright): Don't force inclusion of top-level
43959         ChangeLog.  Don't force exclusion of all COPYING files, but make
43960         them the default exclusion instead.
43961
43962 2009-08-16  Bruno Haible  <bruno@clisp.org>
43963
43964         Fix test failures on Solaris 10.
43965         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
43966         tests when Solaris iconv() is used.
43967         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
43968         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
43969         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
43970         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
43971         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
43972
43973 2009-08-16  Bruno Haible  <bruno@clisp.org>
43974
43975         Fix test failures on Solaris 10.
43976         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
43977         'tr' program and pass it as first argument.
43978         * tests/test-pipe-filter-gi1.sh: Likewise.
43979         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
43980         program as first argument.
43981         * tests/test-pipe-filter-gi1.c (main): Likewise.
43982
43983 2009-08-16  Eric Blake  <ebb9@byu.net>
43984
43985         fpurge: fix previous commits
43986         * modules/fpurge (Makefile.am): Make replacement conditional,
43987         partially reverting 2007-04-29 change; missed in previous
43988         attempt.
43989         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
43990         is missing.
43991
43992 2009-08-16  Bruno Haible  <bruno@clisp.org>
43993
43994         Clarify fpurge's effect on the file position.
43995         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
43996         * tests/test-fpurge.c (main): Make a second pass for checking the file
43997         position.
43998
43999 2009-08-16  Bruno Haible  <bruno@clisp.org>
44000
44001         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
44002         declaration of fpurge is missing.
44003         * tests/test-fpurge.c (main): Check that the file has not more contents
44004         than expected. Close the file before removing it.
44005
44006 2009-08-15  Eric Blake  <ebb9@byu.net>
44007
44008         fpurge: don't wrap working cygwin implementation
44009         * lib/fpurge.c (fpurge): Fix comment typo.
44010         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
44011         1.7 to avoid replacement.
44012         * tests/test-fpurge.c (main): Enhance test.
44013
44014 2009-08-15  Eric Blake  <ebb9@byu.net>
44015         and Jim Meyering  <meyering@redhat.com>
44016
44017         test-update-copyright: skip if perl is insufficient
44018         * tests/test-update-copyright.sh: Failure to run maintainer tool
44019         should not cause testsuite failure on cygwin 1.5.
44020
44021 2009-08-14  Eric Blake  <ebb9@byu.net>
44022
44023         doc: mention more functions added in cygwin 1.7.0
44024         * doc/posix-headers/limits.texi (limits.h): Update for recent
44025         cygwin additions.
44026         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
44027         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
44028         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
44029         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
44030         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
44031
44032 2009-08-14  Eric Blake  <ebb9@byu.net>
44033
44034         maint.mk: simplify update-copyright rule
44035         * top/maint.mk (update-copyright-local): Delete, and document how
44036         to do it in cfg.mk instead.
44037         (update-copyright-exclude-regexp): Delete, and document how to do
44038         it in .x-update-copyright instead.
44039         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
44040         exclude ChangeLog.
44041
44042 2009-08-14  Bruno Haible  <bruno@clisp.org>
44043
44044         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
44045
44046 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
44047
44048         maint.mk: support update-copyright-env
44049         * top/maint.mk (update-copyright-env): Define place-holder.
44050         (update-copyright): Expand $(update-copyright-env) before
44051         invoking update-copyright.
44052
44053 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
44054
44055         update-copyright: implement forced reformatting
44056         * build-aux/update-copyright: Implement and document
44057         UPDATE_COPYRIGHT_FORCE.
44058         * tests/test-update-copyright.sh: Test it.
44059
44060 2009-08-14  Eric Blake  <ebb9@byu.net>
44061         and Bruno Haible  <bruno@clisp.org>
44062
44063         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
44064         * tests/test-locale.c: Revert previous patch related to NULL.
44065         * tests/test-stdio.c: Likewise.
44066         * tests/test-stdlib.c: Likewise.
44067         * tests/test-string.c: Likewise.
44068         * tests/test-unistd.c: Likewise.
44069         * modules/time-tests (Depends-on): Add verify.
44070         * modules/wchar-tests (Depends-on): Likewise.
44071         * tests/test-time.c: Test for NULL compliance.
44072         * tests/test-wchar.c: Likewise.
44073         * modules/locale (Depends-on): Add stddef.
44074         * modules/stdio (Depends-on): Likewise.
44075         * modules/stdlib (Depends-on): Likewise.
44076         * modules/string (Depends-on): Likewise.
44077         * modules/time (Depends-on): Likewise.
44078         * modules/unistd (Depends-on): Likewise.
44079         * modules/wchar (Depends-on): Likewise.
44080         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
44081         * lib/stdlib.in.h (includes): Likewise.
44082         * lib/string.in.h (includes): Likewise.
44083         * lib/time.in.h (includes): Likewise.
44084         * lib/unistd.in.h (includes): Likewise.
44085         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
44086         replaced.
44087         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
44088         * m4/stddef_h.m4: New file.
44089         * modules/stddef: Likewise.
44090         * lib/stddef.in.h: Likewise.
44091         * modules/stddef-tests: Likewise.
44092         * tests/test-stddef.c: Likewise.
44093         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
44094         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
44095         * doc/posix-headers/locale.texi (locale.h): Likewise.
44096         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
44097         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
44098         * doc/posix-headers/string.texi (string.h): Likewise.
44099         * doc/posix-headers/time.texi (time.h): Likewise.
44100         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
44101         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
44102
44103 2009-08-14  Eric Blake  <ebb9@byu.net>
44104
44105         doc: improve git diff of texinfo files
44106         * .gitattributes: Add rule for *.texi files, with hint on how to
44107         use it.
44108         Copied from m4, and based on a report by Bruno Haible.
44109
44110 2009-08-14  Bruno Haible  <bruno@clisp.org>
44111
44112         Disable multithread support by default on Cygwin 1.5.x for real.
44113         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
44114
44115 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
44116
44117         update-copyright: much ado about intervals
44118         * build-aux/update-copyright: Implement and document
44119         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
44120         of copyright year intervals.
44121         Also, document UPDATE_COPYRIGHT_YEAR.
44122         * tests/test-update-copyright.sh: Test it.
44123
44124         update-copyright: convert 2-digit to 4-digit years
44125         * build-aux/update-copyright: Implement and document.
44126         * tests/test-update-copyright.sh: Update.
44127
44128 2009-08-14  Jim Meyering  <meyering@redhat.com>
44129
44130         test-exclude: avoid coreutils "make check" failure
44131         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
44132         just as in test-argmatch.c.
44133
44134 2009-08-13  Eric Blake  <ebb9@byu.net>
44135
44136         test-dup2: fix bad assumption
44137         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
44138         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
44139
44140         test-version-etc: fix CRLF portability issue
44141         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
44142         recognize \r.
44143         * tests/test-argp-version-etc-1.sh: Likewise.
44144
44145         getopt: update client modules
44146         * modules/argp (Depends-on): Use getopt-gnu.
44147         * modules/git-merge-changelog (Depends-on): Likewise.
44148         * modules/long-options (Depends-on): Likewise.
44149         * modules/xstrtol (Depends-on): Likewise.
44150
44151 2009-08-13  Simon Josefsson  <simon@josefsson.org>
44152
44153         * tests/test-version-etc.sh: Don't fail on different
44154         project/version.  Don't fail on CRLF differences.  Rewrite to use
44155         multiple -e instead of multiple sed forks, suggested by Eric Blake
44156         <ebb9@byu.net>.
44157         * tests/test-argp-version-etc-1.sh: Likewise.
44158
44159 2009-08-13  Simon Josefsson  <simon@josefsson.org>
44160
44161         * tests/test-version-etc.sh: Don't fail on different
44162         project/version.
44163
44164 2009-08-12  Bruno Haible  <bruno@clisp.org>
44165
44166         Tests for modules 'getopt-posix', 'getopt-gnu'.
44167         * modules/getopt-posix-tests: New file.
44168         * tests/test-getopt.c: New file.
44169         * tests/test-getopt.h: New file.
44170         * tests/test-getopt_long.h: New file.
44171
44172         New modules 'getopt-posix', 'getopt-gnu'.
44173         * modules/getopt-gnu: New file, renamed from modules/getopt.
44174         * modules/getopt-posix: New file.
44175         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
44176         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
44177         (gl_GETOPT): Remove macro.
44178         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
44179         Disable the test against BSD systems that declare optreset. Test
44180         against mingw bug. Test against lack of support of optional arguments
44181         on many platforms.
44182         * doc/glibc-headers/getopt.texi: Update module name and list of
44183         relevant platforms.
44184         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
44185         'getopt-gnu' and more portability problems.
44186         * NEWS: Mention the changes.
44187
44188 2009-08-12  Bruno Haible  <bruno@clisp.org>
44189
44190         Ensure that optarg etc. get declared by <unistd.h>.
44191         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
44192         AC_USE_SYSTEM_EXTENSIONS.
44193         * modules/getopt (Depends-on): Add 'extensions'.
44194
44195 2009-08-12  Bruno Haible  <bruno@clisp.org>
44196
44197         Avoid test link errors.
44198         * modules/pipe-filter-ii-tests (Makefile.am): Define
44199         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
44200         * modules/pipe-filter-gi-tests (Makefile.am): Define
44201         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
44202         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44203
44204 2009-08-12  Bruno Haible  <bruno@clisp.org>
44205
44206         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
44207         gl_GETOPT_SUBSTITUTE before.
44208         (gl_GETOPT): Use it.
44209         * m4/argp.m4 (gl_ARGP): Update.
44210         Reported by Sergey Poznyakoff.
44211
44212         * m4/getopt.m4: Reorder macros.
44213         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
44214         (gl_GETOPT_SUBSTITUTE): Remove macro.
44215
44216 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44217
44218         Minor improvement in gitlog-to-changelog
44219
44220         * build-aux/gitlog-to-changelog: New option `--format' makes
44221         output format string configurable.
44222
44223 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44224
44225         Optimize exclude: use hash tables for non-wildcard patterns.
44226
44227         * lib/exclude.c: Include hash.h and mbuiter.h
44228         (struct exclude_pattern, exclude_segment): New data types.
44229         (struct exclude): Rewrite.
44230         (fnmatch_pattern_has_wildcards): New function.
44231         (new_exclude_segment, free_exclude_segment): New functions.
44232         (excluded_file_pattern_p, excluded_file_name_p): New functions.
44233         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
44234         * lib/exclude.h (is_fnmatch_pattern): New prototype.
44235         * modules/exclude: Depend on hash and mbuiter.
44236
44237         * modules/exclude-tests: New file.
44238         * tests/test-exclude.c: New file.
44239         * tests/test-exclude1.sh: New file.
44240         * tests/test-exclude2.sh: New file.
44241         * tests/test-exclude3.sh: New file.
44242         * tests/test-exclude4.sh: New file.
44243         * tests/test-exclude5.sh: New file.
44244         * tests/test-exclude6.sh: New file.
44245         * tests/test-exclude7.sh: New file.
44246
44247 2009-08-12  Bruno Haible  <bruno@clisp.org>
44248
44249         Ensure that getopt() gets declared by <unistd.h>.
44250         * lib/unistd.in.h: Conditionally include getopt.h.
44251         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
44252         Set GNULIB_UNISTD_H_GETOPT.
44253         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44254         GNULIB_UNISTD_H_GETOPT.
44255         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
44256
44257 2009-08-12  Bruno Haible  <bruno@clisp.org>
44258
44259         Clarify logic.
44260         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
44261         gl_replace_getopt instead of GETOPT_H.
44262
44263 2009-08-12  Bruno Haible  <bruno@clisp.org>
44264
44265         * m4/getopt.m4: Add comments.
44266
44267 2009-08-12  Bruno Haible  <bruno@clisp.org>
44268
44269         Disable multithread support by default on Cygwin 1.5.x.
44270         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
44271         set gl_use_threads=no if not specified otherwise.
44272
44273 2009-08-11  Bruno Haible  <bruno@clisp.org>
44274
44275         Avoid compilation error on NetBSD 5.0.
44276         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
44277         * tests/test-stdio.c: Likewise.
44278         * tests/test-stdlib.c: Likewise.
44279         * tests/test-string.c: Likewise.
44280         * tests/test-unistd.c: Likewise.
44281         Reported by Greg Troxel <gdt@ir.bbn.com>
44282         at <https://savannah.gnu.org/support/?106973>.
44283
44284 2009-08-11  Bruno Haible  <bruno@clisp.org>
44285
44286         * modules/dup2-tests (Depends-on): Remove close.
44287
44288         Undo 2009-07-19 commit.
44289         * modules/acl-tests (Depends-on): Remove close.
44290         * modules/binary-io-tests (Depends-on): Likewise.
44291         * modules/closein-tests (Depends-on): Likewise.
44292         * modules/flock-tests (Depends-on): Likewise.
44293         * modules/fsync-tests (Depends-on): Likewise.
44294         * modules/lseek-tests (Depends-on): Likewise.
44295         * modules/pipe-tests (Depends-on): Likewise.
44296         * modules/posix_spawn-tests (Depends-on): Likewise.
44297         * modules/posix_spawnp-tests (Depends-on): Likewise.
44298         * modules/stat-time-tests (Depends-on): Likewise.
44299         * modules/yesno-tests (Depends-on): Likewise.
44300
44301 2009-08-10  Bruno Haible  <bruno@clisp.org>
44302
44303         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
44304
44305 2009-08-10  Bruno Haible  <bruno@clisp.org>
44306
44307         Fix a gcc warning.
44308         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
44309
44310 2009-08-10  Bruno Haible  <bruno@clisp.org>
44311
44312         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
44313         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
44314         not only the first time.
44315         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
44316         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
44317         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
44318         is 1, not only the the first time.
44319
44320 2009-08-10  Bruno Haible  <bruno@clisp.org>
44321
44322         Make it possible to use module 'gethostname' without module 'close'.
44323         * lib/unistd.in.h (close): Evoke a link error only if
44324         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
44325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44326         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44327         * modules/unistd (Makefile.am): Substitute
44328         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44329         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
44330         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
44331         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
44332         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44333         * modules/sys_ioctl (Makefile.am): Substitute
44334         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44335         * modules/socket (configure.ac): On native Windows, set
44336         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
44337         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44338         Reported by Sam Steingold <sds@gnu.org>.
44339
44340 2009-08-10  Bruno Haible  <bruno@clisp.org>
44341
44342         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
44343         * modules/ioctl (configure.ac): Likewise.
44344
44345 2009-08-10  Bruno Haible  <bruno@clisp.org>
44346
44347         Avoid collision between gnulib wrapper and libintl wrapper.
44348         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
44349         already defined in intl/printf.c.
44350         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
44351         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
44352
44353 2009-08-09  Bruno Haible  <bruno@clisp.org>
44354
44355         Make <sys/select.h> really self-contained, also on Solaris 10.
44356         * lib/sys_select.in.h: Include <string.h>.
44357         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
44358         Solaris 10 problem.
44359         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
44360         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
44361         Reported by Jim Meyering.
44362
44363 2009-08-09  Bruno Haible  <bruno@clisp.org>
44364
44365         Avoid warnings from 'aclocal' that are due to a use of macro name
44366         AM_XGETTEXT_OPTION that is not defined in automake.
44367         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
44368         automake.
44369         * modules/error (configure.ac): Likewise.
44370         * modules/propername (configure.ac): Likewise.
44371         * modules/vasprintf (configure.ac): Likewise.
44372         * modules/verror (configure.ac): Likewise.
44373         * modules/xprintf (configure.ac): Likewise.
44374         * modules/xvasprintf (configure.ac): Likewise.
44375
44376 2009-08-08  Bruno Haible  <bruno@clisp.org>
44377
44378         Avoid compilation error in C++ mode.
44379         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
44380         Reported by Sam Steingold <sds@gnu.org>.
44381
44382 2009-08-08  Bruno Haible  <bruno@clisp.org>
44383
44384         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
44385         for the various Unix platforms.
44386         * doc/posix-headers/limits.texi: Update platforms list regarding
44387         HOST_NAME_MAX.
44388         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44389
44390 2009-08-07  Jim Meyering  <meyering@redhat.com>
44391
44392         selinux-at: fix typo in a comment
44393         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
44394         Spotted by Paolo Bonzini.
44395
44396         selinux-at: remove redundant m4 code, add documentation
44397         * modules/selinux-at (configure.ac): Remove redundant code.
44398         LIB_SELINUX is already set via the dependent module, selinux-h.
44399         (Include): Add quotes around selinux-at.h.
44400         * lib/selinux-at.h: Add documentation.
44401         Reported by Bruno Haible in
44402         http://marc.info/?l=gnulib-bug&m=124958988300749
44403
44404 2009-08-07  Bruno Haible  <bruno@clisp.org>
44405
44406         Avoid link error on MacOS X 10.3 and 10.4.
44407         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
44408         on non-ELF systems.
44409         * lib/argp-pv.c (argp_program_version): Likewise.
44410         Reported by Simon Josefsson.
44411
44412 2009-08-07  Simon Josefsson  <simon@josefsson.org>
44413
44414         * tests/test-version-etc.sh: Use $EXEEXT.
44415
44416 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
44417
44418         update-copyright: update documentation to point to maint.mk
44419         * build-aux/update-copyright: Here.
44420
44421 2009-08-06  Jim Meyering  <meyering@redhat.com>
44422
44423         maint.mk: support update-copyright-local
44424         * top/maint.mk (update-copyright-local): Define place-holder.
44425         (update-copyright): Depend on $(update-copyright-local).
44426
44427 2009-08-06  Jim Meyering  <meyering@redhat.com>
44428
44429         selinux-at: new module
44430         Initially written for coreutils, this module will soon be
44431         used by findutils, too.
44432         * MODULES.html.sh [Misc]: Add selinux-at.
44433         * lib/selinux-at.h: New file, from coreutils.
44434         * lib/selinux-at.c: Likewise.
44435         * modules/selinux-at: Likewise.
44436         (License): Change from LGPL to GPL, since it depends
44437         on the GPL'd openat module.
44438
44439         doc: update README
44440         * README: Remove references to cogito.
44441         Remove cvs-repo-updating instructions from 2007.
44442         Don't imply that CVS is better if you have limited disk space.
44443
44444 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44445
44446         update-copyright: support C-style comments
44447         * build-aux/update-copyright: Implement and document.
44448         * tests/test-update-copyright.sh: Test.
44449
44450 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44451
44452         update-copyright: support omitted "(C)"
44453         * build-aux/update-copyright: Implement and document.  Also,
44454         allow variable whitespace before "(C)".
44455         * tests/test-update-copyright.sh: Test.
44456
44457 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44458
44459         update-copyright: don't trip on non-FSF copyright statements
44460         * build-aux/update-copyright: Fix so that the first correctly
44461         formatted FSF copyright statement is recognized no matter what
44462         appears before it.  Update documentation.
44463         * tests/test-update-copyright.sh: Test that.
44464
44465 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44466
44467         update-copyright: clean up code a little
44468         * build-aux/update-copyright: Append "_re" to the name of any
44469         variable holding a regular expression.
44470         Replace "old" and "new" with "stmt" in variable names.
44471         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
44472         handled correctly.
44473         Format code more consistently.
44474
44475 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44476
44477         update-copyright-tests: improve portability
44478         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
44479         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
44480
44481 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
44482
44483         update-copyright: support @copyright{} and &copy;
44484         * build-aux/update-copyright: Implement and document.
44485         * tests/test-update-copyright.sh: Test.
44486
44487 2009-08-04  Jim Meyering  <meyering@redhat.com>
44488
44489         update-copyright-tests: correctly test EOL=\r\n handling
44490         * tests/test-update-copyright.sh: Put \r at the end of some lines
44491         for the dos-eol tests.  Based on a patch by Joel E. Denny.
44492
44493         maint.mk: make update-copyright exclusion list more configurable
44494         * top/maint.mk (update-copyright): Default to excluding COPYING,
44495         but allow an override, in case someone does want to update that file.
44496
44497         maint.mk: don't update copyright date in COPYING
44498         * top/maint.mk (update-copyright): Exclude COPYING.
44499
44500         maint.mk: add a copyright-updating rule
44501         * top/maint.mk (update-copyright): New rule.
44502         Derived from coreutils/Makefile.am.
44503
44504         update-copyright: rename some variables
44505         * build-aux/update-copyright: Rename a few variables for clarity.
44506         Tweak syntax.  List Joel E. Denny as coauthor.
44507
44508 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
44509
44510         update-copyright: fix bug for 2-digit last year and add tests
44511         * build-aux/update-copyright: Fix bug.
44512         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
44513         specified.
44514         * modules/update-copyright-tests: New
44515         * tests/test-update-copyright.sh: New.
44516
44517 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44518
44519         update-copyright: handle leading tabs in line prefix
44520         * build-aux/update-copyright: Count leading tabs as 8 spaces
44521         when computing margin.  This helps with the formatting of
44522         ChangeLogs, for example.
44523         Fix documentation a little.
44524
44525 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44526
44527         update-copyright: support EOL=\r\n
44528         * build-aux/update-copyright: Implement that.
44529
44530 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44531
44532         update-copyright: automatically format copyright statements
44533         * build-aux/update-copyright: Implement that.
44534         Also, be a little more predictable and safer by always failing
44535         when the full copyright format is not perfectly recognized as an
44536         unbroken whole.  Discussed at
44537         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
44538         Rewrite documentation.
44539
44540 2009-08-03  Bruno Haible  <bruno@clisp.org>
44541
44542         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
44543
44544 2009-08-02  Bruno Haible  <bruno@clisp.org>
44545
44546         Tests for module 'uname'.
44547         * modules/uname-tests: New file.
44548         * tests/test-uname.c: New file.
44549
44550         New module 'uname'.
44551         * lib/uname.c: New file.
44552         * m4/uname.m4: New file.
44553         * modules/uname: New file.
44554         * doc/posix-functions/uname.texi: Mention the new module.
44555
44556 2009-08-02  Bruno Haible  <bruno@clisp.org>
44557
44558         Tests for module 'sys_utsname'.
44559         * modules/sys_utsname-tests: New file.
44560         * tests/test-sys_utsname.c: New file.
44561
44562         New module 'sys_utsname'.
44563         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
44564         * m4/sys_utsname_h.m4: New file.
44565         * modules/sys_utsname: New file.
44566         * doc/posix-headers/sys_utsname.texi: Mention the new module.
44567
44568 2009-08-02  Bruno Haible  <bruno@clisp.org>
44569
44570         Implicitly initialize the sockets library.
44571         * lib/gethostname.c: Include sockets.h.
44572         (rpl_gethostname): Invoke gl_sockets_startup.
44573         * lib/socket.c: Include sockets.h.
44574         (rpl_socket): Invoke gl_sockets_startup.
44575         * modules/gethostname (Depends-on): Add sockets.
44576         * modules/socket (Depends-on): Likewise.
44577         * tests/test-poll.c: Don't include sockets.h.
44578         (main): Don't invoke gl_sockets_startup.
44579         * tests/test-select.c: Don't include sockets.h.
44580         (main): Don't invoke gl_sockets_startup.
44581
44582 2009-08-02  Bruno Haible  <bruno@clisp.org>
44583
44584         Allow multiple calls to gl_sockets_startup.
44585         * lib/sockets.c (initialized_sockets_version): New variable.
44586         (gl_sockets_startup): Do nothing if already called for this or a higher
44587         version.
44588         (gl_sockets_cleanup): Reset initialized_sockets_version.
44589
44590 2009-08-03  Simon Josefsson  <simon@josefsson.org>
44591
44592         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
44593         different project/version.
44594
44595 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
44596             Bruno Haible  <bruno@clisp.org>
44597
44598         Tests for module 'pipe-filter-gi'.
44599         * modules/pipe-filter-gi-tests: New file.
44600         * tests/test-pipe-filter-gi1.sh: New file.
44601         * tests/test-pipe-filter-gi1.c: New file.
44602         * tests/test-pipe-filter-gi2.sh: New file.
44603         * tests/test-pipe-filter-gi2-main.c: New file.
44604         * tests/test-pipe-filter-gi2-child.c: New file.
44605
44606         New module 'pipe-filter-gi'.
44607         * lib/pipe-filter-gi.c: New file.
44608         * modules/pipe-filter-gi: New file.
44609
44610 2009-08-02  Bruno Haible  <bruno@clisp.org>
44611             Paolo Bonzini  <bonzini@gnu.org>
44612
44613         Tests for module 'pipe-filter-ii'.
44614         * modules/pipe-filter-ii-tests: New file.
44615         * tests/test-pipe-filter-ii1.sh: New file.
44616         * tests/test-pipe-filter-ii1.c: New file.
44617         * tests/test-pipe-filter-ii2.sh: New file.
44618         * tests/test-pipe-filter-ii2-main.c: New file.
44619         * tests/test-pipe-filter-ii2-child.c: New file.
44620
44621         New module 'pipe-filter-ii'.
44622         * lib/pipe-filter.h: New file.
44623         * lib/pipe-filter-ii.c: New file.
44624         * lib/pipe-filter-aux.h: New file.
44625         * modules/pipe-filter-ii: New file.
44626
44627 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44628
44629         * lib/gc-libgcrypt.c: Change copyright to FSF.
44630         * lib/gc-gnulib.c: Likewise.
44631
44632 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
44633
44634         * lib/gethostname.c: Include limits.h.
44635
44636 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44637             Bruno Haible  <bruno@clisp.org>
44638
44639         Ensure HOST_NAME_MAX as part of the gethostname module.
44640         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
44641         define also HOST_NAME_MAX.
44642         * tests/test-gethostname.c: Include <limits.h>.
44643         (main): Check also HOST_NAME_MAX.
44644         * doc/posix-headers/limits.texi: Document the mingw problem.
44645
44646 2009-08-02  Bruno Haible  <bruno@clisp.org>
44647
44648         * lib/gethostname.c (gethostname): Fix handling of large len argument.
44649         Add comments.
44650
44651 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44652
44653         * lib/gethostname.c: Add Windows wrapper.
44654         * m4/gethostname.m4: Look for gethostname in -lws2_32.
44655         * modules/gethostname: Depend on sys_socket & errno, for also
44656         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
44657         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
44658
44659 2009-07-31  Jim Meyering  <meyering@redhat.com>
44660
44661         getloadavg: fix symbol name in comment
44662         * lib/getloadavg.c: Correct a typo I introduced when adding
44663         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
44664         Matt Kraai spotted the problem.
44665
44666 2009-07-29  Matt Kraai  <mkraai@beckman.com>
44667
44668         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
44669         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
44670         code also if ! defined N_NAME_POINTER.
44671         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
44672         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
44673         but the n_name member is a 12-byte array.
44674
44675 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
44676
44677         update-copyright: generalize comment handling
44678         * build-aux/update-copyright: Handle copyright statements
44679         within more comment styles.
44680         Document usage.
44681         Report any file with an external copyright holder or parse failure.
44682
44683 2009-07-29  Jim Meyering  <meyering@redhat.com>
44684
44685         mktime: correct setting of REPLACE_MKTIME
44686         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
44687
44688         update-copyright: new module
44689         * modules/update-copyright: New file.
44690         * build-aux/update-copyright: New file.
44691         * MODULES.html.sh (maint+release support): Add update-copyright.
44692
44693 2009-07-27  Bruno Haible  <bruno@clisp.org>
44694
44695         Fix compilation error when <ctime> is used and mktime is replaced.
44696         * lib/time.in.h (mktime): New declaration.
44697         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
44698         REPLACE_MKTIME instead of defining mktime in config.h.
44699         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
44700         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
44701         Reported by Ross McFarland <rwmcfa1@neces.com>.
44702
44703 2009-07-27  Bruno Haible  <bruno@clisp.org>
44704
44705         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
44706         Reported by Matt Kraai <mkraai@beckman.com>.
44707
44708 2009-07-25  Jim Meyering  <meyering@redhat.com>
44709
44710         maint.mk: avoid warnings about missing files
44711         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
44712         diagnostic when .prev-version does not exist.
44713         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
44714         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
44715         nonexistent cfg.mk.
44716         Suggestions from Simon Josefsson.
44717
44718 2009-07-25  Bruno Haible  <bruno@clisp.org>
44719
44720         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
44721         defined as macros. Needed on QNX 6.4.1.
44722         Reported by Matt Kraai <mkraai@beckman.com>.
44723
44724 2009-07-23  Jim Meyering  <meyering@redhat.com>
44725
44726         maint.mk: invoke "make dist" with a working value of XZ_OPT
44727         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
44728
44729 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
44730
44731         Make fseeko.c compile on QNX.
44732         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
44733
44734 2009-07-22  Peter Simons  <simons@cryp.to>
44735
44736         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
44737         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
44738         * lib/md4.h: Likewise.
44739         * lib/md5.h: Likewise.
44740         * lib/sha1.h: Likewise.
44741         * lib/sha256.h: Likewise.
44742         * lib/sha512.h: Likewise.
44743
44744         tests-sha1: don't assign literal string to 'char *' variable
44745         * tests/test-sha1.c (main): Declare locals with "const" to match
44746         attributes of the right hand side.
44747
44748 2009-07-21  Eric Blake  <ebb9@byu.net>
44749
44750         dup2: fix more mingw problems
44751         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
44752         fd to itself.
44753         * doc/posix-functions/dup2.texi (dup2): Document the bug.
44754         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
44755         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
44756         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
44757         care of mingw bugs.
44758
44759 2009-07-21  Jim Meyering  <meyering@redhat.com>
44760
44761         vc-list-files: avoid failure when /bin/sh is dash
44762         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
44763         On some Debian based systems, /bin/sh is a symlink to dash, and running
44764         this command would omit the "/" following each 'tests' prefix:
44765           dash -x build-aux/vc-list-files -C . tests
44766         That is because bash and dash work differently:
44767           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
44768           bash ok
44769           dash odd
44770
44771 2009-07-21  Eric Blake  <ebb9@byu.net>
44772
44773         dup2-tests: test previous patch
44774         * modules/dup2-tests: New file.
44775         * tests/test-dup2.c: Likewise.
44776         * tests/test-open.c (main): Avoid unspecified behavior.
44777         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
44778         test.
44779
44780         dup2: work around mingw and cygwin 1.5 bug
44781         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
44782         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44783         * modules/unistd (Makefile.am): Substitute it.
44784         * lib/unistd.in.h (dup2): Declare the replacement.
44785         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
44786         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
44787         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
44788         * modules/execute (Depends-on): Add dup2.
44789         * modules/fseterr (Depends-on): Likewise.
44790         * modules/pipe (Depends-on): Likewise.
44791         * modules/posix_spawn-internal (Depends-on): Likewise.
44792
44793 2009-07-21  Bruno Haible  <bruno@clisp.org>
44794
44795         * modules/.gitattributes: New file.
44796
44797 2009-07-20  Bruno Haible  <bruno@clisp.org>
44798
44799         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
44800         (main): Use it.
44801
44802 2009-07-20  Eric Blake  <ebb9@byu.net>
44803
44804         test-pipe: make a bit more robust.
44805         * tests/test-pipe.c (myerr): Allow error messages regardless of
44806         what we do to stderr.
44807         (test_pipe): Rearrange to avoid deadlock.
44808         (child_main): Try a larger read, to ensure we avoided deadlock.
44809         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
44810         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
44811         if misused.
44812
44813 2009-07-19  Jim Meyering  <meyering@redhat.com>
44814
44815         fts: avoid false-positive cycle-detection
44816         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
44817         for each new command line argument.
44818
44819 2009-07-19  Bruno Haible  <bruno@clisp.org>
44820
44821         Fix build error on mingw with the modules sys_select and unistd.
44822         * modules/acl-tests (Depends-on): Add close.
44823         * modules/binary-io-tests (Depends-on): Likewise.
44824         * modules/closein-tests (Depends-on): Likewise.
44825         * modules/flock-tests (Depends-on): Likewise.
44826         * modules/fsync-tests (Depends-on): Likewise.
44827         * modules/lseek-tests (Depends-on): Likewise.
44828         * modules/pipe-tests (Depends-on): Likewise.
44829         * modules/posix_spawn-tests (Depends-on): Likewise.
44830         * modules/posix_spawnp-tests (Depends-on): Likewise.
44831         * modules/stat-time-tests (Depends-on): Likewise.
44832         * modules/yesno-tests (Depends-on): Likewise.
44833
44834 2009-07-19  Bruno Haible  <bruno@clisp.org>
44835
44836         Unify conditionals.
44837         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
44838         macros, not at the compiler macros.
44839         * lib/pipe.c: Likewise.
44840         * lib/execute.c: Likewise.
44841         * lib/spawni.c: Likewise.
44842
44843 2009-07-19  Bruno Haible  <bruno@clisp.org>
44844
44845         Fix handling of closed stdin/stdout/stderr on mingw.
44846         * lib/w32spawn.h: Include unistd.h.
44847         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
44848         file descriptor with O_NOINHERIT flag.
44849         (fd_safer_noinherit): New function, based on fd-safer.c.
44850         (dup_safer_noinherit): New function, based on dup-safer.c.
44851         (undup_safer_noinherit): New function.
44852         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
44853         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
44854         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
44855         instead of fd_safer.
44856         * tests/test-pipe.c: Include <windows.h>.
44857         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
44858         result.
44859
44860         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
44861         from main.
44862         (test_pipe): Pass an extra argument for disambiguation.
44863         (main): Invoke parent_main or child_main.
44864
44865         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
44866         consistently.
44867
44868 2009-07-18  Eric Blake  <ebb9@byu.net>
44869
44870         test-pipe: fix mingw build
44871         * tests/test-pipe.c (main): Avoid fcntl on mingw.
44872
44873 2009-07-18  Bruno Haible  <bruno@clisp.org>
44874
44875         * modules/pipe-tests (Makefile.am): Fix typo.
44876
44877 2009-07-18  Eric Blake  <ebb9@byu.net>
44878
44879         error: fix mingw build
44880         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
44881         Reported by Bruno Haible.
44882
44883         error: avoid undefined use of stdout
44884         * lib/error.c (error, error_at_line): Check that fd 1 is open
44885         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
44886         is handling faults and the close_stdout module wants to report the
44887         detection of closed stdout as an error.
44888
44889 2009-07-17  Eric Blake  <ebb9@byu.net>
44890
44891         pipe: be robust in face of closed fds
44892         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
44893         should cause child to misbehave.
44894         * modules/pipe-tests: New module.
44895         * tests/test-pipe.c: New file.
44896         * tests/test-pipe.sh: New file.
44897         Reported by Akim Demaille.
44898
44899 2009-07-14  Bruno Haible  <bruno@clisp.org>
44900
44901         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
44902         Reported by anonymous kc.
44903
44904 2009-07-07  Jim Meyering  <meyering@redhat.com>
44905
44906         maint.mk: don't look for translatable strings in *.m4 or *.mk
44907         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
44908         when searching for translatable strings.
44909
44910 2009-07-05  Jim Meyering  <meyering@redhat.com>
44911
44912         remove superfluous parentheses in STREQ definition
44913         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
44914         * lib/getugroups.c (STREQ): Likewise.
44915         * lib/fnmatch.c (STREQ): Likewise.
44916         Spotted by Bruno Haible.
44917
44918 2009-07-04  Jim Meyering  <meyering@redhat.com>
44919
44920         argv-iter: new module
44921         * MODULES.html.sh: Add argv-iter.
44922         * lib/argv-iter.c, lib/argv-iter.h: New files.
44923         * modules/argv-iter: New file.
44924         * modules/argv-iter-tests: New file.
44925         * tests/test-argv-iter.c: Test it.
44926
44927 2009-07-04  Bruno Haible  <bruno@clisp.org>
44928
44929         Fix assertion.
44930         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
44931         contains more exact copies of a given entry than file2, leave the extra
44932         copies unpaired rather than aborting.
44933         Reported by Eric Blake.
44934
44935 2009-07-02  Bruno Haible  <bruno@clisp.org>
44936
44937         Speedup git-merge-changelog for git cherry-pick.
44938         * lib/git-merge-changelog.c (struct entries_mapping): New type.
44939         (entries_mapping_get): New function, extracted from compute_mapping.
44940         (entries_mapping_reverse_get): New function.
44941         (compute_mapping): Add a 'full' argument. Return the result in a
44942         'struct entries_mapping'.
44943         (main): Update. Access the mappings through entries_mapping_get.
44944         Reported by Eric Blake.
44945
44946 2009-07-02  Bruno Haible  <bruno@clisp.org>
44947
44948         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
44949         best_i.
44950
44951 2009-07-02  Bruno Haible  <bruno@clisp.org>
44952
44953         Speed up approximate search for matching ChangeLog entries.
44954         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
44955         argument. Call fstrcmp_bounded instead of fstrcmp.
44956         (compute_mapping, try_split_merged_entry, main): Update callers.
44957
44958 2009-07-02  Bruno Haible  <bruno@clisp.org>
44959
44960         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
44961
44962 2009-06-30  Bruno Haible  <bruno@clisp.org>
44963
44964         Reduce the number of uc_is_cased calls.
44965         * lib/unicase.h (casing_suffix_context_t): Add
44966         'first_char_except_ignorable' field.
44967         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
44968         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
44969         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
44970         Update initializer.
44971         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
44972         case-ignorable characters.
44973         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
44974         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
44975         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
44976         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
44977         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
44978
44979 2009-06-30  Bruno Haible  <bruno@clisp.org>
44980
44981         Tests for module 'unicase/ignorable'.
44982         * modules/unicase/ignorable-tests: New file.
44983         * tests/unicase/test-ignorable.c: New file, generated by
44984         gen-uni-tables.
44985
44986         Tests for module 'unicase/cased'.
44987         * modules/unicase/cased-tests: New file.
44988         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
44989         * tests/unicase/test-predicate-part1.h: New file, derived from
44990         tests/unictype/test-predicate-part1.h.
44991         * tests/unicase/test-predicate-part2.h: New file, same as
44992         tests/unictype/test-predicate-part2.h.
44993
44994         Fix evaluation of "Before C" condition of FINAL_SIGMA.
44995         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
44996         (output_casing_properties): New function.
44997         (main): Call it.
44998         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
44999         * lib/unicase/cased.c: Include unictype/bitmap.h.
45000         (uc_is_cased): Define through a bitmap lookup.
45001         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
45002         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
45003         (uc_is_case_ignorable): Define through a bitmap lookup.
45004         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
45005         lib/unictype/bitmap.h.
45006         (Depends-on): Add inline. Clean up.
45007         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
45008         lib/unictype/bitmap.h.
45009         (Depends-on): Add inline. Clean up.
45010         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
45011         recognition.
45012         * tests/unicase/test-u16-tolower.c (main): Likewise.
45013         * tests/unicase/test-u32-tolower.c (main): Likewise.
45014
45015 2009-06-30  Bruno Haible  <bruno@clisp.org>
45016
45017         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
45018         * lib/unicase/u16-casemap.c: Likewise.
45019         * lib/unicase/u32-casemap.c: Likewise.
45020
45021 2009-06-29  Bruno Haible  <bruno@clisp.org>
45022
45023         Define u32_casefold as a wrapper around u32_ct_casefold.
45024         * lib/unicase/u32-casefold.c: Update.
45025         * modules/unicase/u32-casefold (Depends-on): Add
45026         unicase/u32-ct-casefold, unicase/empty-prefix-context,
45027         unicase/empty-suffix-context. Clean up.
45028
45029         Define u16_casefold as a wrapper around u16_ct_casefold.
45030         * lib/unicase/u16-casefold.c: Update.
45031         * modules/unicase/u16-casefold (Depends-on): Add
45032         unicase/u16-ct-casefold, unicase/empty-prefix-context,
45033         unicase/empty-suffix-context. Clean up.
45034
45035         Define u8_casefold as a wrapper around u8_ct_casefold.
45036         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
45037         * lib/unicase/u8-casefold.c: Update.
45038         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
45039         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45040
45041         Define u32_totitle as a wrapper around u32_ct_totitle.
45042         * lib/unicase/u32-totitle.c: Update.
45043         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
45044         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45045
45046         Define u16_totitle as a wrapper around u16_ct_totitle.
45047         * lib/unicase/u16-totitle.c: Update.
45048         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
45049         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45050
45051         Define u8_totitle as a wrapper around u8_ct_totitle.
45052         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
45053         functions.
45054         (FUNC): Delegate to U_CT_TOTITLE.
45055         * lib/unicase/u8-totitle.c: Update.
45056         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
45057         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45058
45059         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
45060         invocation.
45061         * modules/unicase/u32-tolower (Depends-on): Add
45062         unicase/empty-prefix-context, unicase/empty-suffix-context.
45063
45064         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
45065         invocation.
45066         * modules/unicase/u16-tolower (Depends-on): Add
45067         unicase/empty-prefix-context, unicase/empty-suffix-context.
45068
45069         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
45070         * modules/unicase/u8-tolower (Depends-on): Add
45071         unicase/empty-prefix-context, unicase/empty-suffix-context.
45072
45073         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
45074         invocation.
45075         * modules/unicase/u32-toupper (Depends-on): Add
45076         unicase/empty-prefix-context, unicase/empty-suffix-context.
45077
45078         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
45079         invocation.
45080         * modules/unicase/u16-toupper (Depends-on): Add
45081         unicase/empty-prefix-context, unicase/empty-suffix-context.
45082
45083         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
45084         * modules/unicase/u8-toupper (Depends-on): Add
45085         unicase/empty-prefix-context, unicase/empty-suffix-context.
45086
45087         New module 'unicase/u32-ct-casefold'.
45088         * lib/unicase/u32-ct-casefold.c: New file.
45089         * modules/unicase/u32-ct-casefold: New file.
45090
45091         New module 'unicase/u16-ct-casefold'.
45092         * lib/unicase/u16-ct-casefold.c: New file.
45093         * modules/unicase/u16-ct-casefold: New file.
45094
45095         New module 'unicase/u8-ct-casefold'.
45096         * lib/unicase/u8-ct-casefold.c: New file.
45097         * lib/unicase/u-ct-casefold.h: New file, derived from
45098         lib/unicase/u-casefold.h.
45099         * modules/unicase/u8-ct-casefold: New file.
45100
45101         New module 'unicase/u32-ct-totitle'.
45102         * lib/unicase/u32-ct-totitle.c: New file.
45103         * modules/unicase/u32-ct-totitle: New file.
45104
45105         New module 'unicase/u16-ct-totitle'.
45106         * lib/unicase/u16-ct-totitle.c: New file.
45107         * modules/unicase/u16-ct-totitle: New file.
45108
45109         New module 'unicase/u8-ct-totitle'.
45110         * lib/unicase/u8-ct-totitle.c: New file.
45111         * lib/unicase/u-ct-totitle.h: New file, derived from
45112         lib/unicase/u-totitle.h.
45113         * modules/unicase/u8-ct-totitle: New file.
45114
45115         New module 'unicase/u32-ct-tolower'.
45116         * lib/unicase/u32-ct-tolower.c: New file.
45117         * modules/unicase/u32-ct-tolower: New file.
45118
45119         New module 'unicase/u16-ct-tolower'.
45120         * lib/unicase/u16-ct-tolower.c: New file.
45121         * modules/unicase/u16-ct-tolower: New file.
45122
45123         New module 'unicase/u8-ct-tolower'.
45124         * lib/unicase/u8-ct-tolower.c: New file.
45125         * modules/unicase/u8-ct-tolower: New file.
45126
45127         New module 'unicase/u32-ct-toupper'.
45128         * lib/unicase/u32-ct-toupper.c: New file.
45129         * modules/unicase/u32-ct-toupper: New file.
45130
45131         New module 'unicase/u16-ct-toupper'.
45132         * lib/unicase/u16-ct-toupper.c: New file.
45133         * modules/unicase/u16-ct-toupper: New file.
45134
45135         New module 'unicase/u8-ct-toupper'.
45136         * lib/unicase/u8-ct-toupper.c: New file.
45137         * modules/unicase/u8-ct-toupper: New file.
45138
45139         Add context arguments to u*_casemap functions.
45140         * lib/unicase/unicasemap.h: Include unicase.h.
45141         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
45142         suffix_context arguments.
45143         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
45144         functions.
45145         (FUNC): Add prefix_context and suffix_context arguments. Use
45146         uc_is_cased and uc_is_case_ignorable.
45147         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
45148         * lib/unicase/u16-casemap.c: Likewise.
45149         * lib/unicase/u32-casemap.c: Likewise.
45150         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
45151         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
45152         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
45153         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
45154         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
45155         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
45156
45157         New module 'unicase/u32-suffix-context'.
45158         * lib/unicase/u32-suffix-context.c: New file.
45159         * modules/unicase/u32-suffix-context: New file.
45160
45161         New module 'unicase/u16-suffix-context'.
45162         * lib/unicase/u16-suffix-context.c: New file.
45163         * modules/unicase/u16-suffix-context: New file.
45164
45165         New module 'unicase/u8-suffix-context'.
45166         * lib/unicase/u8-suffix-context.c: New file.
45167         * lib/unicase/u-suffix-context.h: New file.
45168         * modules/unicase/u8-suffix-context: New file.
45169
45170         New module 'unicase/empty-suffix-context'.
45171         * lib/unicase/empty-suffix-context.c: New file.
45172         * modules/unicase/empty-suffix-context: New file.
45173
45174         New module 'unicase/u32-prefix-context'.
45175         * lib/unicase/u32-prefix-context.c: New file.
45176         * modules/unicase/u32-prefix-context: New file.
45177
45178         New module 'unicase/u16-prefix-context'.
45179         * lib/unicase/u16-prefix-context.c: New file.
45180         * modules/unicase/u16-prefix-context: New file.
45181
45182         New module 'unicase/u8-prefix-context'.
45183         * lib/unicase/u8-prefix-context.c: New file.
45184         * lib/unicase/u-prefix-context.h: New file.
45185         * lib/unicase/context.h: New file.
45186         * modules/unicase/u8-prefix-context: New file.
45187
45188         New module 'unicase/empty-prefix-context'.
45189         * lib/unicase/empty-prefix-context.c: New file.
45190         * modules/unicase/empty-prefix-context: New file.
45191
45192         New module 'unicase/ignorable'.
45193         * lib/unicase/ignorable.c: New file.
45194         * modules/unicase/ignorable: New file.
45195
45196         New module 'unicase/cased'.
45197         * lib/unicase/caseprop.h: New file.
45198         * lib/unicase/cased.c: New file.
45199         * modules/unicase/cased: New file.
45200
45201         New functions for case mapping of substrings.
45202         * lib/unicase.h (casing_prefix_context_t): New type.
45203         (unicase_empty_prefix_context): New variable.
45204         (u8_casing_prefix_context, u16_casing_prefix_context,
45205         u32_casing_prefix_context, u8_casing_prefixes_context,
45206         u16_casing_prefixes_context, u32_casing_prefixes_context): New
45207         declarations.
45208         (casing_suffix_context_t): New type.
45209         (unicase_empty_suffix_context): New variable.
45210         (u8_casing_suffix_context, u16_casing_suffix_context,
45211         u32_casing_suffix_context, u8_casing_suffixes_context,
45212         u16_casing_suffixes_context, u32_casing_suffixes_context,
45213         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
45214         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
45215         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
45216         declarations.
45217
45218 2009-06-28  Jim Meyering  <meyering@redhat.com>
45219
45220         boostrap: indent only with spaces
45221         * build-aux/bootstrap: Indent only with spaces, never TABs.
45222
45223         bootstrap: split long lines
45224         * build-aux/bootstrap: Keep line length < 80.
45225
45226         bootstrap: sync from coreutils
45227         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
45228         just as autoreconf does.  Verify a list of prerequisite
45229         package-name,version-number pairs if defined in bootstrap.conf.
45230         Refer to README-prereq, if prerequisites are not satisfied.
45231
45232 2009-06-27  Eric Blake  <ebb9@byu.net>
45233
45234         tests: add test for bogus NULL definition
45235         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
45236         * tests/test-stdlib.c: Likewise.
45237         * tests/test-string.c: Likewise.
45238         * tests/test-locale.c: Likewise.
45239         * tests/test-unistd.c: Likewise.
45240         * modules/stdio-tests (Depends-on): Add verify.
45241         * modules/stdlib-tests (Depends-on): Likewise.
45242         * modules/string-tests (Depends-on): Likewise.
45243         * modules/locale-tests (Depends-on): Likewise.
45244         * modules/unistd-tests (Depends-on): Likewise.
45245
45246 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
45247
45248         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
45249         self-explaining comment.
45250         * m4/selinux-selinux-h: Update serial.
45251         (gl_LIBSELINUX): New macro, adding a warning for missing development
45252         packages to code extracted from...
45253         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
45254         Add warning for missing development packages here, too.
45255
45256 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
45257
45258         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
45259
45260 2009-06-25  Eric Blake  <ebb9@byu.net>
45261
45262         version-etc: fix regression
45263         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
45264         gcc.
45265         (version_etc): Use it, to catch bugs with trailing NULL.
45266         * lib/version-etc.c (version_etc_arn): Delete unused argument.
45267         (version_etc_va): Fix logic bug.
45268         * modules/version-etc-tests: Add test.
45269         * tests/test-version-etc.c: New file.
45270         * tests/test-version-etc.sh: Likewise.
45271
45272 2009-06-25  Sam Steingold  <sds@gnu.org>
45273
45274         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
45275         mbtowc declaration.
45276
45277 2009-06-25  Eric Blake  <ebb9@byu.net>
45278
45279         fpurge: migrate into <stdio.h>
45280         * lib/fpurge.h: Delete...
45281         * lib/stdio.in.h (fpurge): ...and declare here, instead.
45282         * lib/fpurge.c (fpurge): Change declaring header.
45283         * modules/fpurge (Files): Drop deleted file.
45284         (Depends-on): Add stdio.
45285         (configure.ac): Set witness.
45286         * modules/stdio (Makefile.am): Support fpurge macros.
45287         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45288         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
45289         * lib/fflush.c: Update client.
45290         * tests/test-fpurge.c: Likewise.
45291         * NEWS: Mention the change.
45292
45293 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45294
45295         * lib/argp-version-etc.c (program_authors): Add const
45296         qualifier.
45297         * lib/version-etc.c: Fix typos in the comments.
45298         * modules/argp-version-etc: Depends on version-etc.
45299
45300 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45301
45302         argp-version-etc: new module.
45303
45304         * lib/argp-version-etc.c: New file.
45305         * lib/argp-version-etc.h: New file.
45306         * modules/argp-version-etc: New file.
45307         * modules/argp-version-etc-tests: New file.
45308         * tests/test-argp-version-etc.c: New test.
45309         * tests/test-argp-version-etc-1.sh: New test.
45310
45311 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45312
45313         Provide additional interfaces and documentation for version-etc
45314         module.
45315
45316         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
45317         interfaces.
45318         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
45319         prototypes.
45320
45321 2009-06-24  Bruno Haible  <bruno@clisp.org>
45322
45323         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
45324         HAVE_LIB${NAME} macro.
45325         Reported by Sam Steingold <sds@gnu.org>.
45326
45327 2009-06-23  Simon Josefsson  <simon@josefsson.org>
45328
45329         * modules/hash-tests (test_hash_LDADD): Link to libintl when
45330         needed.
45331
45332 2009-06-21  Bruno Haible  <bruno@clisp.org>
45333
45334         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
45335         work.
45336         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
45337         together with LIB${NAME}, LTLIB${NAME}.
45338         Reported by Sam Steingold <sds@gnu.org>.
45339
45340 2009-06-20  Jim Meyering  <meyering@redhat.com>
45341
45342         tests: make sc_require_test_exit_idiom more generic
45343         * top/maint.mk (Exit_witness_file): New overridable variable.
45344         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
45345         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
45346
45347 2009-06-19  Jim Meyering  <meyering@redhat.com>
45348
45349         hash: reverse order of src/dst parameters in an internal interface
45350         * lib/hash.c (transfer_entries): Reverse order of parameters to
45351         put DST before SRC.  Adjust callers.
45352
45353         tests: test-hash: avoid wholesale duplication
45354         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
45355         Instead, use a loop and add a single conditional.
45356
45357         tests: test-hash: allow seed selection via a command line argument
45358         * tests/test-hash.c (get_seed): New function.
45359         (main): Use it.
45360
45361 2009-06-19  Eric Blake  <ebb9@byu.net>
45362
45363         hash: avoid memory leak on allocation failure
45364         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
45365         failure.  Factor repeated algorithm...
45366         (transfer_entries): ...into new helper routine.
45367         (hash_delete): React to hash_rehash return value.
45368
45369         hash: reduce memory pressure in hash_rehash no-op case
45370         * lib/hash.c (next_prime): Avoid overflow.
45371         (hash_initialize): Factor bucket size computation...
45372         (compute_bucket_size): ...into new helper function.
45373         (hash_rehash): Use new function and open coding to reduce memory
45374         pressure, and avoid a memory leak in USE_OBSTACK code.
45375         Reported by Jim Meyering.
45376
45377 2009-06-18  Eric Blake  <ebb9@byu.net>
45378
45379         hash: make rotation more obvious
45380         * modules/hash (Depends-on): Add bitrotate and stdint.
45381         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
45382         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
45383         (SIZE_MAX): Rely on headers for definition.
45384         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
45385         (raw_hasher): Use rotr_sz.
45386         Suggested by Jim Meyering.
45387
45388         hash: fix memory leak in last patch
45389         * lib/hash.c (hash_rehash): Avoid memory leak.
45390
45391         hash: avoid no-op rehashing
45392         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
45393
45394         hash: provide default callback functions
45395         * lib/hash.c (raw_hasher, raw_comparator): New functions.
45396         (hash_initialize): Use them as defaults.
45397         * tests/test-hash.c (main): Test this.
45398
45399         hash: minor optimization
45400         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
45401         when possible.
45402         (hash_initialize): Document this promise.
45403         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
45404         * tests/test-hash.c (hash_compare_strings): Test this.
45405
45406 2009-06-18  Bruno Haible  <bruno@clisp.org>
45407
45408         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
45409         going to be replaced anyway.
45410
45411 2009-06-18  Bruno Haible  <bruno@clisp.org>
45412
45413         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
45414         in one place.
45415         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
45416         be replaced anyway.
45417
45418 2009-06-18  Eric Blake  <ebb9@byu.net>
45419
45420         hash: check for resize before insertion
45421         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
45422         threshold before insertion, so that a pathological hash_rehash
45423         that fills every bucket can still trigger another rehash.
45424
45425 2009-06-18  Jim Meyering  <meyering@redhat.com>
45426
45427         hash-tests: add a loop around the small tests
45428         * tests/test-hash.c (main): Repeat small tests with selected
45429         small initial table sizes.
45430
45431 2009-06-17  Eric Blake  <ebb9@byu.net>
45432
45433         hash: minor cleanups
45434         * lib/hash.h (hash_entry): Make opaque, by moving...
45435         * lib/hash.c (hash_entry): ...here.
45436         (hash_insert): Clarify restrictions on what can be inserted.
45437         (hash_get_next): Clarify when it is safe to remove an element
45438         during traversal.
45439         (check_tuning): Skip verification when tuning is known safe.
45440         (hash_initialize): Clarify restrictions on tuning.
45441
45442 2009-06-17  Jim Meyering  <jim@meyering.net>
45443         and Eric Blake  <ebb9@byu.net>
45444
45445         hash-tests: new module
45446         * modules/hash-tests: New file.
45447         * tests/test-hash.c: New file.
45448
45449 2009-06-17  Eric Blake  <ebb9@byu.net>
45450
45451         strstr-simple: document new module
45452         * MODULES.html.sh: Document new module.
45453
45454         strstr, strcasestr: replace on platforms with broken memchr
45455         * modules/strstr: Split into...
45456         * modules/strstr-simple: ...new module that does not care about
45457         performance, but does care about glibc bug.
45458         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
45459         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
45460         if platform memchr is broken, per Debian bug 521737.
45461         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
45462         memchr.
45463         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
45464         * doc/posix-functions/strstr.texi (strstr): Document the fix.
45465         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45466         * modules/mountlist (Depends-on): Add strstr-simple.
45467         * modules/gen-uni-tables (Depends-on): Likewise.
45468         * modules/argz (Depends-on): Add strstr.
45469
45470 2009-06-17  Bruno Haible  <bruno@clisp.org>
45471
45472         * modules/posix_spawn-internal (Depends-on): Add errno.
45473
45474 2009-06-17  Bruno Haible  <bruno@clisp.org>
45475
45476         Define missing ESTALE on Interix 3.5.
45477         * lib/errno.in.h (ESTALE): Assign a value if missing.
45478         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
45479         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
45480         missing.
45481         * doc/posix-headers/errno.texi: Mention the Interix bug.
45482         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
45483
45484 2009-06-15  Eric Blake  <ebb9@byu.net>
45485
45486         memchr, memchr2: add valgrind exception
45487         * lib/memchr.valgrind: New file.
45488         * lib/memchr2.valgrind: New file.
45489         * modules/memchr (Files): Distribute valgrind file.
45490         * modules/memchr2 (Files): Likewise.
45491
45492         docs: memchr is no longer obsolete
45493         * MODULES.html.sh: Move memchr from obsolete to string.h section.
45494         * lib/string.in.h (memchr): Simplify logic.
45495
45496 2009-06-14  Jim Meyering  <meyering@redhat.com>
45497
45498         link-follow: fix the "checking..." message to not mention trailing slash
45499         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
45500         never considered trailing slashes.
45501
45502 2009-06-14  Bruno Haible  <bruno@clisp.org>
45503
45504         * m4/memchr.m4: Mention also the bug on IA-64.
45505         * doc/posix-functions/memchr.texi: Likewise.
45506
45507 2009-06-12  Eric Blake  <ebb9@byu.net>
45508
45509         memchr: detect broken x86_64 and alpha implementations
45510         * modules/memchr-tests (Depends-on): Move mmap detection...
45511         * modules/memchr (Depends-on): ...here.
45512         (configure.ac): Set indicator.
45513         * lib/string.in.h (memchr): Declare replacement.
45514         * modules/string (Makefile.am): Trigger replacement.
45515         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
45516         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
45517         bugs.
45518         * doc/posix-functions/memchr.texi (memchr): Document the bug.
45519         * modules/getpagesize (License): Relax license.
45520
45521 2009-06-11  Bruno Haible  <bruno@clisp.org>
45522
45523         * lib/idpriv.h: Add more references.
45524
45525 2009-06-08  Bruno Haible  <bruno@clisp.org>
45526
45527         Tests for module 'idpriv-droptemp'.
45528         * modules/idpriv-droptemp-tests: New file.
45529         * tests/test-idpriv-droptemp.sh: New file.
45530         * tests/test-idpriv-droptemp.su.sh: New file.
45531         * tests/test-idpriv-droptemp.c: New file.
45532
45533         New module 'idpriv-droptemp'.
45534         * lib/idpriv-droptemp.c: New file.
45535         * modules/idpriv-droptemp: New file.
45536
45537 2009-06-08  Bruno Haible  <bruno@clisp.org>
45538
45539         Tests for module 'idpriv-drop'.
45540         * modules/idpriv-drop-tests: New file.
45541         * tests/test-idpriv-drop.sh: New file.
45542         * tests/test-idpriv-drop.su.sh: New file.
45543         * tests/test-idpriv-drop.c: New file.
45544
45545         New module 'idpriv-drop'.
45546         * lib/idpriv.h: New file.
45547         * lib-idpriv-drop.c: New file.
45548         * m4/idpriv.m4: New file.
45549         * modules/idpriv-drop: New file.
45550
45551 2009-06-08  Bruno Haible  <bruno@clisp.org>
45552
45553         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
45554         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45555         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45556         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45557         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45558         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45559         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45560
45561 2009-06-08  Eric Blake  <ebb9@byu.net>
45562
45563         test-strstr: use memory fence, when possible
45564         * tests/test-strstr.c (main): Use memory fence, in order to be
45565         more likely to trigger Debian bug 521737.
45566         * modules/strstr-tests (Files): Pull in additional files.
45567
45568         memchr: no longer obsolete, for wider field testing
45569         * modules/memchr (Status, Notice): Delete, this module is no
45570         longer obsolete.
45571         * modules/vasnprintf (Depends-on): Add memchr.
45572
45573 2009-06-07  Jim Meyering  <meyering@redhat.com>
45574
45575         hash: declare some functions with the warn_unused_result attribute
45576         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
45577
45578 2009-06-07  Bruno Haible  <bruno@clisp.org>
45579
45580         * tests/test-alignof.c: Don't test int64_t if it does not exist.
45581         Reported by Eric Blake.
45582
45583 2009-06-06  Eric Blake  <ebb9@byu.net>
45584
45585         test-alignof: fix typo with long double
45586         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
45587         compiler error.
45588
45589 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
45590
45591         Escape non-texinfo { and }s.
45592         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
45593         markup error.
45594
45595 2009-06-04  Jim Meyering  <meyering@redhat.com>
45596
45597         gitlog-to-changelog: don't infloop on an empty commit log
45598         * build-aux/gitlog-to-changelog: Warn about an empty log message.
45599         Reported by Boris Petersen <transacid@centerim.org>.
45600
45601 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
45602
45603         version-etc: extend for packagers
45604         Add three new configure options, intended for packagers:
45605           --with-packager="packager name"
45606           --with-packager-version="packager-specific version"
45607           --with-packager-bug-reports="packager bug reporting"
45608         An example with coreutils:
45609           $ ./configure \
45610             --with-packager=Gentoo \
45611             --with-packager-bug-report=http://bugs.gentoo.org/ \
45612             --with-packager-version="patchset 1.6"
45613           $ ./src/ls --version | head -n2
45614           ls (GNU coreutils) 7.1-dirty
45615           Packaged by Gentoo (patchset 1.6)
45616         Note that the bug reporting info via --help doesn't show up because
45617         coreutils uses its own custom emit_bug_reporting_address() implementation
45618         in src/system.h.  If it didn't, it'd look like:
45619           $ ./src/ls --help | tail -n4
45620           Report bugs to <bug-coreutils@gnu.org>.
45621           Report Gentoo bugs to <http://bugs.gentoo.org/>.
45622           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
45623           General help using GNU software: <http://www.gnu.org/gethelp/>.
45624         * lib/version-etc.c: Print new information, if provided.
45625         * m4/version-etc.m4: New file.
45626         * modules/version-etc (Files): Add m4/version-etc.m4.
45627         (configure.ac): Add gl_VERSION_ETC.
45628
45629 2009-05-31  Bruno Haible  <bruno@clisp.org>
45630
45631         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
45632         and 'int64_t'.
45633         * modules/alignof-tests (Dependencies): Add stdint.
45634         Reported by Eric Blake.
45635
45636 2009-05-31  Bruno Haible  <bruno@clisp.org>
45637
45638         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
45639         restriction due to compiler bugs.
45640         Reported by Eric Blake.
45641
45642 2009-05-31  Simon Josefsson  <simon@josefsson.org>
45643             Bruno Haible  <bruno@clisp.org>
45644
45645         Fix test-alignof failure.
45646         * lib/alignof.h (alignof_slot): New macro.
45647         (alignof_type): New macro, with the same semantics as the previous
45648         'alignof'.
45649         (alignof): Alias to alignof_slot.
45650         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
45651         check that the results are usable as constant expressions.
45652
45653 2009-05-31  Bruno Haible  <bruno@clisp.org>
45654
45655         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
45656         * tests/test-memchr.c (main): Check that memchr does not read past the
45657         first occurrence of the byte.
45658         * tests/test-strstr.c (main): Update comment.
45659         Suggested by Eric Blake.
45660
45661 2009-05-30  Bruno Haible  <bruno@clisp.org>
45662
45663         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
45664         detail how to use dumpbin.
45665         Reported by David Byron <dbyron@dbyron.com>.
45666
45667 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45668
45669         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
45670
45671 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45672
45673         * m4/manywarnings.m4: Add GCC 4.4 warnings.
45674
45675 2009-05-28  Bruno Haible  <bruno@clisp.org>
45676
45677         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
45678         build-aux/ files.
45679
45680 2009-05-28  Simon Josefsson  <simon@josefsson.org>
45681
45682         * gnulib-tool (func_import): Transform license on build-aux/ files too.
45683
45684 2009-05-27  Simon Josefsson  <simon@josefsson.org>
45685
45686         * gnulib-tool (sed_transform_main_lib_file)
45687         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
45688         regexps.
45689
45690 2009-05-26  Simon Josefsson  <simon@josefsson.org>
45691
45692         * tests/test-strstr.c: Add another self-test.
45693         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
45694         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
45695
45696 2009-05-23  Bruno Haible  <bruno@clisp.org>
45697
45698         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
45699         change.
45700
45701 2009-05-21  Bruno Haible  <bruno@clisp.org>
45702
45703         Simplify use of mode_t varargs.
45704         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
45705         uses 'mode_t' or 'int'.
45706         * lib/openat.c (openat): Likewise.
45707         * lib/open-safer.c (open_safer): Likewise.
45708         * m4/mode_t.m4: New file.
45709         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
45710         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
45711         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
45712         * modules/open (Files): Add m4/mode_t.m4.
45713         * modules/openat (Files): Likewise.
45714         * modules/fcntl-safer (Files): Likewise.
45715         Suggested by Eric Blake.
45716
45717 2009-05-21  Pádraig Brady  <P@draigbrady.com>
45718
45719         * doc/glibc-functions/fallocate.texi: New file.
45720         * doc/gnulib.texi: Include it.
45721
45722 2009-05-21  Eric Blake  <ebb9@byu.net>
45723             Bruno Haible  <bruno@clisp.org>
45724
45725         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
45726         invocations.
45727         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45728
45729 2009-05-21  Eric Blake  <ebb9@byu.net>
45730             Bruno Haible  <bruno@clisp.org>
45731
45732         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
45733         include_next. Fix of 2008-11-20 commit.
45734         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
45735         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
45736         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
45737         NEXT_MATH_H.
45738         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
45739         instead of NEXT_MATH_H.
45740
45741 2009-05-21  Bruno Haible  <bruno@clisp.org>
45742
45743         Avoid redefinition warnings for SIZE_MAX.
45744         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
45745         Reported by Simon Josefsson.
45746
45747 2009-05-21  Bruno Haible  <bruno@clisp.org>
45748
45749         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
45750         AC_CACHE_VAL.
45751
45752 2009-05-20  Bruno Haible  <bruno@clisp.org>
45753
45754         Make zeroptr.h work on mingw.
45755         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
45756         mprotect.
45757         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
45758         * modules/memchr2-tests (configure.ac): Likewise.
45759         * modules/memcmp-tests (configure.ac): Likewise.
45760         * modules/memmem-tests (configure.ac): Likewise.
45761         * modules/memrchr-tests (configure.ac): Likewise.
45762         Reported by Simon Josefsson.
45763
45764 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45765
45766         * tests/test-glob.c: Include string.h for strcmp prototype.
45767
45768 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45769
45770         * modules/getdelim (Depends-on): Add explicit stdint, although it
45771         was implicitly already pulled in via realloc-posix.
45772         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
45773
45774 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45775
45776         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
45777         G. Christensen" <tgc@jupiterrise.com>.
45778         * m4/sys_socket_h.m4: Check for sa_family_t.
45779         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
45780         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
45781         * tests/test-sys_socket.c: Check that sa_family_t works.
45782
45783 2009-05-18  Eric Blake  <ebb9@byu.net>
45784
45785         maint.mk: allow gnulib_dir in VPATH build
45786         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
45787
45788 2009-05-15  Jim Meyering  <meyering@redhat.com>
45789
45790         maint.mk: Give gnulib_dir a default definition.
45791         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
45792         Thus, most packages no longer need to specify this variable in cfg.mk
45793
45794 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
45795
45796         rename.m4: fix typos that would make non-mingw cross-configure fail
45797         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
45798
45799 2009-05-13  Eric Blake  <ebb9@byu.net>
45800
45801         mmap-anon: avoid out-of-order autoconf expansion
45802         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
45803         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
45804         * modules/memchr-tests (Depends-on): Add extensions.
45805         * modules/memchr2-tests (Depends-on): Add extensions.
45806         * modules/memcmp-tests (Depends-on): Add extensions.
45807         * modules/memmem-tests (Depends-on): Add extensions.
45808         * modules/memrchr-tests (Depends-on): Add extensions.
45809
45810 2009-05-13  Bruno Haible  <bruno@clisp.org>
45811
45812         Make some tests ISO C 99 compliant.
45813         * tests/zerosize-ptr.h: New file.
45814         * tests/test-memchr.c: Include zerosize-ptr.h.
45815         (main): Use a zero-size object pointer instead of NULL.
45816         * tests/test-memchr2.c: Include zerosize-ptr.h.
45817         (main): Use a zero-size object pointer instead of NULL.
45818         * tests/test-memcmp.c: Include zerosize-ptr.h.
45819         (main): Use a zero-size object pointer instead of NULL.
45820         * tests/test-memmem.c: Include zerosize-ptr.h.
45821         (main): Use a zero-size object pointer instead of NULL.
45822         * tests/test-memrchr.c: Include zerosize-ptr.h.
45823         (main): Use a zero-size object pointer instead of NULL.
45824         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
45825         m4/mmap-anon.m4.
45826         (Depends-on): Add getpagesize.
45827         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45828         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
45829         m4/mmap-anon.m4.
45830         (Depends-on): Add getpagesize.
45831         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45832         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
45833         m4/mmap-anon.m4.
45834         (Depends-on): Add getpagesize.
45835         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45836         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
45837         m4/mmap-anon.m4.
45838         (Depends-on): Add getpagesize.
45839         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45840         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
45841         m4/mmap-anon.m4.
45842         (Depends-on): Add getpagesize.
45843         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45844
45845 2009-05-12  Bruno Haible  <bruno@clisp.org>
45846
45847         Tests for module 'alignof'.
45848         * modules/alignof-tests: New file.
45849         * tests/test-alignof.c: New file.
45850
45851 2009-05-12  Bruno Haible  <bruno@clisp.org>
45852
45853         Fix alignof macro.
45854         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
45855         vendor compilers that are always correct.
45856
45857 2009-05-12  Bruno Haible  <bruno@clisp.org>
45858
45859         Make the MAP_ANONYMOUS detection work on HP-UX 11.
45860         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
45861         not whether its fully works.
45862
45863 2009-05-12  Bruno Haible  <bruno@clisp.org>
45864
45865         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
45866
45867 2009-05-12  Jim Meyering  <meyering@redhat.com>
45868
45869         * top/maint.mk: Adjust backslash alignment.
45870
45871 2009-05-11  Simon Josefsson  <simon@josefsson.org>
45872
45873         * top/maint.mk: Make $(srcdir)/build-aux configurable.
45874
45875 2009-05-11  Eric Blake  <ebb9@byu.net>
45876
45877         argp: avoid undefined behavior
45878         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
45879         macros.
45880
45881 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45882
45883         * tests/test-vc-list-files-git.sh: Do git config of user.email and
45884         user.name to prevent git commit from complaining.
45885
45886 2009-05-10  Bruno Haible  <bruno@clisp.org>
45887
45888         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
45889         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
45890         it rewrites every file name only once.
45891         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
45892
45893 2009-05-08  Bruno Haible  <bruno@clisp.org>
45894
45895         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
45896         instead of 'max'.
45897
45898 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45899
45900         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
45901         sockaddr_storage test.
45902
45903 2009-05-07  Simon Josefsson  <simon@josefsson.org>
45904
45905         * modules/sys_socket (Makefile.am): Substitute
45906         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
45907         * m4/sys_socket_h.m4: Check for sockaddr_storage.
45908         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
45909         * tests/test-sys_socket.c: Check sockaddr_storage.
45910
45911 2009-05-08  Bruno Haible  <bruno@clisp.org>
45912
45913         New module 'alignof'.
45914         * lib/alignof.h: New file.
45915         * modules/alignof: New file.
45916
45917 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45918             Bruno Haible  <bruno@clisp.org>
45919
45920         Fix test-file-has-acl on FreeBSD.
45921         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
45922         mask is implicitly added.
45923         * tests/test-file-has-acl.c: Include <signal.h>.
45924         (main): Terminate the test after 5 seconds.
45925         * modules/acl-tests (configure.ac): Check for alarm function.
45926
45927 2009-05-04  Bruno Haible  <bruno@clisp.org>
45928
45929         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
45930         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
45931         * modules/errno (configure.ac): Drop AC_REQUIRE.
45932         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
45933         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
45934
45935 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45936
45937         * modules/glob-tests: New module.
45938         * tests/test-glob.c: Add.
45939
45940 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45941
45942         * modules/fnmatch-tests: New module.
45943         * tests/test-fnmatch.c: Add.
45944
45945 2009-05-04  Eric Blake  <ebb9@byu.net>
45946
45947         maint: make the new no-submodule-changes rule VPATH-safe
45948         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
45949
45950 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45951             Bruno Haible  <bruno@clisp.org>
45952
45953         acl: Fix infinite loop on FreeBSD.
45954         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
45955         of return value from acl_get_entry.
45956         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
45957         Likewise.
45958
45959 2009-05-03  Bruno Haible  <bruno@clisp.org>
45960
45961         * lib/acl-internal.h (acl_entries): Clarify return value.
45962         * lib/acl_entries.c (acl_entries): Likewise.
45963
45964 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45965
45966         Bug fix in acl module.
45967         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
45968
45969 2009-05-03  Bruno Haible  <bruno@clisp.org>
45970
45971         Create gperf-generated file in the source dir, not in the build dir.
45972         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
45973         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
45974         * modules/unicase/locale-language (unicase/locale-languages.h):
45975         Likewise.
45976         * modules/unicase/special-casing (unicase/special-casing-table.h):
45977         Likewise.
45978         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
45979         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
45980         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
45981         Reported by Ralf Wildenhues.
45982
45983 2009-05-03  Bruno Haible  <bruno@clisp.org>
45984
45985         * modules/fnmatch (Description, configure.ac): Taken from
45986         fnmatch-posix.
45987         * modules/fnmatch-posix: Turn into a symbolic reference to the
45988         'fnmatch' module, and deprecate.
45989         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
45990
45991 2009-05-03  Bruno Haible  <bruno@clisp.org>
45992
45993         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
45994         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
45995         Reported by Ralf Wildenhues.
45996
45997 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45998
45999         * m4/fnmatch.m4: Fix fnmatch re-define.
46000
46001 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46002
46003         priv-set: new module and tests; adapt write-any-file
46004         * lib/priv-set.c: New file.
46005         * lib/priv-set.h: New file.
46006         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
46007         * lib/write-any-file.c: Simplify by using priv-set module.
46008         * m4/priv-set.m4: New file.
46009         * modules/priv-set: New file.
46010         * modules/unlinkdir: Add dependency on priv-set module.
46011         * modules/write-any-file: Likewise.
46012
46013         Tests for module 'priv-set'.
46014         * modules/priv-set-tests: New file.
46015         * tests/test-priv-set.c: New file.
46016
46017 2009-05-03  Jim Meyering  <meyering@redhat.com>
46018             Bruno Haible  <bruno@clisp.org>
46019
46020         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
46021         use the converted UTF-8 variant of the name instead.
46022
46023 2009-05-03  Jim Meyering  <meyering@redhat.com>
46024
46025         tests: tighten some getdate tests
46026         * tests/test-getdate.c (main): Tighten tests: require equality,
46027         not just greater than.  Set TZ envvar to UTC0.
46028
46029 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
46030
46031         getdate: correctly interpret "next monday" when run on a Monday
46032         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
46033         that e.g., "next tues" (when run on a tuesday) results in a date
46034         that is one week in the future, and not today's date.
46035         I.e., add a week when the wday is the same as the current one.
46036         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
46037         and earlier by Martin Bernreuther and Jan Minář.
46038         * tests/test-getdate.c (main): Check that "next DAY" is always in
46039         the future and that "last DAY" is always in the past.
46040
46041 2009-05-02  Jim Meyering  <meyering@redhat.com>
46042
46043         build: ensure that a release build fails when a submodule is unclean
46044         * top/maint.mk (no-submodule-changes): New rule.
46045         (alpha beta major): Depend on it.
46046
46047 2009-05-02  Bruno Haible  <bruno@clisp.org>
46048
46049         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
46050         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
46051         shell variable gl_fnmatch_required to detect which variant is
46052         requested.
46053         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
46054         gl_FUNC_FNMATCH_POSIX.
46055         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
46056         exclude fnmatch-posix.
46057
46058 2009-05-02  Bruno Haible  <bruno@clisp.org>
46059
46060         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
46061         * modules/mbsrtowcs (License): Change to LGPLv2+.
46062         * modules/strnlen1 (License): Likewise.
46063         Reported by Simon Josefsson.
46064
46065 2009-05-02  Bruno Haible  <bruno@clisp.org>
46066
46067         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
46068         "cross".
46069         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
46070         gnulib-tool was called with option --source-base=lib.
46071
46072 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46073
46074         Use automake *-local hooks without commands, for extensibility.
46075         * modules/localcharset (Makefile.am): Rename install-exec-local
46076         rule to install-exec-localcharset, and make it a prerequisite of
46077         install-exec-local.  Likewise, rename the uninstall-local rule to
46078         uninstall-localcharset, and make it a prerequisite of the former.
46079
46080 2009-05-01  Bruno Haible  <bruno@clisp.org>
46081
46082         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
46083         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
46084         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
46085         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
46086         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
46087         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
46088         m4/locale-zh.m4, m4/codeset.m4.
46089
46090         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
46091         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
46092         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
46093         m4/locale-zh.m4.
46094
46095         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
46096         REPLACE_WCRTOMB if mbstate_t must be replaced.
46097         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
46098         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
46099
46100 2009-05-01  Bruno Haible  <bruno@clisp.org>
46101
46102         Avoid compiler warnings when redefining macros defined by <libintl.h>.
46103         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
46104         dngettext, dcngettext, textdomain, bindtextdomain,
46105         bind_textdomain_codeset): Undefine before redefining.
46106
46107 2009-04-30  Bruno Haible  <bruno@clisp.org>
46108
46109         Fix bug introduced on 2009-04-25.
46110         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
46111         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
46112         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
46113         is defined.
46114         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
46115         is defined.
46116         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
46117         is defined.
46118         Reported by Elbert_Pol <elbert.pol@gmail.com>.
46119
46120 2009-04-28  Bruno Haible  <bruno@clisp.org>
46121
46122         Comment tweaks.
46123         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
46124         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
46125         * lib/unicase.h (u*_casexfrm): Likewise.
46126         Reported by Paolo Bonzini.
46127
46128 2009-04-28  Bruno Haible  <bruno@clisp.org>
46129
46130         Fix a compilation error.
46131         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
46132         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
46133         Reported by Jim Meyering.
46134
46135 2009-04-27  Bruno Haible  <bruno@clisp.org>
46136
46137         New module 'libunistring'.
46138         * modules/libunistring: New file.
46139         * m4/libunistring.m4: New file.
46140         * MODULES.html.sh (Unicode string functions): Add it.
46141
46142 2009-04-27  Eric Blake  <ebb9@byu.net>
46143
46144         maint.mk: allow package-specific header to provide <config.h>
46145         * top/maint.mk (sc_require_config_h): New variable.
46146         (sc_require_config_h, sc_require_config_h_first): Use it.
46147
46148 2009-04-27  Simon Josefsson  <simon@josefsson.org>
46149
46150         * top/maint.mk (sc_avoid_if_before_free): Except
46151         useless-if-before-free script.
46152
46153 2009-04-27  Eric Blake  <ebb9@byu.net>
46154
46155         maintainer-makefile: depend on all required helper scripts
46156         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
46157         useless-if-before-free.
46158         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
46159         version, rather than assuming gnulib checkout is available.
46160         Reported by Simen Josefsson.
46161
46162 2009-04-26  Bruno Haible  <bruno@clisp.org>
46163
46164         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
46165         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
46166         "../" or "..".
46167
46168 2009-04-26  Bruno Haible  <bruno@clisp.org>
46169
46170         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
46171         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
46172         AC_LIB_HAVE_LINKFLAGS.
46173
46174 2009-04-26  Bruno Haible  <bruno@clisp.org>
46175
46176         Simplify calling convention of u*_conv_from_encoding.
46177         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
46178         u32_conv_from_encoding): Expect a resultbuf argument and return the
46179         result directly as a pointer.
46180         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
46181         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
46182         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
46183         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
46184         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
46185         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
46186         Update.
46187         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
46188         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
46189         * lib/vasnprintf.c (VASNPRINTF): Update.
46190         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
46191         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
46192         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
46193         * NEWS: Mention the change.
46194
46195 2009-04-26  Bruno Haible  <bruno@clisp.org>
46196
46197         Simplify calling convention of u*_conv_to_encoding.
46198         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
46199         u32_conv_to_encoding): Expect a resultbuf argument and return the
46200         result directly as a pointer.
46201         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
46202         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
46203         freeing scaled_offsets if mem_iconveha failed.
46204         * lib/unicase/u-casexfrm.h (FUNC): Update.
46205         * lib/uninorm/u-normxfrm.h (FUNC): Update.
46206         * lib/vasnprintf.c (VASNPRINTF): Update.
46207         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
46208         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
46209         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
46210         * NEWS: Mention the change.
46211
46212 2009-04-26  Bruno Haible  <bruno@clisp.org>
46213
46214         Avoid test failures on AIX and OSF/1.
46215         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
46216         malloc(0).
46217         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
46218         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
46219         Likewise.
46220         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
46221         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
46222         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
46223         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
46224         * doc/posix-functions/malloc.texi: Document the portability problem
46225         related to malloc(0).
46226
46227 2009-04-26  Bruno Haible  <bruno@clisp.org>
46228
46229         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
46230         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
46231         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
46232
46233 2009-04-25  Bruno Haible  <bruno@clisp.org>
46234
46235         Avoid link error when creating a namespace clean library.
46236         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
46237         as macro with arguments if already defined as an alias.
46238         * lib/signbitf.c (gl_signbitf): Don't undefine.
46239         * lib/signbitd.c (gl_signbitd): Don't undefine.
46240         * lib/signbitl.c (gl_signbitl): Don't undefine.
46241
46242 2009-04-25  Jim Meyering  <meyering@redhat.com>
46243
46244         vc-list-files: fix another quoting bug
46245         * build-aux/vc-list-files: Avoid sed backslash expansion
46246         of pathological directory names.
46247
46248 2009-04-25  Eric Blake  <ebb9@byu.net>
46249
46250         vc-list-files: fix shell quoting error
46251         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
46252         timestamp.
46253
46254 2009-04-25  Jim Meyering  <meyering@redhat.com>
46255
46256         vc-list-files: restore lost functionality with subdir argument
46257         * build-aux/vc-list-files: When given a non-"." sub-directory
46258         argument, substitute the $dir/ prefix back onto each resulting name.
46259         Otherwise, coreutils' root_tests check would fail.
46260
46261 2009-04-24  Eric Blake  <ebb9@byu.net>
46262
46263         vc-list-files: ignore git symlinks
46264         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
46265         than ls-files, to ignore git symlinks.
46266
46267         maint.mk: import improvements from m4
46268         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
46269         (move_if_change): Delete unused macro.
46270         (news-date-check, vc-diff-check): Support VPATH builds.
46271         (announcement): Likewise.  Split --bootstrap-tools list...
46272         (boostrap-tools): ...into separate list, which can be overridden
46273         in cfg.mk.
46274         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
46275         requiring dependency on useless-if-before-free module.
46276         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
46277         Support VPATH builds.
46278
46279 2009-04-24  Jim Meyering  <meyering@redhat.com>
46280
46281         maint.mk: remove coreutils-specific rules and variables
46282         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
46283         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
46284         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
46285
46286         maint.mk: remove obsolete rule
46287         * top/maint.mk (rel-check): Remove rule.
46288         (WGET, WGETFLAGS): Remove now-unused variables.
46289
46290 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46291
46292         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
46293         consistency.
46294
46295         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
46296         '$(PATH_SEPARATOR)' instead of ':'.
46297
46298 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46299
46300         * lib/getopt1.c (main): Use 'const' for static array.
46301
46302 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46303
46304         * top/maint.mk: Sync with coreutils.
46305         * NEWS: Explain incompatibilities.
46306
46307 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46308             Bruno Haible  <bruno@clisp.org>
46309
46310         Fix cross-compilation results.
46311         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
46312         statement, as third argument of AC_TRY_RUN.
46313         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
46314         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
46315         Likewise.
46316         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
46317         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
46318         Likewise.
46319         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
46320         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
46321         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
46322
46323 2009-04-20  Bruno Haible  <bruno@clisp.org>
46324
46325         Avoid test failure on mingw.
46326         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
46327
46328 2009-04-20  Bruno Haible  <bruno@clisp.org>
46329
46330         Avoid compilation error on mingw.
46331         * modules/localename-tests (Depends-on): Add locale.
46332
46333 2009-04-19  Bruno Haible  <bruno@clisp.org>
46334
46335         Support for building a shared library on Windows platforms.
46336         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
46337         (main): Test the presence of UNINORM_NFC here.
46338         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
46339         (main): Test the presence of UNINORM_NFD here.
46340         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
46341         (main): Test the presence of UNINORM_NFKC here.
46342         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
46343         (main): Test the presence of UNINORM_NFKD here.
46344
46345 2009-04-19  Bruno Haible  <bruno@clisp.org>
46346
46347         Avoid a compiler warning.
46348         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
46349         Change type of variable 'sequence'.
46350
46351 2009-04-19  Bruno Haible  <bruno@clisp.org>
46352
46353         * modules/configmake (Makefile.am): When the contents of configmake.h
46354         does not change, arrange to preserve its modification time.
46355
46356 2009-04-17  Simon Josefsson  <simon@josefsson.org>
46357
46358         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
46359         gettext domain.
46360
46361 2009-04-16  Jim Meyering  <meyering@redhat.com>
46362
46363         useless-if-before-free: improve conversion code
46364         * build-aux/useless-if-before-free: Adjust code-in-comment to match
46365         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
46366
46367 2009-04-14  Bruno Haible  <bruno@clisp.org>
46368
46369         * modules/fcntl (Depends-on): Add extensions.
46370         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
46371
46372 2009-04-12  Ben Pfaff  <blp@gnu.org>
46373
46374         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
46375         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
46376
46377 2009-03-20  Ben Pfaff  <blp@gnu.org>
46378
46379         Make rename replace existing destinations on Windows.
46380         * m4/rename.m4: Add test for Mingw.
46381         * lib/rename.c: Add rename replacement that uses MoveFileEx with
46382         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
46383         * doc/posix-functions/rename.texi: Document.
46384
46385 2009-04-10  Bruno Haible  <bruno@clisp.org>
46386
46387         New include file "iconveh.h".
46388         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
46389         * lib/striconveh.h: Include it.
46390         (enum iconv_ilseq_handler): Remove definition.
46391         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
46392         striconveh.h.
46393         * lib/striconveha.c: Include striconveh.h.
46394         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
46395         * modules/striconveh (Files): Add lib/iconveh.h.
46396         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
46397         lib/striconveh.h.
46398
46399 2009-04-10  Bruno Haible  <bruno@clisp.org>
46400
46401         * lib/uniconv.h: Update comment.
46402
46403 2009-04-10  Bruno Haible  <bruno@clisp.org>
46404
46405         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
46406         always.
46407         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
46408         * lib/unistr/u16-mbtouc-aux.c: Likewise.
46409         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
46410         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
46411         "unistring-notinline.h", so that the function gets defined always.
46412         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
46413         * lib/unistr/u8-uctomb.c: Likewise.
46414         * lib/unistr/u16-mbtouc.c: Likewise.
46415         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
46416         * lib/unistr/u16-uctomb.c: Likewise.
46417         * lib/unistr/u32-mbtouc.c: Likewise.
46418         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
46419         * lib/unistr/u32-uctomb.c: Likewise.
46420
46421 2009-04-10  Bruno Haible  <bruno@clisp.org>
46422
46423         Mark 'utime' obsolete.
46424         * modules/utime (Status, Notice): New sections.
46425         Suggested by Jim Meyering.
46426
46427         Fix cross-compile guess for utime test.
46428         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
46429         autoconf.
46430         * doc/posix-functions/utime.texi: Give more precisions.
46431         Reported by Jan <ipif@ymail.com>.
46432
46433 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
46434
46435         filevercmp: correct today's change
46436         * lib/filevercmp.c: Also handle coreutils' test inputs.
46437         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
46438
46439         Fix regression in 'filevercmp' module. Thanks Sven Joachim
46440         for reporting it.
46441         * lib/filevercmp.c: Special handle for "", "." and "..".
46442         * tests/test-filevercmp.c: Enlarge the set suite.
46443
46444 2009-04-07  Jim Meyering  <meyering@redhat.com>
46445
46446         useless-if-before-free: show how to remove braced useless free, too
46447         * build-aux/useless-if-before-free: still only in a comment, though.
46448
46449 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
46450
46451         maint.mk: import changes to syntax-check macros from coreutils
46452         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
46453         Use them in the relevant macros.
46454
46455 2009-04-06  Bruno Haible  <bruno@clisp.org>
46456
46457         Fix unportable use of bit-fields.
46458         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
46459         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
46460         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
46461
46462 2009-04-06  Bruno Haible  <bruno@clisp.org>
46463
46464         Avoid test failures on AIX and OSF/1.
46465         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
46466         that malloc(0) = NULL.
46467         * tests/unicase/test-u8-tolower.c (check): Likewise.
46468         * tests/unicase/test-u8-totitle.c (check): Likewise.
46469         * tests/unicase/test-u8-toupper.c (check): Likewise.
46470         * tests/unicase/test-u16-casefold.c (check): Likewise.
46471         * tests/unicase/test-u16-tolower.c (check): Likewise.
46472         * tests/unicase/test-u16-totitle.c (check): Likewise.
46473         * tests/unicase/test-u16-toupper.c (check): Likewise.
46474         * tests/unicase/test-u32-casefold.c (check): Likewise.
46475         * tests/unicase/test-u32-tolower.c (check): Likewise.
46476         * tests/unicase/test-u32-totitle.c (check): Likewise.
46477         * tests/unicase/test-u32-toupper.c (check): Likewise.
46478         * tests/uninorm/test-u8-nfc.c (check): Likewise.
46479         * tests/uninorm/test-u8-nfd.c (check): Likewise.
46480         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
46481         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
46482         * tests/uninorm/test-u16-nfc.c (check): Likewise.
46483         * tests/uninorm/test-u16-nfd.c (check): Likewise.
46484         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
46485         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
46486         * tests/uninorm/test-u32-nfc.c (check): Likewise.
46487         * tests/uninorm/test-u32-nfd.c (check): Likewise.
46488         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
46489         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
46490
46491 2009-04-05  Bruno Haible  <bruno@clisp.org>
46492
46493         Work around an autoconf limitation.
46494         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
46495         comment line if it would be longer than 3 KB.
46496
46497 2009-04-05  Bruno Haible  <bruno@clisp.org>
46498
46499         Avoid test failure with libiconv-1.13.
46500         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
46501         of the expected test results.
46502
46503 2009-04-05  Bruno Haible  <bruno@clisp.org>
46504
46505         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
46506         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
46507         that it should be installed.
46508
46509 2009-04-05  Bruno Haible  <bruno@clisp.org>
46510
46511         * gnulib-tool: New option --copy-file.
46512         (func_usage): Document it.
46513         (func_dest_tmpfilename): Moved out of func_import.
46514         (func_add_file, func_update_file): New functions, extracted from
46515         func_import.
46516         (func_import): Update.
46517
46518 2009-04-05  Karl Berry  <karl@gnu.org>
46519
46520         * README: prominently mention gnulib-tool.
46521         Rearrange sections so getting the code is near the top.
46522
46523 2009-04-05  Bruno Haible  <bruno@clisp.org>
46524
46525         * lib/unicase.h: Mention u*_cmp2.
46526         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
46527         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
46528         * lib/unicase/ulc-casecmp.c: Likewise.
46529         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
46530         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
46531         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
46532         unistr/u8-cmp.
46533         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
46534         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
46535         unistr/u16-cmp.
46536         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
46537         unistr/u32-cmp.
46538
46539         * lib/uninorm.h: Mention u*_cmp2.
46540         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
46541         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
46542         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
46543         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
46544         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
46545         unistr/u8-cmp.
46546         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
46547         unistr/u16-cmp.
46548         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
46549         unistr/u32-cmp.
46550
46551         New module 'unistr/u32-cmp2'.
46552         * lib/unistr/u32-cmp2.c: New file.
46553         * modules/unistr/u32-cmp2: New file.
46554
46555         New module 'unistr/u16-cmp2'.
46556         * lib/unistr/u16-cmp2.c: New file.
46557         * modules/unistr/u16-cmp2: New file.
46558
46559         New module 'unistr/u8-cmp2'.
46560         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
46561         * lib/unistr/u8-cmp2.c: New file.
46562         * lib/unistr/u-cmp2.h: New file.
46563         * modules/unistr/u8-cmp2: New file.
46564
46565 2009-04-05  Bruno Haible  <bruno@clisp.org>
46566
46567         * lib/unictype.h (uc_property_is_valid): New macro.
46568         * tests/unictype/test-pr_byname.c (main): Use it.
46569
46570         * lib/unistr.h: Doc fixes.
46571         * lib/uniconv.h: Doc fixes.
46572         * lib/unictype.h: Doc fixes.
46573
46574 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
46575
46576         Port coreutils 7.2 to Solaris 8.
46577
46578         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
46579         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
46580         for Solaris 8.  This is a bit of a hack, as it means it's the
46581         caller's responsibility to add -lnsl if needed, but most likely it
46582         won't be needed since only getaddrinfo uses this and getaddrinfo
46583         isn't needed on Solaris 8.
46584
46585         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
46586         problem to Solaris 8 encountered with coreutils 7.2, which
46587         resulted in a message "fnmatch.c:292: warning: passing argument 4
46588         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
46589         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
46590
46591 2009-04-03  Simon Josefsson  <simon@josefsson.org>
46592
46593         * m4/ld-version-script.m4: Add FIXME comment.
46594
46595 2009-04-02  Simon Josefsson  <simon@josefsson.org>
46596
46597         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
46598         SOVERSION variable.
46599
46600 2009-04-02  Bruno Haible  <bruno@clisp.org>
46601
46602         * Makefile (info, html, dvi, pdf): Combine the rules.
46603         Suggested by Jim Meyering.
46604
46605 2009-04-01  Bruno Haible  <bruno@clisp.org>
46606
46607         * Makefile (info, html, dvi, pdf): New targets.
46608         Reported by Reuben Thomas <rrt@sc3d.org>.
46609
46610 2009-04-01  Bruno Haible  <bruno@clisp.org>
46611
46612         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
46613         can be put into PATH.
46614         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
46615
46616 2009-04-01  Bruno Haible  <bruno@clisp.org>
46617
46618         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
46619
46620 2009-04-01  Bruno Haible  <bruno@clisp.org>
46621
46622         Rename module 'visibility'.
46623         * modules/lib-symbol-visibility: Renamed from modules/visibility.
46624         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
46625         * doc/gnulib.texi: Update.
46626         * MODULES.html.sh (Misc): Update.
46627         * NEWS: Mention the change.
46628
46629 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46630
46631         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
46632         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
46633         Eric Blake <ebb9@byu.net> for review.
46634         * MODULES.html.sh: Add lib-msvc-compat.
46635         * doc/gnulib.texi: Link to new section.
46636         * m4/ld-output-def.m4: New file.
46637         * doc/ld-output-def.texi: New file.
46638
46639 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46640
46641         Rename ld-version-script to lib-symbol-versions.  Suggested by
46642         Bruno Haible <bruno@clisp.org>.
46643         * modules/ld-version-script: Renamed to lib-symbol-versions.
46644         * doc/ld-version-script.texi: Fix module name.
46645         * MODULES.html.sh: Add lib-symbol-versions.
46646
46647 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46648
46649         * modules/u64-tests: New file.
46650         * tests/test-u64.c: New file.
46651
46652 2009-03-04  Simon Josefsson  <simon@josefsson.org>
46653
46654         * MODULES.html.sh: Mention u64.
46655         * modules/u64: New module.
46656         * modules/crypto/sha512: Depend on u64 module instead of providing
46657         u64.h.
46658
46659 2009-03-27  Eric Blake  <ebb9@byu.net>
46660
46661         test-strerror: make debugging EAI_SYSTEM easier
46662         * modules/getaddrinfo-tests (Depends-on): Add strerror.
46663         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
46664         failure was EAI_SYSTEM.
46665
46666 2009-03-25  Bruno Haible  <bruno@clisp.org>
46667
46668         Fix a problem with --enable-relocatable on Solaris 7.
46669         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
46670         since 2008-02-24.
46671
46672 2009-03-25  Eric Blake  <ebb9@byu.net>
46673
46674         test-sockets: avoid gcc warning
46675         * tests/test-sockets.c (main): Silence compiler warning.
46676
46677 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
46678
46679         New modules nproc, pthread, contributed by Glen Lenker.
46680
46681         * MODULES.html.sh: Add pthread, nproc.
46682         * lib/nproc.c: New file.
46683         * lib/nproc.h: New file.
46684         * lib/pthread.in.h: New file.
46685         * m4/pthread.m4: New file.
46686         * modules/nproc: New file.
46687         * modules/pthread: New file.
46688
46689 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46690
46691         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
46692         New variable.
46693
46694 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
46695
46696         filevercmp: handle simple~ and numbered.~3~ backup suffixes
46697         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
46698         * tests/test-filevercmp.c: Add tests for backup suffixes.
46699
46700 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46701
46702         * modules/stdlib (Depends-on): Add stdint, needed when defining
46703         struct random_data on, for example, HP-UX 10.20.  Reported by
46704         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46705
46706 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46707
46708         * lib/readline.c (readline): Call fflush on stdout after printing
46709         prompt.
46710
46711 2009-03-20  Bruno Haible  <bruno@clisp.org>
46712
46713         Remove dependency from 'close' module to -lws2_32 on native Windows.
46714         * lib/close-hook.h: New file.
46715         * lib/close-hook.c: New file.
46716         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
46717         w32sock.h.
46718         (_gl_close_fd_maybe_socket): Remove function.
46719         (rpl_close): Invoke execute_all_close_hooks instead of
46720         _gl_close_fd_maybe_socket.
46721         * lib/sockets.c: Include close-hook.h, w32sock.h.
46722         (close_fd_maybe_socket): New function, essentially from lib/close.c.
46723         (close_sockets_hook): New variable.
46724         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
46725         (gl_sockets_cleanup): Unregister it.
46726         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
46727         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
46728         * modules/close-hook: New file.
46729         * modules/close (Files): Remove lib/w32sock.h.
46730         (Depends-on): Add close-hook.
46731         (Link): Remove section.
46732         * modules/sockets (Files): Add lib/w32sock.h.
46733         (Depends-on): Add close-hook.
46734         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
46735         invocation.
46736         * NEWS: Mention that LIB_CLOSE is gone.
46737
46738 2009-03-23  Eric Blake  <ebb9@byu.net>
46739
46740         signal-tests: test previous patch
46741         * tests/test-signal.c: New file.
46742         * modules/signal-tests: Likewise.
46743
46744         signal.h: always support 'volatile sig_atomic_t'
46745         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
46746         (gl_SIGNAL_H_DEFAULTS): Add a default.
46747         * modules/signal (Makefile.am): Substitute if needed.
46748         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
46749         users can blindly add volatile.
46750         * doc/posix-headers/signal.texi (signal.h): Document it.
46751         Reported by Matthew Woehlke.
46752
46753 2009-03-23  Jim Meyering  <meyering@redhat.com>
46754
46755         pathmax: PATH_MAX: use pathconf only when available
46756         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
46757         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
46758         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
46759         This avoids a link failure in a PSP cross-compilation environment
46760         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
46761
46762         * lib/vasnprintf.c (divide): Fix typo in comment.
46763
46764 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46765
46766         * gnulib-tool (func_filter_filelist): Fix comment.
46767
46768 2009-03-20  Bruno Haible  <bruno@clisp.org>
46769
46770         Make sockets.h self-contained.
46771         * lib/sockets.c: Include sockets.h first.
46772         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
46773
46774 2009-03-19  Eric Blake  <ebb9@byu.net>
46775
46776         doc: mention more functions added in cygwin 1.7.0
46777         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
46778         addition.
46779         * doc/posix-functions/log2f.texi: Likewise.
46780
46781 2009-03-19  Jim Meyering  <meyering@redhat.com>
46782
46783         fsusage: avoid syntax error due to statement-before-declaration
46784         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
46785         after all declarations.  Reported by Matthew Woehlke in
46786         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
46787
46788 2009-03-18  Eric Blake  <ebb9@byu.net>
46789
46790         build-aux/compile: sync from automake
46791         * build-aux/compile: New file, from automake.
46792         * config/srclist.txt: Mention build-aux/compile.
46793
46794 2009-03-17  Bruno Haible  <bruno@clisp.org>
46795
46796         * lib/git-merge-changelog.c: Fix typo in comment.
46797         Reported by Reuben Thomas <rrt@sc3d.org>.
46798
46799 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
46800
46801         * m4/regex.m4: update and improve help for
46802         --without-included-regex.
46803
46804 2009-03-17  Simon Josefsson  <simon@josefsson.org>
46805
46806         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
46807         failure on missing include files.
46808
46809 2009-03-17  Eric Blake  <ebb9@byu.net>
46810
46811         doc: mention more functions added in cygwin 1.7.0
46812         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
46813         addition.
46814         * doc/posix-functions/fwscanf.texi: Likewise.
46815         * doc/posix-functions/swprintf.texi: Likewise.
46816         * doc/posix-functions/swscanf.texi: Likewise.
46817         * doc/posix-functions/vfwprintf.texi: Likewise.
46818         * doc/posix-functions/vfwscanf.texi: Likewise.
46819         * doc/posix-functions/vswprintf.texi: Likewise.
46820         * doc/posix-functions/vswscanf.texi: Likewise.
46821         * doc/posix-functions/vwprintf.texi: Likewise.
46822         * doc/posix-functions/vwscanf.texi: Likewise.
46823         * doc/posix-functions/wcscasecmp.texi: Likewise.
46824         * doc/posix-functions/wcsdup.texi: Likewise.
46825         * doc/posix-functions/wcsftime.texi: Likewise.
46826         * doc/posix-functions/wcsncasecmp.texi: Likewise.
46827         * doc/posix-functions/wprintf.texi: Likewise.
46828         * doc/posix-functions/wscanf.texi: Likewise.
46829         * doc/glibc-functions/gethostbyname2.texi: Likewise.
46830
46831 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46832
46833         maint.mk: really add $(AM_MAKEFLAGS)
46834         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
46835         was inadvertently omitted in the last commit.
46836         Spotted by Bruno Haible.
46837
46838         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
46839         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
46840         $(AM_MAKEFLAGS)' rather than plain `make'.
46841
46842         gnulib-tool: execute $MAKE not make
46843         * gnulib-tool: Default $MAKE to 'make'.
46844         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
46845         than make.  Initialize $MAKE in the do-autobuild script.
46846
46847         gnulib-tool: use $MAKE not make in generated files
46848         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
46849         make, in generated files.  Initialize $MAKE in the do-autobuild
46850         script.
46851
46852         * top/GNUmakefile (_have-git-version-gen): Fix typo.
46853
46854         GNUmakefile: disable parallelism only for multiple, recursive targets
46855         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
46856         additions in the Makefile.
46857         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
46858         by Automake.
46859         (.NOTPARALLEL): Only disable parallel builds if multiple targets
46860         are listed on the command line and at least one of them is
46861         listed in $(ALL_RECURSIVE_TARGETS).
46862
46863 2009-03-14  Bruno Haible  <bruno@clisp.org>
46864
46865         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
46866         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
46867         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
46868         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
46869         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
46870         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
46871         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
46872         unistr/u8-uctomb.
46873         * modules/unistr/u8-strchr (Depends-on): Likewise.
46874         * modules/unistr/u8-strrchr (Depends-on): Likewise.
46875         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
46876         unistr/u16-uctomb.
46877         * modules/unistr/u16-strchr (Depends-on): Likewise.
46878         * modules/unistr/u16-strrchr (Depends-on): Likewise.
46879
46880 2009-03-12  Bruno Haible  <bruno@clisp.org>
46881
46882         Work around select() bug on Interix 3.5.
46883         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
46884         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
46885         * m4/select.m4: New file.
46886         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
46887         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
46888         * modules/select (Files): Add m4/select.m4.
46889         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
46890         * modules/nanosleep (Depends-on): Add select.
46891         * modules/poll (Depends-on): Likewise.
46892         * doc/posix-functions/select.texi: Mention the Interix bug.
46893         Reported by Markus Duft <mduft@gentoo.org>.
46894
46895         * lib/select.c: Renamed from lib/winsock-select.c.
46896         * modules/select (Files): Add lib/select.c, remove
46897         lib/winsock-select.c.
46898         (configure.ac): Update.
46899
46900 2009-03-12  Jim Meyering  <meyering@redhat.com>
46901
46902         avoid gcc warnings about unused macro definitions
46903         * lib/readtokens.c (STREQ): Remove unused definition.
46904         * lib/xmalloc.c (SIZE_MAX): Likewise.
46905         * lib/openat-die.c (N_): Likewise.
46906         * lib/mountlist.c (SIZE_MAX): Remove definition.
46907         Instead, include <stdint.h>.
46908         * lib/readutmp.c: Likewise.
46909         * modules/readutmp (Depends-on): Add stdint.
46910         * modules/mountlist (Depends-on): Add stdint.
46911         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
46912
46913 2009-03-10  Bruno Haible  <bruno@clisp.org>
46914
46915         Tests for module 'mbmemcasecoll'.
46916         * modules/mbmemcasecoll-tests: New file.
46917         * tests/test-mbmemcasecoll1.sh: New file.
46918         * tests/test-mbmemcasecoll2.sh: New file.
46919         * tests/test-mbmemcasecoll3.sh: New file.
46920         * tests/test-mbmemcasecoll.c: New file.
46921
46922         New module 'mbmemcasecoll'.
46923         * lib/mbmemcasecoll.h: New file.
46924         * lib/mbmemcasecoll.c: New file.
46925         * modules/mbmemcasecoll: New file.
46926
46927         * tests/test-mbmemcasecmp.h: New file, extracted from
46928         tests/test-mbmemcasecmp.c.
46929         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
46930         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
46931         (main): Update.
46932         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
46933
46934 2009-03-09  Bruno Haible  <bruno@clisp.org>
46935
46936         Tests for module 'mbmemcasecmp'.
46937         * modules/mbmemcasecmp-tests: New file.
46938         * tests/test-mbmemcasecmp1.sh: New file.
46939         * tests/test-mbmemcasecmp2.sh: New file.
46940         * tests/test-mbmemcasecmp3.sh: New file.
46941         * tests/test-mbmemcasecmp.c: New file.
46942
46943         New module 'mbmemcasecmp'.
46944         * lib/mbmemcasecmp.h: New file.
46945         * lib/mbmemcasecmp.c: New file.
46946         * modules/mbmemcasecmp: New file.
46947
46948 2009-03-09  Bruno Haible  <bruno@clisp.org>
46949
46950         Tests for module 'unicase/ulc-casecoll'.
46951         * modules/unicase/ulc-casecoll-tests: New file.
46952         * tests/unicase/test-ulc-casecoll1.sh: New file.
46953         * tests/unicase/test-ulc-casecoll2.sh: New file.
46954         * tests/unicase/test-ulc-casecoll.c: New file.
46955
46956         New module 'unicase/ulc-casecoll'.
46957         * lib/unicase.h (ulc_casecoll): New declaration.
46958         * lib/unicase/ulc-casecoll.c: New file.
46959         * modules/unicase/ulc-casecoll: New file.
46960
46961         New module 'unicase/ulc-casexfrm'.
46962         * lib/unicase.h (ulc_casexfrm): New declaration.
46963         * lib/unicase/ulc-casexfrm.c: New file.
46964         * modules/unicase/ulc-casexfrm: New file.
46965
46966 2009-03-09  Bruno Haible  <bruno@clisp.org>
46967
46968         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
46969         invocations.
46970
46971         * m4/mbscasecmp.m4: Remove file.
46972         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
46973         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
46974
46975         * m4/mbscasestr.m4: Remove file.
46976         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
46977         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
46978
46979         * m4/mbschr.m4: Remove file.
46980         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
46981         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
46982
46983         * m4/mbscspn.m4: Remove file.
46984         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
46985         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
46986
46987         * m4/mbslen.m4: Remove file.
46988         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
46989         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
46990
46991         * m4/mbsncasecmp.m4: Remove file.
46992         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
46993         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
46994
46995         * m4/mbsnlen.m4: Remove file.
46996         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
46997         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
46998
46999         * m4/mbspbrk.m4: Remove file.
47000         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
47001         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
47002
47003         * m4/mbspcasecmp.m4: Remove file.
47004         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
47005         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
47006
47007         * m4/mbsrchr.m4: Remove file.
47008         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
47009         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
47010
47011         * m4/mbssep.m4: Remove file.
47012         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
47013         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
47014
47015         * m4/mbsspn.m4: Remove file.
47016         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
47017         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
47018
47019         * m4/mbsstr.m4: Remove file.
47020         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
47021         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
47022
47023         * m4/mbstok_r.m4: Remove file.
47024         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
47025         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
47026
47027         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
47028
47029         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
47030         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
47031
47032         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
47033
47034 2009-03-08  Bruno Haible  <bruno@clisp.org>
47035
47036         Tests for module 'unicase/ulc-casecmp'.
47037         * modules/unicase/ulc-casecmp-tests: New file.
47038         * tests/unicase/test-ulc-casecmp1.sh: New file.
47039         * tests/unicase/test-ulc-casecmp2.sh: New file.
47040         * tests/unicase/test-ulc-casecmp.c: New file.
47041
47042         New module 'unicase/ulc-casecmp'.
47043         * lib/unicase.h (ulc_casecmp): New declaration.
47044         * lib/unicase/ulc-casecmp.c: New file.
47045         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
47046         'const SRC_UNIT *'.
47047         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
47048         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
47049         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
47050         * modules/unicase/ulc-casecmp: New file.
47051
47052         Tests for module 'unicase/u32-is-cased'.
47053         * modules/unicase/u32-is-cased-tests: New file.
47054         * tests/unicase/test-u32-is-cased.c: New file.
47055
47056         Tests for module 'unicase/u16-is-cased'.
47057         * modules/unicase/u16-is-cased-tests: New file.
47058         * tests/unicase/test-u16-is-cased.c: New file.
47059
47060         Tests for module 'unicase/u8-is-cased'.
47061         * modules/unicase/u8-is-cased-tests: New file.
47062         * tests/unicase/test-u8-is-cased.c: New file.
47063         * tests/unicase/test-is-cased.h: New file.
47064
47065         New module 'unicase/u32-is-cased'.
47066         * lib/unicase/u32-is-cased.c: New file.
47067         * modules/unicase/u32-is-cased: New file.
47068
47069         New module 'unicase/u16-is-cased'.
47070         * lib/unicase/u16-is-cased.c: New file.
47071         * modules/unicase/u16-is-cased: New file.
47072
47073         New module 'unicase/u8-is-cased'.
47074         * lib/unicase/u8-is-cased.c: New file.
47075         * lib/unicase/u-is-cased.h: New file.
47076         * modules/unicase/u8-is-cased: New file.
47077
47078         Tests for module 'unicase/u32-is-casefolded'.
47079         * modules/unicase/u32-is-casefolded-tests: New file.
47080         * tests/unicase/test-u32-is-casefolded.c: New file.
47081
47082         Tests for module 'unicase/u16-is-casefolded'.
47083         * modules/unicase/u16-is-casefolded-tests: New file.
47084         * tests/unicase/test-u16-is-casefolded.c: New file.
47085
47086         Tests for module 'unicase/u8-is-casefolded'.
47087         * modules/unicase/u8-is-casefolded-tests: New file.
47088         * tests/unicase/test-u8-is-casefolded.c: New file.
47089         * tests/unicase/test-is-casefolded.h: New file.
47090
47091         New module 'unicase/u32-is-casefolded'.
47092         * lib/unicase/u32-is-casefolded.c: New file.
47093         * modules/unicase/u32-is-casefolded: New file.
47094
47095         New module 'unicase/u16-is-casefolded'.
47096         * lib/unicase/u16-is-casefolded.c: New file.
47097         * modules/unicase/u16-is-casefolded: New file.
47098
47099         New module 'unicase/u8-is-casefolded'.
47100         * lib/unicase/u8-is-casefolded.c: New file.
47101         * modules/unicase/u8-is-casefolded: New file.
47102
47103         Tests for module 'unicase/u32-is-titlecase'.
47104         * modules/unicase/u32-is-titlecase-tests: New file.
47105         * tests/unicase/test-u32-is-titlecase.c: New file.
47106
47107         Tests for module 'unicase/u16-is-titlecase'.
47108         * modules/unicase/u16-is-titlecase-tests: New file.
47109         * tests/unicase/test-u16-is-titlecase.c: New file.
47110
47111         Tests for module 'unicase/u8-is-titlecase'.
47112         * modules/unicase/u8-is-titlecase-tests: New file.
47113         * tests/unicase/test-u8-is-titlecase.c: New file.
47114         * tests/unicase/test-is-titlecase.h: New file.
47115
47116         New module 'unicase/u32-is-titlecase'.
47117         * lib/unicase/u32-is-titlecase.c: New file.
47118         * modules/unicase/u32-is-titlecase: New file.
47119
47120         New module 'unicase/u16-is-titlecase'.
47121         * lib/unicase/u16-is-titlecase.c: New file.
47122         * modules/unicase/u16-is-titlecase: New file.
47123
47124         New module 'unicase/u8-is-titlecase'.
47125         * lib/unicase/u8-is-titlecase.c: New file.
47126         * modules/unicase/u8-is-titlecase: New file.
47127
47128         Tests for module 'unicase/u32-is-lowercase'.
47129         * modules/unicase/u32-is-lowercase-tests: New file.
47130         * tests/unicase/test-u32-is-lowercase.c: New file.
47131
47132         Tests for module 'unicase/u16-is-lowercase'.
47133         * modules/unicase/u16-is-lowercase-tests: New file.
47134         * tests/unicase/test-u16-is-lowercase.c: New file.
47135
47136         Tests for module 'unicase/u8-is-lowercase'.
47137         * modules/unicase/u8-is-lowercase-tests: New file.
47138         * tests/unicase/test-u8-is-lowercase.c: New file.
47139         * tests/unicase/test-is-lowercase.h: New file.
47140
47141         New module 'unicase/u32-is-lowercase'.
47142         * lib/unicase/u32-is-lowercase.c: New file.
47143         * modules/unicase/u32-is-lowercase: New file.
47144
47145         New module 'unicase/u16-is-lowercase'.
47146         * lib/unicase/u16-is-lowercase.c: New file.
47147         * modules/unicase/u16-is-lowercase: New file.
47148
47149         New module 'unicase/u8-is-lowercase'.
47150         * lib/unicase/u8-is-lowercase.c: New file.
47151         * modules/unicase/u8-is-lowercase: New file.
47152
47153         Tests for module 'unicase/u32-is-uppercase'.
47154         * modules/unicase/u32-is-uppercase-tests: New file.
47155         * tests/unicase/test-u32-is-uppercase.c: New file.
47156
47157         Tests for module 'unicase/u16-is-uppercase'.
47158         * modules/unicase/u16-is-uppercase-tests: New file.
47159         * tests/unicase/test-u16-is-uppercase.c: New file.
47160
47161         Tests for module 'unicase/u8-is-uppercase'.
47162         * modules/unicase/u8-is-uppercase-tests: New file.
47163         * tests/unicase/test-u8-is-uppercase.c: New file.
47164         * tests/unicase/test-is-uppercase.h: New file.
47165
47166         New module 'unicase/u32-is-uppercase'.
47167         * lib/unicase/u32-is-uppercase.c: New file.
47168         * modules/unicase/u32-is-uppercase: New file.
47169
47170         New module 'unicase/u16-is-uppercase'.
47171         * lib/unicase/u16-is-uppercase.c: New file.
47172         * modules/unicase/u16-is-uppercase: New file.
47173
47174         New module 'unicase/u8-is-uppercase'.
47175         * lib/unicase/u8-is-uppercase.c: New file.
47176         * modules/unicase/u8-is-uppercase: New file.
47177
47178         New module 'unicase/u32-is-invariant'.
47179         * lib/unicase/u32-is-invariant.c: New file.
47180         * modules/unicase/u32-is-invariant: New file.
47181
47182         New module 'unicase/u16-is-invariant'.
47183         * lib/unicase/u16-is-invariant.c: New file.
47184         * modules/unicase/u16-is-invariant: New file.
47185
47186         New module 'unicase/u8-is-invariant'.
47187         * lib/unicase/u8-is-invariant.c: New file.
47188         * lib/unicase/invariant.h: New file.
47189         * lib/unicase/u-is-invariant.h: New file.
47190         * modules/unicase/u8-is-invariant: New file.
47191
47192         Tests for module 'unicase/u32-casecoll'.
47193         * modules/unicase/u32-casecoll-tests: New file.
47194         * tests/unicase/test-u32-casecoll.c: New file.
47195
47196         Tests for module 'unicase/u16-casecoll'.
47197         * modules/unicase/u16-casecoll-tests: New file.
47198         * tests/unicase/test-u16-casecoll.c: New file.
47199
47200         Tests for module 'unicase/u8-casecoll'.
47201         * modules/unicase/u8-casecoll-tests: New file.
47202         * tests/unicase/test-u8-casecoll.c: New file.
47203
47204         New module 'unicase/u32-casecoll'.
47205         * lib/unicase/u32-casecoll.c: New file.
47206         * modules/unicase/u32-casecoll: New file.
47207
47208         New module 'unicase/u16-casecoll'.
47209         * lib/unicase/u16-casecoll.c: New file.
47210         * modules/unicase/u16-casecoll: New file.
47211
47212         New module 'unicase/u8-casecoll'.
47213         * lib/unicase/u8-casecoll.c: New file.
47214         * lib/unicase/u-casecoll.h: New file.
47215         * modules/unicase/u8-casecoll: New file.
47216
47217         New module 'unicase/u32-casexfrm'.
47218         * lib/unicase/u32-casexfrm.c: New file.
47219         * modules/unicase/u32-casexfrm: New file.
47220
47221         New module 'unicase/u16-casexfrm'.
47222         * lib/unicase/u16-casexfrm.c: New file.
47223         * modules/unicase/u16-casexfrm: New file.
47224
47225         New module 'unicase/u8-casexfrm'.
47226         * lib/unicase/u8-casexfrm.c: New file.
47227         * lib/unicase/u-casexfrm.h: New file.
47228         * modules/unicase/u8-casexfrm: New file.
47229
47230         Tests for module 'unicase/u32-casecmp'.
47231         * modules/unicase/u32-casecmp-tests: New file.
47232         * tests/unicase/test-u32-casecmp.c: New file.
47233
47234         Tests for module 'unicase/u16-casecmp'.
47235         * modules/unicase/u16-casecmp-tests: New file.
47236         * tests/unicase/test-u16-casecmp.c: New file.
47237
47238         Tests for module 'unicase/u8-casecmp'.
47239         * modules/unicase/u8-casecmp-tests: New file.
47240         * tests/unicase/test-u8-casecmp.c: New file.
47241         * tests/unicase/test-casecmp.h: New file.
47242
47243         New module 'unicase/u32-casecmp'.
47244         * lib/unicase/u32-casecmp.c: New file.
47245         * modules/unicase/u32-casecmp: New file.
47246
47247         New module 'unicase/u16-casecmp'.
47248         * lib/unicase/u16-casecmp.c: New file.
47249         * modules/unicase/u16-casecmp: New file.
47250
47251         New module 'unicase/u8-casecmp'.
47252         * lib/unicase/u8-casecmp.c: New file.
47253         * lib/unicase/u-casecmp.h: New file.
47254         * modules/unicase/u8-casecmp: New file.
47255
47256         Tests for module 'unicase/u32-casefold'.
47257         * modules/unicase/u32-casefold-tests: New file.
47258         * tests/unicase/test-u32-casefold.c: New file.
47259
47260         Tests for module 'unicase/u16-casefold'.
47261         * modules/unicase/u16-casefold-tests: New file.
47262         * tests/unicase/test-u16-casefold.c: New file.
47263
47264         Tests for module 'unicase/u8-casefold'.
47265         * modules/unicase/u8-casefold-tests: New file.
47266         * tests/unicase/test-u8-casefold.c: New file.
47267
47268         New module 'unicase/u32-casefold'.
47269         * lib/unicase/u32-casefold.c: New file.
47270         * modules/unicase/u32-casefold: New file.
47271
47272         New module 'unicase/u16-casefold'.
47273         * lib/unicase/u16-casefold.c: New file.
47274         * modules/unicase/u16-casefold: New file.
47275
47276         New module 'unicase/u8-casefold'.
47277         * lib/unicase/u8-casefold.c: New file.
47278         * lib/unicase/u-casefold.h: New file.
47279         * modules/unicase/u8-casefold: New file.
47280
47281         New module 'unicase/tocasefold'.
47282         * lib/unicase/casefold.h: New file.
47283         * lib/unicase/tocasefold.c: New file.
47284         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
47285         * modules/unicase/tocasefold: New file.
47286
47287         Tests for module 'unicase/u32-totitle'.
47288         * modules/unicase/u32-totitle-tests: New file.
47289         * tests/unicase/test-u32-totitle.c: New file.
47290
47291         Tests for module 'unicase/u16-totitle'.
47292         * modules/unicase/u16-totitle-tests: New file.
47293         * tests/unicase/test-u16-totitle.c: New file.
47294
47295         Tests for module 'unicase/u8-totitle'.
47296         * modules/unicase/u8-totitle-tests: New file.
47297         * tests/unicase/test-u8-totitle.c: New file.
47298
47299         New module 'unicase/u32-totitle'.
47300         * lib/unicase/u32-totitle.c: New file.
47301         * modules/unicase/u32-totitle: New file.
47302
47303         New module 'unicase/u16-totitle'.
47304         * lib/unicase/u16-totitle.c: New file.
47305         * modules/unicase/u16-totitle: New file.
47306
47307         New module 'unicase/u8-totitle'.
47308         * lib/unicase/u8-totitle.c: New file.
47309         * lib/unicase/u-totitle.h: New file.
47310         * modules/unicase/u8-totitle: New file.
47311
47312         Tests for module 'unicase/u32-tolower'.
47313         * modules/unicase/u32-tolower-tests: New file.
47314         * tests/unicase/test-u32-tolower.c: New file.
47315
47316         Tests for module 'unicase/u16-tolower'.
47317         * modules/unicase/u16-tolower-tests: New file.
47318         * tests/unicase/test-u16-tolower.c: New file.
47319
47320         Tests for module 'unicase/u8-tolower'.
47321         * modules/unicase/u8-tolower-tests: New file.
47322         * tests/unicase/test-u8-tolower.c: New file.
47323
47324         New module 'unicase/u32-tolower'.
47325         * lib/unicase/u32-tolower.c: New file.
47326         * modules/unicase/u32-tolower: New file.
47327
47328         New module 'unicase/u16-tolower'.
47329         * lib/unicase/u16-tolower.c: New file.
47330         * modules/unicase/u16-tolower: New file.
47331
47332         New module 'unicase/u8-tolower'.
47333         * lib/unicase/u8-tolower.c: New file.
47334         * modules/unicase/u8-tolower: New file.
47335
47336         Tests for module 'unicase/u32-toupper'.
47337         * modules/unicase/u32-toupper-tests: New file.
47338         * tests/unicase/test-u32-toupper.c: New file.
47339
47340         Tests for module 'unicase/u16-toupper'.
47341         * modules/unicase/u16-toupper-tests: New file.
47342         * tests/unicase/test-u16-toupper.c: New file.
47343
47344         Tests for module 'unicase/u8-toupper'.
47345         * modules/unicase/u8-toupper-tests: New file.
47346         * tests/unicase/test-u8-toupper.c: New file.
47347
47348         New module 'unicase/u32-toupper'.
47349         * lib/unicase/u32-toupper.c: New file.
47350         * modules/unicase/u32-toupper: New file.
47351
47352         New module 'unicase/u16-toupper'.
47353         * lib/unicase/u16-toupper.c: New file.
47354         * modules/unicase/u16-toupper: New file.
47355
47356         New module 'unicase/u8-toupper'.
47357         * lib/unicase/u8-toupper.c: New file.
47358         * modules/unicase/u8-toupper: New file.
47359
47360         New module 'unicase/u32-casemap'.
47361         * lib/unicase/u32-casemap.c: New file.
47362         * modules/unicase/u32-casemap: New file.
47363
47364         New module 'unicase/u16-casemap'.
47365         * lib/unicase/u16-casemap.c: New file.
47366         * modules/unicase/u16-casemap: New file.
47367
47368         New module 'unicase/u8-casemap'.
47369         * lib/unicase/unicasemap.h: New file.
47370         * lib/unicase/u8-casemap.c: New file.
47371         * lib/unicase/u-casemap.h: New file.
47372         * modules/unicase/u8-casemap: New file.
47373
47374         New module 'unicase/special-casing'.
47375         * lib/unicase/special-casing.h: New file.
47376         * lib/unicase/special-casing.c: New file.
47377         * lib/unicase/special-casing-table.gperf: New file, generated by
47378         gen-uni-tables.c.
47379         * modules/unicase/special-casing: New file.
47380
47381         Tests for module 'unicase/locale-language'.
47382         * modules/unicase/locale-language-tests: New file.
47383         * tests/unicase/test-locale-language.sh: New file.
47384         * tests/unicase/test-locale-language.c: New file.
47385
47386         New module 'unicase/locale-language'.
47387         * lib/unicase/locale-language.c: New file.
47388         * lib/unicase/locale-languages.gperf: New file.
47389         * modules/unicase/locale-language: New file.
47390
47391         Generate more tables for case conversion and case folding.
47392         * lib/gen-uni-tables.c (SCC_*): New enum items.
47393         (struct special_casing_rule): New type.
47394         (casing_rules, num_casing_rules, allocated_casing_rules): New
47395         variables.
47396         (add_casing_rule, fill_casing_rules): New functions.
47397         (struct casefold_rule): New type.
47398         (casefolding_rules, num_casefolding_rules,
47399         allocated_casefolding_rules): New variables.
47400         (fill_casefolding_rules): New function.
47401         (unicode_casefold): New variable.
47402         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
47403         sort_casing_rules, output_casing_rules): New functions.
47404         (main): Accept to more arguments: SpecialCasing.txt and
47405         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
47406         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
47407         Output mapping for casefolding.
47408
47409         * lib/unicase.h: Include stdbool.h, uninorm.h.
47410         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
47411         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
47412         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
47413         arguments.
47414         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
47415         resultp arguments.
47416         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
47417         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
47418         resultp arguments.
47419         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
47420         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
47421         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
47422         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
47423         declarations.
47424         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
47425
47426 2009-03-08  Bruno Haible  <bruno@clisp.org>
47427
47428         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
47429         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
47430         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
47431         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
47432
47433 2009-03-07  Bruno Haible  <bruno@clisp.org>
47434
47435         Adjust u*_normcmp, u*_normcoll API.
47436         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
47437         u16_normcoll, u32_normcoll): Change failure conventions.
47438         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
47439         errno and return -1.
47440         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
47441
47442 2009-03-07  Bruno Haible  <bruno@clisp.org>
47443
47444         Tests for module 'uninorm/u32-normcoll'.
47445         * modules/uninorm/u32-normcoll-tests: New file.
47446         * tests/uninorm/test-u32-normcoll.c: New file.
47447
47448         Tests for module 'uninorm/u16-normcoll'.
47449         * modules/uninorm/u16-normcoll-tests: New file.
47450         * tests/uninorm/test-u16-normcoll.c: New file.
47451
47452         Tests for module 'uninorm/u8-normcoll'.
47453         * modules/uninorm/u8-normcoll-tests: New file.
47454         * tests/uninorm/test-u8-normcoll.c: New file.
47455
47456 2009-03-07  Bruno Haible  <bruno@clisp.org>
47457
47458         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
47459         tests/uninorm/test-u32-normcmp.c.
47460         * tests/uninorm/test-u32-normcmp.c: Include it.
47461         (test_nonascii): New function, extracted from main. Add some more
47462         tests.
47463         (main): Invoke test_ascii and test_nonascii.
47464         * modules/uninorm/u32-normcmp-tests (Files): Add
47465         tests/uninorm/test-u32-normcmp.h.
47466         (Depends-on): Remove uninorm/u32-normcmp.
47467
47468         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
47469         tests/uninorm/test-u16-normcmp.c.
47470         * tests/uninorm/test-u16-normcmp.c: Include it.
47471         (test_nonascii): New function, extracted from main. Add some more
47472         tests.
47473         (main): Invoke test_ascii and test_nonascii.
47474         * modules/uninorm/u16-normcmp-tests (Files): Add
47475         tests/uninorm/test-u16-normcmp.h.
47476         (Depends-on): Remove uninorm/u16-normcmp.
47477
47478         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
47479         tests/uninorm/test-u8-normcmp.c.
47480         * tests/uninorm/test-u8-normcmp.c: Include it.
47481         (test_nonascii): New function, extracted from main. Add some more
47482         tests.
47483         (main): Invoke test_ascii and test_nonascii.
47484         * modules/uninorm/u8-normcmp-tests (Files): Add
47485         tests/uninorm/test-u8-normcmp.h.
47486         (Depends-on): Remove uninorm/u8-normcmp.
47487
47488 2009-03-07  Bruno Haible  <bruno@clisp.org>
47489
47490         New module 'uninorm/u32-normcoll'.
47491         * lib/uninorm/u32-normcoll.c: New file.
47492         * modules/uninorm/u32-normcoll: New file.
47493
47494         New module 'uninorm/u16-normcoll'.
47495         * lib/uninorm/u16-normcoll.c: New file.
47496         * modules/uninorm/u16-normcoll: New file.
47497
47498         New module 'uninorm/u8-normcoll'.
47499         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
47500         declarations.
47501         * lib/uninorm/u8-normcoll.c: New file.
47502         * lib/uninorm/u-normcoll.h: New file.
47503         * modules/uninorm/u8-normcoll: New file.
47504
47505         New module 'uninorm/u32-normxfrm'.
47506         * lib/uninorm/u32-normxfrm.c: New file.
47507         * modules/uninorm/u32-normxfrm: New file.
47508
47509         New module 'uninorm/u16-normxfrm'.
47510         * lib/uninorm/u16-normxfrm.c: New file.
47511         * modules/uninorm/u16-normxfrm: New file.
47512
47513         New module 'uninorm/u8-normxfrm'.
47514         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
47515         declarations.
47516         * lib/uninorm/u8-normxfrm.c: New file.
47517         * lib/uninorm/u-normxfrm.h: New file.
47518         * modules/uninorm/u8-normxfrm: New file.
47519
47520 2009-03-07  Bruno Haible  <bruno@clisp.org>
47521
47522         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
47523         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
47524         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
47525
47526 2009-03-07  Bruno Haible  <bruno@clisp.org>
47527
47528         New module 'memxfrm'.
47529         * lib/memxfrm.h: New file.
47530         * lib/memxfrm.c: New file.
47531         * modules/memxfrm: New file.
47532
47533 2009-03-07  Bruno Haible  <bruno@clisp.org>
47534
47535         New module 'memcmp2'.
47536         * lib/memcmp2.h: New file.
47537         * lib/memcmp2.c: New file.
47538         * modules/memcmp2: New file.
47539
47540 2009-03-07  Bruno Haible  <bruno@clisp.org>
47541
47542         Tests for module 'uninorm/decomposing-form'.
47543         * modules/uninorm/decomposing-form-tests: New file.
47544         * tests/uninorm/test-decomposing-form.c: New file.
47545
47546         New module 'uninorm/decomposing-form'.
47547         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
47548         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
47549         Add 'decomposing_variant' field.
47550         * lib/uninorm/decomposing-form.c: New file.
47551         * lib/uninorm/nfc.c (uninorm_nfc): Update.
47552         * lib/uninorm/nfd.c (uninorm_nfd): Update.
47553         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
47554         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
47555         * modules/uninorm/decomposing-form: New file.
47556         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
47557         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
47558
47559 2009-03-07  Bruno Haible  <bruno@clisp.org>
47560
47561         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
47562         strings.
47563
47564 2009-03-06  Bruno Haible  <bruno@clisp.org>
47565
47566         Tests for module 'uninorm/u32-normcmp'.
47567         * tests/uninorm/test-u32-normcmp.c: New file.
47568         * modules/uninorm/u32-normcmp-tests: New file.
47569
47570         Tests for module 'uninorm/u16-normcmp'.
47571         * tests/uninorm/test-u16-normcmp.c: New file.
47572         * modules/uninorm/u16-normcmp-tests: New file.
47573
47574         Tests for module 'uninorm/u8-normcmp'.
47575         * tests/uninorm/test-u8-normcmp.c: New file.
47576         * modules/uninorm/u8-normcmp-tests: New file.
47577
47578         New module 'uninorm/u32-normcmp'.
47579         * lib/uninorm/u32-normcmp.c: New file.
47580         * modules/uninorm/u32-normcmp: New file.
47581
47582         New module 'uninorm/u16-normcmp'.
47583         * lib/uninorm/u16-normcmp.c: New file.
47584         * modules/uninorm/u16-normcmp: New file.
47585
47586         New module 'uninorm/u8-normcmp'.
47587         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
47588         declarations.
47589         * lib/uninorm/u8-normcmp.c: New file.
47590         * lib/uninorm/u-normcmp.h: New file.
47591         * modules/uninorm/u8-normcmp: New file.
47592
47593 2009-03-06  Bruno Haible  <bruno@clisp.org>
47594
47595         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
47596         Reported by Eric Blake.
47597
47598 2009-03-06  Eric Blake  <ebb9@byu.net>
47599             Bruno Haible  <bruno@clisp.org>
47600
47601         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
47602         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
47603         condition.
47604         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47605         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
47606         condition.
47607         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47608
47609 2009-03-06  Eric Blake  <ebb9@byu.net>
47610
47611         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
47612         to avoid compiler warnings.
47613         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
47614
47615 2009-03-05  Bruno Haible  <bruno@clisp.org>
47616
47617         * tests/test-ftell.c (main): Disable test beyond end of file on
47618         FreeMiNT.
47619         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47620
47621 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
47622
47623         * lib/filevercmp.c: Move hidden files up in ordering.
47624         * tests/test-filevercmp.c: Add tests for hidden files.
47625
47626 2009-03-04  Bruno Haible  <bruno@clisp.org>
47627
47628         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
47629         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
47630         AM_CFLAGS.
47631         Reported by Simon Josefsson.
47632
47633 2009-03-03  Bruno Haible  <bruno@clisp.org>
47634
47635         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
47636         Reported by Simon Josefsson.
47637
47638         * doc/ld-version-script.texi: Update node reference.
47639
47640 2009-03-03  Bruno Haible  <bruno@clisp.org>
47641
47642         * modules/visibility (License): Change to 'unlimited'.
47643         Suggested by Simon Josefsson.
47644
47645 2009-03-03  Jim Meyering  <meyering@redhat.com>
47646
47647         unlinkdir: cannot_unlink_dir may modify process state
47648         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
47649         it's neither thread-safe nor appropriate for use in a library.
47650
47651 2009-03-03  Eric Blake  <ebb9@byu.net>
47652
47653         test-closein: silence test under Darwin
47654         * tests/test-closein.sh: Ignore stderr from cat, since we don't
47655         care if it dies from EPIPE or EBADF.
47656
47657 2009-03-03  Bruno Haible  <bruno@clisp.org>
47658
47659         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
47660         earlier.
47661         * doc/visibility.texi: Fix @node and @section.
47662
47663 2009-03-03  Simon Josefsson  <simon@josefsson.org>
47664
47665         * doc/gnulib.texi: Link to sections for ld version script and
47666         visibility.
47667         * doc/visibility.texi: Add @node and @section.
47668         * modules/ld-version-script: New module.
47669         * m4/ld-version-script.m4: New file.
47670         * doc/ld-version-script.texi: New file.
47671
47672 2009-03-02  David Lutterkort  <lutter@redhat.com>
47673
47674         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
47675         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47676
47677 2009-03-02  Bruno Haible  <bruno@clisp.org>
47678
47679         * doc/visibility.texi: Mention libtool's -export-symbols option.
47680
47681 2009-03-02  Jim Meyering  <meyering@redhat.com>
47682
47683         announce-gen: new option: --no-print-checksums
47684         * build-aux/announce-gen (usage): Describe it.
47685         (print_checksums): Print a newline here, not in the [*] footnote.
47686         (main): Honor it.
47687
47688 2009-03-01  Bruno Haible  <bruno@clisp.org>
47689
47690         Use socklen_t in the native Windows replacements prototypes.
47691         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
47692         instead of 'int'.
47693         * lib/getsockopt.c (rpl_getsockopt): Likewise.
47694         * lib/setsockopt.c (rpl_setsockopt): Likewise.
47695         * modules/getsockopt (Depends-on): Add socklen.
47696         * modules/setsockopt (Depends-on): Add socklen.
47697
47698 2009-03-01  Bruno Haible  <bruno@clisp.org>
47699
47700         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
47701         least 4.2.
47702
47703 2009-03-01  Eric Blake  <ebb9@byu.net>
47704             Bruno Haible  <bruno@clisp.org>
47705
47706         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
47707         error messages.
47708         * lib/wait-process.c (wait_subprocess): Omit error message about
47709         deadly signal sent to the child of termsigp != NULL.
47710
47711 2009-03-01  Eric Blake  <ebb9@byu.net>
47712
47713         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
47714
47715 2009-03-01  Bruno Haible  <bruno@clisp.org>
47716
47717         Avoid a gcc warning.
47718         * tests/test-sched.c (b): Make global.
47719         Reported by Eric Blake.
47720
47721 2009-01-19  Martin Lambers  <marlam@marlam.de>
47722
47723         Provide POSIX semantics for socket timeout options on W32.
47724         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
47725         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
47726         * modules/setsockopt: Depend on sys_time module for struct timeval.
47727         * modules/getsockopt: Depend on sys_time module for struct timeval.
47728
47729 2009-03-01  Simon Josefsson  <simon@josefsson.org>
47730
47731         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
47732         __USE_GNU, for consistency with netdb.in.h.
47733         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47734
47735 2009-03-01  Bruno Haible  <bruno@clisp.org>
47736
47737         More support for FreeMiNT.
47738         * lib/fseeko.c (rpl_fseeko): Complete last commit.
47739         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47740
47741 2009-03-01  Bruno Haible  <bruno@clisp.org>
47742
47743         More support for FreeMiNT.
47744         * lib/fpurge.c (fpurge): Correct last commit.
47745         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47746
47747 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47748
47749         Fix unportable awk script in vc-list-files.
47750         * build-aux/vc-list-files: In the replacement awk script, use
47751         substr with a second argument of 1, not zero.
47752         Report by Simon Josefsson.
47753
47754 2009-02-28  Bruno Haible  <bruno@clisp.org>
47755
47756         More support for FreeMiNT.
47757         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
47758         to FreeMiNT today.
47759         * lib/fwriting.c (fwriting): Likewise.
47760         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
47761
47762 2009-02-28  Bruno Haible  <bruno@clisp.org>
47763
47764         * tests/test-freadseek.c (main): Disable test beyond end of file on
47765         FreeMiNT.
47766         * tests/test-ftello.c (main): Likewise.
47767         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47768
47769 2009-02-28  Bruno Haible  <bruno@clisp.org>
47770
47771         Add tentative support for FreeMiNT.
47772         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
47773         * lib/fpurge.c (fpurge): Likewise.
47774         * lib/freadable.c (freadable): Likewise.
47775         * lib/freading.c (freading): Likewise.
47776         * lib/freadptr.c (freadptr): Likewise.
47777         * lib/freadseek.c (freadptrinc): Likewise.
47778         * lib/fseeko.c (rpl_fseeko): Likewise.
47779         * lib/fseterr.c (fseterr): Likewise.
47780         * lib/fwritable.c (fwritable): Likewise.
47781         * lib/fwriting.c (fwriting): Likewise.
47782         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
47783         Hourihane.
47784         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47785
47786 2009-02-28  Bruno Haible  <bruno@clisp.org>
47787
47788         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
47789         SIGCHLD.
47790         Reported by Jim Meyering.
47791
47792 2009-02-28  Bruno Haible  <bruno@clisp.org>
47793
47794         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
47795         Mention the results of these tests on various platforms.
47796         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
47797         order.
47798         * doc/posix-functions/printf.texi: Likewise.
47799         * doc/posix-functions/snprintf.texi: Likewise.
47800         * doc/posix-functions/sprintf.texi: Likewise.
47801         * doc/posix-functions/vfprintf.texi: Likewise.
47802         * doc/posix-functions/vprintf.texi: Likewise.
47803         * doc/posix-functions/vsnprintf.texi: Likewise.
47804         * doc/posix-functions/vsprintf.texi: Likewise.
47805         * doc/glibc-functions/obstack_printf.texi: Likewise.
47806         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
47807
47808 2009-02-28  Bruno Haible  <bruno@clisp.org>
47809
47810         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
47811         Reported by Loïc Minier <lool@dooz.org>.
47812
47813 2009-02-27  Bruno Haible  <bruno@clisp.org>
47814
47815         * gnulib-tool (func_import): Make the sed expression used to create the
47816         sed script for updating the .gitignore file POSIX compliant.
47817         Reported by Eric Blake.
47818
47819 2009-02-27  Bruno Haible  <bruno@clisp.org>
47820
47821         * gnulib-tool (sed): Don't alias as "sed --posix".
47822         Reported by Eric Blake.
47823
47824 2009-02-27  Bruno Haible  <bruno@clisp.org>
47825
47826         Avoid test link errors.
47827         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
47828         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
47829         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
47830         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
47831         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47832
47833 2009-02-27  Bruno Haible  <bruno@clisp.org>
47834
47835         Avoid spurious "(cached)" in configure output.
47836         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
47837         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
47838         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47839         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47840         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47841         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
47842         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47843         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
47844         Reported by Eric Blake.
47845
47846 2009-02-27  Eric Blake  <ebb9@byu.net>
47847
47848         printf: fix regression in previous patch
47849         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
47850
47851 2009-02-27  Bruno Haible  <bruno@clisp.org>
47852
47853         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
47854         value.
47855         * lib/stdint.in.h: Likewise.
47856         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
47857
47858 2009-02-27  Eric Blake  <ebb9@byu.net>
47859
47860         doc: mention more functions added in cygwin 1.7.0
47861         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
47862         addition.
47863         * doc/posix-functions/open_wmemstream.texi: Likewise.
47864         * doc/posix-functions/wcsnlen.texi: Likewise.
47865         * doc/posix-functions/wcsnrtombs.texi: Likewise.
47866         * doc/posix-functions/wcstod.texi: Likewise.
47867         * doc/posix-functions/wcstof.texi: Likewise.
47868         * doc/posix-functions/wcstoimax.texi: Likewise.
47869         * doc/posix-functions/wcstok.texi: Likewise.
47870         * doc/posix-functions/wcstoumax.texi: Likewise.
47871
47872         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
47873         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
47874         * doc/posix-functions/fprintf.texi: Update.
47875         * doc/posix-functions/printf.texi: Update.
47876         * doc/posix-functions/snprintf.texi: Update.
47877         * doc/posix-functions/sprintf.texi: Update.
47878         * doc/posix-functions/vfprintf.texi: Update.
47879         * doc/posix-functions/vprintf.texi: Update.
47880         * doc/posix-functions/vsnprintf.texi: Update.
47881         * doc/posix-functions/vsprintf.texi: Update.
47882         * doc/glibc-functions/obstack_printf.texi: Update.
47883         * doc/glibc-functions/obstack_vprintf.texi: Update.
47884
47885 2009-02-26  Eric Blake  <ebb9@byu.net>
47886
47887         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
47888         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
47889         compilation bug by using runtime conversion.
47890         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
47891         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
47892         * modules/ceill-tests (Files): Use nan.h.
47893         * modules/floorl-tests (Files): Likewise.
47894         * modules/frexpl-tests (Files): Likewise.
47895         * modules/isnanl-tests (Files): Likewise.
47896         * modules/ldexpl-tests (Files): Likewise.
47897         * modules/roundl-tests (Files): Likewise.
47898         * modules/truncl-tests (Files): Likewise.
47899         * tests/test-ceill.c (main): Use a working NaN.
47900         * tests/test-floorl.c (main): Likewise.
47901         * tests/test-frexpl.c (main): Likewise.
47902         * tests/test-isnan.c (test_long_double): Likewise.
47903         * tests/test-isnanl.h (main): Likewise.
47904         * tests/test-ldexpl.h (main): Likewise.
47905         * tests/test-roundl.h (main): Likewise.
47906         * tests/test-truncl.h (main): Likewise.
47907         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
47908
47909 2009-02-26  Eric Blake  <ebb9@byu.net>
47910             Bruno Haible  <bruno@clisp.org>
47911
47912         Work around a *printf bug with %ls on Solaris.
47913         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
47914         precision is specified, sprintf stops converting the wide string
47915         argument when the number of bytes that have been produced by this
47916         conversion equals or exceeds the precision.
47917         * doc/posix-functions/fprintf.texi: Update.
47918         * doc/posix-functions/printf.texi: Update.
47919         * doc/posix-functions/snprintf.texi: Update.
47920         * doc/posix-functions/sprintf.texi: Update.
47921         * doc/posix-functions/vfprintf.texi: Update.
47922         * doc/posix-functions/vprintf.texi: Update.
47923         * doc/posix-functions/vsnprintf.texi: Update.
47924         * doc/posix-functions/vsprintf.texi: Update.
47925         * doc/glibc-functions/obstack_printf.texi: Update.
47926         * doc/glibc-functions/obstack_vprintf.texi: Update.
47927
47928 2009-02-26  Eric Blake  <ebb9@byu.net>
47929
47930         stdlib: favor compiler check of random.h
47931         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
47932         to avoid an ObjC random.h installed by Swarm.
47933
47934 2009-02-26  Bruno Haible  <bruno@clisp.org>
47935
47936         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
47937         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
47938         Reported by Gary V. Vaughan <gary@gnu.org>.
47939
47940 2009-02-26  Bruno Haible  <bruno@clisp.org>
47941
47942         Fix *printf behaviour regarding the %ls directive.
47943         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
47944         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
47945         NEED_PRINTF_DIRECTIVE_LS.
47946         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
47947         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47948         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47949         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
47950         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
47951         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
47952         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
47953         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47954         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47955         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47956         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47957         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
47958         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47959         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47960         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47961         * doc/posix-functions/fprintf.texi: Update.
47962         * doc/posix-functions/printf.texi: Update.
47963         * doc/posix-functions/snprintf.texi: Update.
47964         * doc/posix-functions/sprintf.texi: Update.
47965         * doc/posix-functions/vfprintf.texi: Update.
47966         * doc/posix-functions/vprintf.texi: Update.
47967         * doc/posix-functions/vsnprintf.texi: Update.
47968         * doc/posix-functions/vsprintf.texi: Update.
47969         * doc/glibc-functions/obstack_printf.texi: Update.
47970         * doc/glibc-functions/obstack_vprintf.texi: Update.
47971         Reported by Eric Blake.
47972
47973 2009-02-25  Bruno Haible  <bruno@clisp.org>
47974
47975         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
47976         with known value.
47977         Reported by Gary V. Vaughan <gary@gnu.org>.
47978
47979 2009-02-25  Bruno Haible  <bruno@clisp.org>
47980
47981         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
47982         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
47983         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
47984         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
47985         Reported by Gary V. Vaughan <gary@gnu.org>.
47986
47987 2009-02-25  Bruno Haible  <bruno@clisp.org>
47988
47989         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
47990         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
47991         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
47992         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
47993         Reported by Gary V. Vaughan <gary@gnu.org>.
47994
47995 2009-02-25  Eric Blake  <ebb9@byu.net>
47996
47997         tests: skip fseek/ftell tests if ungetc is broken
47998         * m4/ungetc.m4: New file.
47999         * modules/fseek-tests: Split test, so ungetc dependency is
48000         separate from rest of test.
48001         * modules/fseeko-tests: Likewise.
48002         * modules/ftell-tests: Likewise.
48003         * modules/ftello-tests: Likewise.
48004         * tests/test-fseek.c (main): Isolate ungetc dependency.
48005         * tests/test-fseeko.c (main): Likewise.
48006         * tests/test-ftell.c (main): Likewise.
48007         * tests/test-ftello.c (main): Likewise.
48008         * tests/test-fseek2.sh: New file.
48009         * tests/test-fseeko2.sh: Likewise.
48010         * tests/test-ftell2.sh: Likewise.
48011         * tests/test-ftello2.sh: Likewise.
48012
48013 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
48014
48015         test-getaddrinfo: fix usage of skip return code 77
48016         * tests/test-gettaddrinfo.c: Return skip code 77 only
48017         for first occurrence of skip (4x77 is not 77)
48018
48019 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
48020
48021         strtod: avoid C99 decl-after-statement
48022         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
48023
48024 2009-02-24  Eric Blake  <ebb9@byu.net>
48025
48026         strtod: detect HP-UX 11.31 bug
48027         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
48028         Reported by Gary V. Vaughan.
48029
48030 2009-02-23  Bruno Haible  <bruno@clisp.org>
48031
48032         Fix invalid read past end of memory block.
48033         * lib/vasnprintf.c (DCHAR_SET): Define.
48034         (local_wcslen): Define only when needed.
48035         (local_strnlen, local_wcsnlen): New functions.
48036         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
48037         directives that involve a conversion ourselves.
48038         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
48039         wcsnlen, mbrtowc, wcrtomb.
48040         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
48041         * tests/test-vasprintf-posix.c (test_function): Likewise.
48042         * tests/test-snprintf-posix.h (test_function): Likewise.
48043         * tests/test-sprintf-posix.h (test_function): Likewise.
48044         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48045
48046 2009-02-22  Bruno Haible  <bruno@clisp.org>
48047
48048         Implement new clarified decomposition of Hangul syllables.
48049         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
48050         of type LTV, return only a pairwise decomposition.
48051         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
48052         Likewise.
48053         * tests/uninorm/test-decomposition.c (main): Updated expected result.
48054         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
48055         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
48056
48057 2009-02-22  Bruno Haible  <bruno@clisp.org>
48058
48059         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
48060         zero-length results and shrink excess allocated memory.
48061         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
48062         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
48063         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
48064         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
48065         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
48066         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
48067         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
48068         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
48069         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
48070         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
48071         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
48072         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
48073
48074 2009-02-21  Bruno Haible  <bruno@clisp.org>
48075
48076         * doc/gnulib.texi: Include safe-alloc.texi earlier.
48077         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
48078         spaces after a period. Put a space between a macro name and its
48079         argument list. Trivial rewordings.
48080         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
48081         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
48082         (main): Return 0 explicitly.
48083
48084 2009-02-21  Bruno Haible  <bruno@clisp.org>
48085
48086         Tests for module 'uninorm/filter'.
48087         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
48088         * modules/uninorm/filter-tests: New file.
48089
48090         New module 'uninorm/filter'.
48091         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
48092         uninorm_filter_flush, uninorm_filter_free): New declarations.
48093         * lib/uninorm/uninorm-filter.c: New file.
48094         * modules/uninorm/filter: New file.
48095
48096 2009-02-21  Bruno Haible  <bruno@clisp.org>
48097
48098         Tests for module 'uninorm/nfkc'.
48099         * tests/uninorm/test-nfkc.c: New file.
48100         * tests/uninorm/test-u8-nfkc.c: New file.
48101         * tests/uninorm/test-u16-nfkc.c: New file.
48102         * tests/uninorm/test-u32-nfkc.c: New file.
48103         * tests/uninorm/test-u32-nfkc-big.sh: New file.
48104         * tests/uninorm/test-u32-nfkc-big.c: New file.
48105         * modules/uninorm/nfkc-tests: New file.
48106
48107         New module 'uninorm/nfkc'.
48108         * lib/uninorm/nfkc.c: New file.
48109         * modules/uninorm/nfkc: New file.
48110
48111         Tests for module 'uninorm/nfkd'.
48112         * tests/uninorm/test-nfkd.c: New file.
48113         * tests/uninorm/test-u8-nfkd.c: New file.
48114         * tests/uninorm/test-u16-nfkd.c: New file.
48115         * tests/uninorm/test-u32-nfkd.c: New file.
48116         * tests/uninorm/test-u32-nfkd-big.sh: New file.
48117         * tests/uninorm/test-u32-nfkd-big.c: New file.
48118         * modules/uninorm/nfkd-tests: New file.
48119
48120         New module 'uninorm/nfkd'.
48121         * lib/uninorm/nfkd.c: New file.
48122         * modules/uninorm/nfkd: New file.
48123
48124         Tests for module 'uninorm/nfc'.
48125         * tests/uninorm/test-nfc.c: New file.
48126         * tests/uninorm/test-u8-nfc.c: New file.
48127         * tests/uninorm/test-u16-nfc.c: New file.
48128         * tests/uninorm/test-u32-nfc.c: New file.
48129         * tests/uninorm/test-u32-nfc-big.sh: New file.
48130         * tests/uninorm/test-u32-nfc-big.c: New file.
48131         * modules/uninorm/nfc-tests: New file.
48132
48133         New module 'uninorm/nfc'.
48134         * lib/uninorm/nfc.c: New file.
48135         * modules/uninorm/nfc: New file.
48136
48137         Tests for module 'uninorm/nfd'.
48138         * tests/uninorm/test-nfd.c: New file.
48139         * tests/uninorm/test-u8-nfd.c: New file.
48140         * tests/uninorm/test-u16-nfd.c: New file.
48141         * tests/uninorm/test-u32-nfd.c: New file.
48142         * tests/uninorm/test-u32-nfd-big.sh: New file.
48143         * tests/uninorm/test-u32-nfd-big.c: New file.
48144         * tests/uninorm/test-u32-normalize-big.h: New file.
48145         * tests/uninorm/test-u32-normalize-big.c: New file.
48146         * tests/uninorm/NormalizationTest.txt: New file, created from
48147         Unicode 5.1.0 NormalizationTest.txt.
48148         * modules/uninorm/nfd-tests: New file.
48149
48150         New module 'uninorm/nfd'.
48151         * lib/uninorm/nfd.c: New file.
48152         * modules/uninorm/nfd: New file.
48153
48154         New module 'uninorm/u32-normalize'.
48155         * lib/uninorm/u32-normalize.c: New file.
48156         * modules/uninorm/u32-normalize: New file.
48157
48158         New module 'uninorm/u16-normalize'.
48159         * lib/uninorm/u16-normalize.c: New file.
48160         * modules/uninorm/u16-normalize: New file.
48161
48162         New module 'uninorm/u8-normalize'.
48163         * lib/uninorm/u8-normalize.c: New file.
48164         * lib/uninorm/normalize-internal.h: New file.
48165         * lib/uninorm/u-normalize-internal.h: New file.
48166         * modules/uninorm/u8-normalize: New file.
48167
48168         New module 'uninorm/decompose-internal'.
48169         * lib/uninorm/decompose-internal.c: New file.
48170         * modules/uninorm/decompose-internal: New file.
48171
48172         Tests for module 'uninorm/composition'.
48173         * tests/uninorm/test-composition.c: New file.
48174         * modules/uninorm/composition-tests: New file.
48175
48176         New module 'uninorm/composition'.
48177         * lib/uninorm/composition.c: New file.
48178         * lib/uninorm/composition-table.gperf: New file, generated by
48179         gen-uni-tables.
48180         * modules/uninorm/composition: New file.
48181
48182         Tests for module 'uninorm/compat-decomposition'.
48183         * tests/uninorm/test-compat-decomposition.c: New file.
48184         * modules/uninorm/compat-decomposition-tests: New file.
48185
48186         New module 'uninorm/compat-decomposition'.
48187         * lib/uninorm/decompose-internal.h: New file.
48188         * lib/uninorm/compat-decomposition.c: New file.
48189         * modules/uninorm/compat-decomposition: New file.
48190
48191         Tests for module 'uninorm/canonical-decomposition'.
48192         * tests/uninorm/test-canonical-decomposition.c: New file.
48193         * modules/uninorm/canonical-decomposition-tests: New file.
48194
48195         New module 'uninorm/canonical-decomposition'.
48196         * lib/uninorm/canonical-decomposition.c: New file.
48197         * modules/uninorm/canonical-decomposition: New file.
48198
48199         Tests for module 'uninorm/decomposition'.
48200         * tests/uninorm/test-decomposition.c: New file.
48201         * modules/uninorm/decomposition-tests: New file.
48202
48203         New module 'uninorm/decomposition'.
48204         * lib/uninorm/decomposition.c: New file.
48205         * modules/uninorm/decomposition: New file.
48206
48207         New module 'uninorm/decomposition-table'.
48208         * lib/uninorm/decomposition-table.h: New file.
48209         * lib/uninorm/decomposition-table.c: New file.
48210         * lib/uninorm/decomposition-table1.h: New file, generated by
48211         gen-uni-tables.
48212         * lib/uninorm/decomposition-table2.h: New file, generated by
48213         gen-uni-tables.
48214         * modules/uninorm/decomposition-table: New file.
48215
48216         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
48217         (UC_DECOMP_*): New enumeration items.
48218         (get_decomposition): New function.
48219         (struct decomp_table): New type.
48220         (output_decomposition, output_decomposition_tables): New functions.
48221         (unicode_composition_exclusions): New variable.
48222         (fill_composition_exclusions, debug_output_composition_tables): New
48223         functions.
48224         (main): Accept one more argument. Invoke fill_composition_exclusions.
48225         Output decomposition and composition tables.
48226
48227         New module 'uninorm/base'.
48228         * lib/uninorm.h: New file.
48229         * lib/unictype.h: Update comment.
48230         * modules/uninorm/base: New file.
48231
48232 2009-02-21  David Lutterkort  <lutter@redhat.com>
48233
48234         Tests for module 'safe-alloc'.
48235         * tests/test-safe-alloc.c: New file.
48236         * modules/safe-alloc-tests: New file.
48237
48238         New module 'safe-alloc'.
48239         * lib/safe-alloc.h: New file.
48240         * lib/safe-alloc.c: New file.
48241         * m4/safe-alloc.m4: New file.
48242         * modules/safe-alloc: New file.
48243         * doc/safe-alloc.texi: New file.
48244         * doc/gnulib.texi: Include it.
48245         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
48246         safe-alloc.
48247
48248 2009-02-18  Bruno Haible  <bruno@clisp.org>
48249
48250         Fix link error on non-glibc systems.
48251         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
48252         variable.
48253         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48254
48255 2009-02-18  Jim Meyering  <meyering@redhat.com>
48256
48257         fts: avoid used-uninitialized error due to recent change
48258         * lib/fts.c (fts_read): Guard uses of the new member,
48259         parent->fts_n_dirs_remaining, since it's not relevant for
48260         the parent of a directory specified on the command-line.
48261
48262 2009-02-17  James Youngman  <jay@gnu.org>
48263             Bruno Haible  <bruno@clisp.org>
48264
48265         * m4/include_next.m4: Reformulate comment.
48266
48267 2009-02-16  Jim Meyering  <meyering@redhat.com>
48268
48269         fts: add #if guards so that the fts_lgpl module still builds
48270         * lib/fts.c: Guard just-added hash-table-using parts with
48271         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
48272         Reported by Simon Josefsson.
48273
48274 2009-02-15  Bruno Haible  <bruno@clisp.org>
48275
48276         * modules/array-mergesort-tests: New file.
48277         * tests/test-array-mergesort.c: New file.
48278
48279         New module 'array-mergesort'.
48280         * modules/array-mergesort: New file.
48281         * lib/array-mergesort.h: New file.
48282
48283 2009-02-15  Bruno Haible  <bruno@clisp.org>
48284
48285         Fix 2009-02-07 commit.
48286         * lib/gen-uni-tables.c (output_predicate, output_category,
48287         output_combclass, output_bidi_category, output_decimal_digit,
48288         output_digit, output_numeric, output_mirror, output_scripts,
48289         output_ident_category, output_simple_mapping): Fix format directives.
48290         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
48291
48292 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
48293
48294         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
48295         fixes are available from IBM.
48296
48297 2009-02-13  Jim Meyering  <meyering@redhat.com>
48298
48299         fts: arrange not to stat non-directories in more cases
48300         This makes GNU find (when it doesn't need to stat each file)
48301         *much* more efficient at traversing reiserfs file systems.
48302         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
48303         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
48304         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
48305         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
48306         (leaf_optimization_applies): New function.
48307         (LCO_hash, LCO_compare): New helper functions.
48308         (link_count_optimize_ok): New function.
48309         (fts_stat): Initialize new member (if dir).
48310         (fts_read): Decrement parent's fts_n_dirs_remaining count if
48311         we've just stat'ed a directory.  Skip the stat call when possible.
48312         ---
48313         Note this AFS-related exchange:
48314         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
48315         and note find's pioctl call in find/fstype.c.
48316         But that is necessary only if you want to enable the
48317         optimization for AFS, and for now, I don't.
48318
48319         fts: move a function definition "up" (no semantic change)
48320         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
48321         "up" to precede upcoming use of a related function.
48322
48323 2009-02-11  Jim Meyering  <meyering@redhat.com>
48324
48325         fts: correct internal computation of nlinks (optimization-related)
48326         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
48327         whether the current entry is a directory, so don't test it.
48328
48329 2009-02-10  Bruno Haible  <bruno@clisp.org>
48330
48331         Tests for module 'uniwbrk/ulc-wordbreaks'.
48332         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
48333         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
48334         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
48335
48336         Tests for module 'uniwbrk/u32-wordbreaks'.
48337         * modules/uniwbrk/u32-wordbreaks-tests: New file.
48338         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
48339
48340         Tests for module 'uniwbrk/u16-wordbreaks'.
48341         * modules/uniwbrk/u16-wordbreaks-tests: New file.
48342         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
48343
48344         Tests for module 'uniwbrk/u8-wordbreaks'.
48345         * modules/uniwbrk/u8-wordbreaks-tests: New file.
48346         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
48347
48348 2009-02-10  Bruno Haible  <bruno@clisp.org>
48349
48350         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
48351         property.
48352         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
48353         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
48354         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
48355
48356 2009-02-10  Simon Josefsson  <simon@josefsson.org>
48357
48358         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
48359         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
48360
48361 2009-02-10  Bruno Haible  <bruno@clisp.org>
48362
48363         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
48364         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
48365         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
48366         * lib/unilbrk/u8-possible-linebreaks.c: Update.
48367         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
48368         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
48369
48370 2009-02-09  Simon Josefsson  <simon@josefsson.org>
48371
48372         * lib/sockets.h (gl_fd_to_handle): New function.
48373
48374         * tests/test-sockets.c: Call gl_fd_to_handle.
48375
48376 2009-02-09  Bruno Haible  <bruno@clisp.org>
48377
48378         * doc/havelib.texi: Document the conventions on bi-arch systems.
48379
48380 2009-02-08  Bruno Haible  <bruno@clisp.org>
48381
48382         Document the AC_LIB_LINKFLAGS macro.
48383         * doc/havelib.texi: New file, mostly written on 2005-05-24.
48384         * doc/gnulib.texi: Include it.
48385
48386 2009-02-08  Bruno Haible  <bruno@clisp.org>
48387
48388         Fix wrong order of sections, compared to TOC.
48389         * doc/gnulib.texi: Include relocatable-maint.texi after the
48390         "Regular expressions" node, not before.
48391
48392 2009-02-08  Bruno Haible  <bruno@clisp.org>
48393
48394         Tests for module 'unicase/totitle'.
48395         * modules/unicase/totitle-tests: New file.
48396
48397         Tests for module 'unicase/tolower'.
48398         * modules/unicase/tolower-tests: New file.
48399
48400         Tests for module 'unicase/toupper'.
48401         * modules/unicase/toupper-tests: New file.
48402         * tests/unicase/test-mapping-part1.h: New file.
48403         * tests/unicase/test-mapping-part2.h: New file.
48404
48405         New module 'unicase/totitle'.
48406         * modules/unicase/totitle: New file.
48407         * lib/unicase/totitle.c: New file.
48408
48409         New module 'unicase/tolower'.
48410         * modules/unicase/tolower: New file.
48411         * lib/unicase/tolower.c: New file.
48412
48413         New module 'unicase/toupper'.
48414         * modules/unicase/toupper: New file.
48415         * lib/unicase/toupper.c: New file.
48416         * lib/unicase/simple-mapping.h: New file.
48417
48418         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
48419         (mapping_table): New structure.
48420         (output_simple_mapping): New function.
48421         (main): Invoke output_simple_mapping_test and output_simple_mapping.
48422         * modules/gen-uni-tables (Description): Update.
48423         * lib/unicase/toupper.h: New file, automatically generated by
48424         gen-uni-tables.
48425         * lib/unicase/tolower.h: New file, automatically generated by
48426         gen-uni-tables.
48427         * lib/unicase/totitle.h: New file, automatically generated by
48428         gen-uni-tables.
48429         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
48430         gen-uni-tables.
48431         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
48432         gen-uni-tables.
48433         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
48434         gen-uni-tables.
48435
48436         New module 'unicase/base'.
48437         * modules/unicase/base: New file.
48438         * lib/unicase.h: New file.
48439
48440 2009-02-08  Bruno Haible  <bruno@clisp.org>
48441
48442         New module 'uniwbrk/ulc-wordbreaks'.
48443         * modules/uniwbrk/ulc-wordbreaks: New file.
48444         * lib/uniwbrk/ulc-wordbreaks.c: New file.
48445
48446         New module 'uniwbrk/u32-wordbreaks'.
48447         * modules/uniwbrk/u32-wordbreaks: New file.
48448         * lib/uniwbrk/u32-wordbreaks.c: New file.
48449
48450         New module 'uniwbrk/u16-wordbreaks'.
48451         * modules/uniwbrk/u16-wordbreaks: New file.
48452         * lib/uniwbrk/u16-wordbreaks.c: New file.
48453
48454         New module 'uniwbrk/u8-wordbreaks'.
48455         * modules/uniwbrk/u8-wordbreaks: New file.
48456         * lib/uniwbrk/u8-wordbreaks.c: New file.
48457         * lib/uniwbrk/u-wordbreaks.h: New file.
48458
48459         New module 'uniwbrk/table'.
48460         * modules/uniwbrk/table: New file.
48461         * lib/uniwbrk/wbrktable.h: New file.
48462         * lib/uniwbrk/wbrktable.c: New file.
48463
48464         New module 'uniwbrk/wordbreak-property'.
48465         * modules/uniwbrk/wordbreak-property: New file.
48466         * lib/uniwbrk/wordbreak-property.c: New file.
48467
48468         * lib/gen-uni-tables.c (WBP_*): New enum items.
48469         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
48470         (unicode_org_wbp): New variable.
48471         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
48472         New functions.
48473         (wbp_table): New structure.
48474         (output_wbp, output_wbrk_tables): New functions.
48475         (main): Accept additional argument. Invoke fill_org_wbp,
48476         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
48477         output_wbrk_tables.
48478         * modules/gen-uni-tables (Description): Update.
48479         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
48480         gen-uni-tables.
48481
48482         New module 'uniwbrk/base'.
48483         * modules/uniwbrk/base: New file.
48484         * lib/uniwbrk.h: New file.
48485
48486 2009-02-08  Bruno Haible  <bruno@clisp.org>
48487
48488         Update to Unicode 5.1.0.
48489         * lib/gen-uni-tables.c (is_property_alphabetic): Include
48490         U+2185..U+2188.
48491         (is_property_default_ignorable_code_point): Don't include characters
48492         of category Cc or Cs and not-a-characters.
48493         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
48494         U+0D79, U+109E, U+109F, U+A60C.
48495         * lib/unictype/bidi_of.h: Regenerated.
48496         * lib/unictype/blocks.h: Regenerated.
48497         * lib/unictype/categ_C.h: Regenerated.
48498         * lib/unictype/categ_Cf.h: Regenerated.
48499         * lib/unictype/categ_Cn.h: Regenerated.
48500         * lib/unictype/categ_L.h: Regenerated.
48501         * lib/unictype/categ_Ll.h: Regenerated.
48502         * lib/unictype/categ_Lm.h: Regenerated.
48503         * lib/unictype/categ_Lo.h: Regenerated.
48504         * lib/unictype/categ_Lu.h: Regenerated.
48505         * lib/unictype/categ_M.h: Regenerated.
48506         * lib/unictype/categ_Mc.h: Regenerated.
48507         * lib/unictype/categ_Me.h: Regenerated.
48508         * lib/unictype/categ_Mn.h: Regenerated.
48509         * lib/unictype/categ_N.h: Regenerated.
48510         * lib/unictype/categ_Nd.h: Regenerated.
48511         * lib/unictype/categ_Nl.h: Regenerated.
48512         * lib/unictype/categ_No.h: Regenerated.
48513         * lib/unictype/categ_P.h: Regenerated.
48514         * lib/unictype/categ_Pd.h: Regenerated.
48515         * lib/unictype/categ_Pe.h: Regenerated.
48516         * lib/unictype/categ_Pf.h: Regenerated.
48517         * lib/unictype/categ_Pi.h: Regenerated.
48518         * lib/unictype/categ_Po.h: Regenerated.
48519         * lib/unictype/categ_Ps.h: Regenerated.
48520         * lib/unictype/categ_S.h: Regenerated.
48521         * lib/unictype/categ_Sk.h: Regenerated.
48522         * lib/unictype/categ_Sm.h: Regenerated.
48523         * lib/unictype/categ_So.h: Regenerated.
48524         * lib/unictype/categ_of.h: Regenerated.
48525         * lib/unictype/combining.h: Regenerated.
48526         * lib/unictype/ctype_alnum.h: Regenerated.
48527         * lib/unictype/ctype_alpha.h: Regenerated.
48528         * lib/unictype/ctype_graph.h: Regenerated.
48529         * lib/unictype/ctype_lower.h: Regenerated.
48530         * lib/unictype/ctype_print.h: Regenerated.
48531         * lib/unictype/ctype_punct.h: Regenerated.
48532         * lib/unictype/ctype_upper.h: Regenerated.
48533         * lib/unictype/decdigit.h: Regenerated.
48534         * lib/unictype/digit.h: Regenerated.
48535         * lib/unictype/mirror.h: Regenerated.
48536         * lib/unictype/numeric.h: Regenerated.
48537         * lib/unictype/pr_alphabetic.h: Regenerated.
48538         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
48539         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
48540         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
48541         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
48542         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
48543         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
48544         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
48545         * lib/unictype/pr_combining.h: Regenerated.
48546         * lib/unictype/pr_dash.h: Regenerated.
48547         * lib/unictype/pr_decimal_digit.h: Regenerated.
48548         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
48549         * lib/unictype/pr_deprecated.h: Regenerated.
48550         * lib/unictype/pr_diacritic.h: Regenerated.
48551         * lib/unictype/pr_extender.h: Regenerated.
48552         * lib/unictype/pr_format_control.h: Regenerated.
48553         * lib/unictype/pr_grapheme_base.h: Regenerated.
48554         * lib/unictype/pr_grapheme_extend.h: Regenerated.
48555         * lib/unictype/pr_grapheme_link.h: Regenerated.
48556         * lib/unictype/pr_id_continue.h: Regenerated.
48557         * lib/unictype/pr_id_start.h: Regenerated.
48558         * lib/unictype/pr_ideographic.h: Regenerated.
48559         * lib/unictype/pr_ignorable_control.h: Regenerated.
48560         * lib/unictype/pr_lowercase.h: Regenerated.
48561         * lib/unictype/pr_math.h: Regenerated.
48562         * lib/unictype/pr_numeric.h: Regenerated.
48563         * lib/unictype/pr_other_alphabetic.h: Regenerated.
48564         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
48565         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
48566         * lib/unictype/pr_other_id_continue.h: Regenerated.
48567         * lib/unictype/pr_other_lowercase.h: Regenerated.
48568         * lib/unictype/pr_other_math.h: Regenerated.
48569         * lib/unictype/pr_punctuation.h: Regenerated.
48570         * lib/unictype/pr_sentence_terminal.h: Regenerated.
48571         * lib/unictype/pr_soft_dotted.h: Regenerated.
48572         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
48573         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
48574         * lib/unictype/pr_unified_ideograph.h: Regenerated.
48575         * lib/unictype/pr_uppercase.h: Regenerated.
48576         * lib/unictype/pr_xid_continue.h: Regenerated.
48577         * lib/unictype/pr_xid_start.h: Regenerated.
48578         * lib/unictype/pr_zero_width.h: Regenerated.
48579         * lib/unictype/scripts.h: Regenerated.
48580         * lib/unictype/scripts_byname.gperf: Regenerated.
48581         * lib/unictype/sy_java_ident.h: Regenerated.
48582         * lib/unilbrk/lbrkprop1.h: Regenerated.
48583         * lib/unilbrk/lbrkprop2.h: Regenerated.
48584         * tests/unictype/test-categ_C.c: Regenerated.
48585         * tests/unictype/test-categ_Cf.c: Regenerated.
48586         * tests/unictype/test-categ_Cn.c: Regenerated.
48587         * tests/unictype/test-categ_L.c: Regenerated.
48588         * tests/unictype/test-categ_Ll.c: Regenerated.
48589         * tests/unictype/test-categ_Lm.c: Regenerated.
48590         * tests/unictype/test-categ_Lo.c: Regenerated.
48591         * tests/unictype/test-categ_Lu.c: Regenerated.
48592         * tests/unictype/test-categ_M.c: Regenerated.
48593         * tests/unictype/test-categ_Mc.c: Regenerated.
48594         * tests/unictype/test-categ_Me.c: Regenerated.
48595         * tests/unictype/test-categ_Mn.c: Regenerated.
48596         * tests/unictype/test-categ_N.c: Regenerated.
48597         * tests/unictype/test-categ_Nd.c: Regenerated.
48598         * tests/unictype/test-categ_Nl.c: Regenerated.
48599         * tests/unictype/test-categ_No.c: Regenerated.
48600         * tests/unictype/test-categ_P.c: Regenerated.
48601         * tests/unictype/test-categ_Pd.c: Regenerated.
48602         * tests/unictype/test-categ_Pe.c: Regenerated.
48603         * tests/unictype/test-categ_Pf.c: Regenerated.
48604         * tests/unictype/test-categ_Pi.c: Regenerated.
48605         * tests/unictype/test-categ_Po.c: Regenerated.
48606         * tests/unictype/test-categ_Ps.c: Regenerated.
48607         * tests/unictype/test-categ_S.c: Regenerated.
48608         * tests/unictype/test-categ_Sk.c: Regenerated.
48609         * tests/unictype/test-categ_Sm.c: Regenerated.
48610         * tests/unictype/test-categ_So.c: Regenerated.
48611         * tests/unictype/test-ctype_alnum.c: Regenerated.
48612         * tests/unictype/test-ctype_alpha.c: Regenerated.
48613         * tests/unictype/test-ctype_graph.c: Regenerated.
48614         * tests/unictype/test-ctype_lower.c: Regenerated.
48615         * tests/unictype/test-ctype_print.c: Regenerated.
48616         * tests/unictype/test-ctype_punct.c: Regenerated.
48617         * tests/unictype/test-ctype_upper.c: Regenerated.
48618         * tests/unictype/test-decdigit.h: Regenerated.
48619         * tests/unictype/test-digit.h: Regenerated.
48620         * tests/unictype/test-numeric.h: Regenerated.
48621         * tests/unictype/test-pr_alphabetic.c: Regenerated.
48622         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
48623         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
48624         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
48625         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
48626         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
48627         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
48628         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
48629         * tests/unictype/test-pr_combining.c: Regenerated.
48630         * tests/unictype/test-pr_dash.c: Regenerated.
48631         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
48632         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
48633         * tests/unictype/test-pr_deprecated.c: Regenerated.
48634         * tests/unictype/test-pr_diacritic.c: Regenerated.
48635         * tests/unictype/test-pr_extender.c: Regenerated.
48636         * tests/unictype/test-pr_format_control.c: Regenerated.
48637         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
48638         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
48639         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
48640         * tests/unictype/test-pr_id_continue.c: Regenerated.
48641         * tests/unictype/test-pr_id_start.c: Regenerated.
48642         * tests/unictype/test-pr_ideographic.c: Regenerated.
48643         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
48644         * tests/unictype/test-pr_lowercase.c: Regenerated.
48645         * tests/unictype/test-pr_math.c: Regenerated.
48646         * tests/unictype/test-pr_numeric.c: Regenerated.
48647         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
48648         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
48649         Regenerated.
48650         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
48651         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
48652         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
48653         * tests/unictype/test-pr_other_math.c: Regenerated.
48654         * tests/unictype/test-pr_punctuation.c: Regenerated.
48655         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
48656         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
48657         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
48658         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
48659         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
48660         * tests/unictype/test-pr_uppercase.c: Regenerated.
48661         * tests/unictype/test-pr_xid_continue.c: Regenerated.
48662         * tests/unictype/test-pr_xid_start.c: Regenerated.
48663         * tests/unictype/test-pr_zero_width.c: Regenerated.
48664
48665         Update to Unicode 5.1.0.
48666         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
48667         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
48668         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
48669         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
48670         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
48671         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
48672         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
48673         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
48674         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
48675         (nonspacing_table_ind): Update.
48676         * tests/uniwidth/test-uc_width2.sh: Update expected result.
48677
48678         Update to Unicode 5.1.0.
48679         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
48680         code transform.
48681         * lib/uniname/uniname.c (unicode_character_name,
48682         unicode_name_character): Add the range 0x1Fxxx to the code transform.
48683         * lib/uniname/uninames.h: Regenerated.
48684         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
48685
48686 2009-02-07  Bruno Haible  <bruno@clisp.org>
48687
48688         Merge gen-ctype and gen-lbrk into a single program.
48689         * lib/gen-uni-tables.c: New file, incorporating
48690         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
48691         Add directory prefixes to the names of the generated files.
48692         * lib/unictype/gen-ctype.c: Remove file.
48693         * lib/unilbrk/gen-lbrk.c: Remove file.
48694         * modules/gen-uni-tables: New file.
48695         * modules/unictype/gen-ctype: Remove file.
48696         * modules/unilbrk/gen-lbrk: Remove file.
48697
48698 2009-02-07  Bruno Haible  <bruno@clisp.org>
48699
48700         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
48701
48702         New module 'unistr/u32-strcoll'.
48703         * modules/unistr/u32-strcoll: New file.
48704         * lib/unistr/u32-strcoll.c: New file.
48705
48706         New module 'unistr/u16-strcoll'.
48707         * modules/unistr/u16-strcoll: New file.
48708         * lib/unistr/u16-strcoll.c: New file.
48709
48710         New module 'unistr/u8-strcoll'.
48711         * modules/unistr/u8-strcoll: New file.
48712         * lib/unistr/u8-strcoll.c: New file.
48713         * lib/unistr/u-strcoll.h: New file.
48714
48715 2009-02-07  Bruno Haible  <bruno@clisp.org>
48716
48717         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
48718         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48719         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48720         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
48721         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
48722         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
48723
48724 2009-02-07  Bruno Haible  <bruno@clisp.org>
48725
48726         Make 64-bit clean.
48727         * lib/unictype/gen-ctype.c (output_predicate, output_category,
48728         output_combclass, output_bidi_category, output_decimal_digit,
48729         output_digit, output_numeric, output_mirror, output_scripts,
48730         output_ident_category): Use proper width specifier in format strings.
48731
48732 2009-02-07  Bruno Haible  <bruno@clisp.org>
48733
48734         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
48735         failure behaviour.
48736
48737 2009-02-07  Jim Meyering  <meyering@redhat.com>
48738
48739         regex: avoid compilation failure with upcoming gcc-4.4
48740         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
48741         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
48742         "... error: integer overflow in preprocessor expression".
48743
48744 2009-02-05  Ben Pfaff  <blp@gnu.org>
48745
48746         Fix link errors on Windows when close module is used.
48747         * modules/close: Add $(LIB_CLOSE) to Link section.
48748         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
48749         $(LIB_CLOSE) on Windows.
48750
48751 2009-02-05  Jim Meyering  <meyering@redhat.com>
48752
48753         still avoid unused-parameter warnings, but do it cleanly
48754         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
48755         (get_fs_usage): Cast to void instead.
48756         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
48757         (dev_from_mount_options, read_file_system_list): Cast to void.
48758         Prompted by Bruno Haible.
48759
48760 2009-02-04  Jim Meyering  <meyering@redhat.com>
48761
48762         fsusage.c: correct copyright year
48763         * lib/fsusage.c: Reflect year in which the change is pushed into
48764
48765         avoid misc. warnings
48766         * lib/fsusage.c (UNUSED_PARAM): Define.
48767         (get_fs_usage): Mark parameter "disk" as unused.
48768         * lib/getugroups.c (getgrent): Use "void" in prototype.
48769         * lib/mountlist.c: Mark unused parameters.
48770         (read_file_system_list): Declare a local with "const".
48771         * lib/nanosleep.c (getnow): Declare static.
48772         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
48773
48774         dirfd: set errno upon failure
48775         * lib/dirfd.c: Include <errno.h>.
48776         Set errno to ENOTSUP when returning -1.
48777         * modules/dirfd (Depends-on): Add errno.
48778         Suggested by John Kodis <kodis@comcast.net>.
48779
48780 2009-02-01  Bruno Haible  <bruno@clisp.org>
48781
48782         Don't assume sizeof (long) >= sizeof (void *).
48783         * lib/memcmp.c: Include stdint.h.
48784         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
48785         srcp2 to 'const byte *'.
48786         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
48787         types to uintptr_t.
48788         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
48789         * modules/memcmp (Depends-on): Add stdint.
48790         Reported by Ozkan Sezer <sezeroz@gmail.com>.
48791
48792 2009-01-30  Eric Blake  <ebb9@byu.net>
48793
48794         fix more require-before-expand issues
48795         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
48796         expand, AC_PROG_AWK.
48797         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
48798
48799 2009-01-28  Eric Blake  <ebb9@byu.net>
48800
48801         version-etc: use consistent URL formatting
48802         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
48803         Improve formatting.  Use fputs for string without %.
48804
48805 2009-01-28  Jim Meyering  <meyering@redhat.com>
48806
48807         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
48808         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
48809         "underquoted definition of NAME" from autoconf-2.59.
48810
48811 2009-01-28  Bruno Haible  <bruno@clisp.org>
48812
48813         * doc/gnulib.texi: Add "Obsolete modules" to index.
48814
48815 2009-01-28  Jim Meyering  <meyering@redhat.com>
48816
48817         useless-if-before-free: recognize more variants
48818         * build-aux/useless-if-before-free: Also recognize e.g.,
48819         if (NULL != p) free (p);
48820
48821 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
48822
48823         test-getaddrinfo: skip (don't fail) this test when there's no network
48824         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
48825         on the presumption that it means you lack network access.
48826
48827 2009-01-26  Jim Meyering  <meyering@redhat.com>
48828
48829         fflush: avoid warnings on modern systems
48830         * lib/fflush.c (rpl_fflush): Move declarations of locals,
48831         pos and result, into scopes where they're used.
48832
48833 2009-01-26  Eric Blake  <ebb9@byu.net>
48834
48835         Silence warning reintroduced by recent extensions patch.
48836         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
48837         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
48838         autoconf.
48839
48840         Backport improved autoconf semantics of AC_DEFUN_ONCE.
48841         * m4/00gnulib.m4: New file.
48842         * gnulib-tool (func_get_filelist): Always use it.
48843         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
48844         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
48845
48846 2009-01-25  Bruno Haible  <bruno@clisp.org>
48847
48848         Make test-quotearg work on MacOS X and AIX.
48849         * tests/test-quotearg.sh: New file.
48850         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
48851         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
48852         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
48853         include <libintl.h>.
48854         (fake_locale): Remove variable.
48855         (gettext, dgettext, dcgettext): Remove functions.
48856         (main): Instead of setting a fake locale, set a real locale. Call
48857         textdomain and bindtextdomain.
48858         * modules/quotearg-tests (Files): Add the new files.
48859         (Depends-on): Add gettext, setenv, unsetenv.
48860         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
48861         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
48862         Augment TESTS_ENVIRONMENT.
48863
48864 2009-01-25  Bruno Haible  <bruno@clisp.org>
48865
48866         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
48867         fr_FR.ISO8859-1 locale on MacOS X.
48868         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
48869         ja_JP.eucJP locale on MacOS X.
48870         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
48871         zh_CN.GB18030 locale on MacOS X.
48872
48873 2009-01-25  Bruno Haible  <bruno@clisp.org>
48874
48875         Avoid link errors on MacOS X 10.3.
48876         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
48877         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48878
48879 2009-01-25  Bruno Haible  <bruno@clisp.org>
48880
48881         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48882         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
48883         * modules/pipe (Files): Remove m4/posix_spawn.m4.
48884         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48885         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
48886         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48887         posix_spawnattr_init, posix_spawnattr_setsigmask,
48888         posix_spawnattr_setflags, posix_spawnattr_destroy.
48889
48890         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48891         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
48892         * modules/execute (Files): Remove m4/posix_spawn.m4.
48893         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48894         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48895         posix_spawnattr_init, posix_spawnattr_setsigmask,
48896         posix_spawnattr_setflags, posix_spawnattr_destroy.
48897
48898 2009-01-25  Bruno Haible  <bruno@clisp.org>
48899
48900         * lib/glthread/threadlib.c: Include <stdlib.h>.
48901
48902 2009-01-25  Bruno Haible  <bruno@clisp.org>
48903
48904         * lib/glthread/threadlib.c (dummy): New declaration.
48905
48906 2009-01-25  Bruno Haible  <bruno@clisp.org>
48907
48908         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
48909         multibyte characters also for the GB18030 encoding. Don't crash when
48910         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
48911
48912 2009-01-25  Bruno Haible  <bruno@clisp.org>
48913
48914         Avoid redefining 'struct random_data' on OSF/1 5.1.
48915         * lib/stdlib.in.h: Include <random.h> if it exists.
48916         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
48917         HAVE_RANDOM_H. Include <random.h> when testing whether
48918         'struct random_data' exists.
48919         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
48920
48921 2009-01-25  Bruno Haible  <bruno@clisp.org>
48922
48923         Don't install charset.alias on MacOS X >= 10.3.
48924         * lib/localcharset.c (DARWIN7): New macro.
48925         (get_charset_aliases): Hardcode the result for Darwin7.
48926         * modules/localcharset (install-exec-local): Don't install
48927         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
48928
48929 2009-01-25  Bruno Haible  <bruno@clisp.org>
48930
48931         Don't install charset.alias on mingw and Cygwin.
48932         * modules/localcharset (install-exec-local): Don't install
48933         charset.alias on mingw and Cygwin, if the file does not yet exist.
48934         The result for these platforms is hardcoded in localcharset.c.
48935
48936 2009-01-25  Bruno Haible  <bruno@clisp.org>
48937
48938         Make it possible again to use AC_GNU_SOURCE together with gnulib.
48939         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
48940         before requiring AC_USE_SYSTEM_EXTENSIONS.
48941
48942 2009-01-25  Jim Meyering  <meyering@redhat.com>
48943
48944         c-strtod: avoid warnings
48945         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
48946         "assignment discards qualifiers from pointer target type" warnings.
48947
48948 2009-01-24  Bruno Haible  <bruno@clisp.org>
48949
48950         Add support for non-UTF-8 locales on MacOS X.
48951         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
48952         canonical encodings. For Darwin 7 and newer, don't map traditional
48953         encodings to UTF-8.
48954         Reported by Vincent Lefevre <vincent@vinc17.org>
48955         at <http://savannah.gnu.org/bugs/?25235>.
48956
48957 2009-01-24  Bruno Haible  <bruno@clisp.org>
48958
48959         * doc/gnulib.texi (Obsolete modules): New section.
48960         Reported by Mike Frysinger <vapier@gentoo.org>.
48961
48962 2009-01-24  Bruno Haible  <bruno@clisp.org>
48963
48964         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
48965         (%.dvi): New rule.
48966
48967 2009-01-24  Bruno Haible  <bruno@clisp.org>
48968
48969         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
48970         Reported by Eric Blake.
48971
48972 2009-01-24  Bruno Haible  <bruno@clisp.org>
48973
48974         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
48975         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
48976         Reported by Gary V. Vaughan <gary@gnu.org>.
48977
48978 2009-01-24  Bruno Haible  <bruno@clisp.org>
48979
48980         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
48981
48982 2009-01-23  Bruno Haible  <bruno@clisp.org>
48983
48984         Make c-strtod, c-strtold usable in libraries.
48985         * lib/c-strtod.c: Include string.h instead of xalloc.h.
48986         (C_STRTOD): Call strdup instead of xstrdup.
48987         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
48988         * modules/c-strtold (Depends-on): Likewise.
48989         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
48990         * NEWS: Mention the change.
48991         Reported by Michael Gold <mgold@ncf.ca>.
48992
48993 2009-01-23  Jim Meyering  <meyering@redhat.com>
48994
48995         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
48996         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
48997         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
48998
48999 2009-01-23  Simon Josefsson  <simon@josefsson.org>
49000
49001         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
49002         GNU CoreUtils.
49003         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
49004         * modules/version-etc (Description): Update.
49005
49006 2009-01-22  Bruno Haible  <bruno@clisp.org>
49007
49008         Cache the C locale object.
49009         * lib/c-strtod.c (c_locale_cache): New variable.
49010         (c_locale): New function.
49011         (C_STRTOD): Use it, and don't call freelocale.
49012         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
49013         Suggested by Paolo Bonzini.
49014
49015 2009-01-21  Bruno Haible  <bruno@clisp.org>
49016
49017         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
49018         conditions other than overflow.
49019
49020 2009-01-21  Bruno Haible  <bruno@clisp.org>
49021
49022         * lib/c-strtod.c: Include errno.h.
49023         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
49024         value from STRTOD_L and STRTOD.
49025
49026 2009-01-21  Bruno Haible  <bruno@clisp.org>
49027         and Jim Meyering  <meyering@redhat.com>
49028
49029         nanosleep: skip configure test (fail it) for apple universal builds
49030         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
49031         universal builds, assume that nanosleep does not work.
49032         * modules/nanosleep (Depends-on): Add multiarch.
49033
49034         mktime: skip configure test (fail it) for apple universal builds
49035         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
49036         universal builds, assume that mktime does not work.
49037         * modules/mktime (Depends-on): Add multiarch.
49038
49039 2009-01-21  Eric Blake  <ebb9@byu.net>
49040
49041         multiarch: avoid expand-before-require warning
49042         * modules/multiarch (configure.ac): Require, rather than expand,
49043         gl_MULTIARCH.
49044         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
49045         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
49046         enforce that all clients require it.  Partial reversion of
49047         2008-12-29 patch.
49048
49049         error: avoid expand-before-require warning
49050         * modules/errno (configure.ac): Require, rather than expand,
49051         gl_HEADER_ERRNO_H.
49052         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
49053         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
49054         enforce that all clients require it.
49055
49056         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
49057         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
49058         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
49059         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
49060
49061 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
49062
49063         Revert:
49064         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
49065
49066         regex: do not depend on obsolete modules.
49067         * modules/regex: Remove memcmp and memmove.
49068
49069 2009-01-20  Bruno Haible  <bruno@clisp.org>
49070
49071         Make the 'link' module link on Windows NT 4.
49072         * lib/link.c (_WIN32_WINNT): Don't define.
49073         (CreateHardLinkFuncType): New type.
49074         (CreateHardLinkFunc, initialized): New variables.
49075         (initialize): New function.
49076         (link): Invoke CreateHardLink indirectly through the function pointer.
49077
49078 2009-01-20  Bruno Haible  <bruno@clisp.org>
49079
49080         Fix compilation failure on mingw.
49081         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
49082
49083 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
49084
49085         * doc/c-strtod.texi: Mention a couple of restrictions.
49086
49087 2009-01-20  Jim Meyering  <meyering@redhat.com>
49088
49089         gettimeofday: move more declarations out of functions
49090         * lib/gettimeofday.c: Move extern declarations of tzset and
49091         gmtime out of containing functions.  Prompted by Bruno Haible.
49092
49093 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
49094
49095         regex: do not depend on obsolete modules.
49096         * modules/regex: Remove memcmp and memmove.
49097
49098 2009-01-19  Bruno Haible  <bruno@clisp.org>
49099
49100         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
49101         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
49102         gl_BIGENDIAN, not AC_C_BIGENDIAN.
49103         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
49104         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
49105
49106 2009-01-19  Bruno Haible  <bruno@clisp.org>
49107
49108         * tests/test-link.c: Include <errno.h>.
49109         (main): Exit with code 77 when a hard link cannot be created due to
49110         the file system.
49111         * tests/test-link.sh: Skip test when a hard link cannot be created due
49112         to the file system.
49113         Suggested by Eric Blake.
49114
49115 2009-01-19  Martin Lambers  <marlam@marlam.de>
49116
49117         * modules/link-tests: New file.
49118         * tests/test-link.sh: New file.
49119         * tests/test-link.c: New file.
49120
49121 2009-01-19  Eric Blake  <ebb9@byu.net>
49122
49123         doc: mention another function added in cygwin 1.7.0
49124         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
49125         Another new function in cygwin 1.7.
49126
49127 2009-01-19  Bruno Haible  <bruno@clisp.org>
49128
49129         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
49130         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
49131         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
49132         gl_BIGENDIAN, not AC_C_BIGENDIAN.
49133         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
49134         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
49135         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
49136         * m4/md4.m4 (gl_MD4): Likewise.
49137         * m4/md5.m4 (gl_MD5): Likewise.
49138         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
49139         * m4/sha1.m4 (gl_SHA1): Likewise.
49140         * m4/sha256.m4 (gl_SHA256): Likewise.
49141         * m4/sha512.m4 (gl_SHA512): Likewise.
49142
49143 2009-01-19  Bruno Haible  <bruno@clisp.org>
49144
49145         * modules/uniname/uniname-tests (Depends-on): Add progname.
49146         * tests/uniname/test-uninames.c: Include progname.h.
49147         (main): Call set_program_name.
49148
49149         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
49150         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
49151         (main): Call set_program_name.
49152
49153         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
49154         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
49155         (main): Call set_program_name.
49156
49157         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
49158         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
49159         (main): Call set_program_name.
49160
49161         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
49162         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
49163         (main): Call set_program_name.
49164
49165         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
49166         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
49167         (main): Call set_program_name.
49168
49169         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
49170         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
49171         (main): Call set_program_name.
49172
49173         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
49174         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
49175         (main): Call set_program_name.
49176
49177         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
49178         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
49179         (main): Call set_program_name.
49180
49181 2009-01-19  Eric Blake  <ebb9@byu.net>
49182
49183         test-unistd: test previous patch
49184         * tests/test-unistd.c: Test *_FILENO macros.
49185
49186         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
49187         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49188         Guarantee a definition.
49189         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
49190         * modules/unistd-safer (Depends-on): Add dependency on unistd.
49191         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
49192         * lib/dup-safer.c (STDERR_FILENO): Likewise.
49193         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49194         Likewise.
49195         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
49196         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
49197         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49198         Likewise.
49199         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
49200         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
49201         (STDERR_FILENO): Likewise.
49202         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
49203         (STDERR_FILENO): Likewise.
49204         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
49205         (STDERR_FILENO): Likewise.
49206         Reported by Elbert Pol.
49207
49208 2009-01-19  Eric Blake  <ebb9@byu.net>
49209
49210         doc: mention more functions added in cygwin 1.7.0
49211         * doc/posix-functions/abort.texi (abort): Update wording related
49212         to cygwin.
49213         * doc/posix-functions/daylight.texi (daylight): Likewise.
49214         * doc/posix-functions/optarg.texi (optarg): Likewise.
49215         * doc/posix-functions/optarg.texi (opterr): Likewise.
49216         * doc/posix-functions/optarg.texi (optind): Likewise.
49217         * doc/posix-functions/optarg.texi (optopt): Likewise.
49218         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
49219         worked in 1.5.x, and was withdrawn in 1.7.
49220         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
49221         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
49222         cygwin versions.
49223         * doc/posix-functions/perror.texi (perror): Likewise.
49224         * doc/posix-functions/printf.texi (printf): Likewise.
49225         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
49226         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
49227         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
49228         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
49229         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
49230         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
49231         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49232         Likewise.
49233         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49234         Likewise.
49235         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
49236         this function.
49237         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
49238         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
49239         Likewise.
49240         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
49241         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
49242         * doc/posix-functions/confstr.texi (confstr): Likewise.
49243         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
49244         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
49245         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
49246         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
49247         * doc/posix-functions/fputws.texi (fputws): Likewise.
49248         * doc/posix-functions/fwide.texi (fwide): Likewise.
49249         * doc/posix-functions/getwc.texi (getwc): Likewise.
49250         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
49251         * doc/posix-functions/putwc.texi (putwc): Likewise.
49252         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
49253         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
49254         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
49255         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
49256         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
49257         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
49258         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
49259         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
49260         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
49261         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
49262         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
49263
49264 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
49265
49266         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
49267         * lib/ioctl.c: Include <sys/ioctl.h>.
49268
49269 2009-01-19  Simon Josefsson  <simon@josefsson.org>
49270
49271         * modules/getdate-tests (Depends-on): Add progname.
49272         * tests/test-getdate.c: Use progname module, to avoid link errors
49273         on non-glibc systems.
49274
49275 2009-01-18  Simon Josefsson  <simon@josefsson.org>
49276
49277         * modules/filenamecat-tests (Depends-on): Add progname.
49278         * modules/fstrcmp-tests (Depends-on): Likewise.
49279
49280         * tests/test-filenamecat.c: Use progname module, to avoid link
49281         errors on non-glibc systems.
49282         * tests/test-fstrcmp.c: Likewise.
49283
49284 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
49285
49286         gettimeofday: avoid warning: nested extern declaration of 'localtime'
49287         * lib/gettimeofday.c: Move extern declaration out of function.
49288
49289 2009-01-18  Bruno Haible  <bruno@clisp.org>
49290
49291         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
49292         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
49293         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
49294
49295 2009-01-18  Bruno Haible  <bruno@clisp.org>
49296
49297         * lib/strftime.c (MEMPCPY): Remove unused macro.
49298         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
49299
49300 2009-01-18  Martin Lambers  <marlam@marlam.de>
49301
49302         New module 'link'.
49303         * lib/unistd.in.h (link): New declaration.
49304         * lib/link.c: New file.
49305         * m4/link.m4: New file.
49306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
49307         HAVE_LINK.
49308         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
49309         * modules/link: New file.
49310         * doc/posix-functions/link.texi: Mention the new module.
49311
49312 2009-01-18  Bruno Haible  <bruno@clisp.org>
49313
49314         * tests/test-avltree_list.c (main): Call set_program_name.
49315         * tests/test-avltree_oset.c (main): Likewise.
49316         * tests/test-obstack-printf.c: Include progname.h.
49317         (main): Call set_program_name.
49318         * tests/test-quotearg.c: Include progname.h.
49319         (main): Call set_program_name.
49320         * tests/test-xmemdup0.c: Include progname.h.
49321         (main): Call set_program_name.
49322
49323 2009-01-18  Bruno Haible  <bruno@clisp.org>
49324
49325         New module 'alphasort'.
49326         * lib/dirent.in.h (alphasort): New declaration.
49327         * lib/alphasort.c: New file, from glibc with modifications.
49328         * m4/alphasort.m4: New file.
49329         * modules/alphasort: New file.
49330         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
49331         HAVE_ALPHASORT.
49332         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
49333         HAVE_ALPHASORT.
49334         * doc/posix-functions/alphasort.texi: Mention the new module and the
49335         portability problems.
49336
49337 2009-01-18  Bruno Haible  <bruno@clisp.org>
49338
49339         New module 'scandir'.
49340         * lib/dirent.in.h (scandir): New declaration.
49341         * lib/scandir.c: New file, from glibc with modifications.
49342         * m4/scandir.m4: New file.
49343         * modules/scandir: New file.
49344         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
49345         HAVE_SCANDIR.
49346         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
49347         HAVE_SCANDIR.
49348         * doc/posix-functions/scandir.texi: Mention the new module and the
49349         portability problems.
49350
49351 2009-01-17  Bruno Haible  <bruno@clisp.org>
49352
49353         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
49354         Update documentation.
49355         (func_remove_suffix): Escape all dots in the suffix. Update
49356         documentation.
49357         (func_filter_filelist): Update documentation.
49358         Reported by Ralf Wildenhues.
49359
49360 2009-01-17  Bruno Haible  <bruno@clisp.org>
49361
49362         * modules/dprintf-posix-tests: New file.
49363         * tests/test-dprintf-posix.sh: New file.
49364         * tests/test-dprintf-posix.c: New file.
49365
49366         New modules 'dprintf', 'dprintf-posix'.
49367         * lib/stdio.in.h (dprintf): New declaration.
49368         * lib/dprintf.c: New file.
49369         * m4/dprintf.m4: New file.
49370         * m4/dprintf-posix.m4: New file.
49371         * modules/dprintf: New file.
49372         * modules/dprintf-posix: New file.
49373         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
49374         HAVE_DPRINTF, REPLACE_DPRINTF.
49375         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
49376         HAVE_DPRINTF, REPLACE_DPRINTF.
49377         * doc/posix-functions/dprintf.texi: Mention the new modules.
49378
49379 2009-01-17  Bruno Haible  <bruno@clisp.org>
49380
49381         * modules/vdprintf-posix-tests: New file.
49382         * tests/test-vdprintf-posix.sh: New file.
49383         * tests/test-vdprintf-posix.c: New file.
49384
49385         New modules 'vdprintf', 'vdprintf-posix'.
49386         * lib/stdio.in.h (vdprintf): New declaration.
49387         * lib/vdprintf.c: New file.
49388         * m4/vdprintf.m4: New file.
49389         * m4/vdprintf-posix.m4: New file.
49390         * modules/vdprintf: New file.
49391         * modules/vdprintf-posix: New file.
49392         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
49393         HAVE_VDPRINTF, REPLACE_VDPRINTF.
49394         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
49395         HAVE_VDPRINTF, REPLACE_VDPRINTF.
49396         * doc/posix-functions/vdprintf.texi: Mention the new modules.
49397
49398 2009-01-17  Bruno Haible  <bruno@clisp.org>
49399
49400         Fix replacement of fopen on mingw.
49401         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
49402         mingw.
49403
49404 2009-01-17  Bruno Haible  <bruno@clisp.org>
49405
49406         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
49407         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
49408
49409 2009-01-17  Bruno Haible  <bruno@clisp.org>
49410
49411         Avoid test-fflush2.sh failure on mingw.
49412         * tests/test-fflush2.c: Include binary-io.h.
49413         (main): Put standard input into binary mode.
49414         * modules/fflush-tests (Depends-on): Add binary-io.
49415
49416 2009-01-17  Bruno Haible  <bruno@clisp.org>
49417
49418         * lib/wchar.in.h: In another particular situation, include only the
49419         system's <wchar.h> file.
49420         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
49421         Reported by Albert Chin-A-Young <china@thewrittenword.com>
49422         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
49423
49424 2009-01-17  Bruno Haible  <bruno@clisp.org>
49425
49426         Support for stripping executables in --enable-relocatable.
49427         * build-aux/install-reloc: Expect one more argument, or an environment
49428         variable RELOC_STRIP_PROG. If set, strip the destination program and
49429         its wrapper.
49430         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
49431         RELOC_STRIP_PROG.
49432         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
49433         to set RELOCATABLE_STRIP.
49434         * NEWS: Mention the new Makefile requirement.
49435
49436 2009-01-17  Bruno Haible  <bruno@clisp.org>
49437
49438         * build-aux/install-reloc: Remove debugging information left over by
49439         C compiler on MacOS X.
49440
49441 2009-01-17  Bruno Haible  <bruno@clisp.org>
49442
49443         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
49444         * lib/progreloc.c (find_executable): Fix type of pointer passed to
49445         _NSGetExecutablePath.
49446
49447 2009-01-16  Jim Meyering  <meyering@redhat.com>
49448
49449         strerror: avoid warnings about discarding "const"
49450         * lib/strerror.c (rpl_strerror): Instead of returning a const
49451         string from each and every "case", use a variable, and add a single
49452         cast after the switch.
49453
49454 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
49455
49456         * lib/arpa_inet.in.h: Add extern "C" block for C++.
49457
49458 2009-01-16  Bruno Haible  <bruno@clisp.org>
49459
49460         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
49461         array initializer syntax that also works in C++ mode.
49462         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49463
49464 2009-01-16  Jim Meyering  <meyering@redhat.com>
49465
49466         poll: suppress a warning
49467         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
49468         to ignore "...unsigned expression < 0 is always false" warnings.
49469
49470 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
49471
49472         poll: remove declarations of unused variables
49473         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
49474         sockbuf and optlen.
49475
49476 2009-01-15  Bruno Haible  <bruno@clisp.org>
49477
49478         Make fflush-after-ungetc POSIX compliant on BSD systems.
49479         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
49480         (clear_ungetc_buffer): Implement also for other systems.
49481         (rpl_fflush): On glibc systems, invoke
49482         clear_ungetc_buffer_preserving_position. Otherwise, invoke
49483         clear_ungetc_buffer after fetching the stream's position, not before.
49484
49485 2009-01-15  Bruno Haible  <bruno@clisp.org>
49486
49487         Make fflush-after-ungetc POSIX compliant on glibc systems.
49488         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
49489         after ungetc.
49490         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
49491         (rpl_fflush): On glibc systems, simply call the system's fflush
49492         function after clearing the ungetc buffer.
49493         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
49494         Instead, lseek only to the end of file, then use the system's fseeko
49495         for the rest. On glibc systems, reset the EOF indicator bit.
49496
49497 2009-01-15  Jim Meyering  <meyering@redhat.com>
49498
49499         openmp.m4: revert quote-adding change, for portability to older autoconf
49500         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
49501         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
49502         Simon Josefsson noticed the problem when using autoconf-2.61.
49503
49504 2009-01-15  Bruno Haible  <bruno@clisp.org>
49505
49506         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
49507         * tests/test-fflush2.c (ASSERT): Always fail.
49508         (main): Add two tests for fflush() after ungetc(), taking into account
49509         the Austin Group's clarification.
49510         Suggested by Eric Blake.
49511
49512 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
49513
49514         mktime.m4: remove K&R-style function prototypes
49515         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
49516         for the Sun C++ compiler.
49517
49518 2009-01-14  Bruno Haible  <bruno@clisp.org>
49519
49520         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
49521         while including <wchar.h>.
49522         * lib/wchar.in.h: In two particular situations on HP-UX, include only
49523         the system's <wchar.h> file.
49524         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49525
49526 2009-01-14  Bruno Haible  <bruno@clisp.org>
49527
49528         * m4/csharp.m4: Don't mention gettext on the serial number line.
49529         * m4/csharpexec.m4: Likewise.
49530         * m4/eaccess.m4: Likewise.
49531         * m4/javaexec.m4: Likewise.
49532         * m4/sig_atomic_t.m4: Likewise.
49533         * m4/tmpdir.m4: Likewise.
49534         * m4/intldir.m4: Bump gettext version.
49535         * m4/lib-ld.m4: Likewise.
49536
49537 2009-01-14  Bruno Haible  <bruno@clisp.org>
49538
49539         * lib/progname.c (set_program_name): Add more comments.
49540         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
49541
49542 2009-01-14  Simon Josefsson  <simon@josefsson.org>
49543
49544         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
49545         were sys/stat.h does not define it.
49546
49547 2009-01-14  Jim Meyering  <meyering@redhat.com>
49548
49549         many *.m4 files: improve m4 quoting
49550         99% of this change was performed by running the following commands:
49551         git ls-files | grep '\.m4$' | xargs perl -pi \
49552           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
49553           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
49554           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
49555           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
49556         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
49557         The remainder were to add Copyright dates, increment serial numbers,
49558         undo some changes in comments, exclude m4/intl.m4, and add quotes
49559         around the "1" in ",1" where the unusual spacing prohibited the
49560         above regexps from doing the job.  For more details, see
49561         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
49562         * m4/acl.m4: Modified.
49563         * m4/afs.m4: Likewise.
49564         * m4/alloca.m4: Likewise.
49565         * m4/argp.m4: Likewise.
49566         * m4/argz.m4: Likewise.
49567         * m4/atexit.m4: Likewise.
49568         * m4/bison-i18n.m4: Likewise.
49569         * m4/bison.m4: Likewise.
49570         * m4/byteswap.m4: Likewise.
49571         * m4/c-stack.m4: Likewise.
49572         * m4/c-strtod.m4: Likewise.
49573         * m4/calloc.m4: Likewise.
49574         * m4/canonicalize-lgpl.m4: Likewise.
49575         * m4/chown.m4: Likewise.
49576         * m4/clock_time.m4: Likewise.
49577         * m4/codeset.m4: Likewise.
49578         * m4/copy-file.m4: Likewise.
49579         * m4/csharp.m4: Likewise.
49580         * m4/csharpcomp.m4: Likewise.
49581         * m4/csharpexec.m4: Likewise.
49582         * m4/d-ino.m4: Likewise.
49583         * m4/d-type.m4: Likewise.
49584         * m4/dirfd.m4: Likewise.
49585         * m4/double-slash-root.m4: Likewise.
49586         * m4/eaccess.m4: Likewise.
49587         * m4/eealloc.m4: Likewise.
49588         * m4/environ.m4: Likewise.
49589         * m4/errno_h.m4: Likewise.
49590         * m4/euidaccess.m4: Likewise.
49591         * m4/execute.m4: Likewise.
49592         * m4/fatal-signal.m4: Likewise.
49593         * m4/fchdir.m4: Likewise.
49594         * m4/fcntl_h.m4: Likewise.
49595         * m4/fileblocks.m4: Likewise.
49596         * m4/filenamecat.m4: Likewise.
49597         * m4/findprog.m4: Likewise.
49598         * m4/flexmember.m4: Likewise.
49599         * m4/fnmatch.m4: Likewise.
49600         * m4/fopen.m4: Likewise.
49601         * m4/fpending.m4: Likewise.
49602         * m4/fprintf-posix.m4: Likewise.
49603         * m4/free.m4: Likewise.
49604         * m4/frexp.m4: Likewise.
49605         * m4/frexpl.m4: Likewise.
49606         * m4/fsusage.m4: Likewise.
49607         * m4/ftruncate.m4: Likewise.
49608         * m4/gc-camellia.m4: Likewise.
49609         * m4/gc-random.m4: Likewise.
49610         * m4/gc.m4: Likewise.
49611         * m4/getaddrinfo.m4: Likewise.
49612         * m4/getcwd-abort-bug.m4: Likewise.
49613         * m4/getcwd-path-max.m4: Likewise.
49614         * m4/getdate.m4: Likewise.
49615         * m4/getdomainname.m4: Likewise.
49616         * m4/getgroups.m4: Likewise.
49617         * m4/gethostname.m4: Likewise.
49618         * m4/gethrxtime.m4: Likewise.
49619         * m4/getline.m4: Likewise.
49620         * m4/getloadavg.m4: Likewise.
49621         * m4/getndelim2.m4: Likewise.
49622         * m4/getpass.m4: Likewise.
49623         * m4/gettext.m4: Likewise.
49624         * m4/gettime.m4: Likewise.
49625         * m4/gettimeofday.m4: Likewise.
49626         * m4/gnulib-common.m4: Likewise.
49627         * m4/group-member.m4: Likewise.
49628         * m4/host-os.m4: Likewise.
49629         * m4/iconv.m4: Likewise.
49630         * m4/iconv_open.m4: Likewise.
49631         * m4/inet_ntop.m4: Likewise.
49632         * m4/inet_pton.m4: Likewise.
49633         * m4/inline.m4: Likewise.
49634         * m4/intldir.m4: Likewise.
49635         * m4/intlmacosx.m4: Likewise.
49636         * m4/intmax.m4: Likewise.
49637         * m4/intmax_t.m4: Likewise.
49638         * m4/inttypes.m4: Likewise.
49639         * m4/inttypes_h.m4: Likewise.
49640         * m4/inttypes-pri.m4: Likewise.
49641         * m4/isapipe.m4: Likewise.
49642         * m4/isnand.m4: Likewise.
49643         * m4/isnanf.m4: Likewise.
49644         * m4/isnanl.m4: Likewise.
49645         * m4/javacomp.m4: Likewise.
49646         * m4/javaexec.m4: Likewise.
49647         * m4/jm-winsz1.m4: Likewise.
49648         * m4/jm-winsz2.m4: Likewise.
49649         * m4/lchown.m4: Likewise.
49650         * m4/lcmessage.m4: Likewise.
49651         * m4/ldexpl.m4: Likewise.
49652         * m4/lib-ld.m4: Likewise.
49653         * m4/lib-link.m4: Likewise.
49654         * m4/libsigsegv.m4: Likewise.
49655         * m4/link-follow.m4: Likewise.
49656         * m4/localcharset.m4: Likewise.
49657         * m4/locale-fr.m4: Likewise.
49658         * m4/locale-ja.m4: Likewise.
49659         * m4/locale-tr.m4: Likewise.
49660         * m4/locale-zh.m4: Likewise.
49661         * m4/lock.m4: Likewise.
49662         * m4/longlong.m4: Likewise.
49663         * m4/ls-mntd-fs.m4: Likewise.
49664         * m4/lstat.m4: Likewise.
49665         * m4/malloc.m4: Likewise.
49666         * m4/mathl.m4: Likewise.
49667         * m4/mbrtowc.m4: Likewise.
49668         * m4/mbstate_t.m4: Likewise.
49669         * m4/mbswidth.m4: Likewise.
49670         * m4/memchr.m4: Likewise.
49671         * m4/memcmp.m4: Likewise.
49672         * m4/memcpy.m4: Likewise.
49673         * m4/memmem.m4: Likewise.
49674         * m4/memmove.m4: Likewise.
49675         * m4/mempcpy.m4: Likewise.
49676         * m4/memrchr.m4: Likewise.
49677         * m4/memset.m4: Likewise.
49678         * m4/minmax.m4: Likewise.
49679         * m4/mkdir-slash.m4: Likewise.
49680         * m4/mkdtemp.m4: Likewise.
49681         * m4/mktime.m4: Likewise.
49682         * m4/mmap-anon.m4: Likewise.
49683         * m4/mountlist.m4: Likewise.
49684         * m4/nanosleep.m4: Likewise.
49685         * m4/nls.m4: Likewise.
49686         * m4/nocrash.m4: Likewise.
49687         * m4/open.m4: Likewise.
49688         * m4/openat.m4: Likewise.
49689         * m4/openmp.m4: Likewise.
49690         * m4/pathmax.m4: Likewise.
49691         * m4/perl.m4: Likewise.
49692         * m4/physmem.m4: Likewise.
49693         * m4/pipe.m4: Likewise.
49694         * m4/po.m4: Likewise.
49695         * m4/poll.m4: Likewise.
49696         * m4/posixtm.m4: Likewise.
49697         * m4/posixver.m4: Likewise.
49698         * m4/printf-frexp.m4: Likewise.
49699         * m4/printf-frexpl.m4: Likewise.
49700         * m4/printf-posix.m4: Likewise.
49701         * m4/printf-posix-rpl.m4: Likewise.
49702         * m4/printf.m4: Likewise.
49703         * m4/progtest.m4: Likewise.
49704         * m4/putenv.m4: Likewise.
49705         * m4/readline.m4: Likewise.
49706         * m4/readlink.m4: Likewise.
49707         * m4/readutmp.m4: Likewise.
49708         * m4/realloc.m4: Likewise.
49709         * m4/regex.m4: Likewise.
49710         * m4/relocatable.m4: Likewise.
49711         * m4/relocatable-lib.m4: Likewise.
49712         * m4/rename-dest-slash.m4: Likewise.
49713         * m4/rename.m4: Likewise.
49714         * m4/rmdir-errno.m4: Likewise.
49715         * m4/rmdir.m4: Likewise.
49716         * m4/roundf.m4: Likewise.
49717         * m4/roundl.m4: Likewise.
49718         * m4/rpmatch.m4: Likewise.
49719         * m4/save-cwd.m4: Likewise.
49720         * m4/selinux-selinux-h.m4: Likewise.
49721         * m4/setenv.m4: Likewise.
49722         * m4/settime.m4: Likewise.
49723         * m4/sig2str.m4: Likewise.
49724         * m4/sig_atomic_t.m4: Likewise.
49725         * m4/signalblocking.m4: Likewise.
49726         * m4/signbit.m4: Likewise.
49727         * m4/sigpipe.m4: Likewise.
49728         * m4/sockets.m4: Likewise.
49729         * m4/sockpfaf.m4: Likewise.
49730         * m4/st_dm_mode.m4: Likewise.
49731         * m4/stat-time.m4: Likewise.
49732         * m4/stdbool.m4: Likewise.
49733         * m4/stdint.m4: Likewise.
49734         * m4/stdint_h.m4: Likewise.
49735         * m4/stpcpy.m4: Likewise.
49736         * m4/stpncpy.m4: Likewise.
49737         * m4/strcase.m4: Likewise.
49738         * m4/strchrnul.m4: Likewise.
49739         * m4/strcspn.m4: Likewise.
49740         * m4/strdup.m4: Likewise.
49741         * m4/strftime.m4: Likewise.
49742         * m4/strndup.m4: Likewise.
49743         * m4/strnlen.m4: Likewise.
49744         * m4/strpbrk.m4: Likewise.
49745         * m4/strptime.m4: Likewise.
49746         * m4/strsep.m4: Likewise.
49747         * m4/strtod.m4: Likewise.
49748         * m4/strtoimax.m4: Likewise.
49749         * m4/strtok_r.m4: Likewise.
49750         * m4/strtol.m4: Likewise.
49751         * m4/strtoll.m4: Likewise.
49752         * m4/strtoul.m4: Likewise.
49753         * m4/strtoull.m4: Likewise.
49754         * m4/strtoumax.m4: Likewise.
49755         * m4/strverscmp.m4: Likewise.
49756         * m4/threadlib.m4: Likewise.
49757         * m4/timegm.m4: Likewise.
49758         * m4/tm_gmtoff.m4: Likewise.
49759         * m4/tmpdir.m4: Likewise.
49760         * m4/tmpfile.m4: Likewise.
49761         * m4/tzset.m4: Likewise.
49762         * m4/uintmax_t.m4: Likewise.
49763         * m4/unlinkdir.m4: Likewise.
49764         * m4/unlocked-io.m4: Likewise.
49765         * m4/uptime.m4: Likewise.
49766         * m4/userspec.m4: Likewise.
49767         * m4/utimbuf.m4: Likewise.
49768         * m4/utime.m4: Likewise.
49769         * m4/utimes-null.m4: Likewise.
49770         * m4/utimes.m4: Likewise.
49771         * m4/vararrays.m4: Likewise.
49772         * m4/vasnprintf.m4: Likewise.
49773         * m4/vfprintf-posix.m4: Likewise.
49774         * m4/vprintf-posix.m4: Likewise.
49775         * m4/wait-process.m4: Likewise.
49776         * m4/wchar_t.m4: Likewise.
49777         * m4/wint_t.m4: Likewise.
49778         * m4/write-any-file.m4: Likewise.
49779         * m4/yield.m4: Likewise.
49780
49781 2009-01-13  Bruno Haible  <bruno@clisp.org>
49782
49783         Avoid test-copy-file.sh failures when ACL support insufficient.
49784         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
49785         TESTS_ENVIRONMENT.
49786         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
49787         Reported by Jim Meyering.
49788
49789 2009-01-13  Bruno Haible  <bruno@clisp.org>
49790
49791         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
49792         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
49793         * modules/unistdio/u8-printf-parse (Files): Likewise.
49794         * modules/unistdio/u32-printf-parse (Files): Likewise.
49795         * modules/unistdio/ulc-printf-parse (Files): Likewise.
49796
49797 2009-01-13  Simon Josefsson  <simon@josefsson.org>
49798
49799         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
49800         and m4/inttypes_h.m4 too.
49801
49802 2009-01-12  Eric Blake  <ebb9@byu.net>
49803
49804         tests: IRIX 6.2 cc can't compile -0.0 into .data
49805         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
49806         rather than at compile-time.
49807         * tests/test-floorl.c (minus_zero): Likewise.
49808         * tests/test-frexpl.c (minus_zero): Likewise.
49809         * tests/test-isnan.c (minus_zerol): Likewise.
49810         * tests/test-isnanl.h (minus_zero): Likewise.
49811         * tests/test-ldexpl.c (minus_zero): Likewise.
49812         * tests/test-roundl.c (minus_zero): Likewise.
49813         * tests/test-signbit.c (minus_zerol): Likewise.
49814         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
49815         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
49816         * tests/test-truncl.c (minus_zero): Likewise.
49817         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
49818         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
49819         Reported by Tom G. Christensen and Nelson H. F. Beebe.
49820
49821 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49822
49823         regex: fix glibc bug 9697
49824         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
49825         handling.
49826
49827 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49828
49829         regex: fix glibc bug 697
49830         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
49831         being NULL also if there are no backreferences.
49832
49833 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49834
49835         regex: merge glibc changes
49836         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
49837         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
49838         re_string_skip_chars, re_string_reconstruct): Likewise.
49839         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
49840
49841 2009-01-07  Jim Meyering  <meyering@redhat.com>
49842
49843         poll: filter through cppi
49844         * lib/poll.c: Indent cpp directives to reflect nesting.
49845
49846 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
49847
49848         poll: don't return uninitialized
49849         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
49850
49851 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
49852
49853         avoid compile failure on AIX 6.1
49854         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
49855         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
49856
49857 2009-01-04  Jim Meyering  <meyering@redhat.com>
49858
49859         remove duplicate inclusion of <stdio.h>
49860         * tests/test-fprintf-posix.c: Likewise.
49861         * tests/test-printf-posix.c: Likewise.
49862         * tests/test-snprintf-posix.c: Likewise.
49863         * tests/test-sprintf-posix.c: Likewise.
49864         * tests/test-vasprintf-posix.c: Likewise.
49865         * tests/test-vfprintf-posix.c: Likewise.
49866         * tests/test-vprintf-posix.c: Likewise.
49867         * tests/test-vsnprintf-posix.c: Likewise.
49868         * tests/test-vsprintf-posix.c: Likewise.
49869
49870 2009-01-03  Jim Meyering  <meyering@redhat.com>
49871
49872         gnulib-tool: fix sed-based filtering
49873         * gnulib-tool (func_filter_filelist): Remove extra backslash
49874         in sed_fff_filter definition.
49875
49876 2009-01-02  Jim Meyering  <meyering@redhat.com>
49877
49878         strftime: avoid compilation failure on Solaris 2.6
49879         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
49880         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
49881         Don't #define mbrlen or mbsinit, since now they're guaranteed to
49882         be available.  Reported by Tom G. Christensen.  Details in
49883         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
49884
49885 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49886             Bruno Haible  <bruno@clisp.org>
49887
49888         Speed up gnulib-tool by doing more string processing through shell
49889         built-ins.
49890         * gnulib-tool (fast_func_append): New variable.
49891         (func_remove_prefix, func_remove_suffix): New functions.
49892         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
49893         (func_filter_filelist): New function.
49894         (func_get_dependencies): Use func_remove_suffix instead of sed.
49895         (func_get_automake_snippet): Use func_filter_filelist instead of a
49896         subshell and sed invocation.
49897
49898 2009-01-01  Bruno Haible  <bruno@clisp.org>
49899
49900         Fix a security bug.
49901         * gnulib-tool (func_import, import, update): Don't allow the characters
49902         '"', '$', '`', '\' in macro arguments that become part of commands that
49903         are evaluated.
49904
49905 2009-01-01  Bruno Haible  <bruno@clisp.org>
49906
49907         * gnulib-tool (func_reset_sigpipe): Add more comments.
49908
49909 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49910
49911         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
49912         func_emit_tests_Makefile_am, func_import): Abort loops early if we
49913         already know the answer.
49914
49915 2009-01-01  Jim Meyering  <meyering@redhat.com>
49916
49917         * lib/version-etc.c (version_etc_va): Update copyright year.
49918
49919 2008-12-30  Bruno Haible  <bruno@clisp.org>
49920
49921         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
49922         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
49923         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
49924
49925 2008-12-29  Eric Blake  <ebb9@byu.net>
49926
49927         multiarch: avoid autoconf AC_REQUIRE bug
49928         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
49929         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
49930         2.63 and older.
49931         Reported by Bruno Haible, and analyzed in
49932         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
49933
49934 2008-12-29  Bruno Haible  <bruno@clisp.org>
49935
49936         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
49937         files in subdirectories correctly.
49938         Reported by Ralf Wildenhues.
49939
49940 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49941
49942         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
49943         rather than 'join FILE -', for Solaris join.
49944
49945 2008-12-29  Bruno Haible  <bruno@clisp.org>
49946
49947         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
49948         quoting.
49949         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
49950         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
49951         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
49952         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
49953         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
49954         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
49955         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
49956         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
49957         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49958         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
49959         * m4/nls.m4 (AM_NLS): Likewise.
49960         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
49961         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
49962         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
49963         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
49964         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
49965         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49966         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
49967         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
49968         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
49969         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49970         * m4/xsize.m4 (gl_XSIZE): Likewise.
49971         Suggested by Jim Meyering.
49972
49973 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49974
49975         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
49976         * lib/parse-duration.c: use a switch instead of cascading if's.
49977
49978 2008-12-29  Eric Blake  <ebb9@byu.net>
49979
49980         wchar.h: supply WEOF on Irix 5.3
49981         * lib/wchar.in.h (wint_t): Also supply WEOF.
49982         * lib/wctype.in.h (wint_t): Likewise.
49983         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
49984         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
49985         Reported by Tom G. Christensen.
49986
49987 2008-12-26  Bruno Haible  <bruno@clisp.org>
49988
49989         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
49990         i486, i586, i686.
49991
49992 2008-12-26  Bruno Haible  <bruno@clisp.org>
49993
49994         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
49995
49996 2008-12-26  Bruno Haible  <bruno@clisp.org>
49997
49998         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
49999         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
50000         not __STDC_CONSTANT_MACROS.
50001         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50002
50003 2008-12-25  Bruno Haible  <bruno@clisp.org>
50004
50005         Add support for universal builds to vasnprintf.
50006         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
50007         universal builds, guess no.
50008         * modules/vasnprintf-posix (Depends-on): Add multiarch.
50009         * modules/vasprintf-posix (Depends-on): Likewise.
50010         * modules/fprintf-posix (Depends-on): Likewise.
50011         * modules/vfprintf-posix (Depends-on): Likewise.
50012         * modules/snprintf-posix (Depends-on): Likewise.
50013         * modules/vsnprintf-posix (Depends-on): Likewise.
50014         * modules/sprintf-posix (Depends-on): Likewise.
50015         * modules/vsprintf-posix (Depends-on): Likewise.
50016         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50017         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50018         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50019         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50020         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50021         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50022         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50023
50024         Add support for universal builds to <inttypes.h>.
50025         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
50026         _SCNu64_PREFIX): In Apple
50027         universal builds, define directly, using _LP64.
50028         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
50029         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
50030         * modules/inttypes (Depends-on): Add multiarch.
50031         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
50032
50033         Add support for universal builds to <stdint.h>.
50034         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
50035         universal builds, define directly, using _LP64.
50036         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
50037         Apple universal builds, don't test for the size and suffix of ptrdiff_t
50038         and size_t.
50039         * modules/stdint (Depends-on): Add multiarch.
50040         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
50041
50042         New module 'multiarch'.
50043         * modules/multiarch: New file.
50044         * m4/multiarch.m4: New file.
50045
50046 2008-12-25  Bruno Haible  <bruno@clisp.org>
50047
50048         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
50049
50050 2008-12-25  Bruno Haible  <bruno@clisp.org>
50051
50052         * modules/btowc (License): Relicense under LGPLv2+.
50053         * modules/mbsinit (License): Likewise.
50054         * modules/mbrtowc (License): Likewise.
50055         * modules/wcrtomb (License): Likewise.
50056         * modules/streq (License): Likewise.
50057         Reported by David Lutterkort <lutter@redhat.com>.
50058
50059 2008-12-23  Bruno Haible  <bruno@clisp.org>
50060
50061         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
50062
50063 2008-12-23  Bruno Haible  <bruno@clisp.org>
50064
50065         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
50066         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
50067         GETADDRINFO_LIB, not in LIBS.
50068         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
50069         * modules/canon-host (Link): Likewise.
50070         * NEWS: Mention the change.
50071         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
50072         GETADDRINFO_LIB.
50073
50074 2008-12-22  Bruno Haible  <bruno@clisp.org>
50075
50076         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
50077         * doc/posix-functions/iswalpha_l.texi: Likewise.
50078         * doc/posix-functions/iswblank_l.texi: Likewise.
50079         * doc/posix-functions/iswcntrl_l.texi: Likewise.
50080         * doc/posix-functions/iswctype_l.texi: Likewise.
50081         * doc/posix-functions/iswdigit_l.texi: Likewise.
50082         * doc/posix-functions/iswgraph_l.texi: Likewise.
50083         * doc/posix-functions/iswlower_l.texi: Likewise.
50084         * doc/posix-functions/iswprint_l.texi: Likewise.
50085         * doc/posix-functions/iswpunct_l.texi: Likewise.
50086         * doc/posix-functions/iswspace_l.texi: Likewise.
50087         * doc/posix-functions/iswupper_l.texi: Likewise.
50088         * doc/posix-functions/iswxdigit_l.texi: Likewise.
50089         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
50090         * doc/posix-functions/open_wmemstream.texi: Likewise.
50091         * doc/posix-functions/swscanf.texi: Likewise.
50092         * doc/posix-functions/towctrans_l.texi: Likewise.
50093         * doc/posix-functions/towlower.texi: Likewise.
50094         * doc/posix-functions/towlower_l.texi: Likewise.
50095         * doc/posix-functions/towupper.texi: Likewise.
50096         * doc/posix-functions/towupper_l.texi: Likewise.
50097         * doc/posix-functions/vfwprintf.texi: Likewise.
50098         * doc/posix-functions/vfwscanf.texi: Likewise.
50099         * doc/posix-functions/vswscanf.texi: Likewise.
50100         * doc/posix-functions/vwprintf.texi: Likewise.
50101         * doc/posix-functions/vwscanf.texi: Likewise.
50102         * doc/posix-functions/wcpcpy.texi: Likewise.
50103         * doc/posix-functions/wcpncpy.texi: Likewise.
50104         * doc/posix-functions/wcscasecmp.texi: Likewise.
50105         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
50106         * doc/posix-functions/wcscoll_l.texi: Likewise.
50107         * doc/posix-functions/wcsdup.texi: Likewise.
50108         * doc/posix-functions/wcsncasecmp.texi: Likewise.
50109         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
50110         * doc/posix-functions/wcsnlen.texi: Likewise.
50111         * doc/posix-functions/wcsnrtombs.texi: Likewise.
50112         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
50113         * doc/posix-functions/wctrans_l.texi: Likewise.
50114         * doc/posix-functions/wctype_l.texi: Likewise.
50115         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
50116         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
50117         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
50118         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
50119         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
50120         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
50121         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
50122         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
50123         * doc/glibc-functions/wcschrnul.texi: Likewise.
50124         * doc/glibc-functions/wcsftime_l.texi: Likewise.
50125         * doc/glibc-functions/wcstod_l.texi: Likewise.
50126         * doc/glibc-functions/wcstof_l.texi: Likewise.
50127         * doc/glibc-functions/wcstol_l.texi: Likewise.
50128         * doc/glibc-functions/wcstold_l.texi: Likewise.
50129         * doc/glibc-functions/wcstoll_l.texi: Likewise.
50130         * doc/glibc-functions/wcstoq.texi: Likewise.
50131         * doc/glibc-functions/wcstoul_l.texi: Likewise.
50132         * doc/glibc-functions/wcstoull_l.texi: Likewise.
50133         * doc/glibc-functions/wcstouq.texi: Likewise.
50134         * doc/glibc-functions/wmempcpy.texi: Likewise.
50135
50136 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
50137             Eric Blake  <ebb9@byu.net>
50138             Paolo Bonzini  <bonzini@gnu.org>
50139             Bruno Haible  <bruno@clisp.org>
50140
50141         Make c-stack work on Haiku.
50142         * lib/c-stack.c (SA_ONSTACK): Define fallback.
50143         (c_stack_action): Use SA_ONSTACK flag.
50144
50145 2008-12-22  Bruno Haible  <bruno@clisp.org>
50146
50147         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
50148
50149 2008-12-22  Bruno Haible  <bruno@clisp.org>
50150
50151         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
50152         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
50153         being overridden.
50154         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
50155         New macros.
50156         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
50157         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
50158         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
50159         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
50160
50161 2008-12-22  Bruno Haible  <bruno@clisp.org>
50162
50163         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
50164         from test code.
50165
50166 2008-12-22  Eric Blake  <ebb9@byu.net>
50167
50168         Avoid gcc warnings on cygwin.
50169         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
50170         Avoid unused variable.
50171         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
50172         Likewise.
50173
50174 2008-12-22  Bruno Haible  <bruno@clisp.org>
50175
50176         Remove HAVE_MBRTOWC conditionals.
50177         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
50178         (mbscasecmp): Assume mbrtowc function.
50179         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
50180         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
50181         * lib/mbschr.c: Include mbuiter.h unconditionally.
50182         (mbschr): Assume mbrtowc function.
50183         * lib/mbscspn.c: Include mbuiter.h unconditionally.
50184         (mbscspn): Assume mbrtowc function.
50185         * lib/mbslen.c: Include mbuiter.h unconditionally.
50186         (mbslen): Assume mbrtowc function.
50187         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
50188         (mbsncasecmp): Assume mbrtowc function.
50189         * lib/mbsnlen.c: Include mbiter.h unconditionally.
50190         (mbsnlen): Assume mbrtowc function.
50191         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
50192         (mbspbrk): Assume mbrtowc function.
50193         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
50194         (mbspcasecmp): Assume mbrtowc function.
50195         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
50196         (mbsrchr): Assume mbrtowc function.
50197         * lib/mbssep.c: Include mbuiter.h unconditionally.
50198         (mbssep): Assume mbrtowc function.
50199         * lib/mbsspn.c: Include mbuiter.h unconditionally.
50200         (mbsspn): Assume mbrtowc function.
50201         * lib/mbsstr.c: Include mbuiter.h unconditionally.
50202         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
50203         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
50204         (mbstok_r): Assume mbrtowc function.
50205         * lib/propername.c: Include mbuiter.h unconditionally.
50206         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
50207         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
50208         (trim2): Assume mbrtowc function.
50209         * lib/mbswidth.c (mbsinit): Remove fallback definition.
50210         (mbsnwidth): Assume mbrtowc function.
50211         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
50212         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
50213         fallback definitions.
50214         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
50215
50216 2008-12-22  Bruno Haible  <bruno@clisp.org>
50217
50218         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
50219
50220 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
50221
50222         * modules/regex: Request emulations for the mb*/wc* functions we need.
50223         * m4/regex.m4: Don't look for those functions here.
50224         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
50225
50226 2008-12-22  Bruno Haible  <bruno@clisp.org>
50227
50228         * modules/fnmatch (Depends-on): Remove duplicated dependency.
50229
50230 2008-12-21  Bruno Haible  <bruno@clisp.org>
50231
50232         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
50233         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
50234         (Include): Remove conditionalization.
50235         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
50236         (Include): Remove conditionalization.
50237         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
50238         (Include): Remove conditionalization.
50239         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
50240         * m4/mbfile.m4 (gl_MBFILE): Likewise.
50241         * NEWS: Mention the change.
50242         Reported by Alan Hourihane <alanh@fairlite.co.uk>
50243         via Sergey Poznyakoff <gray@gnu.org.ua>.
50244
50245 2008-12-21  Bruno Haible  <bruno@clisp.org>
50246
50247         * MODULES.html.sh (Extended multibyte and wide character utilities
50248         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
50249         wcrtomb, wcsrtombs.
50250         (Support for systems lacking POSIX:2008): Add accept, bind, close,
50251         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
50252         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
50253         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
50254
50255 2008-12-21  Bruno Haible  <bruno@clisp.org>
50256
50257         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
50258
50259 2008-12-21  Bruno Haible  <bruno@clisp.org>
50260
50261         * modules/wcsnrtombs-tests: New file.
50262         * tests/test-wcsnrtombs1.sh: New file.
50263         * tests/test-wcsnrtombs2.sh: New file.
50264         * tests/test-wcsnrtombs3.sh: New file.
50265         * tests/test-wcsnrtombs4.sh: New file.
50266         * tests/test-wcsnrtombs.c: New file.
50267
50268         New module 'wcsnrtombs'.
50269         * lib/wchar.in.h (wcsnrtombs): New declaration.
50270         * lib/wcsnrtombs.c: New file.
50271         * lib/wcsrtombs-state.c: New file.
50272         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
50273         (internal_state): Remove variable.
50274         * m4/wcsnrtombs.m4: New file.
50275         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
50276         compilation units.
50277         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
50278         HAVE_WCSNRTOMBS.
50279         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
50280         HAVE_WCSNRTOMBS.
50281         * modules/wcsnrtombs: New file.
50282         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
50283         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
50284
50285 2008-12-21  Bruno Haible  <bruno@clisp.org>
50286
50287         * modules/wcsrtombs-tests: New file.
50288         * tests/test-wcsrtombs1.sh: New file.
50289         * tests/test-wcsrtombs2.sh: New file.
50290         * tests/test-wcsrtombs3.sh: New file.
50291         * tests/test-wcsrtombs4.sh: New file.
50292         * tests/test-wcsrtombs.c: New file.
50293
50294         New module 'wcsrtombs'.
50295         * lib/wchar.in.h (wcsrtombs): New declaration.
50296         * lib/wcsrtombs.c: New file.
50297         * m4/wcsrtombs.m4: New file.
50298         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
50299         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
50300         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
50301         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
50302         * modules/wcsrtombs: New file.
50303         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
50304         bugs.
50305
50306 2008-12-21  Bruno Haible  <bruno@clisp.org>
50307
50308         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
50309         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
50310         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
50311         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
50312         if not correct.
50313         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
50314         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
50315         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50316         m4/locale-zh.m4, m4/codeset.m4.
50317         * doc/posix-functions/wcrtomb.texi: Document the bug.
50318
50319 2008-12-21  Bruno Haible  <bruno@clisp.org>
50320
50321         Work around a btowc() bug on IRIX 6.5.
50322         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
50323         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
50324         REPLACE_WTOBC if not.
50325         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
50326         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
50327         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
50328
50329 2008-12-21  Bruno Haible  <bruno@clisp.org>
50330
50331         * modules/wcrtomb-tests: New file.
50332         * tests/test-wcrtomb.sh: New file.
50333         * tests/test-wcrtomb.c: New file.
50334
50335         New module 'wcrtomb'.
50336         * lib/wchar.in.h (wcrtomb): New declaration.
50337         * lib/wcrtomb.c: New file.
50338         * m4/wcrtomb.m4: New file.
50339         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
50340         HAVE_WCRTOMB.
50341         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
50342         HAVE_WCRTOMB.
50343         * modules/wcrtomb: New file.
50344         * doc/posix-functions/wcrtomb.texi: Mention the new module.
50345
50346 2008-12-21  Bruno Haible  <bruno@clisp.org>
50347
50348         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
50349         * modules/mbsrtowcs (Files): Likewise.
50350         * modules/wctob (Files): Likewise.
50351         * modules/c-strcase-tests (Files): Likewise.
50352         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
50353         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
50354         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
50355         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
50356         * modules/vasnprintf-posix-tests (Files): Likewise.
50357
50358 2008-12-21  William Pursell  <bill.pursell@gmail.com>
50359
50360         gitlog-to-changelog: pass all command-line arguments to git-log
50361         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
50362         it is sometimes convenient to filter the commits in various ways.
50363         gitlog-to-changelog only allows --since to specify a start date,
50364         but git-log itself supports many other filtering mechanisms.
50365         At the moment, I want to filter by branch name.  Rather than
50366         adding a --branch option to gitlog-to-changelog, it seems more
50367         flexible to simply pass all options directly to git-log and let
50368         git do the work.  Notice that this effectively makes --since a
50369         redundant option for gitlog-to-changelog, but removing it would
50370         require current usage to change since calls would then require
50371         an additional '--'.
50372
50373 2008-12-21  Bruno Haible  <bruno@clisp.org>
50374
50375         * modules/mbsnrtowcs-tests: New file.
50376         * tests/test-mbsnrtowcs1.sh: New file.
50377         * tests/test-mbsnrtowcs2.sh: New file.
50378         * tests/test-mbsnrtowcs3.sh: New file.
50379         * tests/test-mbsnrtowcs4.sh: New file.
50380         * tests/test-mbsnrtowcs.c: New file.
50381
50382         New module 'mbsnrtowcs'.
50383         * lib/wchar.in.h (mbsnrtowcs): New declaration.
50384         * lib/mbsnrtowcs.c: New file.
50385         * lib/mbsrtowcs-state.c: New file.
50386         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
50387         (internal_state): Remove variable.
50388         * m4/mbsnrtowcs.m4: New file.
50389         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
50390         compilation units.
50391         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
50392         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
50393         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
50394         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
50395         * modules/mbsnrtowcs: New file.
50396         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
50397         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
50398         portability problem.
50399
50400 2008-12-21  Bruno Haible  <bruno@clisp.org>
50401
50402         Work around mbsrtowcs bug.
50403         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
50404         (gl_FUNC_MBSRTOWCS): Invoke it.
50405         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50406         m4/locale-zh.m4.
50407         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
50408
50409 2008-12-21  Bruno Haible  <bruno@clisp.org>
50410
50411         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
50412
50413 2008-12-21  Bruno Haible  <bruno@clisp.org>
50414
50415         Update doc for AIX.
50416         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
50417         16-bit wchar_t type.
50418         * doc/posix-functions/btowc.texi: Likewise.
50419         * doc/posix-functions/fgetwc.texi: Likewise.
50420         * doc/posix-functions/fgetws.texi: Likewise.
50421         * doc/posix-functions/fputwc.texi: Likewise.
50422         * doc/posix-functions/fputws.texi: Likewise.
50423         * doc/posix-functions/fwide.texi: Likewise.
50424         * doc/posix-functions/fwprintf.texi: Likewise.
50425         * doc/posix-functions/fwscanf.texi: Likewise.
50426         * doc/posix-functions/getwchar.texi: Likewise.
50427         * doc/posix-functions/getwc.texi: Likewise.
50428         * doc/posix-functions/iswalnum.texi: Likewise.
50429         * doc/posix-functions/iswalpha.texi: Likewise.
50430         * doc/posix-functions/iswblank.texi: Likewise.
50431         * doc/posix-functions/iswcntrl.texi: Likewise.
50432         * doc/posix-functions/iswctype.texi: Likewise.
50433         * doc/posix-functions/iswdigit.texi: Likewise.
50434         * doc/posix-functions/iswgraph.texi: Likewise.
50435         * doc/posix-functions/iswlower.texi: Likewise.
50436         * doc/posix-functions/iswprint.texi: Likewise.
50437         * doc/posix-functions/iswpunct.texi: Likewise.
50438         * doc/posix-functions/iswspace.texi: Likewise.
50439         * doc/posix-functions/iswupper.texi: Likewise.
50440         * doc/posix-functions/iswxdigit.texi: Likewise.
50441         * doc/posix-functions/mbrtowc.texi: Likewise.
50442         * doc/posix-functions/mbsrtowcs.texi: Likewise.
50443         * doc/posix-functions/mbstowcs.texi: Likewise.
50444         * doc/posix-functions/mbtowc.texi: Likewise.
50445         * doc/posix-functions/putwchar.texi: Likewise.
50446         * doc/posix-functions/putwc.texi: Likewise.
50447         * doc/posix-functions/swprintf.texi: Likewise.
50448         * doc/posix-functions/tolower.texi: Likewise.
50449         * doc/posix-functions/toupper.texi: Likewise.
50450         * doc/posix-functions/towctrans.texi: Likewise.
50451         * doc/posix-functions/ungetwc.texi: Likewise.
50452         * doc/posix-functions/vswprintf.texi: Likewise.
50453         * doc/posix-functions/wcrtomb.texi: Likewise.
50454         * doc/posix-functions/wcscat.texi: Likewise.
50455         * doc/posix-functions/wcschr.texi: Likewise.
50456         * doc/posix-functions/wcscmp.texi: Likewise.
50457         * doc/posix-functions/wcscoll.texi: Likewise.
50458         * doc/posix-functions/wcscpy.texi: Likewise.
50459         * doc/posix-functions/wcscspn.texi: Likewise.
50460         * doc/posix-functions/wcsftime.texi: Likewise.
50461         * doc/posix-functions/wcslen.texi: Likewise.
50462         * doc/posix-functions/wcsncat.texi: Likewise.
50463         * doc/posix-functions/wcsncmp.texi: Likewise.
50464         * doc/posix-functions/wcsncpy.texi: Likewise.
50465         * doc/posix-functions/wcspbrk.texi: Likewise.
50466         * doc/posix-functions/wcsrchr.texi: Likewise.
50467         * doc/posix-functions/wcsrtombs.texi: Likewise.
50468         * doc/posix-functions/wcsspn.texi: Likewise.
50469         * doc/posix-functions/wcsstr.texi: Likewise.
50470         * doc/posix-functions/wcstod.texi: Likewise.
50471         * doc/posix-functions/wcstof.texi: Likewise.
50472         * doc/posix-functions/wcstoimax.texi: Likewise.
50473         * doc/posix-functions/wcstok.texi: Likewise.
50474         * doc/posix-functions/wcstold.texi: Likewise.
50475         * doc/posix-functions/wcstoll.texi: Likewise.
50476         * doc/posix-functions/wcstol.texi: Likewise.
50477         * doc/posix-functions/wcstombs.texi: Likewise.
50478         * doc/posix-functions/wcstoull.texi: Likewise.
50479         * doc/posix-functions/wcstoul.texi: Likewise.
50480         * doc/posix-functions/wcstoumax.texi: Likewise.
50481         * doc/posix-functions/wcswidth.texi: Likewise.
50482         * doc/posix-functions/wcsxfrm.texi: Likewise.
50483         * doc/posix-functions/wctob.texi: Likewise.
50484         * doc/posix-functions/wctomb.texi: Likewise.
50485         * doc/posix-functions/wctrans.texi: Likewise.
50486         * doc/posix-functions/wctype.texi: Likewise.
50487         * doc/posix-functions/wcwidth.texi: Likewise.
50488         * doc/posix-functions/wmemchr.texi: Likewise.
50489         * doc/posix-functions/wmemcmp.texi: Likewise.
50490         * doc/posix-functions/wmemcpy.texi: Likewise.
50491         * doc/posix-functions/wmemmove.texi: Likewise.
50492         * doc/posix-functions/wmemset.texi: Likewise.
50493         * doc/posix-functions/wprintf.texi: Likewise.
50494         * doc/posix-functions/wscanf.texi: Likewise.
50495
50496 2008-12-21  Bruno Haible  <bruno@clisp.org>
50497
50498         Update doc for HP-UX 11.11.
50499         * doc/posix-functions/btowc.texi: Clarify that the function is missing
50500         in HP-UX version 11.00, not in all versions of HP-UX 11.
50501         * doc/posix-functions/fwide.texi: Likewise.
50502         * doc/posix-functions/fwprintf.texi: Likewise.
50503         * doc/posix-functions/fwscanf.texi: Likewise.
50504         * doc/posix-functions/inet_ntop.texi: Likewise.
50505         * doc/posix-functions/inet_pton.texi: Likewise.
50506         * doc/posix-functions/mbrlen.texi: Likewise.
50507         * doc/posix-functions/mbrtowc.texi: Likewise.
50508         * doc/posix-functions/mbsinit.texi: Likewise.
50509         * doc/posix-functions/mbsrtowcs.texi: Likewise.
50510         * doc/posix-functions/swprintf.texi: Likewise.
50511         * doc/posix-functions/swscanf.texi: Likewise.
50512         * doc/posix-functions/towctrans.texi: Likewise.
50513         * doc/posix-functions/vfwprintf.texi: Likewise.
50514         * doc/posix-functions/vswprintf.texi: Likewise.
50515         * doc/posix-functions/vwprintf.texi: Likewise.
50516         * doc/posix-functions/wcrtomb.texi: Likewise.
50517         * doc/posix-functions/wcsrtombs.texi: Likewise.
50518         * doc/posix-functions/wcsstr.texi: Likewise.
50519         * doc/posix-functions/wctob.texi: Likewise.
50520         * doc/posix-functions/wctrans.texi: Likewise.
50521         * doc/posix-functions/wmemchr.texi: Likewise.
50522         * doc/posix-functions/wmemcmp.texi: Likewise.
50523         * doc/posix-functions/wmemcpy.texi: Likewise.
50524         * doc/posix-functions/wmemmove.texi: Likewise.
50525         * doc/posix-functions/wmemset.texi: Likewise.
50526         * doc/posix-functions/wprintf.texi: Likewise.
50527         * doc/posix-functions/wscanf.texi: Likewise.
50528
50529 2008-12-21  Bruno Haible  <bruno@clisp.org>
50530
50531         Work around a portability problem.
50532         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
50533         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
50534
50535 2008-12-20  Bruno Haible  <bruno@clisp.org>
50536
50537         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
50538         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
50539         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
50540         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
50541         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
50542
50543         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
50544         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
50545         set.
50546         (GNULIB_defined_mbstate_t): New macro.
50547         (mbsinit): Redefine if REPLACE_MBSINIT is set.
50548         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
50549         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
50550         reuses the system's mbrtowc function but works around the bugs.
50551         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
50552         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
50553         macros.
50554         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
50555         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
50556         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
50557         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
50558         REPLACE_MBSINIT if mbsinit needs to be overridden.
50559         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
50560         REPLACE_MBSINIT, REPLACE_MBRTOWC.
50561         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
50562         REPLACE_MBSINIT, REPLACE_MBRTOWC.
50563         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50564         m4/locale-zh.m4.
50565         (Depends): Add mbsinit.
50566         * modules/mbsinit (Depends): Add mbrtowc.
50567         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
50568
50569 2008-12-20  Bruno Haible  <bruno@clisp.org>
50570
50571         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
50572         so that there are no conversion errors on AIX.
50573         * tests/test-mbsrtowcs.c (main): LIkewise.
50574
50575 2008-12-20  Bruno Haible  <bruno@clisp.org>
50576
50577         Work around wctob bug on Solaris <= 9.
50578         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
50579         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
50580         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
50581         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
50582         * modules/wctob (Files): Add m4/locale-fr.m4.
50583         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
50584
50585 2008-12-20  Bruno Haible  <bruno@clisp.org>
50586
50587         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
50588         /dev/null.
50589         * tests/test-select-in.sh: Likewise.
50590         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50591
50592 2008-12-20  Bruno Haible  <bruno@clisp.org>
50593
50594         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
50595         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
50596         Cygwin 1.5.x.
50597
50598 2008-12-20  Bruno Haible  <bruno@clisp.org>
50599
50600         Ensure mbstate_t is defined on HP-UX 11.11.
50601         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
50602         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
50603         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
50604         AC_USE_SYSTEM_EXTENSIONS.
50605         * modules/fnmatch (Depends-on): Add extensions.
50606         * modules/mbrlen (Depends-on): Likewise.
50607         * modules/mbrtowc (Depends-on): Likewise.
50608         * modules/mbsinit (Depends-on): Likewise.
50609         * modules/mbsrtowcs (Depends-on): Likewise.
50610         * modules/mbswidth (Depends-on): Likewise.
50611         * modules/quotearg (Depends-on): Likewise.
50612         * modules/strftime (Depends-on): Likewise.
50613
50614 2008-12-20  Bruno Haible  <bruno@clisp.org>
50615
50616         Ensure wctob is declared on IRIX 6.5.
50617         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
50618         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
50619         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
50620         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
50621         of HAVE_WCTOB.
50622         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
50623         HAVE_WCTOB.
50624         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
50625
50626 2008-12-19  Bruno Haible  <bruno@clisp.org>
50627
50628         * modules/mbsrtowcs-tests: New file.
50629         * tests/test-mbsrtowcs1.sh: New file.
50630         * tests/test-mbsrtowcs2.sh: New file.
50631         * tests/test-mbsrtowcs3.sh: New file.
50632         * tests/test-mbsrtowcs4.sh: New file.
50633         * tests/test-mbsrtowcs.c: New file.
50634
50635         New module 'mbsrtowcs'.
50636         * lib/wchar.in.h (mbsrtowcs): New declaration.
50637         * lib/mbsrtowcs.c: New file.
50638         * m4/mbsrtowcs.m4: New file.
50639         * modules/mbsrtowcs: New file.
50640         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
50641         HAVE_MBSRTOWCS.
50642         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
50643         HAVE_MBSRTOWCS.
50644         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
50645
50646 2008-12-19  Bruno Haible  <bruno@clisp.org>
50647
50648         New module 'mbrlen'.
50649         * lib/wchar.in.h (mbrlen): New declaration.
50650         * lib/mbrlen.c: New file.
50651         * m4/mbrlen.m4: New file.
50652         * modules/mbrlen: New file.
50653         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
50654         HAVE_MBRLEN.
50655         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
50656         HAVE_MBRLEN.
50657         * doc/posix-functions/mbrlen.texi: Document the new module.
50658
50659 2008-12-19  Bruno Haible  <bruno@clisp.org>
50660
50661         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
50662         * modules/mbrtowc (Depends-on): Add verify.
50663         Suggested by Paul Eggert.
50664
50665 2008-12-18  Bruno Haible  <bruno@clisp.org>
50666
50667         * modules/mbsinit-tests: New file.
50668         * tests/test-mbsinit.sh: New file.
50669         * tests/test-mbsinit.c: New file.
50670
50671 2008-12-18  Bruno Haible  <bruno@clisp.org>
50672
50673         * modules/mbrtowc-tests: New file.
50674         * tests/test-mbrtowc1.sh: New file.
50675         * tests/test-mbrtowc2.sh: New file.
50676         * tests/test-mbrtowc3.sh: New file.
50677         * tests/test-mbrtowc4.sh: New file.
50678         * tests/test-mbrtowc.c: New file.
50679
50680         New module 'mbrtowc'.
50681         * lib/wchar.in.h (mbstate_t): Override when the system does not have
50682         mbsinit and mbrtowc.
50683         (mbrtowc): New declaration.
50684         * lib/mbrtowc.c: New file.
50685         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
50686         * modules/mbrtowc: New file.
50687         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
50688         HAVE_MBRTOWC.
50689         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
50690         HAVE_MBRTOWC.
50691         * doc/posix-functions/mbrtowc.texi: Document the new module.
50692
50693 2008-12-18  Bruno Haible  <bruno@clisp.org>
50694
50695         New module 'wctob'.
50696         * lib/wchar.in.h (wctob): New declaration.
50697         * lib/wctob.c: New file.
50698         * m4/wctob.m4: New file.
50699         * modules/wctob: New file.
50700         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
50701         HAVE_WCTOB.
50702         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
50703         * doc/posix-functions/wctob.texi: Document the new module.
50704
50705 2008-12-18  Bruno Haible  <bruno@clisp.org>
50706
50707         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
50708         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
50709
50710 2008-12-18  Simon Josefsson  <simon@josefsson.org>
50711
50712         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
50713         G. Christensen" <tgc@jupiterrise.com>.
50714
50715         * lib/flock.c: Need to include errno.h.  Reported by "Tom
50716         G. Christensen" <tgc@jupiterrise.com>.
50717
50718         * lib/flock.c: Need to include string.h.  Reported by "Tom
50719         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
50720         <ebb9@byu.net>.
50721
50722 2008-12-18  Bruno Haible  <bruno@clisp.org>
50723
50724         * m4/locale-ja.m4: New file, from GNU gettext.
50725
50726 2008-12-17  Bruno Haible  <bruno@clisp.org>
50727
50728         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
50729         Suggested by Eric Blake.
50730
50731 2008-12-17  Bruno Haible  <bruno@clisp.org>
50732
50733         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
50734
50735 2008-12-17  Bruno Haible  <bruno@clisp.org>
50736
50737         * lib/mbsinit.c: Include verify.h. Verify an assumption.
50738         * modules/mbsinit (Depends-on): Add verify.
50739         Suggested by Paul Eggert.
50740
50741 2008-12-17  Bruno Haible  <bruno@clisp.org>
50742
50743         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
50744         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
50745         gl_FUNC_MBRTOWC.
50746         * m4/mbiter.m4 (gl_MBITER): LIkewise.
50747         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
50748         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
50749         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
50750         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
50751         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
50752         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
50753         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
50754         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
50755         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
50756         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
50757         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
50758         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
50759         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
50760         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
50761         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50762         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
50763         * modules/trim (configure.ac): Likewise.
50764
50765 2008-12-17  Bruno Haible  <bruno@clisp.org>
50766
50767         * modules/btowc-tests: New file.
50768         * tests/test-btowc1.sh: New file.
50769         * tests/test-btowc2.sh: New file.
50770         * tests/test-btowc.c: New file.
50771
50772         New module 'btowc'.
50773         * lib/wchar.in.h (btowc): New declaration.
50774         * lib/btowc.c: New file.
50775         * m4/btowc.m4: New file.
50776         * modules/btowc: New file.
50777         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
50778         HAVE_BTOWC.
50779         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
50780         * doc/posix-functions/btowc.texi: Document the new module.
50781
50782 2008-12-17  Bruno Haible  <bruno@clisp.org>
50783
50784         New module 'mbsinit'.
50785         * lib/wchar.in.h (mbsinit): New declaration.
50786         * lib/mbsinit.c: New file.
50787         * m4/mbsinit.m4: New file.
50788         * modules/mbsinit: New file.
50789         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
50790         HAVE_MBSINIT.
50791         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
50792         HAVE_MBSINIT.
50793         * doc/posix-functions/mbsinit.texi: Document the new module.
50794
50795 2008-12-16  Bruno Haible  <bruno@clisp.org>
50796
50797         * lib/unistd.in.h: Add comment.
50798         * tests/test-environ.c: Don't include <stdlib.h>.
50799
50800 2008-12-16  Bruno Haible  <bruno@clisp.org>
50801
50802         * lib/parse-duration.h (parse_duration): Document return value
50803         convention.
50804         * lib/parse-duration.c: Include specification header first. Add
50805         comments.
50806         (_): Remove macro.
50807         (parse_year_month_day, parse_hour_minute_second): Move side effects
50808         outside of strchr call.
50809         (parse_non_iso8601): Move side effects outside of isspace call.
50810         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
50811         call.
50812
50813 2008-12-16  Bruno Haible  <bruno@clisp.org>
50814
50815         * tests/test-parse-duration.sh: Produce no output when the test
50816         succeeds.
50817
50818 2008-12-16  Bruno Haible  <bruno@clisp.org>
50819
50820         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
50821         expressions.
50822
50823 2008-12-15  Bruno Haible  <bruno@clisp.org>
50824
50825         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
50826         * doc/glibc-functions/flistxattr.texi: Likewise.
50827         * doc/glibc-functions/fopencookie.texi: Likewise.
50828         * doc/glibc-functions/fremovexattr.texi: Likewise.
50829         * doc/glibc-functions/fsetxattr.texi: Likewise.
50830         * doc/glibc-functions/getxattr.texi: Likewise.
50831         * doc/glibc-functions/lgetxattr.texi: Likewise.
50832         * doc/glibc-functions/listxattr.texi: Likewise.
50833         * doc/glibc-functions/llistxattr.texi: Likewise.
50834         * doc/glibc-functions/lremovexattr.texi: Likewise.
50835         * doc/glibc-functions/lsetxattr.texi: Likewise.
50836         * doc/glibc-functions/removexattr.texi: Likewise.
50837         * doc/glibc-functions/setxattr.texi: Likewise.
50838         * doc/posix-functions/open_memstream.texi: Likewise.
50839
50840 2008-12-15  Eric Blake  <ebb9@byu.net>
50841
50842         Update doc for cygwin 1.7.
50843         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
50844         functions.
50845         * doc/posix-functions/fchmodat.texi: Likewise.
50846         * doc/posix-functions/fchownat.texi: Likewise.
50847         * doc/posix-functions/fdopendir.texi: Likewise.
50848         * doc/posix-functions/fmemopen.texi: Likewise.
50849         * doc/posix-functions/freeaddrinfo.texi: Likewise.
50850         * doc/posix-functions/fstatat.texi: Likewise.
50851         * doc/posix-functions/futimens.texi: Likewise.
50852         * doc/posix-functions/gai_strerror.texi: Likewise.
50853         * doc/posix-functions/getaddrinfo.texi: Likewise.
50854         * doc/posix-functions/getnameinfo.texi: Likewise.
50855         * doc/posix-functions/if_freenameindex.texi: Likewise.
50856         * doc/posix-functions/if_indextoname.texi: Likewise.
50857         * doc/posix-functions/if_nameindex.texi: Likewise.
50858         * doc/posix-functions/if_nametoindex.texi: Likewise.
50859         * doc/posix-functions/insque.texi: Likewise.
50860         * doc/posix-functions/linkat.texi: Likewise.
50861         * doc/posix-functions/llrint.texi: Likewise.
50862         * doc/posix-functions/llrintf.texi: Likewise.
50863         * doc/posix-functions/llrintl.texi: Likewise.
50864         * doc/posix-functions/lockf.texi: Likewise.
50865         * doc/posix-functions/lrintl.texi: Likewise.
50866         * doc/posix-functions/mkdirat.texi: Likewise.
50867         * doc/posix-functions/mkfifoat.texi: Likewise.
50868         * doc/posix-functions/mknodat.texi: Likewise.
50869         * doc/posix-functions/mq_close.texi: Likewise.
50870         * doc/posix-functions/mq_getattr.texi: Likewise.
50871         * doc/posix-functions/mq_notify.texi: Likewise.
50872         * doc/posix-functions/mq_open.texi: Likewise.
50873         * doc/posix-functions/mq_receive.texi: Likewise.
50874         * doc/posix-functions/mq_send.texi: Likewise.
50875         * doc/posix-functions/mq_setattr.texi: Likewise.
50876         * doc/posix-functions/mq_timedreceive.texi: Likewise.
50877         * doc/posix-functions/mq_timedsend.texi: Likewise.
50878         * doc/posix-functions/mq_unlink.texi: Likewise.
50879         * doc/posix-functions/open_memstream.texi: Likewise.
50880         * doc/posix-functions/openat.texi: Likewise.
50881         * doc/posix-functions/posix_fadvise.texi: Likewise.
50882         * doc/posix-functions/posix_fallocate.texi: Likewise.
50883         * doc/posix-functions/posix_madvise.texi: Likewise.
50884         * doc/posix-functions/posix_memalign.texi: Likewise.
50885         * doc/posix-functions/posix_openpt.texi: Likewise.
50886         * doc/posix-functions/readlinkat.texi: Likewise.
50887         * doc/posix-functions/remque.texi: Likewise.
50888         * doc/posix-functions/renameat.texi: Likewise.
50889         * doc/posix-functions/rintl.texi: Likewise.
50890         * doc/posix-functions/sem_unlink.texi: Likewise.
50891         * doc/posix-functions/shm_open.texi: Likewise.
50892         * doc/posix-functions/shm_unlink.texi: Likewise.
50893         * doc/posix-functions/signgam.texi: Likewise.
50894         * doc/posix-functions/sigset.texi: Likewise.
50895         * doc/posix-functions/stpcpy.texi: Likewise.
50896         * doc/posix-functions/stpncpy.texi: Likewise.
50897         * doc/posix-functions/strerror.texi: Likewise.
50898         * doc/posix-functions/strtod.texi: Likewise.
50899         * doc/posix-functions/symlinkat.texi: Likewise.
50900         * doc/posix-functions/unlinkat.texi: Likewise.
50901         * doc/posix-functions/utimensat.texi: Likewise.
50902         * doc/glibc-functions/bindresvport.texi: Likewise.
50903         * doc/glibc-functions/dn_expand.texi: Likewise.
50904         * doc/glibc-functions/exp10.texi: Likewise.
50905         * doc/glibc-functions/exp10f.texi: Likewise.
50906         * doc/glibc-functions/fgetxattr.texi: Likewise.
50907         * doc/glibc-functions/flistxattr.texi: Likewise.
50908         * doc/glibc-functions/fopencookie.texi: Likewise.
50909         * doc/glibc-functions/freeifaddrs.texi: Likewise.
50910         * doc/glibc-functions/fremovexattr.texi: Likewise.
50911         * doc/glibc-functions/fsetxattr.texi: Likewise.
50912         * doc/glibc-functions/getifaddrs.texi: Likewise.
50913         * doc/glibc-functions/getxattr.texi: Likewise.
50914         * doc/glibc-functions/lgetxattr.texi: Likewise.
50915         * doc/glibc-functions/listxattr.texi: Likewise.
50916         * doc/glibc-functions/llistxattr.texi: Likewise.
50917         * doc/glibc-functions/lremovexattr.texi: Likewise.
50918         * doc/glibc-functions/lsetxattr.texi: Likewise.
50919         * doc/glibc-functions/pow10.texi: Likewise.
50920         * doc/glibc-functions/pow10f.texi: Likewise.
50921         * doc/glibc-functions/rcmd_af.texi: Likewise.
50922         * doc/glibc-functions/removexattr.texi: Likewise.
50923         * doc/glibc-functions/res_init.texi: Likewise.
50924         * doc/glibc-functions/res_mkquery.texi: Likewise.
50925         * doc/glibc-functions/res_query.texi: Likewise.
50926         * doc/glibc-functions/res_querydomain.texi: Likewise.
50927         * doc/glibc-functions/res_send.texi: Likewise.
50928         * doc/glibc-functions/rresvport_af.texi: Likewise.
50929         * doc/glibc-functions/setxattr.texi: Likewise.
50930         * doc/glibc-functions/strcasestr.texi: Likewise.
50931
50932 2008-12-15  Bruno Haible  <bruno@clisp.org>
50933
50934         Fix compilation error on OSF/1 4.0.
50935         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
50936         <sys/time.h>, simply delegate to the system header.
50937         Reported by Daniel Richard G. <oss@teragram.com>.
50938
50939 2008-12-15  Bruno Haible  <bruno@clisp.org>
50940
50941         * doc/posix-functions/openat.texi: Mention the 'openat' module.
50942         * doc/posix-functions/fchmodat.texi: Likewise.
50943         * doc/posix-functions/fchownat.texi: Likewise.
50944         * doc/posix-functions/fdopendir.texi: Likewise.
50945         * doc/posix-functions/fstatat.texi: Likewise.
50946         * doc/posix-functions/mkdirat.texi: Likewise.
50947         * doc/posix-functions/unlinkat.texi: Likewise.
50948
50949 2008-12-14  Bruno Haible  <bruno@clisp.org>
50950
50951         Update doc for POSIX:2008.
50952         * doc/posix-functions/faccessat.texi: New file.
50953         * doc/posix-functions/fchmodat.texi: New file.
50954         * doc/posix-functions/fchownat.texi: New file.
50955         * doc/posix-functions/fdopendir.texi: New file.
50956         * doc/posix-functions/fstatat.texi: New file.
50957         * doc/posix-functions/futimens.texi: New file.
50958         * doc/posix-functions/linkat.texi: New file.
50959         * doc/posix-functions/mkdirat.texi: New file.
50960         * doc/posix-functions/mkfifoat.texi: New file.
50961         * doc/posix-functions/mknodat.texi: New file.
50962         * doc/posix-functions/open_wmemstream.texi: New file.
50963         * doc/posix-functions/openat.texi: New file.
50964         * doc/posix-functions/psiginfo.texi: New file.
50965         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
50966         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
50967         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
50968         * doc/posix-functions/readlinkat.texi: New file.
50969         * doc/posix-functions/renameat.texi: New file.
50970         * doc/posix-functions/strerror_l.texi: New file.
50971         * doc/posix-functions/symlinkat.texi: New file.
50972         * doc/posix-functions/unlinkat.texi: New file.
50973         * doc/posix-functions/utimensat.texi: New file.
50974         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50975
50976 2008-12-14  Bruno Haible  <bruno@clisp.org>
50977
50978         Update doc for POSIX:2008.
50979         * doc/posix-functions/alphasort.texi: Renamed from
50980         doc/glibc-functions/alphasort.texi.
50981         * doc/posix-functions/dirfd.texi: Renamed from
50982         doc/glibc-functions/dirfd.texi.
50983         * doc/posix-functions/dprintf.texi: Renamed from
50984         doc/glibc-functions/dprintf.texi.
50985         * doc/posix-functions/duplocale.texi: Renamed from
50986         doc/glibc-functions/duplocale.texi.
50987         * doc/posix-functions/fexecve.texi: Renamed from
50988         doc/glibc-functions/fexecve.texi.
50989         * doc/posix-functions/fmemopen.texi: Renamed from
50990         doc/glibc-functions/fmemopen.texi.
50991         * doc/posix-functions/freelocale.texi: Renamed from
50992         doc/glibc-functions/freelocale.texi.
50993         * doc/posix-functions/getdate_err.texi: Renamed from
50994         doc/glibc-functions/getdate_err.texi.
50995         * doc/posix-functions/isalnum_l.texi: Renamed from
50996         doc/glibc-functions/isalnum_l.texi.
50997         * doc/posix-functions/isalpha_l.texi: Renamed from
50998         doc/glibc-functions/isalpha_l.texi.
50999         * doc/posix-functions/isblank_l.texi: Renamed from
51000         doc/glibc-functions/isblank_l.texi.
51001         * doc/posix-functions/iscntrl_l.texi: Renamed from
51002         doc/glibc-functions/iscntrl_l.texi.
51003         * doc/posix-functions/isdigit_l.texi: Renamed from
51004         doc/glibc-functions/isdigit_l.texi.
51005         * doc/posix-functions/isgraph_l.texi: Renamed from
51006         doc/glibc-functions/isgraph_l.texi.
51007         * doc/posix-functions/islower_l.texi: Renamed from
51008         doc/glibc-functions/islower_l.texi.
51009         * doc/posix-functions/isprint_l.texi: Renamed from
51010         doc/glibc-functions/isprint_l.texi.
51011         * doc/posix-functions/ispunct_l.texi: Renamed from
51012         doc/glibc-functions/ispunct_l.texi.
51013         * doc/posix-functions/isspace_l.texi: Renamed from
51014         doc/glibc-functions/isspace_l.texi.
51015         * doc/posix-functions/isupper_l.texi: Renamed from
51016         doc/glibc-functions/isupper_l.texi.
51017         * doc/posix-functions/iswalnum_l.texi: Renamed from
51018         doc/glibc-functions/iswalnum_l.texi.
51019         * doc/posix-functions/iswalpha_l.texi: Renamed from
51020         doc/glibc-functions/iswalpha_l.texi.
51021         * doc/posix-functions/iswblank_l.texi: Renamed from
51022         doc/glibc-functions/iswblank_l.texi.
51023         * doc/posix-functions/iswcntrl_l.texi: Renamed from
51024         doc/glibc-functions/iswcntrl_l.texi.
51025         * doc/posix-functions/iswctype_l.texi: Renamed from
51026         doc/glibc-functions/iswctype_l.texi.
51027         * doc/posix-functions/iswdigit_l.texi: Renamed from
51028         doc/glibc-functions/iswdigit_l.texi.
51029         * doc/posix-functions/iswgraph_l.texi: Renamed from
51030         doc/glibc-functions/iswgraph_l.texi.
51031         * doc/posix-functions/iswlower_l.texi: Renamed from
51032         doc/glibc-functions/iswlower_l.texi.
51033         * doc/posix-functions/iswprint_l.texi: Renamed from
51034         doc/glibc-functions/iswprint_l.texi.
51035         * doc/posix-functions/iswpunct_l.texi: Renamed from
51036         doc/glibc-functions/iswpunct_l.texi.
51037         * doc/posix-functions/iswspace_l.texi: Renamed from
51038         doc/glibc-functions/iswspace_l.texi.
51039         * doc/posix-functions/iswupper_l.texi: Renamed from
51040         doc/glibc-functions/iswupper_l.texi.
51041         * doc/posix-functions/iswxdigit_l.texi: Renamed from
51042         doc/glibc-functions/iswxdigit_l.texi.
51043         * doc/posix-functions/isxdigit_l.texi: Renamed from
51044         doc/glibc-functions/isxdigit_l.texi.
51045         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
51046         doc/glibc-functions/mbsnrtowcs.texi.
51047         * doc/posix-functions/mkdtemp.texi: Renamed from
51048         doc/glibc-functions/mkdtemp.texi.
51049         * doc/posix-functions/newlocale.texi: Renamed from
51050         doc/glibc-functions/newlocale.texi.
51051         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
51052         doc/glibc-functions/nl_langinfo_l.texi.
51053         * doc/posix-functions/open_memstream.texi: Renamed from
51054         doc/glibc-functions/open_memstream.texi.
51055         * doc/posix-functions/opterr.texi: Renamed from
51056         doc/glibc-functions/opterr.texi.
51057         * doc/posix-functions/optind.texi: Renamed from
51058         doc/glibc-functions/optind.texi.
51059         * doc/posix-functions/optopt.texi: Renamed from
51060         doc/glibc-functions/optopt.texi.
51061         * doc/posix-functions/psignal.texi: Renamed from
51062         doc/glibc-functions/psignal.texi.
51063         * doc/posix-functions/scandir.texi: Renamed from
51064         doc/glibc-functions/scandir.texi.
51065         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
51066         doc/glibc-functions/sched_get_priority_min.texi.
51067         * doc/posix-functions/signgam.texi: Renamed from
51068         doc/glibc-functions/signgam.texi.
51069         * doc/posix-functions/stpcpy.texi: Renamed from
51070         doc/glibc-functions/stpcpy.texi.
51071         * doc/posix-functions/stpncpy.texi: Renamed from
51072         doc/glibc-functions/stpncpy.texi.
51073         * doc/posix-functions/strcasecmp_l.texi: Renamed from
51074         doc/glibc-functions/strcasecmp_l.texi.
51075         * doc/posix-functions/strcoll_l.texi: Renamed from
51076         doc/glibc-functions/strcoll_l.texi.
51077         * doc/posix-functions/strfmon_l.texi: Renamed from
51078         doc/glibc-functions/strfmon_l.texi.
51079         * doc/posix-functions/strftime_l.texi: Renamed from
51080         doc/glibc-functions/strftime_l.texi.
51081         * doc/posix-functions/strncasecmp_l.texi: Renamed from
51082         doc/glibc-functions/strncasecmp_l.texi.
51083         * doc/posix-functions/strndup.texi: Renamed from
51084         doc/glibc-functions/strndup.texi.
51085         * doc/posix-functions/strnlen.texi: Renamed from
51086         doc/glibc-functions/strnlen.texi.
51087         * doc/posix-functions/strsignal.texi: Renamed from
51088         doc/glibc-functions/strsignal.texi.
51089         * doc/posix-functions/strxfrm_l.texi: Renamed from
51090         doc/glibc-functions/strxfrm_l.texi.
51091         * doc/posix-functions/timer_gettime.texi: Renamed from
51092         doc/glibc-functions/timer_gettime.texi.
51093         * doc/posix-functions/tolower_l.texi: Renamed from
51094         doc/glibc-functions/tolower_l.texi.
51095         * doc/posix-functions/toupper_l.texi: Renamed from
51096         doc/glibc-functions/toupper_l.texi.
51097         * doc/posix-functions/towctrans_l.texi: Renamed from
51098         doc/glibc-functions/towctrans_l.texi.
51099         * doc/posix-functions/towlower_l.texi: Renamed from
51100         doc/glibc-functions/towlower_l.texi.
51101         * doc/posix-functions/towupper_l.texi: Renamed from
51102         doc/glibc-functions/towupper_l.texi.
51103         * doc/posix-functions/uselocale.texi: Renamed from
51104         doc/glibc-functions/uselocale.texi.
51105         * doc/posix-functions/vdprintf.texi: Renamed from
51106         doc/glibc-functions/vdprintf.texi.
51107         * doc/posix-functions/wcpcpy.texi:
51108         Renamed from doc/glibc-functions/wcpcpy.texi.
51109         * doc/posix-functions/wcpncpy.texi: Renamed from
51110         doc/glibc-functions/wcpncpy.texi.
51111         * doc/posix-functions/wcscasecmp.texi: Renamed from
51112         doc/glibc-functions/wcscasecmp.texi.
51113         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
51114         doc/glibc-functions/wcscasecmp_l.texi.
51115         * doc/posix-functions/wcscoll_l.texi: Renamed from
51116         doc/glibc-functions/wcscoll_l.texi.
51117         * doc/posix-functions/wcsdup.texi: Renamed from
51118         doc/glibc-functions/wcsdup.texi.
51119         * doc/posix-functions/wcsncasecmp.texi: Renamed from
51120         doc/glibc-functions/wcsncasecmp.texi.
51121         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
51122         doc/glibc-functions/wcsncasecmp_l.texi.
51123         * doc/posix-functions/wcsnlen.texi: Renamed from
51124         doc/glibc-functions/wcsnlen.texi.
51125         * doc/posix-functions/wcsnrtombs.texi: Renamed from
51126         doc/glibc-functions/wcsnrtombs.texi.
51127         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
51128         doc/glibc-functions/wcsxfrm_l.texi.
51129         * doc/posix-functions/wctrans_l.texi: Renamed from
51130         doc/glibc-functions/wctrans_l.texi.
51131         * doc/posix-functions/wctype_l.texi: Renamed from
51132         doc/glibc-functions/wctype_l.texi.
51133         * doc/gnulib.texi (Function Substitutes): Add these subsections.
51134         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
51135         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
51136         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
51137         these subsections.
51138         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
51139         Remove sections.
51140
51141 2008-12-14  Bruno Haible  <bruno@clisp.org>
51142
51143         Update doc for POSIX:2008.
51144         * doc/posix-functions/*.texi: Update URL of POSIX specification.
51145
51146 2008-12-14  Bruno Haible  <bruno@clisp.org>
51147
51148         Update doc for POSIX:2008.
51149         * doc/pastposix-functions/bcmp.texi: Renamed from
51150         doc/posix-functions/bcmp.texi.
51151         * doc/pastposix-functions/bcopy.texi: Renamed from
51152         doc/posix-functions/bcopy.texi.
51153         * doc/pastposix-functions/bsd_signal.texi: Renamed from
51154         doc/posix-functions/bsd_signal.texi.
51155         * doc/pastposix-functions/bzero.texi: Renamed from
51156         doc/posix-functions/bzero.texi.
51157         * doc/pastposix-functions/ecvt.texi: Renamed from
51158         doc/posix-functions/ecvt.texi.
51159         * doc/pastposix-functions/fcvt.texi: Renamed from
51160         doc/posix-functions/fcvt.texi.
51161         * doc/pastposix-functions/ftime.texi: Renamed from
51162         doc/posix-functions/ftime.texi.
51163         * doc/pastposix-functions/gcvt.texi: Renamed from
51164         doc/posix-functions/gcvt.texi.
51165         * doc/pastposix-functions/getcontext.texi: Renamed from
51166         doc/posix-functions/getcontext.texi.
51167         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
51168         doc/posix-functions/gethostbyaddr.texi.
51169         * doc/pastposix-functions/gethostbyname.texi: Renamed from
51170         doc/posix-functions/gethostbyname.texi.
51171         * doc/pastposix-functions/getwd.texi: Renamed from
51172         doc/posix-functions/getwd.texi.
51173         * doc/pastposix-functions/h_errno.texi: Renamed from
51174         doc/posix-functions/h_errno.texi.
51175         * doc/pastposix-functions/index.texi: Renamed from
51176         doc/posix-functions/index.texi.
51177         * doc/pastposix-functions/makecontext.texi: Renamed from
51178         doc/posix-functions/makecontext.texi.
51179         * doc/pastposix-functions/mktemp.texi: Renamed from
51180         doc/posix-functions/mktemp.texi.
51181         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
51182         doc/posix-functions/pthread_attr_getstackaddr.texi.
51183         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
51184         doc/posix-functions/pthread_attr_setstackaddr.texi.
51185         * doc/pastposix-functions/rindex.texi: Renamed from
51186         doc/posix-functions/rindex.texi.
51187         * doc/pastposix-functions/scalb.texi: Renamed from
51188         doc/posix-functions/scalb.texi.
51189         * doc/pastposix-functions/setcontext.texi: Renamed from
51190         doc/posix-functions/setcontext.texi.
51191         * doc/pastposix-functions/swapcontext.texi: Renamed from
51192         doc/posix-functions/swapcontext.texi.
51193         * doc/pastposix-functions/ualarm.texi: Renamed from
51194         doc/posix-functions/ualarm.texi.
51195         * doc/pastposix-functions/usleep.texi: Renamed from
51196         doc/posix-functions/usleep.texi.
51197         * doc/pastposix-functions/vfork.texi: Renamed from
51198         doc/posix-functions/vfork.texi.
51199         * doc/pastposix-functions/wcswcs.texi: Renamed from
51200         doc/posix-functions/wcswcs.texi.
51201         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
51202         (Function Substitutes): Update.
51203
51204 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51205
51206         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
51207         m4/strerror.m4.
51208
51209 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51210             Bruno Haible  <bruno@clisp.org>
51211
51212         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
51213
51214 2008-12-13  Bruno Haible  <bruno@clisp.org>
51215
51216         * modules/strtoull (Depends-on): Remove unistd.
51217
51218 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51219
51220         * modules/strtoull (Depends-on): Add stdlib.
51221
51222 2008-12-11  Simon Josefsson  <simon@josefsson.org>
51223
51224         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
51225
51226 2008-12-10  Jim Meyering  <meyering@redhat.com>
51227
51228         gl_ASSERT: don't say assertions are disabled when they're not
51229         * m4/assert.m4 (gl_ASSERT): Do not make configure report
51230         "checking whether to enable assertions... no", when they are in
51231         fact enabled.  This is solely a bug in the output of configure.
51232         In spite of saying "no", NDEBUG was not defined in that case.
51233         Also, as noted by Eric Blake, leave assertions enabled upon
51234         --enable-assert=INVALID.
51235
51236 2008-12-10  Bruno Haible  <bruno@clisp.org>
51237
51238         Change MODULES.html to refer to POSIX:2008 where possible.
51239         * MODULES.html.sh (POSIX2008_URL): New variable.
51240         (posix_headers): Remove sys/timeb, ucontext.
51241         (posix2001_headers): New variable.
51242         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
51243         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
51244         index, makecontext, mktemp, pthread_attr_getstackaddr,
51245         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
51246         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
51247         (posix2001_functions): New variable.
51248         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
51249         otherwise.
51250
51251 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51252
51253         add missing include to parse-duration.c
51254         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
51255         * modules/parse-duration (Depends-on): Add xalloc.
51256
51257         fix sed script reading maint.mk
51258         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
51259         (syntax-check-rules): Use it.
51260
51261 2008-12-09  Bruno Haible  <bruno@clisp.org>
51262
51263         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
51264         MacOS X 10.4/PowerPC.
51265         Reported by Simon Josefsson.
51266
51267 2008-12-08  Jim Meyering  <meyering@redhat.com>
51268
51269         work around mingw's lack of some S_IF definitions
51270         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
51271         Reported by Simon Josefsson.
51272
51273 2008-12-08  Bruno Haible  <bruno@clisp.org>
51274
51275         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
51276         applied to variables. Needed on MacOS X 10.4/PowerPC.
51277         Reported by Simon Josefsson.
51278
51279 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
51280         and Eric Blake  <ebb9@byu.net>
51281
51282         assert: honor --enable-assert
51283         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
51284         order to honor --enable-assert, rather than treating it as a
51285         synonym for --disable-assert.
51286
51287 2008-12-08  Jim Meyering  <meyering@redhat.com>
51288
51289         * lib/posixtm.c: Remove now-useless declaration of mktime.
51290
51291         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
51292
51293 2008-12-07  Bruno Haible  <bruno@clisp.org>
51294
51295         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
51296         test_once): Mark functions as static.
51297         * tests/test-tls.c (test_tls): Likewise.
51298
51299 2008-12-07  Bruno Haible  <bruno@clisp.org>
51300
51301         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
51302         iconv_register_autodetect.
51303
51304 2008-12-07  Jim Meyering  <meyering@redhat.com>
51305
51306         posixtm.c: avoid a warning
51307         * lib/posixtm.c (posixtime): Don't initialize tm0.
51308         It's no longer needed to placate gcc4's -Wuninitialized,
51309         and the attempt to placate would elicit a new warning.
51310
51311         unicodeio.c: mark unused parameters
51312         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
51313         (fallback_failure_callback): Likewise.
51314
51315 2008-12-07  Bruno Haible  <bruno@clisp.org>
51316
51317         * gnulib-tool (func_create_testdir): When building the tests
51318         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
51319         Reported by Simon Josefsson.
51320
51321 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51322
51323         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
51324
51325 2008-12-06  Bruno Haible  <bruno@clisp.org>
51326
51327         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
51328         Suggested by Eric Blake.
51329
51330 2008-12-06  Bruno Haible  <bruno@clisp.org>
51331
51332         Fix a c-stack test failure on MacOS X.
51333         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
51334         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
51335         handler for SIGBUS as well.
51336         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
51337         install a signal handler for SIGBUS as well.
51338         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
51339
51340 2008-12-06  Bruno Haible  <bruno@clisp.org>
51341
51342         Advocacy documentation.
51343         * doc/gnulib-intro.texi (Benefits): New section.
51344         * doc/gnulib.texi: Update.
51345
51346 2008-12-06  Bruno Haible  <bruno@clisp.org>
51347
51348         Document the 'manywarnings' module.
51349         * doc/manywarnings.texi: New file.
51350         * doc/gnulib.texi: Include it.
51351
51352 2008-12-05  Eric Blake  <ebb9@byu.net>
51353
51354         tests: silence some gcc warnings
51355         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
51356         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
51357         type mismatches.
51358
51359 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51360             Bruno Haible  <bruno@clisp.org>
51361
51362         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
51363
51364 2008-11-29  Jim Meyering  <meyering@redhat.com>
51365
51366         unicodeio.c: mark unused parameters
51367         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
51368         (fallback_failure_callback): Likewise.
51369
51370         fts: fix a thinko
51371         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
51372         (set_stat_type): Return S_IF*-valued "type" directly.
51373         Prompted by James Youngman's spotting a related bug.
51374         Confirmed by further testing through find.
51375
51376         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
51377         * lib/fts.c (D_TYPE): Define.
51378         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
51379         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
51380         (s_ifmt_shift_bits): New function.
51381         (set_stat_type): New function.
51382         (fts_build): When not calling fts_stat, call set_stat_type
51383         to propagate dirent.d_type info to fts_read caller.
51384         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
51385         fts_statp->st_mode type information may be valid.
51386
51387 2008-11-28  Simon Josefsson  <simon@josefsson.org>
51388
51389         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
51390         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
51391         <sds@gnu.org>.
51392
51393 2008-11-20  Bruno Haible  <bruno@clisp.org>
51394
51395         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
51396         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
51397         INCLUDE_NEXT.
51398         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
51399         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
51400         * modules/math (Makefile.am): Substitute
51401         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
51402         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51403
51404 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
51405             Bruno Haible  <bruno@clisp.org>
51406
51407         * lib/stdint.in.h: Define all type macros so that their expansion is
51408         a single typedef'ed token. Fixes a compilation failure in Boost which
51409         does "using ::int8_t;".
51410
51411 2008-11-18  Simon Josefsson  <simon@josefsson.org>
51412
51413         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
51414         gl_MANYWARN_ALL_GCC.
51415         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
51416         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
51417         * modules/manywarnings: New file.
51418         * MODULES.html.sh: Mention manywarnings module.
51419
51420 2008-11-18  Bruno Haible  <bruno@clisp.org>
51421
51422         * doc/gnulib-tool.texi (Unit tests): New section.
51423
51424 2008-11-18  Simon Josefsson  <simon@josefsson.org>
51425
51426         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
51427         paths like 'lib/po/foo.po'.
51428
51429 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51430
51431         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
51432         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
51433
51434 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51435
51436         * m4/warnings.m4: Use CPPFLAGS to really check whether the
51437         parameter works.
51438
51439 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51440
51441         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
51442
51443 2008-11-17  Bruce Korb  <bkorb@gnu.org>
51444
51445         * modules/parse-duration-tests: New file.
51446         * tests/test-parse-duration.sh: New file.
51447         * tests/test-parse-duration.c: New file.
51448
51449         New module 'parse-duration'.
51450         * lib/parse-duration.h: New file.
51451         * lib/parse-duration.c: New file.
51452         * modules/parse-duration: New file.
51453
51454 2008-11-17  Bruno Haible  <bruno@clisp.org>
51455
51456         * tests/test-select-out.sh: Comment out the first pipe test.
51457         Reported by Simon Josefsson.
51458
51459 2008-11-17  Bruno Haible  <bruno@clisp.org>
51460
51461         * modules/getaddrinfo (Depends-on): Add servent, hostent.
51462         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
51463         gl_HOSTENT.
51464
51465 2008-11-17  Bruno Haible  <bruno@clisp.org>
51466
51467         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
51468         -lnetwork and -lnet. Needed for Haiku and BeOS.
51469
51470 2008-11-16  Bruno Haible  <bruno@clisp.org>
51471
51472         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
51473
51474 2008-11-16  Bruno Haible  <bruno@clisp.org>
51475
51476         Avoid test failure on Haiku.
51477         * tests/test-fsync.c: Include <errno.h>.
51478         (main): Don't require that fsync (0) fails.
51479
51480 2008-11-15  Bruno Haible  <bruno@clisp.org>
51481
51482         New module 'hostent'.
51483         * modules/hostent: New file.
51484         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
51485
51486 2008-11-15  Bruno Haible  <bruno@clisp.org>
51487
51488         New module 'servent'.
51489         * modules/servent: New file.
51490         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
51491
51492 2008-11-15  Bruno Haible  <bruno@clisp.org>
51493
51494         Avoid generating same test program with two different rules.
51495         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
51496         test-frexp to test-frexp-nolibm.
51497         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
51498         test-frexpl to test-frexpl-nolibm.
51499
51500 2008-11-15  Bruno Haible  <bruno@clisp.org>
51501
51502         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
51503         $(FREXPL_LIBM).
51504
51505 2008-11-15  Bruno Haible  <bruno@clisp.org>
51506
51507         * lib/netdb.in.h: Activate the definitions also when the system's
51508         <netdb.h> has 'struct addrinfo'.
51509         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
51510         EAI_OVERFLOW or AI_NUMERICSERV.
51511         * doc/posix-headers/netdb.texi: Document the problem.
51512
51513 2008-11-15  Bruno Haible  <bruno@clisp.org>
51514
51515         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
51516
51517         Make the 'sched' module work on platforms where <sched.h> exists but
51518         is incomplete (such as Haiku).
51519         * lib/sched.in.h; Include the system's <sched.h> if it exists.
51520         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
51521         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
51522         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
51523         HAVE_STRUCT_SCHED_PARAM.
51524         * modules/sched (Depends-on): Add include_next.
51525         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
51526         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
51527         * doc/posix-headers/sched.texi: Document the issue.
51528
51529 2008-11-13  Jim Meyering  <meyering@redhat.com>
51530
51531         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
51532         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
51533         test would fail due to the difference in the Report bugs to ...
51534         line.  The expected address is empty, "<>", while the actual
51535         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
51536
51537 2008-11-12  Bruno Haible  <bruno@clisp.org>
51538
51539         lstat: don't compile lstat.c on systems lacking lstat
51540         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
51541         which don't have lstat; this is handled by lib/sys_stat.in.h already.
51542         Reported by Daniel P. Berrange via Jim Meyering.
51543
51544 2008-11-12  Jim Meyering  <meyering@redhat.com>
51545
51546         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
51547
51548 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51549
51550         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
51551         instead.
51552
51553 2008-11-12  Bruno Haible  <bruno@clisp.org>
51554
51555         * lib/unicodeio.c: Include unistr.h.
51556         (utf8_wctomb): Remove function.
51557         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
51558
51559 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51560
51561         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
51562         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
51563         <bruno@clisp.org>.
51564         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
51565
51566 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51567
51568         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
51569         * doc/gnulib.texi: Add section for warnings.
51570
51571 2008-11-11  Bruno Haible  <bruno@clisp.org>
51572
51573         * lib/sockets.h: Add a comment.
51574
51575 2008-11-11  Karl Berry  <karl@gnu.org>
51576
51577         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
51578
51579 2008-11-11  Eric Blake  <ebb9@byu.net>
51580
51581         fdl.texi: avoid git symlinks
51582         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
51583
51584 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51585
51586         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
51587
51588 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51589
51590         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
51591         (gl_WARN_ADD): Substitute $2 if literal.
51592
51593 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51594
51595         * m4/warning.m4: Remove.
51596
51597 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51598
51599         * m4/warnings.m4: Almost complete rewrite. :-)
51600
51601 2008-11-10  Simon Josefsson  <simon@josefsson.org>
51602
51603         * modules/warnings: New module.
51604         * m4/warnings.m4: New file.
51605         * MODULES.html.sh: Mention warnings module.
51606         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
51607         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51608
51609 2008-11-10  Eric Blake  <ebb9@byu.net>
51610
51611         fdl.texi: make a symlink to the latest version
51612         * doc/standards.texi: Revert today's earlier change.
51613         * doc/fdl-1.2.texi: Rename from old fdl.texi...
51614         * doc/fdl.texi: ...and replace this with a symlink to the newer
51615         fdl-1.3.texi.
51616
51617 2008-11-10  Bruno Haible  <bruno@clisp.org>
51618
51619         * tests/test-select-fd.c (main): Accept the result file name as fourth
51620         argument.
51621         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
51622         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
51623
51624 2008-11-10  Bruno Haible  <bruno@clisp.org>
51625
51626         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
51627         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
51628         as autoconf-substituted macros.
51629         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
51630         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
51631         gl_NETDB_H_DEFAULTS. Set these variables.
51632         * modules/netdb (Makefile.am): Substitute these variables.
51633
51634 2008-11-10  Eric Blake  <ebb9@byu.net>
51635
51636         standards.texi: include correct file for FDL 1.3
51637         * doc/standards.texi (GNU Free Documentation License): Change
51638         include file to pull in FDL 1.3, not 1.2.
51639
51640         fdl.texi: revert accidental change to license
51641         * doc/fdl.texi: This is FDL 1.2, not 1.3.
51642
51643 2008-11-10  Bruno Haible  <bruno@clisp.org>
51644
51645         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
51646         cross-compiling guesses also when the native compile gives no result.
51647
51648 2008-11-10  Bruno Haible  <bruno@clisp.org>
51649
51650         * lib/spawni.c (__spawni): Force variable into the stack.
51651
51652 2008-11-10  Bruno Haible  <bruno@clisp.org>
51653
51654         Add support for Haiku.
51655         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
51656         glibc and BeOS, but also on Haiku.
51657         * lib/fpurge.c (fpurge): Likewise.
51658         * lib/freadable.c (freadable): Likewise.
51659         * lib/freadahead.c (freadahead): Likewise.
51660         * lib/freading.c (freading): Likewise.
51661         * lib/freadptr.c (freadptr): Likewise.
51662         * lib/freadseek.c (freadptrinc): Likewise.
51663         * lib/fseeko.c (rpl_fseeko): Likewise.
51664         * lib/fseterr.c (fseterr): Likewise.
51665         * lib/fwritable.c (fwritable): Likewise.
51666         * lib/fwriting.c (fwriting): Likewise.
51667         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
51668
51669 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51670
51671         * lib/config.charset: Treat Haiku like BeOS.
51672
51673 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51674
51675         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
51676         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
51677
51678 2008-11-08  Bruno Haible  <bruno@clisp.org>
51679
51680         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
51681         AC_CACHE_CHECK.
51682
51683 2008-11-08  Bruno Haible  <bruno@clisp.org>
51684
51685         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
51686
51687 2008-11-08  Bruno Haible  <bruno@clisp.org>
51688
51689         * tests/test-select-fd.c: New file.
51690         * tests/test-select-in.sh: New file.
51691         * tests/test-select-out.sh: New file.
51692         * tests/test-select-stdin.c: New file.
51693         * modules/select-tests (Files): Add the new files.
51694         (Depends-on): Add gettimeofday.
51695         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
51696         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
51697         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
51698
51699 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
51700             Bruno Haible  <bruno@clisp.org>
51701
51702         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
51703
51704 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
51705
51706         * build-aux/pmccabe2html: Added support for C++ source files.
51707
51708 2008-11-05  Ben Pfaff  <blp@gnu.org>
51709
51710         Fix lib/close.c build on Windows.
51711         * modules/close (Files): Add lib/w32sock.h.
51712
51713 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
51714
51715         Accept Bison's NEWS format.
51716         * build-aux/announce-gen (print_news_deltas): Tweak
51717         $re_prefix.
51718
51719 2008-11-04  Bruno Haible  <bruno@clisp.org>
51720
51721         * modules/random_r (Maintainer): Add glibc.
51722
51723 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51724
51725         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
51726         by karl@freefriends.org (Karl Berry).
51727         * doc/alloca.texi: Likewise.
51728         * doc/c-ctype.texi: Likewise.
51729         * doc/c-strcase.texi: Likewise.
51730         * doc/c-strcaseeq.texi: Likewise.
51731         * doc/c-strcasestr.texi: Likewise.
51732         * doc/c-strstr.texi: Likewise.
51733         * doc/c-strtod.texi: Likewise.
51734         * doc/c-strtold.texi: Likewise.
51735         * doc/ctime.texi: Likewise.
51736         * doc/error.texi: Likewise.
51737         * doc/fdl.texi: Likewise.
51738         * doc/gcd.texi: Likewise.
51739         * doc/getdate.texi: Likewise.
51740         * doc/gnulib-intro.texi: Likewise.
51741         * doc/gnulib-tool.texi: Likewise.
51742         * doc/gnulib.texi: Likewise.
51743         * doc/inet_ntoa.texi: Likewise.
51744         * doc/maintain.texi: Likewise.
51745         * doc/make-stds.texi: Likewise.
51746         * doc/quote.texi: Likewise.
51747         * doc/regexprops-generic.texi: Likewise.
51748         * doc/standards.texi: Likewise.
51749         * doc/verify.texi: Likewise.
51750         * doc/visibility.texi: Likewise.
51751         * doc/gnulib.texi (GNU Free Documentation License): Include
51752         fdl-1.3.texi instead of fdl.texi.
51753
51754 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51755
51756         * doc/fdl-1.3.texi: New file, from
51757         <http://www.gnu.org/licenses/fdl-1.3.texi>.
51758         * modules/fdl-1.3: Add.
51759         * MODULES.html.sh: Add fdl-1.3.
51760
51761 2008-11-03  Bruno Haible  <bruno@clisp.org>
51762
51763         Make determination of absolute name of header file work with AIX xlc.
51764         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
51765         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
51766         preprocessing.
51767         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51768         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
51769
51770 2008-11-03  Simon Josefsson  <simon@josefsson.org>
51771
51772         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
51773         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
51774         <ludo@gnu.org>.
51775
51776 2008-11-02  Bruno Haible  <bruno@clisp.org>
51777
51778         Mark 'strpbrk' obsolete.
51779         * modules/strpbrk (Status, Notice): New sections.
51780         * modules/strtok_r (Depends-on): Add strpbrk.
51781
51782 2008-11-02  Bruno Haible  <bruno@clisp.org>
51783
51784         Mark 'strdup' obsolete.
51785         * modules/strdup (Status, Notice): New sections.
51786         * modules/findprog (Depends-on): Add strdup.
51787         * modules/getaddrinfo (Depends-on): Likewise.
51788         * modules/localename (Depends-on): Likewise.
51789         * modules/relocatable-lib (Depends-on): Likewise.
51790         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
51791         * modules/relocatable-prog (Depends-on): Likewise.
51792         * modules/trim (Depends-on): Likewise.
51793         * modules/unictype/gen-ctype (Depends-on): Likewise.
51794         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51795
51796 2008-11-02  Bruno Haible  <bruno@clisp.org>
51797
51798         Mark 'strcspn' obsolete.
51799         * modules/strcspn (Status, Notice): New sections.
51800
51801 2008-11-02  Bruno Haible  <bruno@clisp.org>
51802
51803         Mark 'rmdir' obsolete.
51804         * modules/rmdir (Status, Notice): New sections.
51805         * modules/clean-temp (Depends-on): Add rmdir.
51806         * modules/openat (Depends-on): Likewise.
51807
51808 2008-11-02  Bruno Haible  <bruno@clisp.org>
51809
51810         Mark 'raise' obsolete.
51811         * modules/raise (Status, Notice): New sections.
51812         (Include): Specify <signal.h>.
51813         * modules/stdio (Depends-on): Add raise.
51814         * modules/write (Depends-on): Likewise.
51815
51816 2008-11-02  Bruno Haible  <bruno@clisp.org>
51817
51818         Mark 'memset' obsolete.
51819         * modules/memset (Status, Notice): New sections.
51820
51821 2008-11-02  Bruno Haible  <bruno@clisp.org>
51822
51823         Mark 'memmove' obsolete.
51824         * modules/memmove (Status, Notice): New sections.
51825         * modules/argp (Depends-on): Add memmove.
51826         * modules/argz (Depends-on): Likewise.
51827         * modules/canonicalize (Depends-on): Likewise.
51828         * modules/canonicalize-lgpl (Depends-on): Likewise.
51829         * modules/fts (Depends-on): Likewise.
51830         * modules/getcwd (Depends-on): Likewise.
51831         * modules/human (Depends-on): Likewise.
51832         * modules/regex (Depends-on): Likewise.
51833         * modules/striconveh (Depends-on): Likewise.
51834         * modules/trim (Depends-on): Likewise.
51835         * modules/unistr/u8-move (Depends-on): Likewise.
51836         * modules/unistr/u16-move (Depends-on): Likewise.
51837         * modules/unistr/u32-move (Depends-on): Likewise.
51838
51839 2008-11-02  Bruno Haible  <bruno@clisp.org>
51840
51841         Mark 'memcpy' obsolete.
51842         * modules/memcpy (Status, Notice): New sections.
51843
51844 2008-11-02  Bruno Haible  <bruno@clisp.org>
51845
51846         Mark 'memcmp' obsolete.
51847         * modules/memcmp (Status, Notice): New sections.
51848         * modules/argmatch (Depends-on): Add memchr.
51849         * modules/backupfile (Depends-on): Likewise.
51850         * modules/c-strcasestr (Depends-on): Likewise.
51851         * modules/crypto/des (Depends-on): Likewise.
51852         * modules/csharpcomp (Depends-on): Likewise.
51853         * modules/fnmatch (Depends-on): Likewise.
51854         * modules/git-merge-changelog (Depends-on): Likewise.
51855         * modules/isnand (Depends-on): Likewise.
51856         * modules/isnand-nolibm (Depends-on): Likewise.
51857         * modules/isnanf (Depends-on): Likewise.
51858         * modules/isnanf-nolibm (Depends-on): Likewise.
51859         * modules/isnanl (Depends-on): Likewise.
51860         * modules/isnanl-nolibm (Depends-on): Likewise.
51861         * modules/mbchar (Depends-on): Likewise.
51862         * modules/memcoll (Depends-on): Likewise.
51863         * modules/quotearg (Depends-on): Likewise.
51864         * modules/regex (Depends-on): Likewise.
51865         * modules/relocatable-prog (Depends-on): Likewise.
51866         * modules/same (Depends-on): Likewise.
51867         * modules/signbit (Depends-on): Likewise.
51868         * modules/strcasestr-simple (Depends-on): Likewise.
51869         * modules/unictype/gen-ctype (Depends-on): Likewise.
51870         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51871         * modules/uniname/uniname (Depends-on): Likewise.
51872         * modules/unistr/u8-cmp (Depends-on): Likewise.
51873
51874 2008-11-02  Bruno Haible  <bruno@clisp.org>
51875
51876         Mark 'memchr' obsolete.
51877         * modules/memchr (Status, Notice): New sections.
51878         * modules/argp (Depends-on): Add memchr.
51879         * modules/base64 (Depends-on): Likewise.
51880         * modules/c-strcasestr (Depends-on): Likewise.
51881         * modules/chdir-long (Depends-on): Likewise.
51882         * modules/fnmatch (Depends-on): Likewise.
51883         * modules/getsubopt (Depends-on): Likewise.
51884         * modules/git-merge-changelog (Depends-on): Likewise.
51885         * modules/glob (Depends-on): Likewise.
51886         * modules/strcasestr-simple (Depends-on): Likewise.
51887         * modules/strnlen (Depends-on): Likewise.
51888
51889 2008-11-02  Bruno Haible  <bruno@clisp.org>
51890
51891         Mark 'atexit' obsolete.
51892         * modules/atexit (Status, Notice): New sections.
51893         * modules/chdir-long (Depends-on): Add atexit.
51894         * modules/wait-process (Depends-on): Likewise.
51895
51896 2008-11-02  Bruno Haible  <bruno@clisp.org>
51897
51898         * gnulib-tool: New option --with-obsolete.
51899         (func_usage): Document it.
51900         (func_modules_transitive_closure): Drop obsolete dependencies if
51901         incobsolete is not true.
51902         (func_import): Read and save the incobsolete variable to the cache.
51903
51904 2008-11-02  Bruno Haible  <bruno@clisp.org>
51905
51906         * modules/TEMPLATE-EXTENDED: New field 'Status'.
51907         * gnulib-tool: New option --extract-status.
51908         (func_usage): Document it.
51909         (sed_extract_prog): Recognize it.
51910         (func_get_status): New function.
51911
51912 2008-10-30  Simon Josefsson  <simon@josefsson.org>
51913
51914         * modules/sockets (License): Change from LGPL to LGPLv2+.
51915
51916 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51917
51918         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
51919
51920 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51921
51922         * MODULES.html.sh (Support for systems lacking POSIX:2001):
51923         Mention times and sys_times.
51924         * modules/sys_times, modules/sys_times-tests: New modules.
51925         * modules/times, modules/times-tests: Likewise
51926         * m4/sys_times_h.m4: New file.
51927         * lib/sys_times.in.h: Likewise
51928         * lib/times.c: Likewise.
51929         * tests/test-sys_times.c: Likewise.
51930         * tests/test-times.c: Likewise.
51931         * doc/posix-headers/sys_times.texi: Update.
51932         * doc/posix-functions/times.texi: Update.
51933
51934 2008-10-28  Jim Meyering  <meyering@redhat.com>
51935
51936         * modules/tempname (Depends-on): Add lstat.
51937
51938         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
51939
51940 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51941
51942         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
51943         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
51944         using idiom used elsewhere in gnulib.
51945
51946 2008-10-27  Jim Meyering  <meyering@redhat.com>
51947
51948         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
51949
51950 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51951
51952         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
51953         TESTS_ENVIRONMENT, for shell scripts that needs to call built
51954         programs.
51955         * tests/test-argp-2.sh: Use $EXEEXT when needed.
51956
51957 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51958
51959         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
51960
51961 2008-10-27  Bruno Haible  <bruno@clisp.org>
51962
51963         * tests/test-lstat.c: Include <stdio.h>.
51964
51965 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51966
51967         * modules/lstat-tests: New module.
51968         * tests/test-lstat.c: New file.
51969
51970 2008-10-26  Jim Meyering  <meyering@redhat.com>
51971
51972         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
51973
51974 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51975             Bruno Haible  <bruno@clisp.org>
51976
51977         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
51978         * modules/configmake (Include): Add a note that the include must come
51979         after all system headers.
51980         * lib/javaversion.c: Include configmake.h after all other includes.
51981
51982 2008-10-26  Bruno Haible  <bruno@clisp.org>
51983
51984         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
51985         HAVE_STRUCT_RANDOM_DATA to 1.
51986         (gl_STDLIB_H): Simplify.
51987
51988 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51989
51990         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
51991         substitute HAVE_STRUCT_RANDOM_DATA.
51992         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
51993         random_data.
51994         * modules/stdlib (Makefile.am): Substitute
51995         HAVE_STRUCT_RANDOM_DATA.
51996
51997 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51998
51999         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
52000         * doc/gnulib-intro.texi (Copyright): Likewise.
52001
52002 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52003
52004         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
52005         findings.
52006
52007 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
52008             Bruno Haible  <bruno@clisp.org>
52009
52010         * lib/unistd.in.h: Include <winsock2.h>.
52011         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
52012         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
52013         Provide dummy declarations.
52014         (gethostname): Override.
52015         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
52016         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
52017         gl_PREREQ_SYS_H_WINSOCK2.
52018         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
52019         * doc/posix-functions/gethostname.texi: More details.
52020
52021 2008-10-25  Bruno Haible  <bruno@clisp.org>
52022
52023         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
52024         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
52025         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
52026
52027         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
52028         here ...
52029         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
52030         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
52031         gl_UNISTD_H_DEFAULTS.
52032
52033 2008-10-25  Eric Blake  <ebb9@byu.net>
52034
52035         signbit: avoid spurious compiler failure
52036         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
52037         declarations inside function.
52038
52039 2008-10-24  Simon Josefsson  <simon@josefsson.org>
52040             Bruno Haible  <bruno@clisp.org>
52041
52042         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
52043         * modules/random_r (Depends-on): Add stdint.
52044
52045 2008-10-24  Bruno Haible  <bruno@clisp.org>
52046
52047         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
52048         Eggert.
52049         * modules/strerror (License): Likewise.
52050
52051 2008-10-24  Jim Meyering  <meyering@redhat.com>
52052
52053         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
52054         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
52055
52056 2008-10-24  Eric Blake  <ebb9@byu.net>
52057
52058         getgroups: fix compilation when getgroups is available
52059         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
52060         but with <config.h> override of getgroups disabled.
52061
52062 2008-10-24  Simon Josefsson  <simon@josefsson.org>
52063
52064         * doc/gnulib.texi (Header files): Add note about C++ problems.
52065         Explained by Bruno Haible <bruno@clisp.org>.
52066
52067 2008-10-23  Bruno Haible  <bruno@clisp.org>
52068
52069         Define a dummy SA_NODEFER macro on Interix.
52070         * lib/signal.in.h (SA_NODEFER): Define fallback.
52071         Reported by Aleksey Cheusov <cheusov@tut.by> via
52072         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
52073
52074 2008-10-23  Bruno Haible  <bruno@clisp.org>
52075
52076         * modules/freadahead (License): Change to LGPLv2+.
52077         Suggested by Simon Josefsson.
52078
52079 2008-10-23  Jim Meyering  <meyering@redhat.com>
52080
52081         random_r: new module
52082         * modules/random_r: New file.
52083         * m4/random_r.m4: New file.
52084         * lib/random_r.c: New file, from glibc.
52085         * modules/random_r-tests: New file.
52086         * tests/test-random_r.c: New file.
52087         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
52088          Declare.
52089         (RAND_MAX): Define.
52090         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
52091         * modules/stdlib: Substitute them, too.
52092         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
52093         * doc/glibc-functions/initstate_r.texi: Mention the new module.
52094         * doc/glibc-functions/random_r.texi: Likewise.
52095         * doc/glibc-functions/setstate_r.texi: Likewise.
52096         * doc/glibc-functions/srandom_r.texi: Likewise.
52097         * config/srclist.txt: Mention it.
52098
52099 2008-10-23  David Lutterkort  <lutter@redhat.com>
52100
52101         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
52102         link requirement
52103
52104 2008-10-23  Jim Meyering  <meyering@redhat.com>
52105
52106         selinux-h: mark parameters of stub functions as intentionally unused
52107         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
52108         * lib/se-context.in.h: Likewise.
52109
52110 2008-10-22  Simon Josefsson  <simon@josefsson.org>
52111
52112         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
52113
52114 2008-10-22  Simon Josefsson  <simon@josefsson.org>
52115
52116         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
52117
52118 2008-10-22  Eric Blake  <ebb9@byu.net>
52119
52120         glthread/thread: avoid compiler warning
52121         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
52122         Add unreachable abort to silence compiler.
52123
52124 2008-10-22  Eric Blake  <ebb9@byu.net>
52125
52126         netdb: also supply struct addrinfo for cygwin 1.5.x
52127         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
52128         older cygwin.
52129         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
52130         cygwin.
52131         * doc/posix-headers/netdb.texi (netdb.h): Document this.
52132
52133 2008-10-22  Bruno Haible  <bruno@clisp.org>
52134
52135         * users.txt: Update entry about pspp.
52136
52137 2008-10-21  Bruno Haible  <bruno@clisp.org>
52138
52139         Simplification.
52140         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
52141         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
52142
52143         Simplification.
52144         * lib/ioctl.c (ioctl): Don't undefine.
52145         * lib/socket.c (socket): Don't undefine.
52146
52147         Remove unused module indicator macros.
52148         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
52149         GNULIB_$1 as a C macro.
52150
52151         * doc/posix-functions/close.texi: Undo last change.
52152         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
52153         Windows platforms.
52154
52155 2008-10-21  Bruno Haible  <bruno@clisp.org>
52156
52157         Add gethostname() declaration to <unistd.h>.
52158         * lib/unistd.in.h (gethostname): New declaration.
52159         * lib/gethostname.c: Include <unistd.h>.
52160         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
52161         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
52162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
52163         and HAVE_GETHOSTNAME.
52164         * modules/gethostname (Depends-on): Add unistd.
52165         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52166         (Include): Specify <unistd.h>.
52167         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
52168         HAVE_GETHOSTNAME.
52169         * tests/test-gethostname.c: Include <unistd.h> first.
52170
52171 2008-10-21  Bruno Haible  <bruno@clisp.org>
52172
52173         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
52174         * modules/select-tests (Depends-on): Likewise.
52175         Reported by Simon Josefsson.
52176
52177 2008-10-21  Simon Josefsson  <simon@josefsson.org>
52178
52179         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
52180         * lib/accept.c: New file, based on winsock.c.
52181         * lib/bind.c: New file, based on winsock.c.
52182         * lib/connect.c: New file, based on winsock.c.
52183         * lib/getpeername.c: New file, based on winsock.c.
52184         * lib/getsockname.c: New file, based on winsock.c.
52185         * lib/getsockopt.c: New file, based on winsock.c.
52186         * lib/ioctl.c: New file, based on winsock.c.
52187         * lib/listen.c: New file, based on winsock.c.
52188         * lib/recv.c: New file, based on winsock.c.
52189         * lib/recvfrom.c: New file, based on winsock.c.
52190         * lib/send.c: New file, based on winsock.c.
52191         * lib/sendto.c: New file, based on winsock.c.
52192         * lib/setsockopt.c: New file, based on winsock.c.
52193         * lib/shutdown.c: New file, based on winsock.c.
52194         * lib/socket.c: New file, based on winsock.c.
52195         * lib/w32sock.h: New file, based on winsock.c.
52196         * lib/winsock.c: Remove file.
52197         * modules/accept: Likewise.
52198         * modules/bind: Likewise.
52199         * modules/connect: Likewise.
52200         * modules/getpeername: Likewise.
52201         * modules/getsockname: Likewise.
52202         * modules/getsockopt: Likewise.
52203         * modules/ioctl: Likewise.
52204         * modules/listen: Likewise.
52205         * modules/recv: Likewise.
52206         * modules/recvfrom: Likewise.
52207         * modules/send: Likewise.
52208         * modules/sendto: Likewise.
52209         * modules/setsockopt: Likewise.
52210         * modules/shutdown: Likewise.
52211         * modules/socket: Use socket.c instead of winsock.c.
52212         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
52213         * doc/posix-functions/accept.texi: Doc fix.
52214         * doc/posix-functions/bind.texi: Doc fix.
52215         * doc/posix-functions/close.texi: Doc fix.
52216         * doc/posix-functions/connect.texi: Doc fix.
52217         * doc/posix-functions/getpeername.texi: Doc fix.
52218         * doc/posix-functions/getsockname.texi: Doc fix.
52219         * doc/posix-functions/getsockopt.texi: Doc fix.
52220         * doc/posix-functions/ioctl.texi: Doc fix.
52221         * doc/posix-functions/listen.texi: Doc fix.
52222         * doc/posix-functions/recv.texi: Doc fix.
52223         * doc/posix-functions/recvfrom.texi: Doc fix.
52224         * doc/posix-functions/send.texi: Doc fix.
52225         * doc/posix-functions/sendto.texi: Doc fix.
52226         * doc/posix-functions/setsockopt.texi: Doc fix.
52227         * doc/posix-functions/shutdown.texi: Doc fix.
52228         * doc/posix-functions/socket.texi: Doc fix.
52229
52230 2008-10-20  Bruno Haible  <bruno@clisp.org>
52231
52232         Take into account the role of SIGABRT_COMPAT on Windows 2008.
52233         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
52234         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
52235         as an alias for SIGABRT.
52236         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
52237         (sigaction): Map it to SIGABRT.
52238         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
52239
52240 2008-10-20  Bruno Haible  <bruno@clisp.org>
52241
52242         * lib/fts.c: Don't include lstat.h.
52243         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
52244
52245         Move the lstat() declaration to <sys/stat.h>.
52246         * lib/lstat.h: Remove file.
52247         * lib/sys_stat.in.h: Add special invocation convention.
52248         (lstat): New declaration.
52249         * lib/lstat.c (orig_lstat): New function.
52250         (rpl_lstat): Use orig_lstat instead of lstat.
52251         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
52252         AC_C_INLINE. Set REPLACE_LSTAT.
52253         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
52254         and REPLACE_LSTAT.
52255         * modules/lstat (Files): Remove lib/lstat.h.
52256         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
52257         (Include): Specify <sys/stat.h> instead of lstat.h.
52258         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
52259         REPLACE_LSTAT.
52260         * NEWS: Mention the change.
52261
52262 2008-10-20  Bruno Haible  <bruno@clisp.org>
52263
52264         * modules/posix_spawn-tests: New file.
52265         * tests/test-posix_spawn3.c: New file.
52266
52267 2008-10-20  Bruno Haible  <bruno@clisp.org>
52268
52269         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
52270         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
52271         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
52272         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
52273         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
52274
52275 2008-10-20  Bruno Haible  <bruno@clisp.org>
52276
52277         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
52278         of posix_spawn on AIX 5.3.
52279
52280 2008-10-20  Bruno Haible  <bruno@clisp.org>
52281
52282         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
52283
52284 2008-10-20  Bruno Haible  <bruno@clisp.org>
52285
52286         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
52287         of AC_LANG_PROGRAM.
52288
52289 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52290
52291         * lib/netdb.in.h: Don't define GNU specific constants until they
52292         are supported or needed.  Reported by Bruno Haible
52293         <bruno@clisp.org>.
52294
52295 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52296
52297         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
52298
52299 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52300
52301         * lib/getaddrinfo.h: Remove file.
52302         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
52303         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
52304         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
52305         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
52306         * modules/netdb: Substitute GNULIB_GETADDRINFO.
52307         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
52308         * tests/test-getaddrinfo.c: Likewise.
52309         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
52310         * NEWS: Mention change.
52311
52312 2008-10-19  Bruno Haible  <bruno@clisp.org>
52313
52314         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
52315
52316 2008-10-19  Bruno Haible  <bruno@clisp.org>
52317
52318         * lib/wait-process.c: Include simply <sys/wait.h>.
52319         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
52320         WIFSTOPPED): Remove fallback definitions.
52321         * modules/wait-process (Depends-on): Add sys_wait.
52322
52323         New module 'sys_wait'.
52324         * modules/sys_wait: New file.
52325         * lib/sys_wait.in.h: New file, partially copied from
52326         lib/wait-process.c.
52327         * m4/sys_wait_h.m4: New file.
52328         * doc/posix-headers/sys_wait.texi: Mention the new module.
52329
52330 2008-10-19  Bruno Haible  <bruno@clisp.org>
52331
52332         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
52333
52334 2008-10-19  Bruno Haible  <bruno@clisp.org>
52335
52336         Assume that waitpid() fills an 'int' status, not a 'union wait'.
52337         * lib/wait-process.c (WAIT_T): Remove type.
52338         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
52339         (wait_subprocess): Update.
52340
52341 2008-10-19  Bruno Haible  <bruno@clisp.org>
52342
52343         New module 'atoll'.
52344         * modules/atoll: New file.
52345         * lib/stdlib.in.h (atoll): New declaration.
52346         * lib/atoll.c: New file, from glibc with modifications.
52347         * m4/atoll.m4: New file.
52348         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
52349         HAVE_ATOLL.
52350         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
52351         * doc/posix-functions/atoll.texi: Mention the new module.
52352
52353 2008-10-19  Bruno Haible  <bruno@clisp.org>
52354
52355         Add strtoull() declaration to <stdlib.h>.
52356         * lib/stdlib.in.h (strtoull): New declaration.
52357         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
52358         Set HAVE_STRTOULL.
52359         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
52360         HAVE_STRTOULL.
52361         * modules/strtoull (Depends-on): Add stdlib.
52362         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52363         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
52364         HAVE_STRTOULL.
52365
52366 2008-10-19  Bruno Haible  <bruno@clisp.org>
52367
52368         Add strtoll() declaration to <stdlib.h>.
52369         * lib/stdlib.in.h (strtoll): New declaration.
52370         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
52371         Set HAVE_STRTOLL.
52372         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
52373         HAVE_STRTOLL.
52374         * modules/strtoll (Depends-on): Add stdlib.
52375         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52376         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
52377
52378 2008-10-19  Bruno Haible  <bruno@clisp.org>
52379
52380         * modules/bcopy (Depends-on): Add strings.
52381         (Include): Specify <strings.h>.
52382
52383 2008-10-19  Bruno Haible  <bruno@clisp.org>
52384
52385         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
52386
52387 2008-10-19  Bruno Haible  <bruno@clisp.org>
52388
52389         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
52390         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
52391         mingw.
52392
52393 2008-10-19  Bruno Haible  <bruno@clisp.org>
52394
52395         * lib/atanl.c: Don't include isnanl.h.
52396         * lib/cosl.c: Likewise.
52397         * lib/ldexpl.c: Likewise.
52398         * lib/logl.c: Likewise.
52399         * lib/sinl.c: Likewise.
52400         * lib/sqrtl.c: Likewise.
52401         * lib/tanl.c: Likewise.
52402
52403         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
52404         * lib/isnanf.h: Remove file.
52405         * lib/isnand.h: Remove file.
52406         * lib/isnanl.h: Remove file.
52407         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
52408         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
52409         macros.
52410         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
52411         HAVE_ISNANF, don't define it as a C macro.
52412         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
52413         HAVE_ISNAND, don't define it as a C macro.
52414         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
52415         HAVE_ISNANL, don't define it as a C macro.
52416         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
52417         HAVE_ISNAN[FDL].
52418         * modules/isnanf (Files): Remove lib/isnanf.h.
52419         (Depends-on): Add math.
52420         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52421         (Include): Specify <math.h> instead of isnanf.h.
52422         * modules/isnand (Files): Remove lib/isnand.h.
52423         (Depends-on): Add math.
52424         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52425         (Include): Specify <math.h> instead of isnand.h.
52426         * modules/isnanl (Files): Remove lib/isnanl.h.
52427         (Depends-on): Add math.
52428         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52429         (Include): Specify <math.h> instead of isnanl.h.
52430         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
52431         HAVE_ISNAN[FDL].
52432         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
52433         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
52434         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
52435         * NEWS: Mention the change.
52436
52437 2008-10-18  Bruno Haible  <bruno@clisp.org>
52438
52439         Add getusershell(), setusershell(), endusershell() declarations to
52440         <unistd.h>.
52441         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
52442         declarations.
52443         * lib/getusershell.c: Include unistd.h.
52444         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
52445         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
52446         HAVE_GETUSERSHELL.
52447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
52448         and HAVE_GETUSERSHELL.
52449         * modules/getusershell (Depends-on): Add unistd, extensions.
52450         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52451         (Include): Specify <unistd.h>.
52452         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
52453         HAVE_GETUSERSHELL.
52454
52455 2008-10-18  Bruno Haible  <bruno@clisp.org>
52456
52457         Add a getloadavg() declaration to <stdlib.h>.
52458         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
52459         getloadavg declaration.
52460         (getloadavg): New declaration.
52461         * lib/getloadavg.c: Include <stdlib.h> first.
52462         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
52463         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
52464         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
52465         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
52466         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
52467         * modules/getloadavg (Depends-on): Add stdlib, extensions.
52468         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52469         (Include): Specify <stdlib.h>.
52470         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
52471         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
52472
52473 2008-10-18  Bruno Haible  <bruno@clisp.org>
52474
52475         * lib/dirchownmod.c: Don't include lchmod.h.
52476
52477         Move the lchmod() declaration to <sys/stat.h>.
52478         * lib/lchmod.h: Remove file.
52479         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
52480         (lchmod): New declaration, moved here from lib/lchown.h.
52481         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
52482         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
52483         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
52484         and HAVE_LCHMOD.
52485         * modules/lchmod (Files): Remove lib/lchmod.h.
52486         (Depends-on): Add sys_stat, extensions.
52487         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
52488         (Include): Specify <sys/stat.h> instead of lchmod.h.
52489         * modules/sys_stat (Depends-on): Add link-warning.
52490         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
52491         definition of GL_LINK_WARNING.
52492         * NEWS: Mention the change.
52493
52494 2008-10-18  Bruno Haible  <bruno@clisp.org>
52495
52496         * lib/fchdir.c: Don't include dirfd.h.
52497         * lib/fts.c: Likewise.
52498         * lib/getcwd.c: Likewise.
52499         * lib/glob.c: Likewise.
52500
52501         Move the dirfd() declaration to <dirent.h>.
52502         * lib/dirfd.h: Remove file.
52503         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
52504         (dirfd): New declaration.
52505         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
52506         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
52507         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
52508         HAVE_DECL_DIRFD.
52509         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
52510         HAVE_DECL_DIRFD.
52511         * modules/dirfd (Files): Remove lib/dirfd.h.
52512         (Depends-on): Add dirent, extensions.
52513         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
52514         (Include): Specify <dirent.h> instead of dirfd.h.
52515         * modules/dirent (Depends-on): Add link-warning.
52516         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
52517         definition of GL_LINK_WARNING.
52518         * NEWS: Mention the change.
52519
52520 2008-10-18  Bruno Haible  <bruno@clisp.org>
52521
52522         Move the euidaccess() declaration to <unistd.h>.
52523         * lib/euidaccess.h: Remove file.
52524         * lib/unistd.in.h (euidaccess): New declaration.
52525         * lib/euidaccess.c: Don't include euidaccess.h.
52526         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
52527         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
52528         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
52529         and HAVE_EUIDACCESS.
52530         * modules/euidaccess (Files): Remove lib/euidaccess.h.
52531         (Depends-on): Add unistd.
52532         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52533         (Include): Specify <unistd.h> instead of euidaccess.h.
52534         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
52535         HAVE_EUIDACCESS.
52536         * NEWS: Mention the change.
52537
52538 2008-10-18  Bruno Haible  <bruno@clisp.org>
52539
52540         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
52541
52542         Move the getdomainname() declaration to <unistd.h>.
52543         * lib/getdomainname.h: Remove file.
52544         * lib/unistd.in.h (getdomainname): New declaration.
52545         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
52546         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
52547         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
52548         HAVE_GETDOMAINNAME.
52549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52550         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
52551         * modules/getdomainname (Files): Remove lib/getdomainname.h.
52552         (Depends-on): Add unistd, extensions.
52553         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52554         (Includes): Specify <unistd.h> instead of getdomainname.h.
52555         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
52556         HAVE_GETDOMAINNAME.
52557         * NEWS: Mention the change.
52558
52559 2008-10-18  Bruno Haible  <bruno@clisp.org>
52560
52561         * modules/dirent: New file.
52562         * m4/dirent_h.m4: New file.
52563         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
52564         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
52565         * modules/fchdir (Files): Remove lib/dirent.in.h.
52566         (Depends-on): Add dirent.
52567         (Makefile.am): Move rules to modules/dirent.
52568         * doc/posix-headers/dirent.texi: Mention the new module.
52569
52570 2008-10-18  Bruno Haible  <bruno@clisp.org>
52571
52572         Avoid -Wunused-parameter warnings in public gnulib header files.
52573         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
52574         macro.
52575         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
52576
52577 2008-10-18  Bruno Haible  <bruno@clisp.org>
52578
52579         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
52580         * doc/glibc-functions/error.texi: Mention the module 'error'.
52581         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
52582         * doc/glibc-functions/getdomainname.texi: Mention the module
52583         'getdomainname'.
52584         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
52585         * doc/glibc-functions/getpagesize.texi: Mention the module
52586         'getpagesize'.
52587         * doc/glibc-functions/getusershell.texi: Mention the module
52588         'getusershell'.
52589         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
52590         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
52591         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
52592         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
52593         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
52594         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
52595         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
52596         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
52597         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
52598         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
52599         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
52600         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
52601         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
52602         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
52603
52604 2008-10-17  Bruno Haible  <bruno@clisp.org>
52605
52606         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
52607         HP-UX and IRIX, use -0.0L.
52608         * tests/test-ceill.c (minus_zero): Likewise.
52609         * tests/test-floorl.c (minus_zero): Likewise.
52610         * tests/test-frexpl.c (minus_zero): Likewise.
52611         * tests/test-isnan.c (minus_zerol): Likewise.
52612         * tests/test-isnanl.h (minus_zero): Likewise.
52613         * tests/test-ldexpl.c (minus_zero): Likewise.
52614         * tests/test-roundl.c (minus_zero): Likewise.
52615         * tests/test-signbit.c (minus_zerol): Likewise.
52616         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52617         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52618         * tests/test-truncl.c (minus_zero): Likewise.
52619         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52620         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52621         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
52622         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
52623
52624 2008-10-17  Bruno Haible  <bruno@clisp.org>
52625
52626         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
52627         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
52628         that it gets activated only for gcc >= 3.0.
52629         * lib/dirent.in.h: Likewise.
52630         * lib/errno.in.h: Likewise.
52631         * lib/fcntl.in.h: Likewise.
52632         * lib/float.in.h: Likewise.
52633         * lib/iconv.in.h: Likewise.
52634         * lib/inttypes.in.h: Likewise.
52635         * lib/locale.in.h: Likewise.
52636         * lib/math.in.h: Likewise.
52637         * lib/netdb.in.h: Likewise.
52638         * lib/netinet_in.in.h: Likewise.
52639         * lib/search.in.h: Likewise.
52640         * lib/signal.in.h: Likewise.
52641         * lib/spawn.in.h: Likewise.
52642         * lib/stdarg.in.h: Likewise.
52643         * lib/stdint.in.h: Likewise.
52644         * lib/stdio.in.h: Likewise.
52645         * lib/stdlib.in.h: Likewise.
52646         * lib/string.in.h: Likewise.
52647         * lib/strings.in.h: Likewise.
52648         * lib/sys_file.in.h: Likewise.
52649         * lib/sys_ioctl.in.h: Likewise.
52650         * lib/sys_select.in.h: Likewise.
52651         * lib/sys_socket.in.h: Likewise.
52652         * lib/sys_stat.in.h: Likewise.
52653         * lib/sys_time.in.h: Likewise.
52654         * lib/sysexits.in.h: Likewise.
52655         * lib/time.in.h: Likewise.
52656         * lib/unistd.in.h: Likewise.
52657         * lib/wchar.in.h: Likewise.
52658         * lib/wctype.in.h: Likewise.
52659         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52660
52661 2008-10-17  Jim Meyering  <meyering@redhat.com>
52662
52663         ignore-value: don't depend on inline module
52664         * modules/ignore-value (Depends-on): Remove 'inline'.
52665         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
52666         Suggestion from Bruno Haible.
52667
52668 2008-10-17  Bruno Haible  <bruno@clisp.org>
52669
52670         New implementation of condition variables for Win32.
52671         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
52672         (gl_linked_waitqueue_t): New type.
52673         (gl_cond_t): Use it.
52674         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
52675         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
52676         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
52677         (glthread_cond_init_func, glthread_cond_wait_func,
52678         glthread_cond_timedwait_func, glthread_cond_signal_func,
52679         glthread_cond_broadcast_func, glthread_cond_destroy_func):
52680         Reimplemented on the basis of gl_linked_waitqueue_t.
52681         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
52682         gl_waitqueue_t.
52683         (gl_rwlock_t): Update.
52684         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
52685
52686 2008-10-17  Simon Josefsson  <simon@josefsson.org>
52687
52688         * modules/recvfrom (Depends-on): Add dependency on getpeername.
52689         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52690
52691 2008-10-17  Jim Meyering  <meyering@redhat.com>
52692
52693         ignore-value: new module
52694         * modules/ignore-value: New file.
52695         * lib/ignore-value.h: New file.
52696         * MODULES.html.sh (Compiler warning management): New section,
52697         just for this module.  More to come.
52698
52699 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52700
52701         open-safer.c: avoid 'signed and unsigned in conditional...' warning
52702         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
52703         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
52704
52705 2008-10-16  Jim Meyering  <meyering@redhat.com>
52706
52707         openat-die.c: avoid 'no previous prototype' warning
52708         * lib/openat-die.c: Include "openat.h".
52709         Reported by Reuben Thomas <rrt@sc3d.org>.
52710
52711 2008-10-16  Simon Josefsson  <simon@josefsson.org>
52712
52713         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
52714         * lib/netdb.in.h: Fix typo.
52715         Reported by Bruno Haible  <bruno@clisp.org>
52716
52717         * lib/netdb.in.h: Include sys/socket.h for platforms without
52718         netdb.h, to get structures like hostent on MinGW.
52719         * modules/netdb (Depends-on): Add sys_socket.
52720
52721 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52722
52723         * modules/netdb, modules/netdb-tests: New file.
52724         * m4/netdb_h.m4: New file.
52725         * lib/netdb.in.h: Add, currently just an empty file pending
52726         definitions.
52727         * tests/test-netdb.c: New file.
52728         * doc/posix-headers/netdb.texi: Mention that we replace it if
52729         needed.
52730         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52731         netdb.
52732
52733 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52734
52735         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
52736         with code.
52737
52738 2008-10-13  Bruno Haible  <bruno@clisp.org>
52739
52740         * lib/glthread/cond.c (glthread_cond_wait_func,
52741         glthread_cond_timedwait_func): Add a comment.
52742
52743 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52744
52745         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
52746         * tests/test-select.c: Likewise,
52747
52748 2008-10-13  Bruno Haible  <bruno@clisp.org>
52749
52750         * lib/glthread/cond.c (glthread_cond_wait_func,
52751         glthread_cond_timedwait_func): Fix variable name.
52752         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52753
52754 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
52755
52756         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
52757         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
52758         struct sockaddr.sa_len.
52759         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
52760
52761 2008-10-13  Simon Josefsson  <simon@josefsson.org>
52762
52763         * build-aux/pmccabe2html: Add css and css_url parameters.
52764
52765 2008-10-12  Bruno Haible  <bruno@clisp.org>
52766
52767         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
52768         calling aclx_get.
52769         Reported by Rainer Tammer <tammer@tammer.net>.
52770
52771 2008-10-12  Bruno Haible  <bruno@clisp.org>
52772
52773         Use msvcrt aware primitives for creation/termination of Win32 threads.
52774         * lib/glthread/thread.c: Include <process.h>.
52775         (glthread_create_func): Use _beginthreadex instead of CreateThread.
52776         (wrapper_func): Update signature.
52777         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
52778
52779 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52780             Bruno Haible  <bruno@clisp.org>
52781
52782         Provide a Win32 implementation of the 'cond' module.
52783         * lib/glthread/cond.h [USE_WIN32]: New implementation.
52784         * lib/glthread/cond.c (glthread_cond_init_func,
52785         glthread_cond_wait_func, glthread_cond_timedwait_func,
52786         glthread_cond_signal_func, glthread_cond_broadcast_func,
52787         glthread_cond_destroy_func) [USE_WIN32]: New functions.
52788         * modules/cond (Dependencies): Add gettimeofday.
52789
52790 2008-10-11  Bruno Haible  <bruno@clisp.org>
52791
52792         Make sleep work on older versions of mingw.
52793         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
52794         only whether it exists.
52795         * doc/posix-functions/sleep.texi: Mention the problem with older
52796         versions of mingw.
52797
52798 2008-10-11  Bruno Haible  <bruno@clisp.org>
52799
52800         New module 'shutdown'.
52801         * modules/shutdown: New file.
52802         * lib/sys_socket.in.h (shutdown): New declaration.
52803         * lib/winsock.c (shutdown): New function.
52804         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
52805         GNULIB_SHUTDOWN.
52806         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
52807         * doc/posix-functions/shutdown.texi: Document the new module.
52808
52809 2008-10-11  Jim Meyering  <meyering@redhat.com>
52810
52811         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
52812
52813 2008-10-11  Bruno Haible  <bruno@clisp.org>
52814
52815         New module 'fclose'.
52816         * modules/fclose: New file.
52817         * lib/stdio.in.h (fclose): New declaration.
52818         * lib/fclose.c: New file.
52819         * m4/fclose.m4: New file.
52820         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
52821         REPLACE_FCLOSE.
52822         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
52823         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
52824         REPLACE_FCLOSE.
52825         * modules/close (Depends-on): fclose.
52826         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
52827
52828 2008-10-11  Bruno Haible  <bruno@clisp.org>
52829
52830         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
52831         set errno and don't call _close.
52832
52833 2008-10-10  Bruno Haible  <bruno@clisp.org>
52834
52835         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
52836         ACL, not afterwards. Fixes test failure on Cygwin.
52837
52838 2008-10-09  Ben Pfaff  <blp@gnu.org>
52839
52840         * build-aux/announce-gen: Fix gnulib version related part of usage
52841         message.  Die with a useful error message if no tarballs are
52842         found.
52843
52844 2008-10-10  Jim Meyering  <meyering@redhat.com>
52845
52846         bootstrap: use git's --depth=N option only if it's supported
52847         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
52848         recognize the --depth option.  Reported by Pádraig Brady.
52849
52850 2008-10-09  Bruno Haible  <bruno@clisp.org>
52851
52852         New module 'ioctl'.
52853         * modules/ioctl: New file.
52854         * lib/sys_socket.in.h (ioctl): Remove declaration.
52855         * lib/winsock.c: Include <sys/ioctl.h>.
52856         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
52857         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
52858         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
52859         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
52860         * doc/posix-functions/ioctl.texi: Mention the new module.
52861
52862 2008-10-09  Bruno Haible  <bruno@clisp.org>
52863
52864         New module 'sys_ioctl'.
52865         * lib/sys_ioctl.in.h: New file.
52866         * m4/sys_ioctl_h.m4: New file.
52867         * modules/sys_ioctl: New file.
52868         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
52869
52870 2008-10-09  Bruno Haible  <bruno@clisp.org>
52871
52872         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
52873         * lib/winsock.c: Include <stdarg.h>.
52874         (rpl_ioctl): Change to second argument 'int' and then varargs.
52875
52876 2008-10-09  Bruno Haible  <bruno@clisp.org>
52877
52878         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
52879         when the sys_socket module is present and the system has <winsock2.h>.
52880
52881 2008-10-09  Bruno Haible  <bruno@clisp.org>
52882
52883         * doc/posix-functions/close.texi: Mention module 'close' instead of
52884         module 'sys_socket'.
52885
52886 2008-10-09  Bruno Haible  <bruno@clisp.org>
52887
52888         * doc/glibc-headers/sys_ioctl.texi: New file.
52889         * doc/gnulib.texi: Include it.
52890
52891 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52892             Bruno Haible  <bruno@clisp.org>
52893
52894         Combine the two replacements of 'close'.
52895         * lib/sys_socket.in.h (close): Define to a reminder to include
52896         <unistd.h>.
52897         (_gl_close_fd_maybe_socket): New declaration.
52898         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
52899         * lib/winsock.c (close): Remove undefinition.
52900         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
52901         needed for the gnulib module 'close'.
52902         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
52903         define to an error symbol or to a warning, if suitable.
52904         * lib/close.c: Include <sys/socket.h>.
52905         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
52906         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
52907         UNISTD_H_HAVE_WINSOCK2_H.
52908         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
52909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52910         UNISTD_H_HAVE_WINSOCK2_H.
52911         * modules/sys_socket (Files): Add m4/unistd_h.m4.
52912         (configure.ac): Set a module indicator.
52913         (Makefile.am): Substitute GNULIB_CLOSE.
52914         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
52915         * modules/poll-tests (Depends-on): Add close.
52916         * modules/select-tests (Depends-on): Likewise.
52917
52918 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52919             Bruno Haible  <bruno@clisp.org>
52920
52921         New module 'close'.
52922         * modules/close: New file.
52923         * lib/unistd.in.h (close): Move declaration out of the
52924         FCHDIR_REPLACEMENT scope.
52925         (_gl_unregister_fd): New declaration.
52926         * lib/close.c: New file.
52927         * lib/fchdir.c (rpl_close): Remove function.
52928         * m4/close.m4: New file.
52929         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
52930         close.
52931         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
52932         REPLACE_CLOSE.
52933         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
52934         REPLACE_CLOSE.
52935         * modules/fchdir (Depends-on): Add close.
52936
52937 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52938             Bruno Haible  <bruno@clisp.org>
52939
52940         * lib/fcntl.in.h (open): Simplify conditionals.
52941         (_gl_register_fd): New declaration.
52942         * lib/fchdir.c (rpl_open): Remove function.
52943         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
52944         also.
52945         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
52946         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
52947         open.
52948
52949 2008-10-09  Jim Meyering  <meyering@redhat.com>
52950
52951         GNUmakefile: use the more name-space-friendly "_version"
52952         * top/GNUmakefile (_dummy): Update.
52953         (_version): Rename from "version".
52954
52955 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52956             Bruno Haible  <bruno@clisp.org>
52957
52958         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
52959         rpl_close.
52960         (_gl_register_fd): New function, extracted from rpl_open.
52961         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
52962         (rpl_open, rpl_opendir): Use _gl_register_fd.
52963
52964 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52965
52966         Fix organization of 'open' replacement.
52967         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
52968         (gl_FUNC_OPEN): Use it.
52969         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
52970
52971 2008-10-08  Bruno Haible  <bruno@clisp.org>
52972
52973         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
52974
52975 2008-10-08  Simon Josefsson  <simon@josefsson.org>
52976
52977         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
52978         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
52979         listen).
52980
52981 2008-10-08  Eric Blake  <ebb9@byu.net>
52982
52983         GNUmakefile: add 'make version' target
52984         * top/GNUmakefile (_curr-ver): Split version update rules...
52985         (version): ...into a target.
52986
52987 2008-10-07  Bruno Haible  <bruno@clisp.org>
52988
52989         Use a more portable replacement expression for -0.0L.
52990         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
52991         instead of -0.0L. Fix m4 quotation.
52992
52993         * tests/test-signbit.c: Include <float.h>.
52994         (minus_zero): New variable.
52995         (test_signbitl): Use minus_zero instead of -zero.
52996         * modules/signbit-tests (Depends-on): Add float.
52997
52998         * tests/test-ceill.c: Include <float.h>.
52999         (zero): Remove variable.
53000         (minus_zero): New variable.
53001         (main): Use minus_zero instead of -zero.
53002         * modules/ceill-tests (Depends-on): Add float.
53003
53004         * tests/test-floorl.c: Include <float.h>.
53005         (zero): Remove variable.
53006         (minus_zero): New variable.
53007         (main): Use minus_zero instead of -zero.
53008         * modules/floorl-tests (Depends-on): Add float.
53009
53010         * tests/test-roundl.c: Include <float.h>.
53011         (zero): Remove variable.
53012         (minus_zero): New variable.
53013         (main): Use minus_zero instead of -zero.
53014         * modules/roundl-tests (Depends-on): Add float.
53015
53016         * tests/test-truncl.c: Include <float.h>.
53017         (zero): Remove variable.
53018         (minus_zero): New variable.
53019         (main): Use minus_zero instead of -zero.
53020         * modules/truncl-tests (Depends-on): Add float.
53021
53022         * tests/test-frexpl.c (zero): Remove variable.
53023         (minus_zero): New variable.
53024         (main): Use minus_zero instead of -zero.
53025         * modules/frexpl-tests (Depends-on): Add float.
53026
53027         * tests/test-isnan.c (zerol): Remove variable.
53028         (minus_zerol): New variable.
53029         (test_long_double): Use minus_zerol instead of -zerol.
53030         * modules/isnan-tests (Depends-on): Add float.
53031
53032         * tests/test-isnanl.h (zero): Remove variable.
53033         (minus_zero): New variable.
53034         (main): Use minus_zero instead of -zero.
53035         * modules/isnanl-nolibm-tests (Depends-on): Add float.
53036         * modules/isnanl-tests (Depends-on): Add float.
53037
53038         * tests/test-ldexpl.c (zero): Remove variable.
53039         (minus_zero): New variable.
53040         (main): Use minus_zero instead of -zero.
53041         * modules/ldexpl-tests (Depends-on): Add float.
53042
53043         * tests/test-snprintf-posix.h (zerol): Remove variable.
53044         (minus_zerol): New variable.
53045         (test_function): Use minus_zerol instead of -zerol.
53046         * modules/snprintf-posix-tests (Depends-on): Add float.
53047         * modules/vsnprintf-posix-tests (Depends-on): Add float.
53048
53049         * tests/test-sprintf-posix.h (zerol): Remove variable.
53050         (minus_zerol): New variable.
53051         (test_function): Use minus_zerol instead of -zerol.
53052         * modules/sprintf-posix-tests (Depends-on): Add float.
53053         * modules/vsprintf-posix-tests (Depends-on): Add float.
53054
53055         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
53056         (minus_zerol): New variable.
53057         (test_function): Use minus_zerol instead of -zerol.
53058         * modules/vasnprintf-posix-tests (Depends-on): Add float.
53059
53060         * tests/test-vasprintf-posix.c (zerol): Remove variable.
53061         (minus_zerol): New variable.
53062         (test_function): Use minus_zerol instead of -zerol.
53063         * modules/vasprintf-posix-tests (Depends-on): Add float.
53064
53065 2008-10-07  Simon Josefsson  <simon@josefsson.org>
53066
53067         * MODULES.html.sh (Support for building documentation): Mention
53068         pmccabe2html.  Sort entries.
53069
53070         Add pmccabe2html module, from gnupdf.
53071         * build-aux/pmccabe.css: New file.
53072         * build-aux/pmccabe2html: New file.
53073         * m4/pmccabe2html.m4: New file.
53074         * modules/pmccabe2html: New file.
53075
53076 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
53077
53078         flock: new module
53079         * MODULES.html.sh: Add to list of modules.
53080         * lib/flock.c: flock implementation for Windows and Unix systems
53081         which have fcntl.
53082         * doc/glibc-functions/flock.texi: Update documentation.
53083         * lib/sys_file.in.h: <sys/file.h> header file.
53084         * m4/flock.m4: M4 macros.
53085         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
53086         * modules/flock: flock module.
53087         * modules/flock-tests: flock tests module.
53088         * modules/sys_file: sys/file.h module.
53089         * tests/test-flock.c: test suite for flock.
53090
53091 2008-10-06  Jim Meyering  <meyering@redhat.com>
53092
53093         bootstrap: check for LT_INIT more portably still ;-)
53094         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
53095         Spotted by Bruno Haible.
53096
53097 2008-10-06  Eric Blake  <ebb9@byu.net>
53098
53099         test-signbit: avoid tripping Irix cc bug on -0.0L
53100         * tests/test-signbit.c (minus_zerol): Delete, and replace with
53101         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
53102         entire testsuite consistent and avoids an Irix 6.2 bug.
53103
53104 2008-10-05  Bruno Haible  <bruno@clisp.org>
53105             Jim Meyering  <jim@meyering.net>
53106
53107         Add an option for ignoring EPIPE during close_stdout.
53108         * lib/closeout.h: Include <stdbool.h>.
53109         (close_stdout_set_ignore_EPIPE): New declaration.
53110         * lib/closeout.c: Include <stdbool.h>.
53111         (ignore_EPIPE): New variable.
53112         (close_stdout_set_ignore_EPIPE): New function.
53113         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
53114         * lib/close-stream.c (close_stream): Mention the possible EPIPE
53115         failure.
53116         * modules/closeout (Depends-on): Add stdbool.
53117
53118 2008-10-05  Bruno Haible  <bruno@clisp.org>
53119
53120         * modules/accept: New file.
53121         * modules/bind: New file.
53122         * modules/connect: New file.
53123         * modules/getpeername: New file.
53124         * modules/getsockname: New file.
53125         * modules/getsockopt: New file.
53126         * modules/listen: New file.
53127         * modules/recv: New file.
53128         * modules/recvfrom: New file.
53129         * modules/send: New file.
53130         * modules/sendto: New file.
53131         * modules/setsockopt: New file.
53132         * modules/socket: New file.
53133         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
53134         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
53135         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
53136         the particular module is requested. Add a link warning when the
53137         particular module is not requested.
53138         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
53139         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
53140         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
53141         the particular module is requested.
53142         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
53143         gl_SYS_SOCKET_H_DEFAULTS): New macros.
53144         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
53145         * modules/sys_socket (Depends-on): Add link-warning.
53146         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
53147         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
53148         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
53149         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
53150         GL_LINK_WARNING.
53151         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
53152         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
53153         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
53154         * doc/posix-functions/getpeername.texi: Mention the new module
53155         'getpeername'.
53156         * doc/posix-functions/getsockname.texi: Mention the new module
53157         'getsockname'.
53158         * doc/posix-functions/getsockopt.texi: Mention the new module
53159         'getsockopt'.
53160         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
53161         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
53162         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
53163         * doc/posix-functions/send.texi: Mention the new module 'send'.
53164         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
53165         * doc/posix-functions/setsockopt.texi: Mention the new module
53166         'setsockopt'.
53167         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
53168         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
53169         listen, connect, accept.
53170         * modules/select-tests (Depends-on): Likewise.
53171
53172 2008-10-05  Bruno Haible  <bruno@clisp.org>
53173
53174         * lib/winsock.c (strerror): Remove unused #undef.
53175         (rpl_close): Remove unused local variable.
53176
53177         * modules/sys_socket (Depends-on); Add errno.
53178
53179 2008-10-05  Bruno Haible  <bruno@clisp.org>
53180
53181         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
53182         (select): Add a link warning when the 'select' module is not used.
53183         * modules/sys_select (Depends-on): Add link-warning.
53184         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
53185         Suggested by Paolo Bonzini.
53186
53187 2008-10-05  Jim Meyering  <meyering@redhat.com>
53188
53189         bootstrap: check for LT_INIT more portably
53190         * build-aux/bootstrap: Avoid using grep -E, since it's not
53191         portable enough.  Suggestion from Bruno Haible.
53192
53193 2008-10-05  Bruno Haible  <bruno@clisp.org>
53194
53195         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
53196         as being fixed by gnulib.
53197
53198 2008-10-05  Bruno Haible  <bruno@clisp.org>
53199
53200         * modules/select-tests: New file, mostly copied from
53201         modules/sys_select-tests.
53202         * tests/test-select.c: New file, mostly copied from
53203         tests/test-sys_select.c.
53204         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
53205         * modules/sys_select-tests (Depends-on): Remove all dependencies.
53206         (Makefile.am): Remove test_sys_select_LDADD.
53207
53208         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
53209         to an undefined symbol, for an error message.
53210         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
53211         (gl_SYS_SELECT_H_DEFAULTS): New macro.
53212         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
53213         winsock-select.c here.
53214         * modules/sys_select (Files): Remove lib/winsock-select.c.
53215         (Depends-on): Remove alloca.
53216         (Makefile.am): Substitute GNULIB_SELECT.
53217         * modules/select: New file.
53218         * doc/posix-functions/select.texi: Update.
53219
53220 2008-10-05  Bruno Haible  <bruno@clisp.org>
53221
53222         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
53223         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
53224         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
53225         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
53226         getdtablesize.
53227         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
53228         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
53229
53230 2008-10-05  Bruno Haible  <bruno@clisp.org>
53231
53232         * modules/getdtablesize-tests: New file.
53233         * tests/test-getdtablesize.c: New file.
53234
53235         New module 'getdtablesize'.
53236         * lib/unistd.in.h (getdtablesize): New declaration.
53237         * lib/getdtablesize.c: New file.
53238         * m4/getdtablesize.m4: New file.
53239         * modules/getdtablesize: New file.
53240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53241         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
53242         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
53243         HAVE_GETDTABLESIZE.
53244         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
53245
53246 2008-10-05  Bruno Haible  <bruno@clisp.org>
53247
53248         * modules/sched (Makefile.am): Fix typo.
53249         Reported by Simon Josefsson.
53250
53251 2008-10-05  Jim Meyering  <meyering@redhat.com>
53252
53253         bootstrap: check for LT_INIT, too
53254         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
53255         are deprecated.  Suggestion from Ralf Wildenhues.
53256
53257 2008-10-05  Bruno Haible  <bruno@clisp.org>
53258
53259         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
53260         overriding them by ours.
53261         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
53262
53263 2008-10-05  Jim Meyering  <meyering@redhat.com>
53264
53265         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
53266         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
53267         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
53268
53269 2008-10-04  Bruno Haible  <bruno@clisp.org>
53270
53271         * modules/dup2 (License): Change to LGPLv2+.
53272         * modules/sleep (License): Likewise.
53273         * modules/perror (License): Likewise.
53274         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
53275         Blake.
53276         * modules/signal (License): Likewise.
53277         * modules/sigprocmask (License): Likewise.
53278         * modules/raise (License): Change to LGPLv2+, with approval by Jim
53279         Meyering.
53280
53281 2008-10-04  Bruno Haible  <bruno@clisp.org>
53282
53283         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
53284         Reported by Rainer Tammer <tammer@tammer.net>.
53285
53286 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
53287             Bruno Haible  <bruno@clisp.org>
53288
53289         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
53290         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
53291         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
53292
53293 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
53294
53295         filevercmp: new module
53296         * lib/filevercmp.h: New function filevercmp comparing version strings.
53297         * lib/filevercmp.c: Implementation of filevercmp function.
53298         * modules/filevercmp: Module metadata.
53299         * tests/test-filevercmp.c: Unit test for new module.
53300         * modules/filevercmp-tests: Unit test metadata.
53301         * MODULES.html.sh: Add filevercmp module.
53302
53303 2008-10-03  Bruno Haible  <bruno@clisp.org>
53304
53305         * lib/c-ctype.h: Add comment.
53306         Reported by Jim Meyering.
53307
53308 2008-10-02  Bruno Haible  <bruno@clisp.org>
53309
53310         * modules/posix_spawn-internal (Depends-on): Add 'open'.
53311
53312 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53313
53314         * build-aux/bootstrap: Allow renaming bootstrap, and change the
53315         name of bootstrap.conf accordingly.
53316
53317 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53318
53319         * build-aux/bootstrap: Install git-merge-changelog configuration
53320         items into .gitconfig if needed.
53321
53322 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53323
53324         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
53325         git repository, and initialize/update it accordingly.
53326
53327 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
53328
53329         * modules/fsync-tests: New file.
53330         * tests/test-fsync.c: New file.
53331
53332         New module 'fsync'.
53333         * lib/fsync.c: New file.
53334         * m4/fsync.m4: New file.
53335         * modules/fsync: New file.
53336         * lib/unistd.in.h (fsync): New declaration.
53337         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
53338         GNULIB_FSYNC and HAVE_FSYNC.
53339         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
53340         * MODULES.html.sh (posix_functions): Add fsync.
53341         * doc/posix-functions/fsync.texi: Mention the new module.
53342
53343 2008-10-02  Jim Meyering  <meyering@redhat.com>
53344
53345         fts.c: sync with similar code from coreutils' remove.c
53346         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
53347         Guard also with "#if defined __linux__", since for now at least,
53348         this code is Linux-kernel-specific.
53349
53350 2008-10-02  Jim Meyering  <meyering@redhat.com>
53351
53352         fts: bug fixes
53353         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
53354         Include <sys/vfs.h>, not <sys/statfs.h>.
53355
53356         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
53357         Include <sys/vfs.h>, not <sys/statfs.h>.
53358
53359 2008-10-01  Bruno Haible  <bruno@clisp.org>
53360
53361         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
53362         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
53363         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
53364         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
53365         * doc/posix-functions/posix_spawnp.texi: Likewise.
53366         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
53367         whether posix_spawn actually works.
53368         * m4/pipe.m4 (gl_PIPE): Likewise.
53369         * modules/execute (Files): Add m4/posix_spawn.m4.
53370         * modules/pipe (Files): Add m4/posix_spawn.m4.
53371         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
53372
53373 2008-10-01  Jim Meyering  <meyering@redhat.com>
53374
53375         remove trailing spaces
53376         * NEWS: Likewise.
53377         * lib/poll.c (poll): Likewise.
53378         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
53379         * lib/winsock.c (rpl_close): Likewise.
53380         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
53381         * modules/yield: Likewise.
53382         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
53383         * tests/test-sys_select.c (connect_to_socket): Likewise.
53384
53385         fts.c: adjust a new interface to be more generally useful
53386         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
53387         (fts_build): Adjust caller.
53388
53389 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53390
53391         * modules/cond-tests: New file.
53392         * tests/test-cond.c: New file.
53393
53394 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53395             Bruno Haible  <bruno@clisp.org>
53396
53397         * modules/cond (Dependencies): Add errno, time.
53398         * lib/glthread/cond.h: Include <time.h>.
53399         (gl_cond_define, gl_cond_define_initialized): Use the same definition
53400         across platforms.
53401
53402 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53403             Bruno Haible  <bruno@clisp.org>
53404
53405         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
53406
53407 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53408             Bruno Haible  <bruno@clisp.org>
53409
53410         * modules/tls-tests (Depends-on): Add thread, yield.
53411         (configure.ac): Remove all checks.
53412         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
53413         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
53414         gl_thread_self): Remove definitions. Include glthread/thread.h and
53415         glthread/yield.h instead.
53416         (test_tls): Pass an additional NULL argument to gl_thread_join.
53417
53418 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53419             Bruno Haible  <bruno@clisp.org>
53420
53421         * modules/lock-tests (Depends-on): Add thread, yield.
53422         (configure.ac): Remove all checks.
53423         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
53424         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
53425         gl_thread_self): Remove definitions. Include glthread/thread.h and
53426         glthread/yield.h instead.
53427         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
53428         additional NULL argument to gl_thread_join.
53429
53430 2008-09-30  Bruno Haible  <bruno@clisp.org>
53431
53432         Fix the Win32 implementation of the 'thread' module.
53433         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
53434         pointer type.
53435         (gl_thread_self): Invoke gl_thread_self_func.
53436         (gl_thread_self_func): New declaration.
53437         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
53438         (do_init_self_key, init_self_key): New functions.
53439         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
53440         Remove some fields.
53441         (running_threads, running_lock): Remove variables.
53442         (get_current_thread_handle): New function.
53443         (gl_thread_self_func, wrapper_func, glthread_create_func,
53444         glthread_join_func, gl_thread_exit_func): Largely rewritten and
53445         simplified.
53446
53447 2008-09-30  Bruno Haible  <bruno@clisp.org>
53448
53449         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
53450         files.
53451
53452 2008-09-30  Jim Meyering  <meyering@redhat.com>
53453
53454         fts.m4: correct the test for statfs.f_type
53455         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
53456         when checking for statfs.f_type.
53457
53458 2008-09-15  Simon Josefsson  <simon@josefsson.org>
53459
53460         tests: avoid some compiler warnings
53461         * tests/test-memchr.c (main): Pass NULL indirectly.
53462         * tests/test-getdate.c (main): Remove unused variable 'ret'.
53463
53464 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
53465
53466         getdate.y: disallow countable dayshifts like "4 yesterday ago"
53467         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
53468         exactly specified dayshifts.
53469         (dayshift): New rule.
53470         (rel): Add dayshift.
53471         (relative_time_table) [tomorrow, yesterday, today, now]:
53472         Use tDAY_SHIFT in place of tDAY_UNIT.
53473         * tests/test-getdate.c: Add tests for now-disallowed countable
53474         dayshifts, e.g., "4 yesterday ago".
53475
53476 2008-09-29  Bruno Haible  <bruno@clisp.org>
53477
53478         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
53479         * tests/test-posix_spawn1.in.sh: Renamed from
53480         tests/test-posix_spawn.in.sh.
53481         * tests/test-posix_spawn2.c: New file.
53482         * tests/test-posix_spawn2.in.sh: New file.
53483         * modules/posix_spawnp-tests (Files): Update.
53484         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
53485
53486 2008-09-29  Bruno Haible  <bruno@clisp.org>
53487
53488         Propagate effects of putenv/setenv/unsetenv to child processes.
53489         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
53490         * lib/pipe.c (create_pipe): Likewise.
53491
53492 2008-09-29  Bruno Haible  <bruno@clisp.org>
53493
53494         Enable use of shell scripts as executables in mingw.
53495         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
53496         run the program as a shell script.
53497         * lib/pipe.c (create_pipe): Likewise.
53498         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
53499         resulting array.
53500
53501 2008-09-29  Eric Blake  <ebb9@byu.net>
53502
53503         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
53504
53505 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
53506
53507         * doc/posix-functions/accept.texi: Update mingw problems.
53508         * doc/posix-functions/bind.texi: Update mingw problems.
53509         * doc/posix-functions/close.texi: Update mingw problems.
53510         * doc/posix-functions/connect.texi: Update mingw problems.
53511         * doc/posix-functions/getpeername.texi: Update mingw problems.
53512         * doc/posix-functions/getsockname.texi: Update mingw problems.
53513         * doc/posix-functions/getsockopt.texi: Update mingw problems.
53514         * doc/posix-functions/ioctl.texi: Update mingw problems.
53515         * doc/posix-functions/listen.texi: Update mingw problems.
53516         * doc/posix-functions/recv.texi: Update mingw problems.
53517         * doc/posix-functions/recvfrom.texi: Update mingw problems.
53518         * doc/posix-functions/select.texi: Update mingw problems.
53519         * doc/posix-functions/send.texi: Update mingw problems.
53520         * doc/posix-functions/sendto.texi: Update mingw problems.
53521         * doc/posix-functions/setsockopt.texi: Update mingw problems.
53522         * doc/posix-functions/socket.texi: Update mingw problems.
53523
53524 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
53525             Bruno Haible  <bruno@clisp.org>
53526
53527         * lib/sys_select.in.h: Include sys/time.h.
53528         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
53529         * modules/sys_select: Depend on sys_time.
53530         * tests/test-sys_select.c: Test that sys/select.h defines struct
53531         timeval fully.
53532
53533 2008-09-29  Bruno Haible  <bruno@clisp.org>
53534
53535         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
53536         * lib/sys_select.in.h: Likewise.
53537
53538 2008-09-29  Bruno Haible  <bruno@clisp.org>
53539
53540         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
53541
53542 2008-09-29  Bruno Haible  <bruno@clisp.org>
53543
53544         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
53545         Set LIBSOCKET instead of augmenting LIBS.
53546         * modules/sockets (Link): New section.
53547         * modules/sockets-tests (test_sockets_LDADD): New variable.
53548         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
53549         * modules/poll-tests (test_poll_LDADD): New variable.
53550         * NEWS: Document the change.
53551
53552 2008-09-29  Bruno Haible  <bruno@clisp.org>
53553
53554         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
53555         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
53556         ARPA_INET_H directly.
53557         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
53558
53559 2008-09-28  Bruno Haible  <bruno@clisp.org>
53560
53561         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
53562         from gl_HEADER_SYS_SOCKET.
53563         (gl_HEADER_SYS_SOCKET): Invoke it.
53564         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53565
53566 2008-09-28  Bruno Haible  <bruno@clisp.org>
53567
53568         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
53569         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
53570         Needed on OSF/1 4.0.
53571
53572 2008-09-28  Bruno Haible  <bruno@clisp.org>
53573
53574         Override open more carefully.
53575         * lib/open.c (orig_open): New function.
53576         (rpl_open): Use orig_open instead of open.
53577         * lib/fcntl.in.h: Add special invocation convention.
53578         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
53579         (gl_FUNC_OPEN): Invoke it.
53580
53581         Override freopen more carefully.
53582         * lib/freopen.c (orig_freopen): New function.
53583         (rpl_freopen): Use orig_freopen instead of freopen.
53584         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
53585         (gl_FUNC_FREOPEN): Invoke it.
53586
53587         Override fopen more carefully.
53588         * lib/fopen.c (orig_fopen): New function.
53589         (rpl_fopen): Use orig_fopen instead of fopen.
53590         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
53591         (gl_FUNC_FOPEN): Invoke it.
53592         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
53593
53594 2008-09-28  Bruno Haible  <bruno@clisp.org>
53595
53596         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
53597         SIGPIPE.
53598
53599 2008-09-28  Bruno Haible  <bruno@clisp.org>
53600
53601         * tests/test-sigaction.c (handler, main): Disable the check whether
53602         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
53603         glibc systems with LinuxThreads.
53604
53605 2008-09-28  Bruno Haible  <bruno@clisp.org>
53606
53607         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
53608
53609         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
53610         with AIX xlc.
53611         * lib/fcntl.in.h (open): Likewise.
53612         Reported by Rainer Tammer <tammer@tammer.net>.
53613
53614 2008-09-28  Bruno Haible  <bruno@clisp.org>
53615
53616         * modules/posix_spawnp-tests: New file.
53617         * tests/test-posix_spawn.c: New file.
53618         * tests/test-posix_spawn.in.sh: New file.
53619
53620         New module 'posix_spawnp'.
53621         * modules/posix_spawnp: New file.
53622         * lib/spawnp.c: New file, from GNU libc with modifications.
53623         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
53624
53625         New module 'posix_spawn'.
53626         * modules/posix_spawn: New file.
53627         * lib/spawn.c: New file, from GNU libc with modifications.
53628         * doc/posix-functions/posix_spawn.texi: Mention the new module.
53629
53630         New module 'posix_spawnattr_destroy'.
53631         * modules/posix_spawnattr_destroy: New file.
53632         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
53633         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
53634         module.
53635
53636         New module 'posix_spawnattr_setsigmask'.
53637         * modules/posix_spawnattr_setsigmask: New file.
53638         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
53639         modifications.
53640         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
53641         new module.
53642
53643         New module 'posix_spawnattr_getsigmask'.
53644         * modules/posix_spawnattr_getsigmask: New file.
53645         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
53646         modifications.
53647         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
53648         new module.
53649
53650         New module 'posix_spawnattr_setsigdefault'.
53651         * modules/posix_spawnattr_setsigdefault: New file.
53652         * lib/spawnattr_setdefault.c: New file, from GNU libc with
53653         modifications.
53654         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
53655         new module.
53656
53657         New module 'posix_spawnattr_getsigdefault'.
53658         * modules/posix_spawnattr_getsigdefault: New file.
53659         * lib/spawnattr_getdefault.c: New file, from GNU libc with
53660         modifications.
53661         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
53662         new module.
53663
53664         New module 'posix_spawnattr_setschedpolicy'.
53665         * modules/posix_spawnattr_setschedpolicy: New file.
53666         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
53667         modifications.
53668         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
53669         new module.
53670
53671         New module 'posix_spawnattr_getschedpolicy'.
53672         * modules/posix_spawnattr_getschedpolicy: New file.
53673         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
53674         modifications.
53675         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
53676         new module.
53677
53678         New module 'posix_spawnattr_setschedparam'.
53679         * modules/posix_spawnattr_setschedparam: New file.
53680         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
53681         modifications.
53682         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
53683         new module.
53684
53685         New module 'posix_spawnattr_getschedparam'.
53686         * modules/posix_spawnattr_getschedparam: New file.
53687         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
53688         modifications.
53689         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
53690         new module.
53691
53692         New module 'posix_spawnattr_setpgroup'.
53693         * modules/posix_spawnattr_setpgroup: New file.
53694         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
53695         modifications.
53696         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
53697         module.
53698
53699         New module 'posix_spawnattr_getpgroup'.
53700         * modules/posix_spawnattr_getpgroup: New file.
53701         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
53702         modifications.
53703         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
53704         module.
53705
53706         New module 'posix_spawnattr_setflags'.
53707         * modules/posix_spawnattr_setflags: New file.
53708         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
53709         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
53710         module.
53711
53712         New module 'posix_spawnattr_getflags'.
53713         * modules/posix_spawnattr_getflags: New file.
53714         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
53715         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
53716         module.
53717
53718         New module 'posix_spawnattr_init'.
53719         * modules/posix_spawnattr_init: New file.
53720         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
53721         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
53722         module.
53723
53724         New module 'posix_spawn_file_actions_destroy'.
53725         * modules/posix_spawn_file_actions_destroy: New file.
53726         * lib/spawn_faction_destroy.c: New file, from GNU libc with
53727         modifications.
53728         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
53729         the new module.
53730
53731         New module 'posix_spawn_file_actions_addopen'.
53732         * modules/posix_spawn_file_actions_addopen: New file.
53733         * lib/spawn_faction_addopen.c: New file, from GNU libc with
53734         modifications.
53735         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
53736         the new module.
53737
53738         New module 'posix_spawn_file_actions_adddup2'.
53739         * modules/posix_spawn_file_actions_adddup2: New file.
53740         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
53741         modifications.
53742         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
53743         the new module.
53744
53745         New module 'posix_spawn_file_actions_addclose'.
53746         * modules/posix_spawn_file_actions_addclose: New file.
53747         * lib/spawn_faction_addclose.c: New file, from GNU libc with
53748         modifications.
53749         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
53750         the new module.
53751
53752         New module 'posix_spawn_file_actions_init'.
53753         * modules/posix_spawn_file_actions_init: New file.
53754         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
53755         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
53756         new module.
53757
53758         New module 'posix_spawn-internal'.
53759         * modules/posix_spawn-internal: New file.
53760         * lib/spawn_int.h: New file, from GNU libc with modifications.
53761         * lib/spawni.c: New file, from GNU libc with modifications.
53762         * m4/posix_spawn.m4: New file.
53763
53764         New module 'spawn'.
53765         * modules/spawn: New file.
53766         * lib/spawn.in.h: New file, from GNU libc with modifications.
53767         * m4/spawn_h.m4: New file.
53768         * doc/posix-headers/spawn.texi: Mention the new module.
53769
53770 2008-09-28  Bruno Haible  <bruno@clisp.org>
53771
53772         * modules/sched-tests: New file.
53773         * tests/test-sched.c: New file.
53774
53775         New module 'sched'.
53776         * modules/sched: New file.
53777         * lib/sched.in.h: New file.
53778         * m4/sched_h.m4: New file.
53779         * doc/posix-headers/sched.texi: Mention the new module.
53780
53781 2008-09-27  Eric Blake  <ebb9@byu.net>
53782
53783         Fix previous patch, and tweak references to $0.
53784         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
53785         (func_version, func_gnulib_dir): Don't call this program
53786         gnulib-tool.
53787         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
53788         with using $0 in function.
53789         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
53790         (func_fatal_error): Reuse the name the user invoked us with.
53791
53792 2008-09-27  Bruno Haible  <bruno@clisp.org>
53793
53794         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
53795         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
53796         (gl_ICONV_H): Not here.
53797         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
53798         instead of assigning ICONV_H directly.
53799
53800         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
53801         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
53802         WCHAR_H directly.
53803
53804 2008-09-27  Bruno Haible  <bruno@clisp.org>
53805
53806         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
53807         * modules/arpa_inet (Depends-on): Add link-warning.
53808         (Makefile.am): Insert the definition of GL_LINK-WARNING.
53809         * modules/unistd (Makefile.am): Likewise.
53810
53811 2008-09-26  Bruno Haible  <bruno@clisp.org>
53812
53813         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
53814         variables.
53815         (func_version): Essentially copied from gnulib-tool.
53816         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
53817         func_readlink): Copied from gnulib-tool.
53818
53819 2008-09-26  Bruno Haible  <bruno@clisp.org>
53820
53821         * gnulib-tool (func_version): Change directory to $gnulib_dir before
53822         invoking git-version-gen.
53823
53824 2008-09-26  Bruno Haible  <bruno@clisp.org>
53825
53826         * posix-modules: Update to directory names changed on 2008-01-19.
53827         Remove commas in output before splitting into words. No more need to
53828         avoid 'ftruncate' since 2007-02-19.
53829
53830 2008-09-26  Bruno Haible  <bruno@clisp.org>
53831
53832         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
53833
53834 2008-09-26  Bruno Haible  <bruno@clisp.org>
53835
53836         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
53837         * modules/fwriteerror (Depends-on): Add errno.
53838
53839 2008-09-26  Bruno Haible  <bruno@clisp.org>
53840
53841         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
53842         * tests/test-vc-list-files-cvs.sh: Likewise.
53843
53844 2008-09-26  Bruno Haible  <bruno@clisp.org>
53845
53846         * doc/posix-headers/sys_resource.texi: Reorder items.
53847
53848 2008-09-26  Jim Meyering  <meyering@redhat.com>
53849
53850         fts: tweak inode comparison function
53851         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
53852         inode numbers, as documented.
53853
53854         fts: sort dirent entries on inode number before traversing
53855         This avoids a quadratic, seek-related performance penalty when
53856         operating on a directory containing many entries (measurable at 10k;
53857         3.5 hours at 2 million entries with a cold cache) on certain types
53858         of file systems, including ext3 and ext4, but not tmpfs.
53859         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
53860         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
53861         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
53862         (fs_handles_readdir_ordered_dirents_efficiently): New function.
53863         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
53864         (fts_build): Set the stat.st_ino member from D_INO.
53865         If it is likely to be useful, sort dirent entries on inode number.
53866
53867         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
53868         and the struct statfs.f_type member.
53869         * modules/fts (Depends-on): Add d-ino.
53870
53871 2008-09-26  Bruno Haible  <bruno@clisp.org>
53872
53873         * modules/sigpipe-die (Depends-on): Add sigpipe.
53874
53875         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
53876         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
53877         and GNULIB_STDIO_H_SIGPIPE are set.
53878         * lib/stdio-write.c: New file.
53879         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
53880         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53881         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53882         REPLACE_STDIO_WRITE_FUNCS.
53883         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
53884         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53885         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53886         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53887         * modules/stdio (Files): Add lib/stdio-write.c.
53888         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
53889         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53890         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53891         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53892         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
53893         REPLACE_FPRINTF_POSIX.
53894         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
53895         REPLACE_PRINTF_POSIX.
53896         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
53897         REPLACE_VFPRINTF_POSIX.
53898         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
53899         REPLACE_VPRINTF_POSIX.
53900         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
53901         SIGPIPE issue.
53902         * doc/posix-functions/fputc.texi: Likewise.
53903         * doc/posix-functions/fputs.texi: Likewise.
53904         * doc/posix-functions/fwrite.texi: Likewise.
53905         * doc/posix-functions/printf.texi: Likewise.
53906         * doc/posix-functions/putc.texi: Likewise.
53907         * doc/posix-functions/putchar.texi: Likewise.
53908         * doc/posix-functions/puts.texi: Likewise.
53909         * doc/posix-functions/vfprintf.texi: Likewise.
53910         * doc/posix-functions/vprintf.texi: Likewise.
53911
53912         * modules/safe-write (Depends-on): Add write.
53913
53914         * modules/sigpipe-tests: New file.
53915         * tests/test-sigpipe.c: New file.
53916         * tests/test-sigpipe.sh: New file.
53917
53918         * modules/write: New file.
53919         * lib/unistd.in.h: Include <sys/types.h>.
53920         (write): New declaration.
53921         * lib/write.c: New file.
53922         * m4/write.m4: New file.
53923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53924         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
53925         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
53926         GNULIB_WRITE, REPLACE_WRITE.
53927         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
53928         and the SIGPIPE issue.
53929
53930         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
53931         (raise): New declaration.
53932         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
53933         (ext_signal): New function.
53934         (rpl_raise): New function.
53935         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
53936         GNULIB_SIGNAL_H_SIGPIPE.
53937         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
53938         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
53939
53940         * modules/sigpipe: New file.
53941         * m4/sigpipe.m4: New file.
53942
53943 2008-09-25  Derek Price  <derek@ximbiot.com>
53944             Bruno Haible  <bruno@clisp.org>
53945
53946         * gnulib-tool (func_import): Report all license incompatibilities, not
53947         just the first one.
53948
53949 2008-09-25  Bruno Haible  <bruno@clisp.org>
53950
53951         * gnulib-tool (func_import): When computing the edits, consider not
53952         only the Makefile.ams that exist but also those that will be generated.
53953
53954 2008-09-25  Simon Josefsson  <simon@josefsson.org>
53955
53956         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
53957         fixes gnulib-tool --test warning about duplicate dependency.
53958
53959 2008-09-25  Bruno Haible  <bruno@clisp.org>
53960
53961         * gnulib-tool: Don't ask the user to perform edits in the generated
53962         Makefile.ams.
53963         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
53964         apply to the Makefile.am being generated.
53965         (func_emit_tests_Makefile_am): Execute edits that apply to the
53966         Makefile.am being generated.
53967         (func_import): Setup list of Makefile.am edits before emitting the
53968         Makefile.ams, not at the end.
53969         (func_create_testdir): Update.
53970         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53971
53972 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53973
53974         * gnulib-tool (func_import): Store the --tests-base option in the
53975         comment in gnulib-cache.m4.
53976
53977 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
53978
53979         * NEWS: Document increased portability that sys_select now provides.
53980
53981         * lib/sys_select.in.h: Install select wrapper.
53982         * lib/sys_socket.in.h: Use more descriptive name when there is no
53983         select wrapper.
53984         * lib/winsock-select.c: New.
53985         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
53986         Require gl_HEADER_SYS_SOCKET.
53987         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
53988         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
53989         * tests/test-sys_select.c: Add functional tests.
53990
53991 2008-09-24  Eric Blake  <ebb9@byu.net>
53992
53993         open, fopen: close fd leak in last patch
53994         * lib/open.c (rpl_open): Close fd before returning error.
53995         * lib/fopen.c (rpl_fopen): Close fd before returning error.
53996         * doc/posix-functions/open.texi (open): Document that Irix also
53997         has the bug.
53998         * doc/posix-functions/fopen.texi (fopen): Likewise.
53999         Reported by Paolo Bonzini.
54000
54001 2008-09-24  Bruno Haible  <bruno@clisp.org>
54002
54003         Ensure that a filename ending in a slash cannot be used to access a
54004         non-directory.
54005         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
54006         to check whether it's really a directory.
54007         * lib/fopen.c: Include fcntl.h, unistd.h.
54008         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
54009         and fdopen().
54010         * modules/fopen (Depends-on): Add unistd.
54011         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
54012         * tests/test-fopen.c (main): Likewise.
54013         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
54014         * doc/posix-functions/fopen.texi: Likewise.
54015         Reported by Eric Blake.
54016
54017 2008-09-23  Eric Blake  <ebb9@byu.net>
54018
54019         c-stack: avoid compiler optimizations when provoking overflow
54020         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
54021         recursion harder to optimize, to ensure a stack overflow occurs.
54022         * tests/test-c-stack.c (recurse): Likewise.
54023         Borrowed from libsigsegv.
54024
54025         c-stack: work around Irix sigaltstack bug
54026         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
54027         whether sigaltstack uses wrong end of stack_t (copied in part from
54028         libsigsegv).
54029         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
54030         Irix bug, without requiring an over-allocation.
54031         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
54032         bug.
54033
54034         fopen: document mingw bug on directories
54035         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
54036         not allowing a stream visiting a directory, even though reading
54037         from such a stream is not portable.
54038
54039 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
54040
54041         * lib/poll.c: Rewrite.
54042         * modules/poll: Depend on alloca.
54043
54044 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
54045
54046         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
54047         instead define prototypes for a full set of wrappers.  Ensure
54048         that Cygwin does not use the compatibility code, which is only
54049         for MinGW.
54050         * lib/winsock.c: New.
54051         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
54052         * modules/sys_socket: Add lib/winsock.c.
54053
54054         * modules/poll-tests: Add errno and perror.
54055         * tests/test-poll.c: Use ioctl, not ioctlsocket.
54056
54057 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
54058
54059         * tests/test-poll.c: Downgrade minimum needed Winsock version.
54060
54061 2008-09-23  Bruno Haible  <bruno@clisp.org>
54062
54063         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
54064         * doc/glibc-functions/*: Likewise.
54065
54066 2008-09-23  Simon Josefsson  <simon@josefsson.org>
54067
54068         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
54069         success.
54070
54071 2008-09-22  Eric Blake  <ebb9@byu.net>
54072             Bruno Haible  <bruno@clisp.org>
54073
54074         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
54075         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
54076         supply %A but mishandle pseudo-NaN.
54077         Reported by Simon Josefsson.
54078
54079 2008-09-21  Bruno Haible  <bruno@clisp.org>
54080
54081         * tests/test-lock.c (main): Tweak skip message.
54082         * tests/test-tls.c (main): Likewise.
54083
54084 2008-09-21  Bruno Haible  <bruno@clisp.org>
54085
54086         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
54087         whether 'struct sigaction' has sa_sigaction here...
54088         (gl_PREREQ_SIG_HANDLER_H): ... not here.
54089         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
54090
54091 2008-09-21  Bruno Haible  <bruno@clisp.org>
54092
54093         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
54094         section.
54095         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
54096         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
54097         the new section.
54098         (Support for obsolete systems lacking POSIX:2001): New section.
54099         (String handling <string.h>): Move strdup to the new section.
54100         Suggested by Simon Josefsson and Paolo Bonzini.
54101
54102 2008-09-21  Bruno Haible  <bruno@clisp.org>
54103
54104         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
54105         exponents in %e and %g results on 'long double'. Needed for mingw's
54106         improved *printf functions.
54107         * tests/test-vasprintf-posix.c (test_function): Likewise.
54108         * tests/test-snprintf-posix.h (test_function): Likewise.
54109         * tests/test-sprintf-posix.h (test_function): Likewise.
54110         Reported by Eric Blake.
54111
54112 2008-09-21  Bruno Haible  <bruno@clisp.org>
54113
54114         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
54115         * tests/test-sprintf-posix.h (test_function): Likewise.
54116
54117 2008-09-21  Bruno Haible  <bruno@clisp.org>
54118
54119         * modules/getpass (Depends-on): Add strdup-posix.
54120
54121         New module 'strdup-posix'.
54122         * modules/strdup-posix: New file.
54123         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
54124         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
54125         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54126         REPLACE_STRDUP.
54127         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
54128         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
54129         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54130         strdup-posix.
54131
54132         * modules/strdup (Depends-on): Remove malloc-posix.
54133
54134 2008-09-20  Bruno Haible  <bruno@clisp.org>
54135
54136         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
54137         Wildenhues.
54138
54139 2008-09-20  Bruno Haible  <bruno@clisp.org>
54140
54141         Ensure that wint_t gets defined on IRIX 5.3.
54142         * lib/wchar.in.h (wint_t): Define if not defined by the system.
54143         * lib/wctype.in.h (wint_t): Likewise.
54144         (__wctype_wint_t): Remove type.
54145         (isw*): Use wint_t instead of __wctype_wint_t.
54146         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
54147         * modules/wchar (Files): Add m4/wint_t.m4.
54148         (Makefile.am): Substitute HAVE_WINT_T.
54149         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
54150         * tests/test-wctype.c: Check that wint_t is defined.
54151         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
54152         * doc/posix-headers/wctype.texi: Likewise.
54153         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54154
54155 2008-09-18  Bruno Haible  <bruno@clisp.org>
54156
54157         * gnulib-tool (func_exit): Update comment.
54158
54159 2008-09-18  Simon Josefsson  <simon@josefsson.org>
54160
54161         * modules/getaddrinfo (Depends-on): Remove strdup, this module
54162         assumes strdup exists and does not depend on strdup to return
54163         ENOMEM on out of memory conditions.
54164
54165 2008-09-18  Bruno Haible  <bruno@clisp.org>
54166
54167         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
54168         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
54169         digits for the exponent.
54170
54171 2008-09-18  Jim Meyering  <meyering@redhat.com>
54172             Bruno Haible  <bruno@clisp.org>
54173
54174         * lib/vasnprintf.c (decimal_point_char): Define also if
54175         NEED_PRINTF_INFINITE_LONG_DOUBLE.
54176
54177 2008-09-16  Bruno Haible  <bruno@clisp.org>
54178         and Eric Blake  <ebb9@byu.net>
54179
54180         vasnprintf: support Irix 5.3
54181         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
54182         that mishandle long double infinity.
54183         Reported by Tom G. Christensen.
54184
54185 2008-09-16  Bruno Haible  <bruno@clisp.org>
54186
54187         * doc/glibc-functions/scandir.texi: Mention the function is missing on
54188         Solaris 9.
54189         * doc/glibc-functions/alphasort.texi: Likewise.
54190         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
54191
54192 2008-09-16  Jim Meyering  <meyering@redhat.com>
54193
54194         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
54195         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
54196         a umask modification leak out of a subshell.  Otherwise, the
54197         opensolaris /bin/sh would be accepted and thus cause unwarranted
54198         failures in the coreutils test suite.
54199
54200 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
54201
54202         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
54203         to succeed.
54204
54205 2008-09-16  Jim Meyering  <meyering@redhat.com>
54206
54207         avoid spurious test failure when library is built without ACL support
54208         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
54209         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
54210         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
54211         * tests/test-copy-acl.sh: Likewise.
54212
54213 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54214
54215         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
54216         based on character occurrence counts.
54217
54218 2008-09-15  Eric Blake  <ebb9@byu.net>
54219
54220         tests: avoid some compiler warnings
54221         * tests/test-memchr.c (main): Pass NULL indirectly.
54222         * tests/test-closein.c (main): Avoid unused variable.
54223
54224 2008-09-15  Bruno Haible  <bruno@clisp.org>
54225
54226         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
54227         are missing on OpenBSD 4.0 individually.
54228         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54229
54230 2008-09-15  Bruno Haible  <bruno@clisp.org>
54231
54232         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
54233         * doc/posix-functions/strerror.texi: Mention also Cygwin.
54234         * doc/posix-functions/perror.texi: Likewise.
54235         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
54236         is missing.
54237         Reported by Eric Blake.
54238
54239         * lib/errno.in.h: Use replacement values >= 2000.
54240         Reported by Eric Blake.
54241
54242 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54243
54244         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
54245         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
54246         limit.
54247         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
54248         compareseq was aborted.
54249
54250 2008-09-14  Bruno Haible  <bruno@clisp.org>
54251
54252         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
54253         yvec_edit_count.
54254         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
54255         (fstrcmp_bounded): Simplify result computation accordingly.
54256
54257 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54258
54259         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
54260         (fstrcmp): Define in terms of fstrcmp_bounded.
54261         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
54262         lower_bound argument.
54263         Return quickly if the result is certainly < lower_bound.
54264         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
54265
54266 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54267
54268         * lib/diffseq.h (EARLY_ABORT): New macro.
54269         (compareseq): Change return type to bool. Return true when EARLY_ABORT
54270         evaluates to true.
54271
54272 2008-09-14  Bruno Haible  <bruno@clisp.org>
54273
54274         * modules/perror-tests: New file.
54275         * tests/test-perror.sh: New file.
54276         * tests/test-perror.c: New file.
54277
54278         New module 'perror'.
54279         * lib/stdio.in.h (perror): New declaration.
54280         * lib/perror.c: New file.
54281         * m4/perror.m4: New file.
54282         * modules/perror: New file.
54283         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
54284         * doc/posix-functions/perror.texi: Mention the perror module.
54285         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
54286         REPLACE_PERROR.
54287         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
54288         REPLACE_PERROR.
54289
54290 2008-09-14  Bruno Haible  <bruno@clisp.org>
54291
54292         * modules/stdio (Makefile.am): Reorder to match the order in
54293         lib/stdio.in.h.
54294         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54295
54296 2008-09-13  Bruno Haible  <bruno@clisp.org>
54297
54298         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
54299
54300 2008-09-13  Bruno Haible  <bruno@clisp.org>
54301
54302         Extend strerror to cover the added errno values.
54303         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
54304         (rpl_strerror): Provide error messages for the added errno values and
54305         for the WSA* values.
54306         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
54307         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
54308         strerror.
54309         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
54310         * modules/strerror (Depends-on): Add errno.
54311         * doc/posix-functions/strerror.texi: Document the change.
54312         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
54313         and EOVERFLOW.
54314
54315 2008-09-13  Bruno Haible  <bruno@clisp.org>
54316
54317         * modules/EOVERFLOW: Remove file.
54318         * m4/eoverflow.m4: Remove file.
54319         * modules/EOVERFLOW-tests: Remove file.
54320         * tests/test-EOVERFLOW.c: Remove file.
54321         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
54322         * modules/ftell (Depends-on): Likewise.
54323         * modules/getdelim (Depends-on): Likewise.
54324         * modules/getugroups (Depends-on): Likewise.
54325         * modules/poll (Depends-on): Likewise.
54326         * modules/snprintf (Depends-on): Likewise.
54327         * modules/sprintf-posix (Depends-on): Likewise.
54328         * modules/vasnprintf (Depends-on): Likewise.
54329         * modules/vasprintf (Depends-on): Likewise.
54330         * modules/vfprintf-posix (Depends-on): Likewise.
54331         * modules/vsnprintf (Depends-on): Likewise.
54332         * modules/vsprintf-posix (Depends-on): Likewise.
54333         * modules/xvasprintf (Depends-on): Likewise.
54334         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54335         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
54336         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
54337         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
54338         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54339         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
54340         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
54341         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
54342         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54343         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
54344         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
54345         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
54346         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54347         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
54348         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
54349         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
54350         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54351         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
54352         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
54353         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
54354         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54355         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
54356         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
54357         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
54358         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
54359         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54360         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
54361         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
54362         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
54363         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
54364         * MODULES.html.sh: Remove EOVERFLOW.
54365         * NEWS: Mention the change.
54366
54367 2008-09-13  Bruno Haible  <bruno@clisp.org>
54368
54369         * modules/errno-tests: New file.
54370         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
54371
54372         * lib/errno.in.h: New file.
54373         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
54374         * modules/errno: New file.
54375         * doc/posix-headers/errno.texi: Update documentation.
54376         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
54377
54378 2008-09-13  Bruno Haible  <bruno@clisp.org>
54379
54380         * tests/test-poll.c: Use #if for native Windows, rather than testing
54381         __MSVCRT__.
54382
54383 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54384             Bruno Haible  <bruno@clisp.org>
54385
54386         * lib/glob.c: Don't include <pwd.h> on native Windows.
54387         (WINDOWS32): New macro.
54388         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
54389
54390 2008-09-13  Bruno Haible  <bruno@clisp.org>
54391
54392         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
54393         (ETIMEDOUT): Remove macro.
54394         (glthread_cond_timedwait_multithreaded): New declaration.
54395         (glthread_cond_timedwait): Use it.
54396         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
54397         (glthread_cond_timedwait_multithreaded): New function.
54398
54399 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54400
54401         * modules/poll-tests: Do not check for io.h.
54402         * tests/test-poll.c: Check for __MSVCRT__ instead.
54403
54404 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54405
54406         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
54407         * modules/poll-tests: Add inet_pton, stdbool, sockets.
54408         * tests/test-poll.c: Use them.  Use _pipe on Windows.
54409
54410 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54411
54412         * modules/poll-tests: New.
54413         * tests/test-poll.c: New.
54414
54415 2008-09-12  Eric Blake  <ebb9@byu.net>
54416
54417         frexp: test for NetBSD failure on -0.0
54418         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
54419         not all, bugs from NetBSD 3.0 have been fixed.
54420         * doc/posix-functions/frexp.texi (frexp): Document bug.
54421         Reported by Thomas Klausner.
54422
54423         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
54424         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
54425         literal -0.0.
54426         Reported by Jonathan C. Patschke <jp@centtech.com>.
54427
54428 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54429
54430         * lib/glthread/cond.h: Use dummy implementation also if
54431         USE_WIN32_THREADS.
54432
54433 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54434
54435         * modules/fnmatch-posix (License): Change to LGPLv2+.
54436         * modules/fnmatch-gnu (License): Likewise.
54437
54438 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54439
54440         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
54441
54442 2008-09-11  Jim Meyering  <meyering@redhat.com>
54443
54444         * users.txt: Add gtk-vnc.
54445
54446 2008-09-08  Simon Josefsson  <simon@josefsson.org>
54447
54448         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
54449         rotate amounts.
54450
54451         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
54452         required for 16-bit and 8-bit rotates.
54453         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
54454         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
54455         UINT8_MAX instead of hard-coded constants.
54456         Suggested by Paul Eggert.
54457
54458 2008-09-07  Bruno Haible  <bruno@clisp.org>
54459
54460         * tests/test-striconveh.c (main): Check behaviour when converting from
54461         UTF-7.
54462
54463         Make striconveh work better with stateful encodings.
54464         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
54465         that iconv does not increment the inptr when returning -1/EINVAL.
54466
54467 2008-09-07  Bruno Haible  <bruno@clisp.org>
54468
54469         * build-aux/config.rpath: Update according to libtool-2.2.6.
54470         * build-aux/config.libpath: Likewise.
54471
54472 2008-09-06  Bruno Haible  <bruno@clisp.org>
54473
54474         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
54475         * lib/freadptr.c (freadptr): Likewise.
54476         * lib/freadseek.c (freadptrinc): Likewise.
54477         Reported by Simon Josefsson.
54478
54479 2008-09-06  Bruno Haible  <bruno@clisp.org>
54480
54481         * modules/freadptr (License): Change to LGPLv2+.
54482         * modules/freadseek (License): Likewise.
54483         Suggested by Eric Blake.
54484
54485         * modules/memchr2 (License): Change to LGPLv2+.
54486         Approved by Eric Blake.
54487
54488 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54489             Bruno Haible  <bruno@clisp.org>
54490
54491         Make gnulib-tool work with native 'sed' on AIX.
54492         * gnulib-tool (sed_noop): New variable.
54493         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
54494         func_add_or_update, func_create_testdir): Use it to initialize sed
54495         script variables.
54496         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54497
54498 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
54499             Bruno Haible  <bruno@clisp.org>
54500
54501         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
54502         also works after #include directives.
54503
54504 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
54505
54506         getdate.y: reject an out-of-range timezone value
54507         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
54508         the range [-24...+24].  When specified with only one or two digits,
54509         * tests/test-getdate.c: Tests for the fix.
54510         * doc/getdate.texi: Document this change.
54511
54512 2008-09-03  Bruno Haible  <bruno@clisp.org>
54513
54514         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
54515
54516 2008-09-02  Simon Josefsson  <simon@josefsson.org>
54517
54518         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
54519         <bruce.korb@gmail.com> with ideas from Ben Pfaff
54520         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
54521         Blake <ebb9@byu.net>.
54522
54523         * tests/test-bitrotate.c: Add more test vectors.
54524
54525 2008-09-02  Eric Blake  <ebb9@byu.net>
54526
54527         vasnprintf-posix: handle large precision via %.*d
54528         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
54529         when handling it ourselves.
54530         * tests/test-vasnprintf-posix.c (test_function): Add test.
54531         * tests/test-snprintf-posix.h (test_function): Likewise.
54532         * tests/test-sprintf-posix.h (test_function): Likewise.
54533         * tests/test-vasprintf-posix.c (test_function): Likewise.
54534         Reported by Alain Guibert.
54535
54536 2008-09-01  Eric Blake  <ebb9@byu.net>
54537
54538         c-stack: make configure-time check more robust
54539         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
54540         successful sigaction call.
54541         Reported by Tom G. Christensen.
54542
54543 2008-09-01  Bruno Haible  <bruno@clisp.org>
54544
54545         New module 'findprog-lgpl'.
54546         * modules/findprog-lgpl: New file.
54547         * lib/findprog-lgpl.c: New file.
54548         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
54549         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
54550         to decide whether to use strdup or xstrdup, concatenated_filename or
54551         xconcatenated_filename.
54552
54553 2008-09-01  Bruno Haible  <bruno@clisp.org>
54554
54555         Split module 'concat-filename' into 'concat-filename' (LGPL) and
54556         'xconcat-filename' (GPL).
54557         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
54558         (License): Change to LGPLv2+.
54559         * modules/xconcat-filename: New file.
54560         * lib/concat-filename.h (concatenated_filename): Change specification.
54561         (xconcatenated_filename): New declaration.
54562         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
54563         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
54564         memory situations.
54565         * lib/xconcat-filename.c: New file.
54566         * NEWS: Mention the change.
54567         * lib/findprog.c: Include concat-filename.h, not filename.h.
54568         (find_in_path): Use xconcatenated_filename instead of
54569         concatenated_filename.
54570         * lib/javacomp.c: Include concat-filename.h, not filename.h.
54571         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
54572         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
54573         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
54574         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
54575         instead of concatenated_filename.
54576         * lib/javaexec.c: Include concat-filename.h, not filename.h.
54577         (execute_java_class): Use xconcatenated_filename instead of
54578         concatenated_filename.
54579         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
54580         * modules/javacomp (Depends-on): Likewise.
54581         * modules/javaexec (Depends-on): Likewise.
54582
54583 2008-09-01  Bruno Haible  <bruno@clisp.org>
54584
54585         Split module 'filename' into 'filename' and 'concat-filename'.
54586         * modules/filename: Keep only lib/filename.h.
54587         (License): Change to LGPLv2+.
54588         * modules/concat-filename: New file, extracted from modules/filename.
54589         * lib/filename.h (concatenated_filename): Remove declaration.
54590         * lib/concat-filename.h: New file, extracted from lib/filename.h.
54591         * lib/concat-filename.c: Include concat-filename.h.
54592         * NEWS: Mention the change.
54593
54594 2008-09-01  Simon Josefsson  <simon@josefsson.org>
54595
54596         * lib/bitrotate.h (rotl8, rotr8): Add.
54597
54598         * modules/bitrotate (configure.ac): Need
54599         AC_REQUIRE([AC_C_INLINE]).
54600         (Description): Mention stdint.h.  Reported by Bruno Haible
54601         <bruno@clisp.org>.
54602
54603         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
54604         Paolo Bonzini <bonzini@gnu.org>.
54605
54606 2008-08-31  Bruno Haible  <bruno@clisp.org>
54607
54608         Assume Solaris specific bi-arch conventions on Solaris systems.
54609         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
54610         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
54611         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
54612         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
54613         like acl_libdirstem.
54614         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
54615         acl_libdirstem.
54616         * NEWS: Mention the change.
54617         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
54618
54619 2008-08-31  Jim Meyering  <meyering@redhat.com>
54620
54621         * lib/strftime.h: Add comments describing the two added arguments.
54622
54623         remove duplicate #include directives
54624         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
54625         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
54626
54627 2008-08-31  Bruno Haible  <bruno@clisp.org>
54628
54629         New module 'sigpipe-die'.
54630         * modules/sigpipe-die: New file.
54631         * lib/sigpipe-die.h: New file.
54632         * lib/sigpipe-die.c: New file.
54633         * MODULES.html.sh (Signal handling): Add sigpipe-die.
54634
54635 2008-08-31  Bruno Haible  <bruno@clisp.org>
54636
54637         Don't override previously installed signal handlers.
54638         * lib/fatal-signal.c (saved_sigactions): New variable.
54639         (uninstall_handlers): Reset the signal to the saved handler, not
54640         to SIG_DFL (except when ignored).
54641         (install_handlers): Save the previous handlers.
54642
54643 2008-08-30  Bruno Haible  <bruno@clisp.org>
54644
54645         * gnulib-tool (func_reset_sigpipe): New function.
54646         (func_get_automake_snippet, func_modules_transitive_closure,
54647         func_import): Invoke it before a join command that reads from stdin,
54648         to avoid "echo: write error: Broken pipe" error messages on stderr.
54649         Reported by Sam Steingold <sds@gnu.org>.
54650
54651 2008-08-30  Bruno Haible  <bruno@clisp.org>
54652
54653         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
54654         Code copied from m4/open.m4.
54655         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
54656         access and the filename ends in a slash. Code copied from lib/open.c.
54657         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
54658         * tests/test-fopen.c (main): Check against bug with trailing slash.
54659
54660 2008-08-29  Bruno Haible  <bruno@clisp.org>
54661
54662         Avoid some "gcc -pedantic" warnings.
54663         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
54664         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
54665         * lib/dirent.in.h: Likewise.
54666         * lib/fcntl.in.h: Likewise.
54667         * lib/float.in.h: Likewise.
54668         * lib/iconv.in.h: Likewise.
54669         * lib/inttypes.in.h: Likewise.
54670         * lib/locale.in.h: Likewise.
54671         * lib/math.in.h: Likewise.
54672         * lib/netinet_in.in.h: Likewise.
54673         * lib/search.in.h: Likewise.
54674         * lib/signal.in.h: Likewise.
54675         * lib/stdarg.in.h: Likewise.
54676         * lib/stdint.in.h: Likewise.
54677         * lib/stdio.in.h: Likewise.
54678         * lib/stdlib.in.h: Likewise.
54679         * lib/string.in.h: Likewise.
54680         * lib/strings.in.h: Likewise.
54681         * lib/sys_select.in.h: Likewise.
54682         * lib/sys_socket.in.h: Likewise.
54683         * lib/sys_stat.in.h: Likewise.
54684         * lib/sys_time.in.h: Likewise.
54685         * lib/sysexits.in.h: Likewise.
54686         * lib/time.in.h: Likewise.
54687         * lib/unistd.in.h: Likewise.
54688         * lib/wchar.in.h: Likewise.
54689         * lib/wctype.in.h: Likewise.
54690         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
54691         * modules/fchdir (Makefile.am): Likewise.
54692         * modules/fcntl (Makefile.am): Likewise.
54693         * modules/float (Makefile.am): Likewise.
54694         * modules/iconv_open (Makefile.am): Likewise.
54695         * modules/inttypes (Makefile.am): Likewise.
54696         * modules/locale (Makefile.am): Likewise.
54697         * modules/math (Makefile.am): Likewise.
54698         * modules/netinet_in (Makefile.am): Likewise.
54699         * modules/search (Makefile.am): Likewise.
54700         * modules/signal (Makefile.am): Likewise.
54701         * modules/stdarg (Makefile.am): Likewise.
54702         * modules/stdint (Makefile.am): Likewise.
54703         * modules/stdio (Makefile.am): Likewise.
54704         * modules/stdlib (Makefile.am): Likewise.
54705         * modules/string (Makefile.am): Likewise.
54706         * modules/strings (Makefile.am): Likewise.
54707         * modules/sys_select (Makefile.am): Likewise.
54708         * modules/sys_socket (Makefile.am): Likewise.
54709         * modules/sys_stat (Makefile.am): Likewise.
54710         * modules/sys_time (Makefile.am): Likewise.
54711         * modules/sysexits (Makefile.am): Likewise.
54712         * modules/time (Makefile.am): Likewise.
54713         * modules/unistd (Makefile.am): Likewise.
54714         * modules/wchar (Makefile.am): Likewise.
54715         * modules/wctype (Makefile.am): Likewise.
54716         Reported by Reuben Thomas <rrt@sc3d.org>.
54717
54718 2008-08-29  Bruno Haible  <bruno@clisp.org>
54719
54720         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
54721         any more.
54722
54723 2008-08-29  Simon Josefsson  <simon@josefsson.org>
54724
54725         * MODULES.html.sh (Misc): Add bitrotate.
54726
54727         * modules/bitrotate: New file.
54728
54729         * lib/bitrotate.h: New file.
54730
54731         * modules/bitrotate-tests: New file.
54732
54733         * tests/test-bitrotate.c: New file.
54734
54735         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
54736         on the bitrotate module.
54737
54738         * lib/arctwo.c: Use new bitrotate module.
54739
54740 2008-08-29  Jim Meyering  <meyering@redhat.com>
54741
54742         bootstrap: merge changes from coreutils
54743         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
54744         of copied files.  Remove a kludge, now that this is fixed.
54745         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
54746         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
54747         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
54748
54749 2008-08-29  Bruno Haible  <bruno@clisp.org>
54750
54751         * MODULES.html.sh: Remove --cvs-urls option.
54752
54753 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
54754
54755         maint.mk: adjust to file name change
54756         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
54757
54758 2008-08-28  Jim Meyering  <meyering@redhat.com>
54759
54760         * modules/getndelim2 (License): Relicense to LGPLv2+.
54761         Approved by Richard Stallman for the version of 1995, and by
54762         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
54763
54764 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
54765
54766         * lib/getdelim.c (flockfile, funlockfile): Make all of them
54767         dummy if one is not available.  Do not touch them if
54768         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
54769         (getc_maybe_unlocked): New.
54770         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
54771
54772 2008-08-26  Eric Blake  <ebb9@byu.net>
54773
54774         doc/INSTALL: resync from autoconf
54775         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
54776         (INSTALL_PRELUDE): Delete; this is done more efficiently by
54777         moving...
54778         * install.texi [!autoconf]: ...here.  Resync from autoconf.
54779         * INSTALL: Regenerate.
54780         * INSTALL.ISO: New file.
54781         * INSTALL.UTF-8: Likewise.
54782
54783 2008-08-26  Jim Meyering  <meyering@redhat.com>
54784
54785         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
54786         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
54787         these definitions conditional, so that they may be overridden, too.
54788
54789 2008-08-26  Bruno Haible  <bruno@clisp.org>
54790
54791         Generate INSTALL file variants with prettier quotes.
54792         * doc/Makefile (INSTALL_PRELUDE): New macro.
54793         (INSTALL): Use it.
54794         (INSTALL.ISO, INSTALL.UTF-8): New rules.
54795
54796 2008-08-26  Bruno Haible  <bruno@clisp.org>
54797
54798         Run makeinfo in an English locale.
54799         * doc/Makefile (MAKEINFO): New variable.
54800
54801 2008-08-26  Bruno Haible  <bruno@clisp.org>
54802
54803         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
54804         Suggested by Eric Blake.
54805
54806 2008-08-25  Bruno Haible  <bruno@clisp.org>
54807
54808         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
54809
54810 2008-08-25  Eric Blake  <ebb9@byu.net>
54811
54812         c-stack: test that stack overflow can be caught
54813         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
54814         that platform allows handling stack overflow; at least OS/2 EMX
54815         has sigaltstack, but crashes before transferring control to
54816         handler on stack overflow.
54817         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
54818         check for HAVE_STACK_OVERFLOW_HANDLING.
54819         Reported by Elbert Pol.
54820
54821 2008-08-25  Bruno Haible  <bruno@clisp.org>
54822
54823         * doc/posix-functions/strftime.texi: Fix description of strftime
54824         module.
54825
54826 2008-08-24  Bruno Haible  <bruno@clisp.org>
54827
54828         * tests/uniwidth/test-uc_width2.c: New file.
54829         * tests/uniwidth/test-uc_width2.sh: New file.
54830         * modules/uniwidth/width-tests (Files): Add the new files.
54831         (TESTS): Add uniwidth/test-uc_width2.sh.
54832         (TESTS_ENVIRONMENT): New variable.
54833         (check_PROGRAMS): Add test-uc_width2.
54834         (test_uc_width2_SOURCES): New variable.
54835
54836         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
54837         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
54838         not 0x00AB.
54839         Reported by Alexander V. Lukyanov <lav@netis.ru>.
54840
54841 2008-08-22  Eric Blake  <ebb9@byu.net>
54842
54843         test-lock, test-tls: mention why a test is skipped
54844         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
54845         skipped.
54846         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
54847
54848         count-one-bits: relax license
54849         * modules/count-one-bits (License): Relicense to LGPLv2+.
54850         Suggested by Ludovic Courtès, approved by Ben Pfaff.
54851
54852 2008-08-22  Andreas Schwab  <schwab@suse.de>
54853
54854         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
54855         Remove spurious space in assignment.
54856
54857 2008-08-21  Simon Josefsson  <simon@josefsson.org>
54858
54859         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
54860         Paul Eggert <eggert@CS.UCLA.EDU>.
54861
54862 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
54863
54864         * modules/gettext: Add m4/threadlib.m4.
54865
54866 2008-08-19  Eric Blake  <ebb9@byu.net>
54867
54868         test-c-stack: fix compilation failure on FreeBSD 5.0
54869         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
54870         headers before <sys/resource.h>.
54871         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
54872         the bug.
54873         Reported by Nelson H. F. Beebe.
54874
54875         strverscmp: migrate from "strverscmp.h" to <string.h>
54876         * modules/string (Makefile.am): Add new hooks.
54877         * modules/strverscmp (Files): Remove strverscmp.h.
54878         (Depends-on): Add string.
54879         (configure.ac): Add indicator.
54880         (Include): Mention new header.
54881         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
54882         defaults.
54883         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
54884         results.
54885         * lib/strverscmp.h: Delete.
54886         * lib/string.in.h (strverscmp): Provide declaration, when needed.
54887         * tests/test-strverscmp.c (includes): Adjust client.
54888         * lib/check-version.c (includes): Likewise.
54889         * NEWS: Document the change.
54890
54891         strverscmp: add unit test
54892         * modules/strverscmp-tests: New file.
54893         * tests/test-strverscmp.c: Likewise.
54894
54895 2008-08-19  Simon Josefsson  <simon@josefsson.org>
54896
54897         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
54898         regarding Windows crypto stuff, from Mono.
54899
54900 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
54901
54902         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
54903         if present, for intel RND.  Return error on failures.
54904
54905 2008-08-18  Ben Pfaff  <blp@gnu.org>
54906
54907         gitlog-to-changelog: give better diagnostic for failed pipe-open
54908         * build-aux/gitlog-to-changelog: Improve error message: suggest
54909         that the version of Git may be too old.
54910
54911 2008-08-18  Simon Josefsson  <simon@josefsson.org>
54912
54913         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
54914         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
54915
54916 2008-08-18  Bruno Haible  <bruno@clisp.org>
54917
54918         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
54919         pthread_in_use().
54920
54921 2008-08-18  Bruno Haible  <bruno@clisp.org>
54922
54923         * lib/glthread/threadlib.c: Include <pthread.h>.
54924
54925 2008-08-18  Bruno Haible  <bruno@clisp.org>
54926
54927         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
54928         glthread_recursive_lock_* macros.
54929         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
54930         Fix syntax error.
54931
54932 2008-08-18  Bruno Haible  <bruno@clisp.org>
54933
54934         * lib/glthread/thread.c: Avoid forcing a context switch right after
54935         thread creation.
54936
54937 2008-08-17  Bruno Haible  <bruno@clisp.org>
54938
54939         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
54940         * lib/glthread/thread.h: Provide Win32 specific implementation.
54941         * modules/thread (Files): Add lib/glthread/thread.c.
54942         (Depends-on): Add lock.
54943         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
54944
54945 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54946
54947         New module 'yield'.
54948         * modules/yield: New file.
54949         * lib/glthread/yield.h: New file.
54950         * m4/yield.m4: New file.
54951         * MODULES.html.sh (Multithreading): Add yield.
54952
54953 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54954
54955         New module 'thread'.
54956         * modules/thread: New file.
54957         * lib/glthread/thread.h: New file.
54958         * m4/thread.m4: New file.
54959         * MODULES.html.sh (Multithreading): Add thread.
54960
54961 2008-08-17  Bruno Haible  <bruno@clisp.org>
54962
54963         * lib/glthread/lock.h: Include <stdlib.h> always.
54964         * lib/glthread/tls.h: Likewise.
54965         * lib/glthread/cond.h: Likewise.
54966
54967 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54968
54969         New module 'cond'.
54970         * modules/cond: New file.
54971         * lib/glthread/cond.h: New file.
54972         * lib/glthread/cond.c: New file.
54973         * m4/cond.m4: New file.
54974         * MODULES.html.sh (Multithreading): Add cond.
54975
54976 2008-08-16  Eric Blake  <ebb9@byu.net>
54977
54978         c-stack: fix regression on Irix 5.3 from 2008-06-21
54979         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
54980         sa_sigaction...
54981         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
54982         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
54983         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
54984         * modules/signal (Makefile.am): Use the value.
54985         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
54986         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
54987         * doc/posix-headers/signal.texi (signal.h): Document this
54988         portability issue.
54989         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
54990         Reported by Tom G. Christensen.
54991
54992 2008-08-17  Bruno Haible  <bruno@clisp.org>
54993
54994         New module 'threadlib'.
54995         * modules/threadlib: New file.
54996         * lib/glthread/threadlib.c: New file, extracted from
54997         lib/glthread/lock.c.
54998         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
54999         functions.
55000         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
55001         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
55002         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
55003         macros.
55004         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
55005         (gl_DISABLE_THREADS): Remove macro.
55006         * modules/lock (Files): Remove build-aux/config.rpath.
55007         (Depends-on): Remove havelib. Add threadlib.
55008         (configure.ac-early): Remove section.
55009         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
55010         * modules/tls (Depends-on): Remove lock. Add threadlib.
55011         (Link): New section, copied from threadlib.
55012         * MODULES.html.sh (Multithreading): Add threadlib.
55013
55014 2008-08-14  Bruno Haible  <bruno@clisp.org>
55015
55016         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
55017         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
55018         glthread_rwlock_unlock, glthread_rwlock_destroy,
55019         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
55020         glthread_recursive_lock_destroy): Define as macros always.
55021         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
55022         glthread_lock_lock.
55023         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
55024         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
55025         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
55026         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
55027         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
55028         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
55029         (glthread_recursive_lock_lock_func): Renamed from
55030         glthread_recursive_lock_lock.
55031         (glthread_recursive_lock_unlock_func): Renamed from
55032         glthread_recursive_lock_unlock.
55033         (glthread_recursive_lock_destroy_func): Renamed from
55034         glthread_recursive_lock_destroy.
55035
55036 2008-08-14  Bruno Haible  <bruno@clisp.org>
55037
55038         * lib/glthread/lock.h: Renamed from lib/lock.h.
55039         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
55040         * lib/glthread/tls.h: Renamed from lib/tls.h.
55041         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
55042         * lib/fstrcmp.c: Update includes.
55043         * lib/strsignal.c: Update includes.
55044         * modules/lock (Files, Makefile.am): Update.
55045         (Include): Change to "glthread/lock.h".
55046         * modules/tls (Files, Makefile.am): Update.
55047         (Include): Change to "glthread/tls.h".
55048         * tests/test-lock.c: Update includes.
55049         * tests/test-tls.c: Update includes.
55050         * NEWS: Mention the renamed header files.
55051
55052 2008-08-11  Jim Meyering  <meyering@redhat.com>
55053
55054         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
55055
55056 2008-08-11  Eric Blake  <ebb9@byu.net>
55057
55058         test-c-stack: avoid C99-ism
55059         * tests/test-c-stack.c (main): Fix whitespace, move declaration
55060         before statement.
55061         Reported by Alain Guibert.
55062
55063 2008-08-10  Jim Meyering  <meyering@redhat.com>
55064
55065         ensure that return value of uinttostr et al are not ignored
55066         * lib/inttostr.h (__GNUC_PREREQ): Define.
55067         (__attribute_warn_unused_result__): Define.
55068         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
55069
55070 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
55071
55072         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
55073         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
55074
55075 2008-08-07  Jim Meyering  <meyering@redhat.com>
55076
55077         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
55078
55079         * modules/mkstemp (License): Relicense under LGPLv2+.
55080         * modules/tempname (License): Likewise.
55081
55082 2008-08-06  Bruno Haible  <bruno@clisp.org>
55083
55084         * lib/poll.c (poll): Further micro-optimization.
55085
55086 2008-08-06  Jim Meyering  <meyering@redhat.com>
55087
55088         inet_pton.c: use locale-independent tolower
55089         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
55090         (inet_pton6): Use c_tolower rather than tolower.
55091         * modules/inet_pton (Depends-on): Add c-ctype.
55092
55093 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
55094
55095         * lib/poll.c (poll): Avoid division when timeout is 0, cache
55096         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
55097
55098 2008-08-06  Jim Meyering  <meyering@redhat.com>
55099
55100         * modules/inet_pton (License): Relicense under LGPLv2+.
55101
55102 2008-08-03  Bruno Haible  <bruno@clisp.org>
55103
55104         Additional non-aborting API for lock and tls.
55105         * lib/lock.h: Include <errno.h>.
55106         (glthread_lock_init): New macro/function.
55107         (gl_lock_init): Define as wrapper around glthread_lock_init.
55108         (glthread_lock_lock): New macro/function.
55109         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
55110         (glthread_lock_unlock): New macro/function.
55111         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
55112         (glthread_lock_destroy): New macro/function.
55113         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
55114         (glthread_rwlock_init): New macro/function.
55115         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
55116         (glthread_rwlock_rdlock): New macro/function.
55117         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
55118         (glthread_rwlock_wrlock): New macro/function.
55119         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
55120         (glthread_rwlock_unlock): New macro/function.
55121         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
55122         (glthread_rwlock_destroy): New macro/function.
55123         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
55124         (glthread_recursive_lock_init): New macro/function.
55125         (gl_recursive_lock_init): Define as wrapper around
55126         glthread_recursive_lock_init.
55127         (glthread_recursive_lock_lock): New macro/function.
55128         (gl_recursive_lock_lock): Define as wrapper around
55129         glthread_recursive_lock_lock.
55130         (glthread_recursive_lock_unlock): New macro/function.
55131         (gl_recursive_lock_unlock): Define as wrapper around
55132         glthread_recursive_lock_unlock.
55133         (glthread_recursive_lock_destroy): New macro/function.
55134         (gl_recursive_lock_destroy): Define as wrapper around
55135         glthread_recursive_lock_destroy.
55136         (glthread_once): New macro/function.
55137         (gl_once): Define as wrapper around glthread_once.
55138         Update function declarations.
55139         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
55140         glthread_rwlock_init. Return error code.
55141         (glthread_rwlock_rdlock_multithreaded): Renamed from
55142         glthread_rwlock_rdlock. Return error code.
55143         (glthread_rwlock_wrlock_multithreaded): Renamed from
55144         glthread_rwlock_wrlock. Return error code.
55145         (glthread_rwlock_unlock_multithreaded): Renamed from
55146         glthread_rwlock_unlock. Return error code.
55147         (glthread_rwlock_destroy_multithreaded): Renamed from
55148         glthread_rwlock_destroy. Return error code.
55149         (glthread_recursive_lock_init_multithreaded): Renamed from
55150         glthread_recursive_lock_init. Return error code.
55151         (glthread_recursive_lock_lock_multithreaded): Renamed from
55152         glthread_recursive_lock_lock. Return error code.
55153         (glthread_recursive_lock_unlock_multithreaded): Renamed from
55154         glthread_recursive_lock_unlock. Return error code.
55155         (glthread_recursive_lock_destroy_multithreaded): Renamed from
55156         glthread_recursive_lock_destroy. Return error code.
55157         (glthread_once_call): Make static.
55158         (glthread_once_multithreaded): Renamed from glthread_once.
55159         * lib/tls.h: Include <errno.h>.
55160         (glthread_tls_key_init): New macro/function.
55161         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
55162         (glthread_tls_set): New macro/function.
55163         (gl_tls_set): Define as wrapper around glthread_tls_set.
55164         (glthread_tls_key_destroy): New macro/function.
55165         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
55166         Update function declarations.
55167         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
55168         glthread_tls_get.
55169         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55170
55171 2008-08-04  Eric Blake  <ebb9@byu.net>
55172
55173         gnumakefile: use space, not TAB, outside of targets
55174         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
55175
55176 2008-08-02  Jim Meyering  <meyering@redhat.com>
55177
55178         getdate.y: avoid locale-dependent date parsing failure
55179         In Turkish locales, getdate would fail to recognize keywords
55180         containing a lowercase "i".  The solution is not to rely on
55181         locale-sensitive case-conversion.
55182         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
55183         (lookup_word): Use c_toupper in place of toupper.
55184         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
55185         Reported by Vefa Bicakci <bicave@superonline.com> in
55186         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
55187         * modules/getdate (Depends-on): Add c-ctype.
55188
55189 2008-08-02  Bruno Haible  <bruno@clisp.org>
55190
55191         * gnulib-tool (func_import): When updating or creating a .gitignore
55192         file, prepend each added line with a slash, and ignore leading slashes
55193         from the existing lines.
55194         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55195
55196 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55197
55198         Portability fix for GNU make 3.79.1.
55199         * top/GNUmakefile: Avoid 'else COND', which older GNU make
55200         versions do not understand.
55201
55202 2008-08-01  Bruno Haible  <bruno@clisp.org>
55203
55204         Work around bug of HP-UX 10.20 cc with -0.0 literal.
55205         * tests/test-isnanf.h (zero): New variable.
55206         (main): Avoid literal -0.0f.
55207         * tests/test-isnand.h (zero): New variable.
55208         (main): Avoid literal -0.0.
55209         * tests/test-isnanl.h (zero): New variable.
55210         (main): Avoid literal -0.0L.
55211         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
55212         (test_float, test_double, test_long_double): Avoid literals -0.0f,
55213         -0.0, -0.0L.
55214         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
55215         (test_signbitd): Avoid literal -0.0.
55216         (test_signbitl): Avoid literal -0.0L.
55217         * tests/test-ceilf1.c (zero): New variable.
55218         (main): Avoid literal -0.0f.
55219         * tests/test-ceill.c (zero): New variable.
55220         (main): Avoid literal -0.0L.
55221         * tests/test-floorf1.c (zero): New variable.
55222         (main): Avoid literal -0.0f.
55223         * tests/test-floorl.c (zero): New variable.
55224         (main): Avoid literal -0.0L.
55225         * tests/test-roundf1.c (zero): New variable.
55226         (main): Avoid literal -0.0f.
55227         * tests/test-round1.c (zero): New variable.
55228         (main): Avoid literal -0.0.
55229         * tests/test-roundl.c (zero): New variable.
55230         (main): Avoid literal -0.0L.
55231         * tests/test-truncf1.c (zero): New variable.
55232         (main): Avoid literal -0.0f.
55233         * tests/test-trunc1.c (zero): New variable.
55234         (main): Avoid literal -0.0.
55235         * tests/test-truncl.c (zero): New variable.
55236         (main): Avoid literal -0.0L.
55237         * tests/test-frexp.c (zero): New variable.
55238         (main): Avoid literal -0.0.
55239         * tests/test-frexpl.c (zero): New variable.
55240         (main): Avoid literal -0.0L.
55241         * tests/test-ldexpl.c (zero): New variable.
55242         (main): Avoid literal -0.0L.
55243         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
55244         (zerod, zerol): New variables.
55245         (test_function): Avoid literals -0.0, -0.0L.
55246         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
55247         (zerod, zerol): New variables.
55248         (test_function): Avoid literals -0.0, -0.0L.
55249         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
55250         (zerod, zerol): New variables.
55251         (test_function): Avoid literals -0.0, -0.0L.
55252         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
55253         (zerod, zerol): New variables.
55254         (test_function): Avoid literals -0.0, -0.0L.
55255         * tests/test-strtod.c (zero): New variable.
55256         (main): Avoid literal -0.0.
55257         Reported by Jonathan C. Patschke <jp@centtech.com>.
55258
55259 2008-07-31  Jim Meyering  <meyering@redhat.com>
55260
55261         sha256.h: correct definition of SHA224_DIGEST_SIZE
55262         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
55263         Reported by Paulie Pena IV <paulie4@gmail.com>.
55264         Define as 224 / 8, rather than as a literal.
55265         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
55266         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
55267         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
55268
55269 2008-07-31  Bruno Haible  <bruno@clisp.org>
55270
55271         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
55272         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
55273         Reported by Jonathan Patschke <jp@centtech.com>.
55274
55275 2008-07-31  Bruno Haible  <bruno@clisp.org>
55276
55277         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
55278         Reported by Paolo Bonzini <bonzini@gnu.org>.
55279
55280 2008-07-30  Eric Blake  <ebb9@byu.net>
55281
55282         test-strtod: allow compilation without -lm
55283         * tests/test-strtod.c (main): Avoid link dependence on fabs.
55284         Reported by Dennis Clarke <blastwave@gmail.com>.
55285
55286 2008-07-28  Jim Meyering  <meyering@redhat.com>
55287
55288         bootstrap: work also when there are no .po files in po/
55289         * build-aux/bootstrap (update_po_files): Complete the change
55290         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
55291
55292 2008-07-27  Jim Meyering  <meyering@redhat.com>
55293
55294         * users.txt: Add zile.
55295
55296 2008-07-26  Ben Pfaff  <blp@gnu.org>
55297
55298         Add missing dependencies on new m4/exponent[fdl].m4 files.
55299         * modules/isnanf-nolibm: Add m4/exponentf.m4.
55300         * modules/isnand-nolibm: Add m4/exponentd.m4.
55301         * modules/isnanl-nolibm: Add m4/exponentl.m4.
55302         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
55303         m4/isnan[fdl].m4, because the macros actually used moved.
55304         Reported by Jim Meyering.
55305
55306 2008-07-14  Ben Pfaff  <blp@gnu.org>
55307
55308         Add isinf module.
55309         * lib/isinf.c: New file.
55310         * lib/math.in.h: Define isinf macro if we have decided to replace
55311         it.
55312         * m4/isinf.m4: New file.
55313         * m4/math_h.m4: Initialize and substitute variables for isinf
55314         module.
55315         * modules/isinf: New file.
55316         * modules/isinf-tests: New file.
55317         * modules/math: Add substitutions for new module.
55318         * tests/test-isinf.c: New file.
55319         * doc/posix-functions/isinf.texi: Mention new module.
55320         * MODULES.html.sh: Mention new module.
55321
55322 2008-07-14  Ben Pfaff  <blp@gnu.org>
55323
55324         Factor out some macros for use by additional modules.
55325         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
55326         exponentf.m4.
55327         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
55328         exponentd.m4.
55329         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
55330         file exponentl.m4.
55331         * m4/exponentf.m4: New file.
55332         * m4/exponentd.m4: New file.
55333         * m4/exponentl.m4: New file.
55334         * modules/isnanf: Use new file m4/exponentf.m4.
55335         * modules/isnand: Use new file m4/exponentd.m4.
55336         * modules/isnanl: Use new file m4/exponentl.m4.
55337
55338 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
55339
55340         mktime.c: normalize tp->tm_isdst value to -1/0/1.
55341         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
55342         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
55343         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
55344
55345         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
55346         readlink on platforms without PATH_MAX.
55347
55348 2008-07-21  Eric Blake  <ebb9@byu.net>
55349
55350         Warn, not fail, on stale version.
55351         * top/GNUmakefile (_curr-ver): Tone down previous patch.
55352
55353         Don't allow installation with stale devel version number.
55354         * top/GNUmakefile (_is-install-target): New macro.
55355         (_curr-ver): Forbid installation with stale version number.
55356
55357 2008-07-20  Bruno Haible  <bruno@clisp.org>
55358
55359         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
55360         TESTS_ENVIRONMENT.
55361         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
55362
55363 2008-07-20  Bruno Haible  <bruno@clisp.org>
55364
55365         * lib/c-stack.h (c_stack_action): Add documentation.
55366         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
55367
55368 2008-07-20  Bruno Haible  <bruno@clisp.org>
55369
55370         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
55371         * modules/readlink (License): Likewise.
55372
55373 2008-07-17  Eric Blake  <ebb9@byu.net>
55374
55375         * modules/c-stack (Link): Fix typo.
55376
55377         Make c-stack use libsigsegv, when available.
55378         * modules/c-stack (Depends-on): Add libsigsegv.
55379         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
55380         needed.
55381         * lib/c-stack.c (SIGSTKSZ): Define fallback.
55382         (segv_handler, overflow_handler, c_stack_action)
55383         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
55384         implementation when libsigsegv is available, but only when using
55385         the library is necessary.
55386         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
55387         comment, explaining why XSI check fails on Linux.
55388         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
55389         * tests/test-c-stack2.sh: Tweak skip message.
55390         * NEWS: Document new link-time requirements.
55391
55392 2008-07-16  Eric Blake  <ebb9@byu.net>
55393
55394         c-stack: Expose false positives when not using libsigsegv.
55395         * modules/c-stack-tests (Files): Expand test.
55396         * tests/test-c-stack.c (main): Add means to conditionally trigger
55397         non-overflow SIGSEGV.
55398         * tests/test-c-stack2.sh: New file.
55399
55400 2008-07-14  Bruno Haible  <bruno@clisp.org>
55401
55402         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
55403         Reported by Eric Blake.
55404
55405 2008-07-14  Sam Steingold  <sds@gnu.org>
55406             Bruno Haible  <bruno@clisp.org>
55407
55408         New module libsigsegv.
55409         * modules/libsigsegv: New file.
55410         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
55411         modifications.
55412         * MODULES.html.sh (Signal handling): New section.
55413
55414 2008-07-14  Bruno Haible  <bruno@clisp.org>
55415
55416         * modules/unictype/ctype-* (Description): Add the word "function".
55417         Improves the resulting doc in MODULES.html.
55418
55419 2008-07-12  Ben Pfaff  <blp@gnu.org>
55420
55421         Add longlong module.
55422         * modules/longlong: New file.
55423
55424 2008-07-12  Bruno Haible  <bruno@clisp.org>
55425
55426         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
55427         to empty.
55428
55429 2008-07-10  Ben Pfaff  <blp@gnu.org>
55430
55431         Add isnan module.
55432         * doc/posix-functions/isnan.texi: Mention new module.
55433         * lib/math.in.h: Define isnan macro if we have decided to replace
55434         it.
55435         * m4/isnan.m4: New file.
55436         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
55437         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
55438         also.
55439         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
55440         redundancy.
55441         * m4/math_h.m4: Initialize and substitute variables for isnan
55442         module.
55443         * modules/isnan: New file.
55444         * modules/isnan-tests: New file.
55445         * modules/math: Add substitutions for new module.
55446         * tests/test-isnan.c: New file.
55447         * MODULES.html.sh: Mention new module.
55448
55449 2008-07-10  Ben Pfaff  <blp@gnu.org>
55450
55451         Add isnanf module.
55452         * lib/isnanf.m4: New file.
55453         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
55454         (gl_HAVE_ISNANF_IN_LIBM): New macro.
55455         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
55456         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
55457         * modules/isnanf: New file.
55458         * modules/isnanf-tests: New file.
55459         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
55460         files.
55461         * tests/test-isnanf-nolibm.c: factored most of its contents into
55462         new file tests/test-isnanf.h.
55463         * tests/test-isnanf.h: New file.
55464         * tests/test-isnanf.c: New file.
55465         * MODULES.html.sh: Mention new module.
55466         * doc/glibc-functions/isnanf.texi: Mention new module.
55467
55468 2008-07-10  Ben Pfaff  <blp@gnu.org>
55469
55470         Add isnand module.
55471         * lib/isnand.h: New file.
55472         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
55473         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
55474         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
55475         functionality also.
55476         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
55477         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
55478         (gl_HAVE_ISNAND_IN_LIBM): New macro.
55479         * modules/isnand: New file.
55480         * modules/isnand-tests: New file.
55481         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
55482         files.
55483         * tests/test-isnand-nolibm.c: factored most of its contents into
55484         new file tests/test-isnand.h.
55485         * tests/test-isnand.h: New file.
55486         * tests/test-isnand.c: New file.
55487         * MODULES.html.sh: Mention new module.
55488
55489 2008-07-10  Ben Pfaff  <blp@gnu.org>
55490
55491         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
55492         * lib/isnand.h: Rename lib/isnand-nolibm.h.
55493         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
55494         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
55495         * modules/isnanf-nolibm: Update references to renamed files.
55496         * modules/isnand-nolibm: Likewise.
55497         * modules/isnanf-nolibm-tests: Likewise.
55498         * modules/isnand-nolibm-tests: Likewise.
55499         * lib/frexp.c: Likewise.
55500         * lib/isfinite.c: Likewise.
55501         * lib/signbitd.c: Likewise.
55502         * lib/signbitf.c: Likewise.
55503         * lib/vasnprintf.c: Likewise.
55504         * tests/test-ceilf1.c: Likewise.
55505         * tests/test-ceilf2.c: Likewise.
55506         * tests/test-floorf1.c: Likewise.
55507         * tests/test-floorf2.c: Likewise.
55508         * tests/test-frexp.c: Likewise.
55509         * tests/test-round1.c: Likewise.
55510         * tests/test-round2.c: Likewise.
55511         * tests/test-roundf1.c: Likewise.
55512         * tests/test-strtod.c: Likewise.
55513         * tests/test-trunc1.c: Likewise.
55514         * tests/test-trunc2.c: Likewise.
55515         * tests/test-truncf1.c: Likewise.
55516         * tests/test-truncf2.c: Likewise.
55517         * NEWS: Mention the renamed header files.
55518
55519 2008-07-11  Jim Meyering  <meyering@redhat.com>
55520
55521         vc-list-files: make the last-resort awk code more portable
55522         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
55523         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
55524         does not support it.
55525
55526 2008-07-10  Eric Blake  <ebb9@byu.net>
55527
55528         Work with tar's bootstrap.
55529         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
55530         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
55531         an m4 comment.
55532
55533 2008-07-09  Jim Meyering  <meyering@redhat.com>
55534
55535         posix-shell.m4: fix typo that made this test malfunction
55536         * m4/posix-shell.m4: Remove capitalization in variable name.
55537
55538 2008-07-08  Bruno Haible  <bruno@clisp.org>
55539
55540         * m4/onceonly.m4: Update comments.
55541         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55542
55543 2008-07-04  Jim Meyering  <meyering@redhat.com>
55544
55545         * users.txt: Add vc-dwim.
55546         (bison, coreutils): Use the gitweb URL.
55547
55548 2008-07-03  Jim Meyering  <meyering@redhat.com>
55549
55550         * users.txt: Add libffcall.  From Sam Steingold.
55551
55552 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
55553
55554         getdate.y: do not ignore TZ with relative day, month or year offset
55555         * lib/getdate.y (get_date): Move the tz-handling block to follow the
55556         relative-date-handling, since otherwise, the latter would clobber the
55557         sole output (an updated Start value) of the tz-handling block.
55558         * tests/test-getdate.c: Tests for the fix
55559
55560 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55561
55562         Recognize 'foo_LIBRARIES += libgnu.a'.
55563         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
55564         makefile snippet has already specified an installation location,
55565         also using '+='.
55566
55567 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
55568
55569         getdate.y: factor out common actions
55570         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
55571         Use them in place of open-coded actions.
55572
55573 2008-07-01  Simon Josefsson  <simon@josefsson.org>
55574
55575         Add self-test for getdate module.
55576         * modules/getdate-tests: New file.
55577         * tests/test-getdate.c: New file.
55578
55579 2008-06-29  Bruno Haible  <bruno@clisp.org>
55580
55581         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
55582         .gitignore.
55583         Reported by Sylvain Beucler <beuc@beuc.net>.
55584
55585 2008-06-29  Bruno Haible  <bruno@clisp.org>
55586
55587         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
55588         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
55589
55590 2008-06-29  Bruno Haible  <bruno@clisp.org>
55591
55592         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
55593         EXTRA_DIST.
55594         Reported by Sylvain Beucler <beuc@beuc.net>.
55595
55596 2008-06-26  Jim Meyering  <meyering@redhat.com>
55597
55598         make several modules depend on the "open" module
55599         This provides slightly increased consistency when opening-for-write
55600         the name of a non-directory spelled with a trailing slash.
55601         * modules/chdir-safer: Likewise.
55602         * modules/chown: Likewise.
55603         * modules/clean-temp: Likewise.
55604         * modules/copy-file: Likewise.
55605         * modules/fchdir: Likewise.
55606         * modules/fcntl-safer: Likewise.
55607         * modules/pipe: Likewise.
55608         * modules/utime: Likewise.
55609         Prompted by Eric Blake and Bruno Haible.
55610
55611 2008-06-24  Andreas Schwab  <schwab@suse.de>
55612
55613         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
55614         literals can be used as initializers for global variables.
55615
55616 2008-06-23  Eric Blake  <ebb9@byu.net>
55617
55618         Make gnulib-cache.m4 easier to diff.
55619         * gnulib-tool (func_import): Allow newlines when reading cached
55620         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
55621
55622 2008-06-23  Bruno Haible  <bruno@clisp.org>
55623
55624         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
55625         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
55626         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
55627         m4/signalblocking.m4.
55628         (gl_PREREQ_SIGACTION): Don't invoke it.
55629         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
55630         gl_PREREQ_SIG_HANDLER_H.
55631         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55632         Don't check for sigaction here.
55633
55634 2008-06-23  Bruno Haible  <bruno@clisp.org>
55635
55636         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
55637         (install_handlers): Don't set the SA_RESETHAND flag.
55638
55639 2008-06-23  Bruno Haible  <bruno@clisp.org>
55640
55641         * m4/sigaction.m4: Comment fixes.
55642         * lib/signal.in.h: Likewise.
55643
55644 2008-06-23  Eric Blake  <ebb9@byu.net>
55645
55646         Fix typo.
55647         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
55648
55649         Avoid SA_ namespace.
55650         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
55651         Reported by Ralf Wildenhues.
55652
55653         Avoid test failure due to SA_RESTORER.
55654         * tests/test-sigaction.c (SA_MASK): New macro.
55655         (main): Avoid failing due to extension flags being set.
55656         Reported by Jim Meyering.
55657
55658         Revert use of sig-handler.h in sigprocmask.c.
55659         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
55660         it requires the existence of struct sigaction.
55661         * lib/sigprocmask.c (handler_t): Restore typedef.
55662         (rpl_signal, old_handlers): Use local type.
55663
55664 2008-06-22  Bruno Haible  <bruno@clisp.org>
55665
55666         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
55667         conditionally.
55668         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55669
55670 2008-06-22  Bruno Haible  <bruno@clisp.org>
55671
55672         * doc/posix-functions/siginterrupt.texi: Move note.
55673
55674         * lib/signal.in.h (SA_RESTART): New macro.
55675         * lib/sigaction.c: Update comment.
55676
55677         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
55678
55679         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
55680         (gl_PREREQ_SIGPROCMASK): Invoke it.
55681         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
55682
55683         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
55684
55685         * lib/sigprocmask.c: Update a comment.
55686
55687 2008-06-21  Eric Blake  <ebb9@byu.net>
55688
55689         Use sigaction module rather than signal().
55690         * modules/c-stack (Depends-on): Add sigaction.
55691         * modules/fatal-signal (Depends-on): Likewise.
55692         * modules/nanosleep (Depends-on): Likewise.
55693         * modules/sigprocmask (Files): Add sig-handler.h.
55694         * modules/sigaction (Files): Likewise.
55695         * lib/sig-handler.h (get_handler): New file, suggested by Paul
55696         Eggert.
55697         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
55698         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
55699         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
55700         (init_fatal_signals): Likewise.
55701         * lib/nanosleep.c (rpl_nanosleep): Likewise.
55702         (siginterrupt): Delete fallback.
55703         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
55704         instead.
55705         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
55706         siginterrupt.
55707
55708         New module sigaction, for mingw.
55709         * modules/sigaction: New module...
55710         * modules/sigaction-tests: ...and its test.
55711         * m4/sigaction.m4: New file.
55712         * lib/sigaction.c: Likewise.
55713         * tests/test-sigaction.c: Likewise.
55714         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
55715         * modules/signal (Makefile.am): Likewise.
55716         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
55717         needed.
55718         * doc/posix-headers/signal.texi (signal.h): Mention provided
55719         types.
55720         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
55721         that sigaction is preferable.
55722         * doc/posix-functions/sigaction.texi (sigaction): Mention new
55723         module.
55724         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55725         sigaction.
55726
55727         Improve robustness of sigprocmask by overriding signal.
55728         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
55729         is in use.
55730         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
55731         (SIGKILL, SIGSTOP): Provide fallbacks.
55732         (rpl_signal): Implement.
55733         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
55734         signal can be called inside handlers.
55735
55736         Fix nanosleep module on mingw.
55737         * modules/nanosleep (Depends-on): Add sys_select.
55738         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
55739
55740         Fix licensing of sigprocmask.
55741         * modules/raise (License): Relicense as LGPL.
55742
55743 2008-06-21  Bruno Haible  <bruno@clisp.org>
55744
55745         * lib/propername.c (proper_name_utf8): Don't use the transliterated
55746         result if it contains question marks.
55747         Reported by Michael Geng <linux@michaelgeng.de>.
55748
55749 2008-06-19  Bruno Haible  <bruno@clisp.org>
55750
55751         Fix CVS-ism.
55752         * doc/gnulib.texi: Include updated-stamp.texi.
55753         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
55754         (updated-stamp.texi): New rule.
55755         (gnulib.info): Depend on it.
55756         * doc/.gitignore: Add updated-stamp.texi.
55757         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
55758
55759 2008-06-19  Bruno Haible  <bruno@clisp.org>
55760
55761         * doc/Makefile (gnulib.info): Update and simplify dependencies.
55762         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
55763
55764 2008-06-19  Eric Blake  <ebb9@byu.net>
55765
55766         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
55767         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
55768         Reported by Stepan Kasal.
55769
55770 2008-06-18  Bruno Haible  <bruno@clisp.org>
55771
55772         * lib/fatal-signal.c (init_fatal_signals): Add comment.
55773         Reported by Eric Blake.
55774
55775 2008-06-18  Eric Blake  <ebb9@byu.net>
55776
55777         Work around cygwin 1.5.25 strsignal bug.
55778         * tests/test-strsignal.c: Allow for const char *.
55779         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
55780
55781 2008-06-18  Simon Josefsson  <simon@josefsson.org>
55782
55783         * users.txt: Update URL to article and add author/date
55784         information.
55785
55786 2008-06-17  Bruno Haible  <bruno@clisp.org>
55787
55788         New macro gl_DISABLE_THREADS.
55789         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
55790         if the user did not pass --enable-threads or --disable-threads option.
55791         (gl_DISABLE_THREADS): New macro.
55792         Reported by Eric Blake <ebb9@byu.net>.
55793
55794 2008-06-17  Bruno Haible  <bruno@clisp.org>
55795
55796         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
55797         when the macro ignores it.
55798         Based on a patch by Eric Blake <ebb9@byu.net>.
55799
55800 2008-06-17  Bruno Haible  <bruno@clisp.org>
55801
55802         * modules/tls (License): Change to LGPLv2+.
55803         Reported by Eric Blake.
55804
55805 2008-06-17  Eric Blake  <ebb9@byu.net>
55806
55807         Simplify c-stack prerequisites.
55808         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
55809         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
55810         no longer requires <ucontext.h> to exist.  Optimize setrlimit
55811         check.
55812         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
55813         <sys/resource.h>.
55814
55815         Move c-stack test into testsuite.
55816         * modules/c-stack-tests: New file.
55817         * lib/c-stack.c [DEBUG]: Move test program...
55818         * tests/test-c-stack.c: ...into this new file.  Skip rather than
55819         fail test if sigaltstack is lacking.
55820         * tests/test-c-stack.sh: New driver file.
55821
55822 2008-06-16  Eric Blake  <ebb9@byu.net>
55823
55824         Use raise module consistently.
55825         * modules/fatal-signal (Depends-on): Add raise.
55826         * modules/sigprocmask (Depends-on): Likewise.
55827         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
55828         * lib/sigprocmask.c (sigprocmask): Likewise.
55829         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55830         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
55831
55832         Fix compliance bug in sigpending.
55833         * lib/sigprocmask.c (sigpending): Return pending array via
55834         parameter, not return value.
55835
55836 2008-06-14  Eric Blake  <ebb9@byu.net>
55837
55838         Improve obstack-printf test code.
55839         * tests/test-obstack-printf.c (test_function): Fix comment, and
55840         simplify usage of obstack_* in macros.  Add a test for coverage.
55841         Reported by Bruno Haible.
55842
55843 2008-06-14  Bruno Haible  <bruno@clisp.org>
55844
55845         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
55846         array size as a constant, not as a const variable.
55847         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
55848         AC_USE_SYSTEM_EXTENSIONS.
55849         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
55850         Test whether the obstack_printf function actually exists.
55851         * modules/obstack-printf (Depends-on): Add extensions.
55852         (Include): Remove obstack.h.
55853         * modules/obstack-printf-posix (Depends-on): Add extensions.
55854         (Include): Remove obstack.h.
55855
55856 2008-06-13  Eric Blake  <ebb9@byu.net>
55857
55858         Add obstack-printf and obstack-printf-posix modules.
55859         * modules/obstack-printf: New file.
55860         * modules/obstack-printf-posix: Likewise.
55861         * MODULES.html.sh (Misc): Mention them.
55862         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
55863         Likewise.
55864         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
55865         Likewise.
55866         * modules/stdio (Makefile.am): Accomodate new modules.
55867         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55868         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
55869         Declare.
55870         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
55871         functions.
55872         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
55873         (gl_REPLACE_OBSTACK_PRINTF): New macros
55874         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
55875         * tests/test-obstack-printf.c: New file.
55876         * modules/obstack-printf-tests: Likewise.
55877         * modules/obstack-printf-posix-tests: Likewise.
55878
55879 2008-06-11  Bruno Haible  <bruno@clisp.org>
55880
55881         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
55882         * lib/open.c: Include errno.h.
55883         (open): Fail when attempting to write to a file that has a trailing
55884         slash.
55885         * tests/test-open.c (main): Test against trailing slash bug.
55886         * doc/posix-functions/open.texi: Mention the trailing slash bug.
55887
55888 2008-06-10  Bruno Haible  <bruno@clisp.org>
55889
55890         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
55891         for $? to work inside the trap command, with various /bin/sh-s.
55892         * tests/test-vc-list-files-cvs.sh: Likewise.
55893
55894 2008-06-10  Bruno Haible  <bruno@clisp.org>
55895
55896         * lib/acl-internal.h: Don't include gettext.h here.
55897         * lib/set-mode-acl.c: Include gettext.h here.
55898         * lib/copy-acl.c: Likewise.
55899
55900 2008-06-10  Bruno Haible  <bruno@clisp.org>
55901
55902         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
55903         * lib/wait-process.c (wait_subprocess): Likewise.
55904         * lib/execute.h (execute): Add termsigp argument.
55905         * lib/execute.c (execute): Likewise.
55906         * lib/csharpcomp.c (compile_csharp_using_pnet,
55907         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
55908         * lib/csharpexec.c (execute_csharp_using_pnet,
55909         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
55910         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
55911         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
55912         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
55913         is_jikes_present): Update.
55914         * lib/javaexec.c (execute_java_class): Update.
55915         * lib/javaversion.c (execute_and_read_line): Update.
55916         * NEWS: Document the changes.
55917         Reported by Eric Blake.
55918
55919 2008-06-10  Eric Blake  <ebb9@byu.net>
55920
55921         Add missing include.
55922         * tests/test-strstr.c (includes): Add <signal.h>.
55923         * tests/test-strcasestr.c (includes): Likewise.
55924         * tests/test-memmem.c (includes): Likewise.
55925
55926 2008-06-10  Bruno Haible  <bruno@clisp.org>
55927
55928         * lib/wait-process.c (wait_subprocess): Add an assertion.
55929
55930 2008-06-10  Bruno Haible  <bruno@clisp.org>
55931
55932         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
55933
55934 2008-06-10  Bruno Haible  <bruno@clisp.org>
55935
55936         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
55937         using alarm().
55938         * tests/test-strcasestr.c (main): Likewise.
55939         * tests/test-strstr.c (main): Likewise.
55940
55941 2008-06-09  Bruno Haible  <bruno@clisp.org>
55942
55943         Work around the Solaris 10 ACE ACLs ABI change.
55944         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
55945         declare if ACL_NO_TRIVIAL is present.
55946         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
55947         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
55948         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
55949         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
55950         define if ACL_NO_TRIVIAL is present.
55951         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
55952         and use the current ABI.
55953         (file_has_acl): Use same #if condition as elsewhere.
55954         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
55955         in use, and use the current ABI.
55956         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
55957         Reported by Jim Meyering.
55958
55959 2008-06-09  Eric Blake  <ebb9@byu.net>
55960
55961         Work around environments that (stupidly) ignore SIGALRM.
55962         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
55963         before using alarm().
55964         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55965         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55966         Reported by Ian Beckwith <ianb@erislabs.net>.
55967
55968         Produce autobuild blurb earlier in log.
55969         * modules/autobuild (configure.ac-early): Move AB_INIT here.
55970
55971 2008-06-09  Jim Meyering  <meyering@redhat.com>
55972         and OndÅ™ej Vašík  <ovasik@redhat.com>
55973
55974         utimens.c: correct kernel bug work-around
55975         OndÅ™ej Vašík found that the invalid return value of 280 indicates
55976         failure, not success, and the kernel bug we're trying to work
55977         around affects not just the utimensat call, but also the fallback
55978         futimens call.
55979         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
55980         not success.
55981         [HAVE_FUTIMENS]: Use the same work-around, here.
55982
55983 2008-06-09  Jim Meyering  <meyering@redhat.com>
55984
55985         add more guards around definition of ACE_-related code
55986         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
55987         ALLOW and ACE_OWNER are also defined.
55988
55989 2008-06-08  Bruno Haible  <bruno@clisp.org>
55990
55991         * lib/acl-internal.h: Add me as co-author.
55992         * lib/file-has-acl.c: Likewise.
55993         * lib/set-mode-acl.c: Likewise.
55994         * lib/copy-acl.c: Likewise.
55995
55996 2008-06-08  Bruno Haible  <bruno@clisp.org>
55997
55998         Add support for AIX ACLs.
55999         * lib/acl-internal.h (acl_nontrivial): New declaration.
56000         * lib/file-has-acl.c (acl_nontrivial): New function.
56001         (file_has_acl): Add implementation using AIX 4 ACL API.
56002         * lib/set-mode-acl.c (qset_acl): Likewise.
56003         * lib/copy-acl.c (qcopy_acl): Likewise.
56004
56005 2008-06-08  Bruno Haible  <bruno@clisp.org>
56006
56007         Add support for HP-UX ACLs.
56008         * lib/acl-internal.h (acl_nontrivial): New declaration.
56009         * lib/file-has-acl.c (acl_nontrivial): New function.
56010         (file_has_acl): Add implementation using HP-UX 11 ACL API.
56011         * lib/set-mode-acl.c (qset_acl): Likewise.
56012         * lib/copy-acl.c (qcopy_acl): Likewise.
56013
56014 2008-06-08  Bruno Haible  <bruno@clisp.org>
56015
56016         Add support for Cygwin ACLs.
56017         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
56018         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
56019         the chmod_or_fchmod call.
56020         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
56021
56022 2008-06-08  Bruno Haible  <bruno@clisp.org>
56023
56024         Fix bug with setuid modes in Solaris 10+ code.
56025         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
56026         succeeded, when the mode contains some special bits.
56027
56028 2008-06-08  Bruno Haible  <bruno@clisp.org>
56029
56030         Add support for Solaris 7..10 ACLs.
56031         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
56032         declarations.
56033         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
56034         functions.
56035         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
56036         * lib/set-mode-acl.c (qset_acl): Likewise.
56037         * lib/copy-acl.c (qcopy_acl): Likewise.
56038
56039 2008-06-08  Bruno Haible  <bruno@clisp.org>
56040
56041         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
56042         declaration.
56043         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
56044         (acl_access_nontrivial): Remove MacOS X case.
56045         (file_has_acl): Use acl_extended_nontrivial.
56046         * lib/copy-acl.c (qcopy_acl): Likewise.
56047
56048 2008-06-08  Bruno Haible  <bruno@clisp.org>
56049
56050         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
56051
56052 2008-06-08  Jim Meyering  <meyering@redhat.com>
56053
56054         * modules/acl (Maintainer): Add Bruno Haible.
56055
56056 2008-06-07  Bruno Haible  <bruno@clisp.org>
56057
56058         Improve support for Tru64 ACLs.
56059         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
56060         ACL on OSF/1.
56061
56062 2008-06-07  Bruno Haible  <bruno@clisp.org>
56063
56064         Add support for MacOS X ACLs.
56065         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
56066         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
56067         * lib/set-mode-acl.c (qset_acl): Likewise.
56068         * lib/copy-acl.c (qcopy_acl): Likewise.
56069
56070 2008-06-07  Bruno Haible  <bruno@clisp.org>
56071
56072         Fix memory leak introduced on 2008-05-22.
56073         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
56074         use.
56075
56076 2008-06-07  Bruno Haible  <bruno@clisp.org>
56077
56078         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
56079         to construct an empty ACL.
56080
56081 2008-06-07  Bruno Haible  <bruno@clisp.org>
56082
56083         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
56084         precisely.
56085         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
56086
56087 2008-06-07  Bruno Haible  <bruno@clisp.org>
56088
56089         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
56090         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
56091
56092 2008-06-07  Bruno Haible  <bruno@clisp.org>
56093
56094         * doc/posix-functions/_setjmp.texi: Explain the use of this function
56095         regardless of POSIX.
56096         * doc/posix-functions/_longjmp.texi: Likewise.
56097         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
56098         SystemV platform in this case.
56099
56100 2008-06-06  Eric Blake  <ebb9@byu.net>
56101
56102         Document abort() bugs.
56103         * doc/posix-functions/abort.texi (abort): Mention anomalies.
56104
56105         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
56106         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
56107         sigsetjmp.
56108         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
56109         siglongjmp, but only as a macro.
56110         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
56111         is obsolete.
56112         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
56113
56114         Tweak documentation to cover cygwin argz bugs.
56115         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
56116         argz bug fix; no code change needed since no cygwin releases
56117         occurred between the last fix and the bug being tested.
56118         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
56119         module and recently fixed cygwin bugs.
56120         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
56121         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
56122         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
56123         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
56124         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
56125         Likewise.
56126         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
56127         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
56128         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
56129         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
56130         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
56131         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
56132         Likewise.
56133
56134         Avoid gcc warning on cygwin.
56135         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
56136         !ACL_NO_TRIVIAL]: Avoid unused variable.
56137
56138 2008-06-05  Eric Blake  <ebb9@byu.net>
56139
56140         Be tolerant of UNKNOWN version in gnulib-tool test dir.
56141         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
56142         git-version-gen fails to come up with a version.
56143         Reported by Simon Josefsson.
56144
56145 2008-06-05  Jim Meyering  <meyering@redhat.com>
56146             Paul Eggert  <eggert@cs.ucla.edu>
56147
56148         utimens.c: work around a probable Linux kernel bug
56149         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
56150         appears to be a kernel bug that causes utimensat to return 280
56151         instead of 0, indicating success.
56152
56153 2008-06-04  Bruno Haible  <bruno@clisp.org>
56154
56155         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
56156         2008-06-01 commit.
56157
56158 2008-06-04  Bruno Haible  <bruno@clisp.org>
56159
56160         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
56161         * lib/file-has-acl.c (acl_access_nontrivial): New function.
56162         (file_has_acl): Use it. Save errno afterwards.
56163         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
56164
56165 2008-06-03  Bruno Haible  <bruno@clisp.org>
56166
56167         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
56168         draft code. Simplify #ifs.
56169         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
56170         Put Solaris code after POSIX-draft code. Fix comments regarding
56171         Solaris 10, HP-UX. Mention Cygwin.
56172         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
56173
56174 2008-06-03  Eric Blake  <ebb9@byu.net>
56175
56176         Provide fallback for older kernels.
56177         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
56178         Provide runtime fallback if kernel lacks support.
56179         Reported by Mike Frysinger.
56180
56181 2008-06-02  Bruno Haible  <bruno@clisp.org>
56182
56183         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
56184         it exists.
56185
56186 2008-06-02  Bruno Haible  <bruno@clisp.org>
56187
56188         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
56189         * lib/copy-acl.c (qcopy_acl): Update comment.
56190
56191 2008-06-02  Bruno Haible  <bruno@clisp.org>
56192
56193         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
56194         like ACL APIs.
56195
56196 2008-06-02  Bruno Haible  <bruno@clisp.org>
56197
56198         * tests/test-file-has-acl.sh: Use different code for Cygwin.
56199         * tests/test-set-mode-acl.sh: Likewise.
56200         * tests/test-copy-acl.sh: Likewise.
56201         * tests/test-copy-file.sh: Likewise.
56202
56203 2008-06-02  Bruno Haible  <bruno@clisp.org>
56204
56205         * tests/test-file-has-acl.sh: Remove unused code.
56206
56207 2008-06-01  Bruno Haible  <bruno@clisp.org>
56208
56209         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
56210         (copy_acl): Just a wrapper around qcopy_acl that emits the error
56211         messages.
56212         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
56213
56214 2008-06-01  Bruno Haible  <bruno@clisp.org>
56215
56216         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
56217         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
56218         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
56219         APIs.
56220         * modules/acl-tests (configure.ac): Remove tests now contained in
56221         m4/acl.m4.
56222
56223 2008-06-02  Jim Meyering  <meyering@redhat.com>
56224
56225         announce-gen: use a better key-server host name
56226         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
56227         it may be more consistently reliable.  Suggested by Werner Koch
56228         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
56229
56230 2008-06-01  Bruno Haible  <bruno@clisp.org>
56231
56232         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
56233         Reported by Voroskoi Andras <voroskoi@gmail.com>.
56234
56235 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
56236
56237         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
56238
56239 2008-06-01  Bruno Haible  <bruno@clisp.org>
56240
56241         New ACL tests.
56242         * tests/test-file-has-acl.sh: New file.
56243         * tests/test-file-has-acl.c: New file.
56244         * tests/test-set-mode-acl.sh: New file.
56245         * tests/test-set-mode-acl.c: New file.
56246         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
56247         * tests/test-copy-acl.c: New file.
56248         * modules/acl-tests: New file, based on modules/copy-file-tests.
56249         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
56250         (Depends-on): Add acl-tests.
56251         (configure.ac): Remove checks.
56252         (Makefile.am): Don't create test-sameacls program here any more.
56253
56254 2008-06-01  Bruno Haible  <bruno@clisp.org>
56255
56256         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
56257         * tests/test-sameacls.c: Include progname.h.
56258         (main): Invoke set_program_name. Portability fixes for MacOS X,
56259         Solaris, HP-UX.
56260
56261 2008-06-01  Bruno Haible  <bruno@clisp.org>
56262
56263         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
56264         function.
56265         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
56266
56267 2008-06-01  Bruno Haible  <bruno@clisp.org>
56268
56269         * modules/rpmatch (Depends-on): Add strdup.
56270
56271 2008-06-01  Bruno Haible  <bruno@clisp.org>
56272
56273         * lib/pipe.c: Include unistd-safer.h.
56274         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
56275         * modules/pipe (Depends-on): Add unistd-safer.
56276
56277 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56278
56279         * modules/autobuild (configure.ac): Call AB_INIT.
56280
56281 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56282
56283         * tests/test-getaddrinfo.c: Don't print debug messages by default.
56284         Suggested by Bruno Haible <bruno@clisp.org>.
56285
56286 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56287
56288         * tests/test-base64.c: Cast size_t to unsigned long when invoking
56289         printf.  Use %lu instead of %d.  Reported by Bruno Haible
56290         <bruno@clisp.org>.
56291
56292 2008-05-29  Eric Blake  <ebb9@byu.net>
56293
56294         Prefer new POSIX 200x interfaces over futimesat.
56295         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
56296         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
56297         when available.
56298         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
56299
56300 2008-05-28  Bruno Haible  <bruno@clisp.org>
56301
56302         * modules/stpcpy (License): Change to LGPLv2+.
56303         Requested by David Lutterkort <dlutter@redhat.com>.
56304
56305 2008-05-27  Bruno Haible  <bruno@clisp.org>
56306
56307         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
56308         current mingw.
56309         Reported by Jose E. Marchesi <jemarch@gnu.org>.
56310
56311 2008-05-27  Bruno Haible  <bruno@clisp.org>
56312
56313         * modules/iconv_open (Link): New section, from module 'iconv'.
56314         * modules/striconv (Link): Likewise.
56315         * modules/striconveh (Link): Likewise.
56316         * modules/xstriconv (Link): Likewise.
56317         * modules/unicodeio (Link): Likewise.
56318         * modules/propername (Link): Likewise.
56319         Reported by Jim Meyering.
56320
56321 2008-05-26  Jim Meyering  <meyering@redhat.com>
56322
56323         sha256: do not artificially restrict buffer length to be < 2^32
56324         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
56325         uint32_t to size_t.
56326         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
56327         to match.
56328
56329         avoid unaligned access errors, e.g., on sparc
56330         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
56331         direct access through a possibly-unaligned uint64* pointer.
56332         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
56333         direct access through a possibly-unaligned uint32* pointer.
56334         Prompted by this patch from Tom "spot" Callaway:
56335         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
56336
56337         sha512.c: fix typo in comment
56338         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
56339
56340 2008-05-25  Bruno Haible  <bruno@clisp.org>
56341
56342         * lib/set-mode-acl.c: Renamed from lib/acl.c.
56343         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
56344         (Makefile.am): Update lib_SOURCES.
56345
56346 2008-05-25  Bruno Haible  <bruno@clisp.org>
56347
56348         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
56349
56350 2008-05-25  Jim Meyering  <meyering@redhat.com>
56351
56352         useless-if-before-free: freed expr may have white-space differences
56353         * build-aux/useless-if-before-free: Recognize cases in which the
56354         freed expression differs from the tested one in embedded white
56355         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
56356         $1 was used, so we can't make any regexp shy.  Improved tests now
56357         detect this.
56358
56359         useless-if-before-free: accept white space in the expression.
56360         * build-aux/useless-if-before-free: For now, any white space
56361         in the expression must be identical in the free argument.
56362
56363         useless-if-before-free: efficiency tweak
56364         * build-aux/useless-if-before-free: Make the expression-matching
56365         regexp "shy".
56366         Make the *outer* regexp shy, not the expr-matching one.
56367
56368         update code-in-comment to accept cast of free arg
56369         * build-aux/useless-if-before-free: Update regexp.
56370
56371 2008-05-25  Bruno Haible  <bruno@clisp.org>
56372
56373         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
56374         * modules/copy-file-tests (Files, Makefile.am): Update.
56375         * tests/test-copy-file.c (func_test_copy): Update.
56376
56377 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
56378
56379         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
56380
56381 2008-05-23  Bruno Haible  <bruno@clisp.org>
56382
56383         Improve support for ACLs on OSF/1.
56384         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
56385         Remove fallback for unknown flavors of ACLs.
56386
56387 2008-05-22  Bruno Haible  <bruno@clisp.org>
56388
56389         Add support for ACLs on OSF/1.
56390         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
56391         replacements.
56392         (acl_free_text): New macro fallback.
56393         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
56394         acl_free.
56395         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
56396         acl_free_text function. Require AC_C_INLINE.
56397
56398 2008-05-22  Bruno Haible  <bruno@clisp.org>
56399
56400         Make copy_acl work on MacOS X 10.5.
56401         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
56402         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
56403         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
56404         If MODE_INSIDE_ACL, don't assume that every system has the same text
56405         representation for ACLs as FreeBSD.
56406         * lib/copy-acl.c (copy_acl): Add support for platforms with
56407         !MODE_INSIDE_ACL.
56408         * lib/file-has-acl.c (file_has_acl): Likewise.
56409         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
56410         FreeBSD, MacOS X, or IRIX, respectively.
56411
56412 2008-05-22  Bruno Haible  <bruno@clisp.org>
56413
56414         * lib/acl.h: Don't include <sys/acl.h>.
56415         (GETACLCNT): Move fallback to lib/acl-internal.h.
56416         * lib/acl-internal.h: Include <sys/acl.h> here.
56417         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
56418
56419 2008-05-22  Bruno Haible  <bruno@clisp.org>
56420
56421         Split off copy_acl function to separate file.
56422         * lib/copy-acl.c: New file, extracted from lib/acl.c.
56423         * lib/acl.c (copy_acl): Moved function to separate file.
56424         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
56425         * modules/acl (Files): Add lib/copy-acl.c.
56426         (Makefiles.am): Augment lib_SOURCES.
56427
56428 2008-05-22  Bruno Haible  <bruno@clisp.org>
56429
56430         * modules/copy-file-tests: New file.
56431         * tests/test-copy-file.sh: New file.
56432         * tests/test-copy-file.c: New file.
56433         * tests/test-copy-file-sameacls.c: New file.
56434
56435 2008-05-22  Eric Blake  <ebb9@byu.net>
56436
56437         Avoid gcc warning.
56438         * tests/test-memcmp.c (main): Pass NULL indirectly.
56439
56440 2008-05-21  Bruno Haible  <bruno@clisp.org>
56441
56442         Add reference doc about ACLs.
56443         * doc/acl-resources.txt: New file.
56444         * doc/acl-cygwin.txt: New file.
56445
56446 2008-05-21  Bruno Haible  <bruno@clisp.org>
56447
56448         Avoid one more warning from gcc.
56449         * lib/vasnprintf.c (IF_LINT): Update comments.
56450         (VASNPRINTF): Use it also for the 'prefix' array initializer.
56451
56452 2008-05-21  Jim Meyering  <meyering@redhat.com>
56453
56454         avoid a warning from gcc
56455         * lib/vasnprintf.c (IF_LINT): Define.
56456         (scale10_round_decimal_long_double):
56457         Use it to avoid a "may be used uninitialized" warning.
56458         (scale10_round_decimal_double): Likewise.
56459
56460 2008-05-21  Simon Josefsson  <simon@josefsson.org>
56461
56462         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
56463         declared.
56464
56465 2008-05-20  Bruno Haible  <bruno@clisp.org>
56466
56467         * tests/test-memcmp.c (main): Test also the sign of the result. Test
56468         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
56469
56470 2008-05-20  Simon Josefsson  <simon@josefsson.org>
56471
56472         * modules/memcmp-tests: New file.
56473         * tests/test-memcmp.c: New file.
56474
56475 2008-05-19  Bruno Haible  <bruno@clisp.org>
56476
56477         * modules/propername (Notice, configure.ac): Put quoted "..." into
56478         --keyword option.
56479         * lib/propername.h: Update comments accordingly.
56480         Reported by Eric Blake.
56481
56482 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
56483
56484         * modules/getpass-gnu (Depends-on): Add fseeko.
56485
56486 2008-05-19  Simon Josefsson  <simon@josefsson.org>
56487
56488         * modules/base64-tests: New file.
56489
56490 2008-05-19  Bo Borgerson <gigabo@gmail.com>
56491
56492         * lib/base64.c (base64_decode_ctx): If a decode context structure
56493         was passed in use it to ignore newlines.  If a context structure
56494         was _not_ passed in, continue to treat newlines as garbage (this
56495         is the historical behavior).  Formerly base64_decode.
56496         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
56497         takes a decode context structure.
56498         * lib/base64.h (base64_decode): Macro for four-argument calls.
56499         (base64_decode_alloc): Likewise.
56500         * lib/base64.c (base64_decode_ctx): If a decode context structure
56501         was passed in use it to ignore newlines.  If a context structure
56502         was _not_ passed in, continue to treat newlines as garbage (this
56503         is the historical behavior).  Formerly base64_decode.
56504         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
56505         takes a decode context structure.
56506         * lib/base64.h (base64_decode): Macro for four-argument calls.
56507         (base64_decode_alloc): Likewise.
56508
56509 2008-05-19  Jim Meyering  <meyering@redhat.com>
56510
56511         avoid a warning from gcc
56512         * lib/trim.c (IF_LINT): Define.
56513         (trim2): Use it to avoid a "may be used uninitialized" warning.
56514
56515         Fix doc typo.
56516         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
56517
56518 2008-05-19  Bruno Haible  <bruno@clisp.org>
56519
56520         * doc/glibc-functions/getpass.texi: Document limits of other
56521         implementations.
56522
56523 2008-05-19  Simon Josefsson  <simon@josefsson.org>
56524             Bruno Haible <bruno@clisp.org>
56525
56526         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
56527
56528 2008-05-18  Bruno Haible  <bruno@clisp.org>
56529
56530         * modules/propername: New file, from GNU gettext.
56531         * lib/propername.h: New file, from GNU gettext.
56532         * lib/propername.c: New file, from GNU gettext.
56533         * MODULES.html.sh (Internationalization functions): Add propername.
56534
56535 2008-05-16  Jim Meyering  <meyering@redhat.com>
56536             Bruno Haible  <bruno@clisp.org>
56537
56538         Avoid some warnings from "gcc -Wshadow".
56539         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
56540
56541 2008-05-15  Eric Blake  <ebb9@byu.net>
56542
56543         Extend previous patch to cygwin 1.7.0.
56544         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
56545         fast implementation in cygwin >= 1.7.0.
56546         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56547         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56548
56549 2008-05-15  Bruno Haible  <bruno@clisp.org>
56550
56551         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
56552         implementation in glibc >= 2.9.
56553         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56554         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56555
56556 2008-05-15  Bruno Haible  <bruno@clisp.org>
56557
56558         * MODULES.html.sh (Internationalization functions): Remove linebreak.
56559         (Unicode string functions): Add unilbrk/*.
56560         Reported by Karl Berry.
56561
56562 2008-05-15  Eric Blake  <ebb9@byu.net>
56563
56564         Fix violation of <stdbool.h> replacement in regex.
56565         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
56566         * lib/regexec.c (re_search_internal): Likewise.
56567         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
56568
56569 2008-05-15  Jim Meyering  <meyering@redhat.com>
56570
56571         avoid distracting test output when git or cvs is not found
56572         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
56573         * tests/test-vc-list-files-git.sh: Likewise.
56574
56575 2008-05-15  Eric Blake  <ebb9@byu.net>
56576
56577         Glibc finally accepted the memmem speedup code, bugzilla #5514.
56578         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
56579         glibc version.
56580         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
56581         * doc/posix-functions/strstr.texi (strstr): Likewise.
56582         * lib/str-two-way.h (MAX): Sychronize with glibc.
56583
56584 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
56585
56586         * lib/regcomp.c (optimize_utf8): Add a note on why we test
56587         opr.ctx_type.
56588         (calc_first): Initialize constraint field.
56589         (duplicate_node_closure): Use it instead of special casing ANCHORS.
56590         Fix grammar.
56591         (duplicate_node): Merge constraint field for all node types.
56592         (calc_eclosure_iter): Look at constraint field for all node types.
56593         * lib/regex_internal.c (create_cd_newstate): Don't look at
56594         opr.ctx_type.
56595
56596 2008-05-14  Bruno Haible  <bruno@clisp.org>
56597
56598         Help GCC to do better code generation.
56599         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
56600         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
56601         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
56602         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
56603         Declare with attribute 'malloc' if supported.
56604
56605 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
56606
56607         use "echo STR|wc -c" rather than unportable "expr length STR"
56608         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
56609         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
56610
56611 2008-05-14  Jim Meyering  <meyering@redhat.com>
56612
56613         use dd ibs=$n count=1 ... rather than less-portable head -c$n
56614         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
56615         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
56616         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
56617         via Collin Lasse.
56618
56619 2008-05-14  Eric Blake  <ebb9@byu.net>
56620
56621         Avoid quadratic growth in gl_LIBSOURCES.
56622         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
56623         Suggested by Bruno Haible.
56624
56625         Test xmemdup0.
56626         * modules/xmemdup0-tests: New file.
56627         * tests/test-xmemdup0.c: Likewise.
56628
56629 2008-05-13  Eric Blake  <ebb9@byu.net>
56630
56631         Split xmemdup0 into its own module.
56632         * modules/xmemdup0: New file.
56633         * lib/xmemdup0.h: Likewise.
56634         * lib/xmemdup0.c: Likewise.
56635         * MODULES.html.sh (Memory management functions): Add xmemdup0.
56636         * lib/xalloc.h (xmemdup0): Remove.
56637         * lib/xmalloc.c (xmemdup0): Likewise.
56638
56639 2008-05-13  Eric Blake  <ebb9@byu.net>
56640             Bruno Haible  <bruno@clisp.org>
56641
56642         Reduce number of forks required during autoconf.
56643         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
56644         and gl_LIBSOURCES_DIR.
56645         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
56646         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
56647         m4_syscmd per file.
56648         <m4_foreach_w>: Move...
56649         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
56650
56651 2008-05-13  Eric Blake  <ebb9@byu.net>
56652
56653         * gnulib-tool: Fix various comment typos.
56654
56655 2008-05-12  Bruno Haible  <bruno@clisp.org>
56656
56657         Tailor the linebreaking algorithm.
56658         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
56659
56660 2008-05-12  Bruno Haible  <bruno@clisp.org>
56661
56662         Update to Unicode 5.0.0.
56663         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56664         LBP_JV, LBP_JT. Redistribute values.
56665         (unilbrk_table): Change size.
56666         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
56667         Unicode TR#14 rev. 22.
56668         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56669         LBP_JV, LBP_JT. Redistribute values.
56670         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
56671         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
56672         Update.
56673         * lib/unilbrk/lbrkprop1.h: Regenerated.
56674         * lib/unilbrk/lbrkprop2.h: Regenerated.
56675         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
56676         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
56677         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
56678         Likewise.
56679         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
56680         Likewise.
56681         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
56682         result.
56683         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
56684         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
56685         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
56686         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
56687         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
56688         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
56689
56690 2008-05-11  Bruno Haible  <bruno@clisp.org>
56691
56692         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
56693
56694 2008-05-11  Bruno Haible  <bruno@clisp.org>
56695
56696         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
56697         * modules/unilbrk/gen-lbrk: New file.
56698
56699 2008-05-11  Bruno Haible  <bruno@clisp.org>
56700
56701         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
56702         * m4/sha512.m4 (gl_SHA512): Likewise.
56703
56704 2008-05-11  Jim Meyering  <meyering@redhat.com>
56705
56706         New modules: crypto/sha256, crypto/sha512 (from coreutils)
56707         * modules/crypto/sha256: New file.
56708         * modules/crypto/sha512: Likewise.
56709         * lib/sha256.c: Likewise.
56710         * lib/sha256.h: Likewise.
56711         * lib/sha512.c: Likewise.
56712         * lib/sha512.h: Likewise.
56713         * lib/u64.h: Likewise.
56714         * m4/sha256.m4: Likewise.
56715         * m4/sha512.m4: Likewise.
56716         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
56717
56718 2008-05-10  Bruno Haible  <bruno@clisp.org>
56719
56720         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
56721         (Input/Output <stdio.h>): Add xprintf.
56722         (Signal handling <signal.h>): Add strsignal.
56723         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
56724         (Core language properties): Add func.
56725         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
56726         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
56727         strings.
56728         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
56729         (Input/output): New section.
56730         (File system functions): Add openat-die, stat-macros.
56731         (Networking functions): Add sockets.
56732         (Unicode string functions): Add unictype/*.
56733         (Support for building libraries and executables): Add gperf.
56734         (Support for building documentation): Add agpl-3.0.
56735         (Misc): Add nocrash.
56736
56737 2008-05-10  Bruno Haible  <bruno@clisp.org>
56738
56739         * modules/unictype/gen-ctype: New file.
56740
56741 2008-05-10  Jim Meyering  <meyering@redhat.com>
56742
56743         Make chdir-safer.c more efficient on a system with no symlinks.
56744         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
56745         also if ELOOP is zero.  Suggested by Bruno Haible.
56746
56747         Make chdir-safer.c slightly safer.
56748         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
56749         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
56750
56751         Avoid compile failure on systems without ELOOP (like mingw).
56752         * lib/chdir-safer.c (ELOOP): Define if not already defined.
56753         Reported by Bruno Haible.
56754
56755 2008-05-10  Bruno Haible  <bruno@clisp.org>
56756
56757         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
56758         (is_utf8_encoding): Use a case-insensitive comparison.
56759         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
56760         streq.
56761
56762 2008-05-10  Bruno Haible  <bruno@clisp.org>
56763
56764         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
56765         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
56766         * lib/unilbrk/ulc-common.h (iconv_string_length,
56767         iconv_string_keeping_offsets): Remove declarations.
56768         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
56769         Don't include <iconv.h>, streq.h, xsize.h.
56770         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
56771         conversion.
56772         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
56773         <iconv.h>, streq.h, xsize.h.
56774         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
56775         conversion.
56776         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
56777         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
56778         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
56779         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
56780
56781 2008-05-10  Bruno Haible  <bruno@clisp.org>
56782
56783         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
56784         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
56785
56786         * modules/unilbrk/u32-width-linebreaks-tests: New file.
56787         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
56788
56789         * modules/unilbrk/u16-width-linebreaks-tests: New file.
56790         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
56791
56792         * modules/unilbrk/u8-width-linebreaks-tests: New file.
56793         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
56794
56795         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
56796         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
56797
56798         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
56799         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
56800
56801         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
56802         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
56803
56804         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
56805         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
56806
56807 2008-05-10  Bruno Haible  <bruno@clisp.org>
56808
56809         Split up 'linebreak' module.
56810         * lib/unilbrk.h: New file, based on lib/linebreak.h.
56811         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
56812         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
56813         modifications.
56814         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
56815         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
56816         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
56817         lib/linebreak.c.
56818         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
56819         lib/linebreak.c.
56820         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
56821         lib/linebreak.c.
56822         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
56823         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
56824         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
56825         lib/linebreak.c.
56826         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
56827         lib/linebreak.c.
56828         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
56829         lib/linebreak.c.
56830         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
56831         lib/linebreak.c.
56832         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
56833         lib/linebreak.c.
56834         * modules/unilbrk/base: New file.
56835         * modules/unilbrk/tables: New file.
56836         * modules/unilbrk/u8-possible-linebreaks: New file.
56837         * modules/unilbrk/u16-possible-linebreaks: New file.
56838         * modules/unilbrk/u32-possible-linebreaks: New file.
56839         * modules/unilbrk/ulc-common: New file.
56840         * modules/unilbrk/ulc-possible-linebreaks: New file.
56841         * modules/unilbrk/u8-width-linebreaks: New file.
56842         * modules/unilbrk/u16-width-linebreaks: New file.
56843         * modules/unilbrk/u32-width-linebreaks: New file.
56844         * modules/unilbrk/ulc-width-linebreaks: New file.
56845         * lib/linebreak.h: Remove file.
56846         * lib/linebreak.c: Remove file.
56847         * m4/linebreak.m4: Remove file.
56848         * modules/linebreak: Remove file.
56849         * NEWS: Mention the changes.
56850
56851 2008-05-09  Eric Blake  <ebb9@byu.net>
56852
56853         Add xmemdup0.
56854         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
56855         implementation.
56856         * lib/xmalloc.c (xmemdup0): New C implementation.
56857
56858 2008-05-08  Bruno Haible  <bruno@clisp.org>
56859
56860         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
56861
56862 2008-05-07  Eric Blake  <ebb9@byu.net>
56863
56864         Support cross-compilation of <wctype.h>.
56865         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
56866         AC_CACHE_CHECK.
56867
56868 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
56869
56870         * build-aux/vc-list-files: Add support for bzr.
56871
56872 2008-05-03  Jim Meyering  <meyering@redhat.com>
56873
56874         avoid failed assertion with tight malloc
56875         * tests/test-getndelim2.c: Correct an off-by-one assertion.
56876
56877 2008-05-03  Simon Josefsson  <simon@josefsson.org>
56878
56879         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
56880         are needed from arpa/inet.h.
56881         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
56882         Reported by Bruno Haible.
56883
56884 2008-05-02  Jim Meyering  <meyering@redhat.com>
56885
56886         avoid compilation error on FreeBSD 6
56887         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
56888
56889 2008-05-01  Jim Meyering  <meyering@redhat.com>
56890
56891         useless-if-before-free: correct --help's exit status description
56892         * build-aux/useless-if-before-free (usage): Like grep, exit 0
56893         for one or more matches, etc.  Reported by Bruno Haible.
56894
56895         vc-list-files: make the stand-alone gnulib test work
56896         * modules/vc-list-files-tests (configure.ac):
56897         Define and AC_SUBST abs_aux_dir.
56898         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
56899         $(abs_top_srcdir) to each script and having each of them
56900         duplicate the work of setting PATH, set PATH here, using
56901         the new variable, abs_aux_dir instead.
56902         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
56903         * tests/test-vc-list-files-git.sh: Likewise.
56904         Reported by Bruno Haible.
56905
56906 2008-05-01  Bruno Haible  <bruno@clisp.org>
56907
56908         * lib/getndelim2.c (getndelim2): Fix newsize computation during
56909         reallocation. Rename 'done' to 'found_delimiter'.
56910
56911 2008-05-01  Jim Meyering  <meyering@redhat.com>
56912
56913         vc-list-files: accommodate /bin/sh like the one from Solaris 10
56914         * build-aux/vc-list-files: Use `...`, not $(...).
56915
56916 2008-04-30  Jim Meyering  <meyering@redhat.com>
56917
56918         add tests for vc-list-files
56919         * modules/vc-list-files-tests: New module.
56920         * tests/test-vc-list-files-cvs.sh: New file.
56921         * tests/test-vc-list-files-git.sh: New file.
56922
56923         avoid a warning from gcc
56924         * lib/getndelim2.c (IF_LINT): Define.
56925         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
56926
56927         vc-list-files: work properly with build-aux/cvsu, too
56928         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
56929         to all cvs-based clauses.
56930
56931         vc-list-files: work properly in the CVS+awk case, too
56932         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
56933
56934         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
56935         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
56936         take more than one file argument, so .  Add quotes, just in case $dir
56937         ever contains a shell meta-character.  Prompted by Soren Hansen in
56938         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
56939
56940 2008-04-29  Eric Blake  <ebb9@byu.net>
56941
56942         Optimize getndelim2 to use block operations when possible.
56943         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
56944         freadseek, and memchr2.
56945         * lib/getndelim2.c (getndelim2): Use them for block reads.
56946
56947 2008-04-29  Bruno Haible  <bruno@clisp.org>
56948
56949         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
56950         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56951         * modules/inet_ntop (Depends-on): Add extensions.
56952         * modules/inet_pton (Depends-on): Likewise.
56953         Reported by Simon Josefsson.
56954
56955 2008-04-29  Jim Meyering  <meyering@redhat.com>
56956
56957         When the is more than one match in a block, match all of them.
56958         * build-aux/useless-if-before-free: Iterate through each block
56959         until there are no more matches.
56960
56961         Fix broken useless-if-before-free script.
56962         * build-aux/useless-if-before-free: Fix typo: missing "?" after
56963         the expression to match cast of argument to free-like function.
56964
56965 2008-04-29  Eric Blake  <ebb9@byu.net>
56966
56967         Use new header.
56968         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
56969
56970 2008-04-29  Jim Meyering  <meyering@redhat.com>
56971
56972         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
56973         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
56974         by gnulib to exist and to declare e.g., inet_ntop.
56975         Don't include "inet_ntop.h", now removed.
56976
56977         * m4/arpa_inet_h.m4: Remove trailing blanks.
56978
56979 2008-04-29  Eric Blake  <ebb9@byu.net>
56980
56981         Silence valgrind on safe reads beyond potential array bounds.
56982         * lib/rawmemchr.valgrind: New file.
56983         * lib/strchrnul.valgrind: Likewise.
56984         * modules/rawmemchr (Files): Distribute new file.
56985         * modules/strchrnul (Files): Likewise.
56986         Suggested by Bruno Haible.
56987
56988 2008-04-29  Bruno Haible  <bruno@clisp.org>
56989
56990         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
56991         (inet_ntop, inet_pton): Change portability warning's wording.
56992         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
56993         Invoke gl_CHECK_NEXT_HEADERS.
56994         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
56995         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
56996         set ARPA_INET_H.
56997         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56998         * modules/arpa_inet (Description): No longer only for systems that
56999         lack it.
57000         (Depends-on): Add include_next.
57001         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
57002         HAVE_ARPA_INET_H.
57003
57004 2008-04-29  Jim Meyering  <meyering@redhat.com>
57005
57006         * modules/mkdir (License): Re-license as LGPLv2+.
57007
57008 2008-04-29  Bruno Haible  <bruno@clisp.org>
57009
57010         * modules/rawmemchr (Maintainer): Set to Eric.
57011         * modules/strchrnul (Maintainer): Likewise.
57012
57013 2008-04-29  Simon Josefsson  <simon@josefsson.org>
57014
57015         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
57016         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
57017
57018         * modules/arpa_inet (arpa/inet.h): Use them.
57019
57020 2008-04-28  Eric Blake  <ebb9@byu.net>
57021
57022         Test getndelim2.
57023         * modules/getndelim2-tests: New file.
57024         * tests/test-getndelim2.c: Likewise.
57025         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
57026         stream.
57027         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
57028
57029         * MODULES.html.sh: Document new module.
57030
57031 2008-04-20  Bruno Haible  <bruno@clisp.org>
57032
57033         * lib/c-stack.c (die): Use raise.
57034         * modules/c-stack (Depends-on): Add raise.
57035
57036 2008-04-28  Bruno Haible  <bruno@clisp.org>
57037
57038         Expect rpmatch to be declared.
57039         * lib/yesno.c (rpmatch): Remove declaration.
57040
57041         Declare rpmatch.
57042         * lib/stdlib.in.h (rpmatch): New declaration.
57043         * lib/rpmatch.c: Include <stdlib.h> first.
57044         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
57045         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
57046         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
57047         HAVE_RPMATCH.
57048         * modules/rpmatch (Depends-on): Add stdlib, extensions.
57049         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57050         (Include): Set to <stdlib.h>.
57051         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
57052         HAVE_RPMATCH.
57053         * NEWS: Document the change.
57054
57055 2008-04-28  Bruno Haible  <bruno@clisp.org>
57056
57057         Change rpmatch to use nl_langinfo when appropriate.
57058         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
57059         (N_): New macro.
57060         (localized_pattern): New function/macro.
57061         (try): Remove match, nomatch arguments. Copy the pattern into safe
57062         memory before caching it.
57063         (rpmatch): Use localized_pattern. Add translator comments.
57064         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
57065         Suggested by Eric Blake.
57066         * modules/rpmatch (Depends-on): Add stdbool.
57067
57068 2008-04-28  Eric Blake  <ebb9@byu.net>
57069
57070         Add rawmemchr module, matching glibc.
57071         * modules/string (Makefile.am): New indicator.
57072         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
57073         * lib/string.in.h (rawmemchr): Declare when appropriate.
57074         * modules/rawmemchr: New file.
57075         * m4/rawmemchr.m4: Likewise.
57076         * lib/rawmemchr.c: Likewise.
57077         * modules/rawmemchr-tests: Likewise.
57078         * tests/test-rawmemchr.c: Likewise.
57079         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
57080         module.
57081         * modules/strchrnul (Depends-on): Add rawmemchr.
57082         * lib/strchrnul.c (strchrnul): Optimize a corner case.
57083
57084         Whitespace cleanup.
57085         * tests/test-strchrnul.c: Reindent.
57086         * lib/strchrnul.c: Likewise.
57087
57088         Optimize and test strchrnul.
57089         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
57090         * modules/strchrnul-tests: New file.
57091         * tests/test-strchrnul.c: Likewise.
57092
57093         Remove intprops dependency.
57094         * modules/memchr (Depends-on): Remove intprops.
57095         * modules/memrchr (Depends-on): Likewise.
57096         * modules/memchr2 (Depends-on): Likewise.
57097         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
57098         * lib/memrchr.c (__memrchr): Likewise.
57099         * lib/memrchr2.c (memchr2): Likewise.
57100         Reported by Simon Josefsson.
57101
57102 2008-04-28  Simon Josefsson  <simon@josefsson.org>
57103
57104         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
57105         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57106
57107 2008-04-28  Simon Josefsson  <simon@josefsson.org>
57108
57109         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
57110
57111         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
57112
57113         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
57114
57115         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
57116         declarations.
57117         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
57118
57119         * m4/inet_pton.m4: Don't check for header files.
57120
57121         * m4/inet_ntop.m4: Don't check for header files.
57122
57123 2008-04-28  Simon Josefsson  <simon@josefsson.org>
57124
57125         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
57126         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
57127         trigger for cygwin).
57128         Reported by Bruno Haible  <bruno@clisp.org>.
57129
57130 2008-04-28  Bruno Haible  <bruno@clisp.org>
57131
57132         * doc/posix-functions/strdup.texi: Mention mingw problem.
57133
57134 2008-04-27  Bruno Haible  <bruno@clisp.org>
57135
57136         * modules/stat-time-tests (Depends-on): Add sleep.
57137         * tests/test-stat-time.c (force_unlink): New function.
57138         (cleanup): Use it.
57139         (test_mtime): Remove the ctime related tests.
57140         (test_ctime): New function, containing the ctime related tests.
57141         (main): Call test_ctime, except on native Windows platforms.
57142
57143 2008-04-27  Bruno Haible  <bruno@clisp.org>
57144
57145         * lib/rpmatch.c (rpmatch): Add some comments.
57146         Reported by James Youngman <jay@gnu.org>.
57147
57148 2008-04-27  Bruno Haible  <bruno@clisp.org>
57149
57150         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
57151         quiet NaNs.
57152
57153 2008-04-27  Bruno Haible  <bruno@clisp.org>
57154
57155         Make test-yesno.sh work on mingw.
57156         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
57157         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
57158         (main): Set stdin to binary mode.
57159         * modules/yesno-tests (Depends-on): Add binary-io.
57160
57161 2008-04-27  Bruno Haible  <bruno@clisp.org>
57162
57163         Fix 'isfinite' on x86, x86_64, ia64 platforms.
57164         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
57165         argument that lie outside the IEEE 854 domain.
57166         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
57167         (gl_ISFINITE): Use it.
57168         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
57169
57170 2008-04-27  Bruno Haible  <bruno@clisp.org>
57171
57172         Allow local renaming in config.h.
57173         * lib/memrchr.c (memrchr): Don't undefine outside libc.
57174
57175 2008-04-27  Bruno Haible  <bruno@clisp.org>
57176
57177         * lib/memchr.c (__memchr): Change type of 'i'.
57178         * lib/memchr2.c (memchr2): Likewise.
57179
57180 2008-04-26  Eric Blake  <ebb9@byu.net>
57181         and Bruno Haible  <bruno@clisp.org>
57182
57183         Optimize and test memrchr.
57184         * modules/memrchr (Depends-on): Add intprops.
57185         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
57186         * modules/memrchr-tests: New file.
57187         * tests/test-memrchr.c: New file.
57188
57189 2008-04-26  Bruno Haible  <bruno@clisp.org>
57190
57191         Add tentative support for DragonFly BSD.
57192         * lib/stdio-impl.h: Add macros for DragonFly BSD.
57193         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
57194         fp.
57195         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
57196         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
57197         * lib/fpurge.c (fpurge): Likewise.
57198         * lib/freadable.c (freaadable): Likewise.
57199         * lib/freadahead.c (freadahead): Likewise.
57200         * lib/freading.c (freading): Likewise.
57201         * lib/freadptr.c (freadptr): Likewise.
57202         * lib/freadseek.c (freadptrinc): Likewise.
57203         * lib/fseeko.c (fseeko): Likewise.
57204         * lib/fseterr.c (fseterr): Likewise.
57205         * lib/fwritable.c (fwritable): Likewise.
57206         * lib/fwriting.c (fwriting): Likewise.
57207
57208 2008-04-26  Bruno Haible  <bruno@clisp.org>
57209
57210         * lib/stdio-impl.h: New file.
57211         * lib/fbufmode.c: Include stdio-impl.h.
57212         (fbufmode): Use fp_, remove redundant #defines.
57213         * lib/fflush.c: Include stdio-impl.h.
57214         (clear_ungetc_buffer): Remove redundant #defines.
57215         * lib/fpurge.c: Include stdio-impl.h.
57216         (fpurge): Remove redundant #defines.
57217         * lib/freadable.c: Include stdio-impl.h.
57218         (freadable): Remove redundant #defines.
57219         * lib/freadahead.c: Include stdio-impl.h.
57220         (freadahead): Remove redundant #defines.
57221         * lib/freading.c: Include stdio-impl.h.
57222         (freading): Remove redundant #defines.
57223         * lib/freadptr.c: Include stdio-impl.h.
57224         (freadptr): Remove redundant #defines.
57225         * lib/freadseek.c: Include stdio-impl.h.
57226         (freadptrinc): Remove redundant #defines.
57227         * lib/fseeko.c: Include stdio-impl.h.
57228         (rpl_fseeko): Remove redundant #defines.
57229         * lib/fseterr.c: Include stdio-impl.h.
57230         (fseterr): Remove redundant #defines.
57231         * lib/fwritable.c: Include stdio-impl.h.
57232         (fwritable: Remove redundant #defines.
57233         * lib/fwriting.c: Include stdio-impl.h.
57234         (fwriting): Remove redundant #defines.
57235         * modules/fbufmode (Files): Add lib/stdio-impl.h.
57236         * modules/fflush (Files): Likewise.
57237         * modules/fpurge (Files): Likewise.
57238         * modules/freadable (Files): Likewise.
57239         * modules/freadahead (Files): Likewise.
57240         * modules/freading (Files): Likewise.
57241         * modules/freadptr (Files): Likewise.
57242         * modules/freadseek (Files): Likewise.
57243         * modules/fseeko (Files): Likewise.
57244         * modules/fseterr (Files): Likewise.
57245         * modules/fwritable (Files): Likewise.
57246         * modules/fwriting (Files): Likewise.
57247
57248 2008-04-26  Bruno Haible  <bruno@clisp.org>
57249
57250         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
57251         restore_seek_optimization, update_fpos_cache): New functions, extracted
57252         from rpl_fflush.
57253         (rpl_fflush): Use them.
57254         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
57255         (gl_REPLACE_FFLUSH): Use it.
57256
57257 2008-04-26  Bruno Haible  <bruno@clisp.org>
57258
57259         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
57260         on Solaris.
57261         * tests/test-xstrtoimax.sh: Likewise.
57262         * tests/test-xstrtoumax.sh: Likewise.
57263         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57264
57265 2008-04-26  Bruno Haible  <bruno@clisp.org>
57266
57267         * modules/memchr-tests: New file.
57268         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
57269
57270 2008-04-26  Eric Blake  <ebb9@byu.net>
57271             Bruno Haible  <bruno@clisp.org>
57272
57273         * lib/memchr.c: Include intprops.h.
57274         (__memchr): Optimize parallel detection of matching bytes. Rename local
57275         variables. Add explanatory comments.
57276
57277 2008-04-26  Bruno Haible  <bruno@clisp.org>
57278
57279         Fix module 'memchr', broken since 2000-10-28.
57280         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
57281
57282 2008-04-26  Bruno Haible  <bruno@clisp.org>
57283
57284         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
57285         comments.
57286
57287 2008-04-25  Eric Blake  <ebb9@byu.net>
57288
57289         Use native fstatat on cygwin 1.7.0.
57290         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
57291         first.
57292
57293 2008-04-23  Eric Blake  <ebb9@byu.net>
57294
57295         Improve memchr2 performance.
57296         * lib/memchr2.c (memchr2): Further optimize parallel detection of
57297         NUL bytes.
57298         * modules/memchr2 (Depends-on): Use intprops.h.
57299
57300 2008-04-23  Simon Josefsson  <simon@josefsson.org>
57301
57302         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
57303         an inline function instead of a CPP macro.  Patch by Ben Pfaff
57304         <blp@cs.stanford.edu>.
57305
57306 2008-04-23  Simon Josefsson  <simon@josefsson.org>
57307
57308         * lib/arpa_inet.in.h: New file.
57309
57310         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
57311         (Makefile.am): Sed in substitute header file.
57312
57313         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
57314         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
57315
57316         * modules/inet_ntop (configure.ac): Use
57317         gl_ARPA_INET_MODULE_INDICATOR.
57318
57319         * modules/inet_pton (configure.ac): Use
57320         gl_ARPA_INET_MODULE_INDICATOR.
57321
57322 2008-04-22  Jim Meyering  <meyering@redhat.com>
57323
57324         * modules/verify (License): Re-license as LGPLv2+.
57325
57326 2008-04-22  Simon Josefsson  <simon@josefsson.org>
57327
57328         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
57329         parameter to void* as per POSIX standard (MinGW uses char*).
57330
57331 2008-04-21  Bruno Haible  <bruno@clisp.org>
57332
57333         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
57334         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
57335         Define to replacements if REPLACE_ISWCNTRL is 1.
57336         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
57337         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
57338         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
57339         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
57340         what it fixes.
57341         * doc/posix-functions/iswalpha.texi: Likewise.
57342         * doc/posix-functions/iswblank.texi: Likewise.
57343         * doc/posix-functions/iswcntrl.texi: Likewise.
57344         * doc/posix-functions/iswdigit.texi: Likewise.
57345         * doc/posix-functions/iswgraph.texi: Likewise.
57346         * doc/posix-functions/iswlower.texi: Likewise.
57347         * doc/posix-functions/iswprint.texi: Likewise.
57348         * doc/posix-functions/iswpunct.texi: Likewise.
57349         * doc/posix-functions/iswspace.texi: Likewise.
57350         * doc/posix-functions/iswupper.texi: Likewise.
57351         * doc/posix-functions/iswxdigit.texi: Likewise.
57352         Reported by Alain Guibert.
57353
57354 2008-04-21  Bruno Haible  <bruno@clisp.org>
57355
57356         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
57357         Patch by Alain Guibert.
57358
57359 2008-04-21  Bruno Haible  <bruno@clisp.org>
57360
57361         Fix test failures on mingw.
57362         * tests/test-xstrtol.c (print_no_progname): New function.
57363         (main): Install it in error_print_progname hook.
57364         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
57365         * tests/test-xstrtoimax.sh: Likewise.
57366         * tests/test-xstrtoumax.sh: Likewise.
57367
57368 2008-04-21  Bruno Haible  <bruno@clisp.org>
57369
57370         Fix test failure on mingw.
57371         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
57372
57373 2008-04-21  Bruno Haible  <bruno@clisp.org>
57374
57375         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
57376         Actually assign a value.
57377
57378 2008-04-20  Bruno Haible  <bruno@clisp.org>
57379
57380         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
57381         take 2.
57382         * lib/canonicalize.c (canonicalize_file_name): Elide if the
57383         'canonicalize-lgpl' module is also used.
57384         * lib/canonicalize-lgpl.c: Undo last change.
57385         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
57386
57387 2008-04-20  Bruno Haible  <bruno@clisp.org>
57388
57389         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
57390         config.h. Provide _mkdir based fallback for mingw.
57391         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
57392         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
57393         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
57394         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
57395         rather than defining mkdir in config.h.
57396         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
57397         (gl_SYS_STAT_H_DEFAULTS): New macro.
57398         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
57399         HAVE_IO_H any more.
57400         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
57401         HAVE_DECL_MKDIR and HAVE_IO_H.
57402
57403 2008-04-20  Bruno Haible  <bruno@clisp.org>
57404
57405         * lib/isapipe.c: Port to native Windows platforms.
57406
57407 2008-04-20  Bruno Haible  <bruno@clisp.org>
57408
57409         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
57410
57411 2008-04-21  Eric Blake  <ebb9@byu.net>
57412
57413         Work around preprocessors that don't handle UINTMAX_MAX.
57414         * lib/memchr2.c (memchr2): Avoid embedded #if.
57415         Reported by Alain Guibert, fix suggested by Bruno Haible.
57416
57417 2008-04-21  Simon Josefsson  <simon@josefsson.org>
57418
57419         * doc/posix-functions/strftime.texi (strftime): Explain better
57420         Windows incompatibility.  Suggested by Micah Cowan
57421         <micah@cowan.name>.
57422
57423 2008-04-20  Bruno Haible  <bruno@clisp.org>
57424
57425         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
57426         unistr/u8-mblen.
57427
57428 2008-04-20  Bruno Haible  <bruno@clisp.org>
57429
57430         Fix test failure on platforms with non-GNU iconv.
57431         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
57432         (U_TO_U8): Use it, rather than u16_to_u8.
57433         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
57434         units at the end of the input string.
57435         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
57436
57437 2008-04-20  Bruno Haible  <bruno@clisp.org>
57438
57439         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
57440         when the resulting length is 0.
57441         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
57442
57443 2008-04-20  Bruno Haible  <bruno@clisp.org>
57444
57445         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
57446         works.
57447         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
57448
57449 2008-04-20  Bruno Haible  <bruno@clisp.org>
57450
57451         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
57452         * modules/tsearch-tests (configure.ac): Test for initstate function.
57453
57454 2008-04-20  Bruno Haible  <bruno@clisp.org>
57455
57456         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
57457         for nlink_t if missing.
57458         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
57459
57460 2008-04-19  Bruno Haible  <bruno@clisp.org>
57461
57462         Work around snprintf bug on Linux libc5.
57463         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
57464         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57465         gl_SNPRINTF_SIZE1.
57466         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57467         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
57468         that test failed.
57469         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
57470         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
57471         * modules/snprintf (Files): Add m4/printf.m4.
57472         * modules/vsnprintf (Files): Likewise.
57473         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
57474         * doc/posix-functions/vsnprintf.texi: Likewise.
57475
57476 2008-04-19  Bruno Haible  <bruno@clisp.org>
57477
57478         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
57479         from 0.0058 to less than 10^-7.
57480
57481 2008-04-19  Bruno Haible  <bruno@clisp.org>
57482
57483         Fix rounding when a precision is given.
57484         * lib/vasnprintf.c (is_borderline): New function.
57485         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
57486         9...9x.
57487         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
57488         %e, %g.
57489         * tests/test-vasprintf-posix.c (test_function): Likewise.
57490         * tests/test-snprintf-posix.h (test_function): Likewise.
57491         * tests/test-sprintf-posix.h (test_function): Likewise.
57492         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
57493         * tests/test-printf-posix.h (test_function): Likewise.
57494         * tests/test-printf-posix.output: Update.
57495         Reported by John Darrington <john@darrington.wattle.id.au> via
57496         Ben Pfaff <blp@cs.stanford.edu>.
57497
57498 2008-04-18  Simon Josefsson  <simon@josefsson.org>
57499
57500         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
57501         Suggested by Bruno Haible <bruno@clisp.org>.
57502
57503 2008-04-17  Bruno Haible  <bruno@clisp.org>
57504
57505         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
57506         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
57507         implementation.
57508         Patch by Bruce Merry <bmerry@gmail.com>.
57509
57510 2008-04-17  Simon Josefsson  <simon@josefsson.org>
57511
57512         * doc/posix-functions/strftime.texi (strftime): Mention that %e
57513         doesn't work under Windows.
57514
57515 2008-04-16  Bruno Haible  <bruno@clisp.org>
57516
57517         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
57518         New macros.
57519         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
57520         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
57521         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
57522         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
57523         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
57524         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
57525         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
57526         macros.
57527         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
57528         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
57529         Northern Sotho, Uighur.
57530
57531 2008-04-16  Bruno Haible  <bruno@clisp.org>
57532
57533         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
57534         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
57535         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
57536         Reported by Daniel Bergström <daniel@octocode.com>.
57537
57538 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
57539             Bruno Haible  <bruno@clisp.org>
57540
57541         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
57542         function.
57543         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
57544         New functions, mostly extracted from gl_locale_name_default.
57545         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
57546
57547 2008-04-16  Eric Blake  <ebb9@byu.net>
57548
57549         Adjust strtod detection to catch glibc 2.7 bug.
57550         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
57551         Reported by John Gatewood Ham.
57552
57553 2008-04-16  Bruno Haible  <bruno@clisp.org>
57554
57555         Add tentative support for Linux libc5.
57556         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
57557         * lib/fpurge.c (fpurge): Likewise.
57558         * lib/freadable.c (freadable): Likewise.
57559         * lib/freadahead.c (freadahead): Likewise.
57560         * lib/freading.c (freading): Likewise.
57561         * lib/freadptr.c (freadptr): Likewise.
57562         * lib/freadseek.c (freadptrinc): Likewise.
57563         * lib/fseeko.c (rpl_fseeko): Likewise.
57564         * lib/fseterr.c (fseterr): Likewise.
57565         * lib/fwritable.c (fwritable): Likewise.
57566         * lib/fwriting.c (fwriting): Likewise.
57567         Reported by Alain Guibert <alguibert+bts@free.fr>.
57568
57569 2008-04-15  Bruno Haible  <bruno@clisp.org>
57570
57571         * modules/mathl (configure.ac): Define module indicator.
57572
57573 2008-04-15  Bruno Haible  <bruno@clisp.org>
57574
57575         * lib/logl.c (logl): Remove unused variables.
57576
57577 2008-04-15  Bruno Haible  <bruno@clisp.org>
57578
57579         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
57580         fails.
57581
57582 2008-04-15  Bruno Haible  <bruno@clisp.org>
57583
57584         * lib/trim.c (trim2): Fix argument of isspace() macro.
57585
57586 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
57587
57588         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
57589         to 0.
57590         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
57591
57592 2008-04-14  Bruno Haible  <bruno@clisp.org>
57593
57594         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
57595         AC_LANG_PROGRAM argument.
57596         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
57597         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
57598         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
57599         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57600         * m4/math_h.m4 (gl_MATH_H): Likewise.
57601         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
57602         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57603         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57604         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
57605         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
57606         * m4/regex.m4 (gl_REGEX): Likewise.
57607         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
57608         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
57609         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57610         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
57611         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57612         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57613         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57614         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57615
57616 2008-04-14  Jim Meyering  <meyering@redhat.com>
57617
57618         test-strtod: fix typos: s/abs/fabs/
57619         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
57620
57621 2008-04-13  Bruno Haible  <bruno@clisp.org>
57622
57623         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
57624         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
57625         module is also used and while not building the reloc-wrapper.
57626
57627 2008-04-13  Bruno Haible  <bruno@clisp.org>
57628
57629         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
57630
57631 2008-04-13  Bruno Haible  <bruno@clisp.org>
57632
57633         Fix AIX compilation failure introduced on 2008-04-02.
57634         * tests/test-frexp.c (exp): Undefine before redefining.
57635         * tests/test-frexpl.c (exp): Likewise.
57636
57637 2008-04-13  Bruno Haible  <bruno@clisp.org>
57638
57639         Work around a HP-UX stdio bug.
57640         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
57641         * tests/test-ftello.c (main): Likewise.
57642         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
57643         * doc/posix-functions/ftello.texi: Likewise.
57644
57645 2008-04-13  Bruno Haible  <bruno@clisp.org>
57646
57647         Make test-signbit pass on HP-UX/hppa.
57648         * tests/test-signbit.c (minus_zerol): New variable.
57649         (test_signbitl): Use it.
57650
57651 2008-04-13  Bruno Haible  <bruno@clisp.org>
57652
57653         Make truncl work on OSF/1 4.0.
57654         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
57655         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57656         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57657         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
57658         HAVE_DECL_TRUNCL.
57659         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
57660         HAVE_DECL_TRUNCL.
57661         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
57662
57663 2008-04-13  Bruno Haible  <bruno@clisp.org>
57664
57665         * lib/unictype.h: Remove trailing comma from enumeration definitions.
57666
57667 2008-04-13  Bruno Haible  <bruno@clisp.org>
57668
57669         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
57670         expression, so as to avoid HP-UX 11 cc compiler bug.
57671
57672 2008-04-13  Bruno Haible  <bruno@clisp.org>
57673
57674         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
57675
57676 2008-04-13  Bruno Haible  <bruno@clisp.org>
57677
57678         * lib/git-merge-changelog.c: Remove empty declaration outside of
57679         functions.
57680
57681 2008-04-13  Bruno Haible  <bruno@clisp.org>
57682
57683         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
57684
57685 2008-04-13  Bruno Haible  <bruno@clisp.org>
57686
57687         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
57688         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
57689         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
57690         also if it exists but lacks definitions of the SHUT_* macros.
57691         * modules/sys_socket (Description): Update.
57692         Reported by Elbert Pol <e.pol@chello.nl>.
57693
57694 2008-04-13  Bruno Haible  <bruno@clisp.org>
57695
57696         * lib/localcharset.c (OS2): Don't redefine if already defined.
57697         Reported by Elbert Pol <e.pol@chello.nl>.
57698
57699 2008-04-13  Bruno Haible  <bruno@clisp.org>
57700
57701         * lib/binary-io.h [__EMX__]: Include <io.h>.
57702         Reported by Elbert Pol <e.pol@chello.nl>.
57703
57704 2008-04-12  Bruno Haible  <bruno@clisp.org>
57705
57706         * lib/fpucw.h: Enable the definitions also for x86_64.
57707         Needed for NetBSD/x86_64.
57708         Reported by Thomas Klausner <tk@giga.or.at>.
57709
57710 2008-04-12  Bruno Haible  <bruno@clisp.org>
57711
57712         * tests/test-strtod.c: Include isnand.h.
57713         (main): Use isnand instead of isnan.
57714         Reported by Jim Meyering.
57715
57716 2008-04-12  Bruno Haible  <bruno@clisp.org>
57717
57718         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
57719         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57720
57721 2008-04-12  Jim Meyering  <meyering@redhat.com>
57722
57723         * m4/math_h.m4 (gl_MATH_H): Fix typos.
57724
57725 2008-04-12  Bruno Haible  <bruno@clisp.org>
57726
57727         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
57728         Reported by Elbert Pol <e.pol@chello.nl>.
57729
57730 2008-04-12  Eric Blake  <ebb9@byu.net>
57731
57732         Work around Solaris 10 math.h bug.
57733         * m4/math_h.m4 (gl_MATH_H): Check for bug.
57734         (gl_MATH_H_DEFAULTS): Set up default.
57735         * modules/math (Makefile.am): Replace new indicators.
57736         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
57737         * tests/test-math.c (main): Test this.
57738         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
57739         * doc/posix-headers/math.texi (math.h): Mention bug.
57740         Reported by Nelson H. F. Beebe and Jim Meyering.
57741
57742 2008-04-11  Bruno Haible  <bruno@clisp.org>
57743
57744         Adapt to future versions of Apple GCC.
57745         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
57746         Reported by Peter O'Gorman <peter@pogma.com>.
57747
57748 2008-04-11  Bruno Haible  <bruno@clisp.org>
57749
57750         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
57751
57752 2008-04-11  Bruno Haible  <bruno@clisp.org>
57753
57754         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
57755
57756         * modules/getaddrinfo-tests (Makefile.am): Define
57757         test_getaddrinfo_LDADD.
57758
57759 2008-04-11  Bruno Haible  <bruno@clisp.org>
57760
57761         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
57762         (init): Fix syntax error.
57763         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
57764         is declared.
57765
57766 2008-04-11  Bruno Haible  <bruno@clisp.org>
57767
57768         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
57769         * modules/glob (Depends-on): Add stdbool.
57770
57771 2008-04-11  Bruno Haible  <bruno@clisp.org>
57772
57773         * lib/trim.c: Include <string.h>.
57774
57775 2008-04-11  Eric Blake  <ebb9@byu.net>
57776
57777         Avoid compile failure on OS/2.
57778         * lib/regex_internal.h (internal_function): Disable optimization
57779         on OS/2 (__EMX__), where it caused compiler error.
57780         Reported by Elbert Pol.
57781
57782 2008-04-11  Bruno Haible  <bruno@clisp.org>
57783
57784         Flush the standard error stream before aborting. Needed on mingw.
57785         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
57786         * tests/test-array_list.c (ASSERT): Likewise.
57787         * tests/test-array_oset.c (ASSERT): Likewise.
57788         * tests/test-avltree_list.c (ASSERT): Likewise.
57789         * tests/test-avltree_oset.c (ASSERT): Likewise.
57790         * tests/test-avltreehash_list.c (ASSERT): Likewise.
57791         * tests/test-binary-io.c (ASSERT): Likewise.
57792         * tests/test-byteswap.c (ASSERT): Likewise.
57793         * tests/test-c-ctype.c (ASSERT): Likewise.
57794         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
57795         * tests/test-c-strcasestr.c (ASSERT): Likewise.
57796         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
57797         * tests/test-c-strstr.c (ASSERT): Likewise.
57798         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
57799         * tests/test-canonicalize.c (ASSERT): Likewise.
57800         * tests/test-carray_list.c (ASSERT): Likewise.
57801         * tests/test-ceilf1.c (ASSERT): Likewise.
57802         * tests/test-ceilf2.c (ASSERT): Likewise.
57803         * tests/test-ceill.c (ASSERT): Likewise.
57804         * tests/test-count-one-bits.c (ASSERT): Likewise.
57805         * tests/test-fbufmode.c (ASSERT): Likewise.
57806         * tests/test-fflush2.c (ASSERT): Likewise.
57807         * tests/test-floorf1.c (ASSERT): Likewise.
57808         * tests/test-floorf2.c (ASSERT): Likewise.
57809         * tests/test-floorl.c (ASSERT): Likewise.
57810         * tests/test-fopen.c (ASSERT): Likewise.
57811         * tests/test-fpending.c (ASSERT): Likewise.
57812         * tests/test-fprintf-posix.c (ASSERT): Likewise.
57813         * tests/test-fpurge.c (ASSERT): Likewise.
57814         * tests/test-freadable.c (ASSERT): Likewise.
57815         * tests/test-freadahead.c (ASSERT): Likewise.
57816         * tests/test-freading.c (ASSERT): Likewise.
57817         * tests/test-freadptr.c (ASSERT): Likewise.
57818         * tests/test-freadptr2.c (ASSERT): Likewise.
57819         * tests/test-freadseek.c (ASSERT): Likewise.
57820         * tests/test-freopen.c (ASSERT): Likewise.
57821         * tests/test-frexp.c (ASSERT): Likewise.
57822         * tests/test-frexpl.c (ASSERT): Likewise.
57823         * tests/test-fseek.c (ASSERT): Likewise.
57824         * tests/test-fseeko.c (ASSERT): Likewise.
57825         * tests/test-fstrcmp.c (ASSERT): Likewise.
57826         * tests/test-ftell.c (ASSERT): Likewise.
57827         * tests/test-ftello.c (ASSERT): Likewise.
57828         * tests/test-func.c (ASSERT): Likewise.
57829         * tests/test-fwritable.c (ASSERT): Likewise.
57830         * tests/test-fwriting.c (ASSERT): Likewise.
57831         * tests/test-getdelim.c (ASSERT): Likewise.
57832         * tests/test-getline.c (ASSERT): Likewise.
57833         * tests/test-i-ring.c (ASSERT): Likewise.
57834         * tests/test-iconv-utf.c (ASSERT): Likewise.
57835         * tests/test-iconv.c (ASSERT): Likewise.
57836         * tests/test-isfinite.c (ASSERT): Likewise.
57837         * tests/test-isnand.c (ASSERT): Likewise.
57838         * tests/test-isnanf.c (ASSERT): Likewise.
57839         * tests/test-isnanl.h (ASSERT): Likewise.
57840         * tests/test-ldexpl.c (ASSERT): Likewise.
57841         * tests/test-linked_list.c (ASSERT): Likewise.
57842         * tests/test-linkedhash_list.c (ASSERT): Likewise.
57843         * tests/test-localename.c (ASSERT): Likewise.
57844         * tests/test-lseek.c (ASSERT): Likewise.
57845         * tests/test-mbscasecmp.c (ASSERT): Likewise.
57846         * tests/test-mbscasestr1.c (ASSERT): Likewise.
57847         * tests/test-mbscasestr2.c (ASSERT): Likewise.
57848         * tests/test-mbscasestr3.c (ASSERT): Likewise.
57849         * tests/test-mbscasestr4.c (ASSERT): Likewise.
57850         * tests/test-mbschr.c (ASSERT): Likewise.
57851         * tests/test-mbscspn.c (ASSERT): Likewise.
57852         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
57853         * tests/test-mbspbrk.c (ASSERT): Likewise.
57854         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
57855         * tests/test-mbsrchr.c (ASSERT): Likewise.
57856         * tests/test-mbsspn.c (ASSERT): Likewise.
57857         * tests/test-mbsstr1.c (ASSERT): Likewise.
57858         * tests/test-mbsstr2.c (ASSERT): Likewise.
57859         * tests/test-mbsstr3.c (ASSERT): Likewise.
57860         * tests/test-memchr2.c (ASSERT): Likewise.
57861         * tests/test-memmem.c (ASSERT): Likewise.
57862         * tests/test-open.c (ASSERT): Likewise.
57863         * tests/test-printf-frexp.c (ASSERT): Likewise.
57864         * tests/test-printf-frexpl.c (ASSERT): Likewise.
57865         * tests/test-printf-posix.c (ASSERT): Likewise.
57866         * tests/test-quotearg.c (ASSERT): Likewise.
57867         * tests/test-rbtree_list.c (ASSERT): Likewise.
57868         * tests/test-rbtree_oset.c (ASSERT): Likewise.
57869         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
57870         * tests/test-round1.c (ASSERT): Likewise.
57871         * tests/test-roundf1.c (ASSERT): Likewise.
57872         * tests/test-roundl.c (ASSERT): Likewise.
57873         * tests/test-signbit.c (ASSERT): Likewise.
57874         * tests/test-sleep.c (ASSERT): Likewise.
57875         * tests/test-snprintf-posix.c (ASSERT): Likewise.
57876         * tests/test-snprintf.c (ASSERT): Likewise.
57877         * tests/test-sprintf-posix.c (ASSERT): Likewise.
57878         * tests/test-stat-time.c (ASSERT): Likewise.
57879         * tests/test-strcasestr.c (ASSERT): Likewise.
57880         * tests/test-strerror.c (ASSERT): Likewise.
57881         * tests/test-striconv.c (ASSERT): Likewise.
57882         * tests/test-striconveh.c (ASSERT): Likewise.
57883         * tests/test-striconveha.c (ASSERT): Likewise.
57884         * tests/test-strsignal.c (ASSERT): Likewise.
57885         * tests/test-strstr.c (ASSERT): Likewise.
57886         * tests/test-strtod.c (ASSERT): Likewise.
57887         * tests/test-trunc1.c (ASSERT): Likewise.
57888         * tests/test-trunc2.c (ASSERT): Likewise.
57889         * tests/test-truncf1.c (ASSERT): Likewise.
57890         * tests/test-truncf2.c (ASSERT): Likewise.
57891         * tests/test-truncl.c (ASSERT): Likewise.
57892         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
57893         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
57894         * tests/test-vasnprintf.c (ASSERT): Likewise.
57895         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
57896         * tests/test-vasprintf.c (ASSERT): Likewise.
57897         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
57898         * tests/test-vprintf-posix.c (ASSERT): Likewise.
57899         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
57900         * tests/test-vsnprintf.c (ASSERT): Likewise.
57901         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
57902         * tests/test-wcwidth.c (ASSERT): Likewise.
57903         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
57904         * tests/test-xprintf-posix.c (ASSERT): Likewise.
57905         * tests/test-xvasprintf.c (ASSERT): Likewise.
57906         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
57907         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
57908         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
57909         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
57910         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
57911         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
57912         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
57913         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
57914         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
57915         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
57916         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
57917         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
57918         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
57919         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
57920         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
57921         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
57922         * tests/unictype/test-block_list.c (ASSERT): Likewise.
57923         * tests/unictype/test-block_of.c (ASSERT): Likewise.
57924         * tests/unictype/test-block_test.c (ASSERT): Likewise.
57925         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
57926         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
57927         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
57928         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
57929         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
57930         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
57931         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
57932         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
57933         * tests/unictype/test-combining.c (ASSERT): Likewise.
57934         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
57935         * tests/unictype/test-digit.c (ASSERT): Likewise.
57936         * tests/unictype/test-mirror.c (ASSERT): Likewise.
57937         * tests/unictype/test-numeric.c (ASSERT): Likewise.
57938         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
57939         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
57940         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
57941         * tests/unictype/test-scripts.c (ASSERT): Likewise.
57942         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
57943         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
57944         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
57945         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
57946         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
57947         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
57948         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
57949         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
57950         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
57951         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
57952         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
57953         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
57954         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
57955         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
57956         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
57957         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
57958         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
57959         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
57960         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
57961         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
57962         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
57963         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
57964         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
57965         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
57966         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
57967         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
57968         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
57969         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
57970         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
57971         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
57972         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
57973         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
57974         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
57975         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
57976         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
57977         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
57978         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
57979         Reported by Eric Blake.
57980
57981 2008-04-11  Bruno Haible  <bruno@clisp.org>
57982
57983         * lib/wchar.in.h: Tweak comment.
57984
57985 2008-04-11  Bruno Haible  <bruno@clisp.org>
57986
57987         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
57988         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
57989         gl_COMMON.
57990         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
57991
57992 2008-04-11  Bruno Haible  <bruno@clisp.org>
57993
57994         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
57995
57996 2008-04-11  Simon Josefsson  <simon@josefsson.org>
57997
57998         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
57999         of attempting to use non-existing /dev/*random.  Based on patch
58000         from Adam Strzelecki <ono@java.pl> in
58001         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
58002
58003 2008-04-08  Bruno Haible  <bruno@clisp.org>
58004
58005         Add tentative support for emx+gcc.
58006         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
58007         * lib/fpurge.c (fpurge): Likewise.
58008         * lib/freadable.c (freadable): Likewise.
58009         * lib/freadahead.c (freadahead): Likewise.
58010         * lib/freading.c (freading): Likewise.
58011         * lib/freadptr.c (freadptr): Likewise.
58012         * lib/freadseek.c (freadptrinc): Likewise.
58013         * lib/fseeko.c (rpl_fseeko): Likewise.
58014         * lib/fseterr.c (fseterr): Likewise.
58015         * lib/fwritable.c (fwritable): Likewise.
58016         * lib/fwriting.c (fwriting): Likewise.
58017         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
58018
58019 2008-04-09  Eric Blake  <ebb9@byu.net>
58020
58021         Avoid some autoconf warnings.
58022         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
58023         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
58024         * m4/afs.m4 (gl_AFS): Likewise.
58025         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
58026         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
58027         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
58028         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
58029         (gl_INTEGER_TYPE_SUFFIX): Likewise.
58030         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
58031         (AC_CHECK_DECLS_ONCE): Likewise.
58032         Rename file...
58033         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
58034         gnulib-tool requires autoconf 2.59 or better.
58035         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
58036
58037 2008-04-08  Eric Blake  <ebb9@byu.net>
58038
58039         Use 'git describe --match' if present (added in git 1.5.5).
58040         * build-aux/git-version-gen: Limit result to tags that match 'v*'
58041         if possible.
58042
58043 2008-04-08  Bruno Haible  <bruno@clisp.org>
58044
58045         Add tentative support for OpenServer.
58046         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
58047         _ptr, _cnt.
58048         * lib/fpurge.c (fpurge): Likewise.
58049         * lib/freadable.c (freadable): Likewise.
58050         * lib/freadahead.c (freadahead): Likewise.
58051         * lib/freading.c (freading): Likewise.
58052         * lib/freadptr.c (freadptr): Likewise.
58053         * lib/freadseek.c (freadptrinc): Likewise.
58054         * lib/fseeko.c (rpl_fseeko): Likewise.
58055         * lib/fseterr.c (fseterr): Likewise.
58056         * lib/fwritable.c (fwritable): Likewise.
58057         * lib/fwriting.c (fwriting): Likewise.
58058         Reported by Roger Cornelius <rac@tenzing.org> and
58059         Brian K. White <brian@aljex.com>.
58060
58061 2008-04-06  Jim Meyering  <meyering@redhat.com>
58062
58063         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
58064
58065 2008-04-06  Bruno Haible  <bruno@clisp.org>
58066
58067         Avoid possible error with non-ASCII bytes in UTF-8 locales.
58068         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
58069         * tests/test-printf-posix.sh: Likewise.
58070         * tests/test-vfprintf-posix.sh: Likewise.
58071         * tests/test-vprintf-posix.sh: Likewise.
58072         * tests/test-xprintf-posix.sh: Likewise.
58073
58074 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58075
58076         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
58077         hide error from 'ls', needed on OS/2.
58078         Report by Elbert Pol <elbert.pol@gmail.com>.
58079
58080 2008-04-04  Eric Blake  <ebb9@byu.net>
58081
58082         Make test-fseeko.c failures meaningful.
58083         * tests/test-fseeko.c: Print line number on failure.
58084         * tests/test-fseek.c: Likewise.
58085         Reported by Nelson H. F. Beebe.
58086
58087         Improve strtod bug detection check.
58088         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
58089         required for Solaris 10.
58090         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
58091
58092 2008-04-04  Bruno Haible  <bruno@clisp.org>
58093
58094         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
58095         by m4/setenv.m4.
58096
58097 2008-04-03  Eric Blake  <ebb9@byu.net>
58098
58099         Ensure sane .version contents.
58100         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
58101         version string.
58102         * build-aux/git-version-gen: Improve documentation.
58103
58104         Make GNU make output nicer.
58105         * top/GNUmakefile [!_have-Makefile]: Add dependency on
58106         MAKECMDGOALS to enforce message for all command line targets.  Set
58107         srcdir for use in maint.mk.
58108
58109         Another maintainer tweak.
58110         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
58111         a target that regenerates version.
58112
58113 2008-04-03  Jim Meyering  <meyering@redhat.com>
58114
58115         vc-list-files: don't cause coreutils "make po-check" failure
58116         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
58117
58118 2008-04-03  Eric Blake  <ebb9@byu.net>
58119
58120         Allow VPATH usage of vc-list-files.
58121         * build-aux/vc-list-files (scriptversion): Add timestamp.
58122         (options): Add --help, --version, -C.
58123         (CVS): Support installed cvsu.
58124
58125 2008-04-02  Bruno Haible  <bruno@clisp.org>
58126
58127         Avoid some "statement with no effect" warnings from gcc.
58128         * tests/test-wctype.c (main): Explicitly ignore unused values.
58129         Reported by Jim Meyering.
58130
58131 2008-04-02  Jim Meyering  <meyering@redhat.com>
58132
58133         Avoid some warnings from "gcc -Wshadow".
58134         * tests/test-frexp.c (exp): Define to a different identifier.
58135         * tests/test-frexpl.c (exp): Likewise.
58136
58137 2008-04-03  Jim Meyering  <meyering@redhat.com>
58138
58139         bootstrap: remove dangling *.[ch] symlinks from lib
58140         * build-aux/bootstrap [dangling symlink removal]: Move find's
58141         -depth option to precede all others, to avoid a warning.
58142         Remove *.[ch] files too, and from "$source_base" (usually lib/).
58143
58144 2008-04-02  Bruno Haible  <bruno@clisp.org>
58145
58146         Avoid some warnings from "gcc -Wshadow".
58147         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
58148         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
58149         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
58150         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
58151         Reported by Jim Meyering.
58152
58153 2008-04-01  Bruno Haible  <bruno@clisp.org>
58154
58155         Fix test to work on IRIX 6.5 with cc.
58156         * tests/test-math.c (numeric_equal): New function.
58157         (main): Use it.
58158
58159 2008-04-01  Bruno Haible  <bruno@clisp.org>
58160
58161         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
58162
58163 2008-04-01  Bruno Haible  <bruno@clisp.org>
58164
58165         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
58166         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58167         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
58168         (Depends-on): Remove math.
58169
58170         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
58171         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58172         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
58173         (Depends-on): Remove math.
58174
58175         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
58176         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58177         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
58178         (Depends-on): Remove math.
58179         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
58180         (Depends-on): Remove math.
58181
58182         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
58183         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58184         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
58185         (Depends-on): Remove math.
58186         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
58187         (Depends-on): Remove math.
58188
58189         * tests/test-round1.c: Include nan.h.
58190         (main): Use NaNd instead of NAN.
58191         * modules/round-tests (Files): Add tests/nan.h.
58192
58193         * tests/test-trunc1.c: Include nan.h.
58194         (main): Use NaNd instead of NAN.
58195         * modules/trunc-tests (Files): Add tests/nan.h.
58196
58197         * tests/test-roundf1.c: Include nan.h.
58198         (main): Use NaNf instead of NAN.
58199         * modules/roundf-tests (Files): Add tests/nan.h.
58200
58201         * tests/test-truncf1.c: Include nan.h.
58202         (main): Use NaNf instead of NAN.
58203         * modules/truncf-tests (Files): Add tests/nan.h.
58204
58205         * tests/test-ceilf1.c: Include nan.h.
58206         (main): Use NaNf instead of NAN.
58207         * modules/ceilf-tests (Files): Add tests/nan.h.
58208
58209         * tests/test-floorf1.c: Include nan.h.
58210         (main): Use NaNf instead of NAN.
58211         * modules/floorf-tests (Files): Add tests/nan.h.
58212
58213         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
58214         (main): Use NaNf instead of NAN.
58215         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
58216
58217         * tests/test-isnand.c: Include nan.h instead of <math.h>.
58218         (main): Use NaNd instead of NAN.
58219         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
58220
58221         * tests/test-frexp.c: Include nan.h.
58222         (main): Use NaNd instead of NAN.
58223         * modules/frexp-tests (Files): Add tests/nan.h.
58224
58225         * lib/isnan.c: Don't include <math.h>.
58226         (FUNC): Don't use NAN macro.
58227         * modules/isnand-nolibm (Depends-on): Remove math.
58228         * modules/isnanf-nolibm (Depends-on): Remove math.
58229         * modules/isnanl (Depends-on): Remove math.
58230         * modules/isnanl-nolibm (Depends-on): Remove math.
58231
58232         * tests/nan.h: New file.
58233
58234 2008-04-01  Eric Blake  <ebb9@byu.net>
58235
58236         Fix typos.
58237         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
58238         values to be the right type.
58239
58240         For now, cater to gnulib strtod inaccuracies.
58241         * tests/test-strtod.c (main): Allow 1-ulp error on expected
58242         fractional results.  While not as nice from a QoI perspective, it
58243         is a quicker patch than correctly implementing decimal to binary
58244         rounding.
58245
58246 2008-03-31  Eric Blake  <ebb9@byu.net>
58247
58248         Guarantee a definition of NAN.
58249         * lib/math.in.h (NAN): Define if missing.
58250         * tests/test-math.c (main): Test it.
58251         * doc/posix-headers/math.texi (math.h): Document this.
58252         * lib/isnan.c (rpl_isnand): Use it.
58253         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
58254         * tests/test-floorf1.c (NaN): Likewise.
58255         * tests/test-frexp.c (NaN): Likewise.
58256         * tests/test-isnand.c (NaN): Likewise.
58257         * tests/test-isnanf.c (NaN): Likewise.
58258         * tests/test-round1.c (NaN): Likewise.
58259         * tests/test-roundf1.c (NaN): Likewise.
58260         * tests/test-snprintf-posix.h (NaN): Likewise.
58261         * tests/test-sprintf-posix.h (NaN): Likewise.
58262         * tests/test-trunc1.c (NaN): Likewise.
58263         * tests/test-truncf1.c (NaN): Likewise.
58264         * tests/test-vasnprintf-posix.c (NaN): Likewise.
58265         * tests/test-vasprintf-posix.c (NaN): Likewise.
58266         * modules/isnand-nolibm (Depends-on): Add math.
58267         * modules/isnanf-nolibm (Depends-on): Likewise.
58268         * modules/isnanl (Depends-on): Likewise.
58269         * modules/isnanl-nolibm (Depends-on): Likewise.
58270         * modules/snprintf-posix-tests (Depends-on): Likewise.
58271         * modules/sprintf-posix-tests (Depends-on): Likewise.
58272         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
58273         * modules/vsprintf-posix-tests (Depends-on): Likewise.
58274         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
58275         * modules/vasprintf-posix-tests (Depends-on): Likewise.
58276
58277 2008-03-31  Bruno Haible  <bruno@clisp.org>
58278
58279         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
58280         * doc/posix-functions/strtod.texi: Likewise.
58281
58282 2008-03-31  Bruno Haible  <bruno@clisp.org>
58283
58284         * tests/test-strtod.c (main): Don't use C99 syntax.
58285
58286 2008-03-31  Bruno Haible  <bruno@clisp.org>
58287
58288         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
58289         Reported by Eric Blake.
58290
58291 2008-03-31  Jim Meyering  <meyering@redhat.com>
58292
58293         Don't compare actual signbit return values.
58294         * tests/test-strtod.c (main): Rather, compare only their
58295         zero/non-zero nature.
58296
58297 2008-03-31  Eric Blake  <ebb9@byu.net>
58298
58299         More strtod documentation.
58300         * doc/posix-functions/strtod.texi (strtod): Interpret more test
58301         failures as distinct bugs.
58302
58303 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
58304
58305         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
58306         Problem reported by Erik Benada in
58307         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
58308
58309 2008-03-30  Bruno Haible  <bruno@clisp.org>
58310
58311         * tests/test-strtod.c: Add comments about which assertion fails on which
58312         platform.
58313         * doc/posix-functions/strtod.texi: Add info about many more platforms.
58314
58315 2008-03-30  Eric Blake  <ebb9@byu.net>
58316
58317         Test signbit behavior on zeros.
58318         * tests/test-signbit.c (test_signbitf): Add tests for zero.
58319         (test_signbitd, test_signbitl): Likewise.
58320
58321         More strtod touchups.
58322         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
58323         sign of negative underflow, for now.  Use .5, not .1.
58324         * doc/posix-functions/strtod.texi (strtod): Mention these
58325         limitations.
58326         Reported by Jim Meyering.
58327
58328 2008-03-30  Bruno Haible  <bruno@clisp.org>
58329
58330         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
58331         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
58332
58333 2008-03-30  Bruno Haible  <bruno@clisp.org>
58334
58335         Avoid failure when attempting to return empty iconv results on some
58336         platforms.
58337         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
58338         allocation, don't report ENOMEM when the resulting string is empty.
58339
58340 2008-03-30  Bruno Haible  <bruno@clisp.org>
58341
58342         Fix buffer overrun.
58343         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
58344         Don't consider the width for tmp_length. Check count against tmp_length
58345         before doing the padding. Ensure enough allocation during padding.
58346
58347 2008-03-30  Eric Blake  <ebb9@byu.net>
58348
58349         strtod touchups.
58350         * lib/strtod.c (strtod): Avoid compiler warnings.
58351         Reported by Jim Meyering.
58352
58353 2008-03-30  Bruno Haible  <bruno@clisp.org>
58354
58355         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
58356         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
58357         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
58358         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
58359         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
58360         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
58361         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
58362         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
58363
58364         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
58365         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
58366         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
58367         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
58368         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
58369         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
58370         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
58371         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
58372
58373         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
58374         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
58375         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
58376         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
58377         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
58378         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
58379         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
58380         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
58381
58382         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
58383         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
58384
58385         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
58386         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
58387
58388         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
58389         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
58390
58391         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
58392         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
58393         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
58394
58395         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
58396         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
58397         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
58398
58399         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
58400         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
58401         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
58402
58403         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
58404         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
58405         * modules/vasprintf (Depends-on): Add EOVERFLOW.
58406
58407         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
58408         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
58409         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
58410         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
58411         (Depends-on): Add EOVERFLOW.
58412         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
58413         (Depends-on): Add EOVERFLOW.
58414         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
58415         (Depends-on): Add EOVERFLOW.
58416         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
58417         (Depends-on): Add EOVERFLOW.
58418         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
58419         (Depends-on): Add EOVERFLOW.
58420         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
58421         (Depends-on): Add EOVERFLOW.
58422         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
58423         (Depends-on): Add EOVERFLOW.
58424         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
58425         (Depends-on): Add EOVERFLOW.
58426
58427         * lib/sprintf.c (EOVERFLOW): Remove fallback.
58428         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
58429         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
58430
58431         * lib/snprintf.c (EOVERFLOW): Remove fallback.
58432         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
58433         * modules/snprintf (Depends-on): Add EOVERFLOW.
58434
58435         * lib/poll.c (EOVERFLOW): Remove fallback.
58436         * modules/poll (Depends-on): Add EOVERFLOW.
58437
58438         * lib/getugroups.c (EOVERFLOW): Remove fallback.
58439         * modules/getugroups (Depends-on): Add EOVERFLOW.
58440
58441         * lib/getdelim.c (EOVERFLOW): Remove fallback.
58442         * modules/getdelim (Depends-on): Add EOVERFLOW.
58443
58444         * lib/ftell.c (EOVERFLOW): Remove fallback.
58445         * modules/ftell (Depends-on): Add EOVERFLOW.
58446
58447         * lib/fprintf.c (EOVERFLOW): Remove fallback.
58448         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
58449         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
58450
58451         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
58452
58453         * modules/EOVERFLOW-tests: New file.
58454         * tests/test-EOVERFLOW.c: New file.
58455
58456         * modules/EOVERFLOW: New file.
58457         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
58458
58459 2008-03-30  Bruno Haible  <bruno@clisp.org>
58460
58461         Fix bug introduced on 2007-06-10.
58462         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
58463         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
58464
58465 2008-03-30  Bruno Haible  <bruno@clisp.org>
58466
58467         Improve freadseek's efficiency after ungetc.
58468         * lib/freadseek.c: Include freadahead.h.
58469         (freadptrinc): New function, extracted from freadseek.
58470         (freadseek): Use it in a loop. Use freadahead to determine the number
58471         of loop iterations.
58472         * modules/freadseek (Depends-on): Add freadahead.
58473         (configure.ac): Require AC_C_INLINE.
58474
58475 2008-03-30  Bruno Haible  <bruno@clisp.org>
58476
58477         * lib/freadseek.c (freadseek): Don't ignore the return value of
58478         freadptr.
58479
58480 2008-03-29  Eric Blake  <ebb9@byu.net>
58481
58482         Add hex float support.
58483         * modules/strtod (Depends-on): Add c-ctype.
58484         (Link): Mention POW_LIB.
58485         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
58486         whitespace between 'e' and exponent.
58487         * tests/test-strtod.c (main): Enable hex float tests.
58488         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
58489         now provides.
58490
58491         Document various strtod bugs, with some fixes.
58492         * doc/posix-functions/strtod.texi (strtod): Document bugs with
58493         "-0x", "inf", "nan", and hex constants.
58494         * doc/posix-functions/atof.texi (atof): Likewise.
58495         * modules/stdlib (Makefile.am): Support strtod.
58496         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
58497         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
58498         detect additional strtod bugs.
58499         * lib/stdlib.in.h (rpl_strtod): Add declarations.
58500         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
58501         bool where appropriate.  Parse 'inf' and 'nan'.
58502         * tests/test-strtod.c: New file.
58503         * modules/strtod (Depends-on): Add stdbool, stdlib.
58504         (configure.ac): Turn on module indicator.
58505         * modules/strtod-tests: New module.
58506
58507 2008-03-29  Eric Blake  <ebb9@byu.net>
58508
58509         Fix ftell on mingw.
58510         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
58511         * modules/ftell-tests (Depends-on): Add binary-io.
58512         * modules/ftello-tests (Depends-on): Likewise.
58513         * tests/test-ftell.c (main): Enhance test to cover behavior after
58514         ungetc.  Enforce binary mode.
58515         * tests/test-ftello.c (main): Likewise.
58516
58517         Pass test-freadseek on cygwin.
58518         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
58519         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
58520         ungetc buffer.
58521
58522         * tests/test-fflush2.c (main): Fix typo.
58523
58524 2008-03-29  Bruno Haible  <bruno@clisp.org>
58525
58526         * tests/test-fflush2.c (main): Temporarily disable the contents of
58527         this test.
58528         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
58529         Reported by Eric Blake.
58530
58531 2008-03-28  Simon Josefsson  <simon@josefsson.org>
58532
58533         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
58534         (GC_SHA224_DIGEST_SIZE): Add.
58535
58536         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
58537         (gc_hash_digest_length): Likewise.
58538         (gc_hash_buffer): Likewise.
58539
58540 2008-03-25  Bruno Haible  <bruno@clisp.org>
58541
58542         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
58543         detail which gettext release to use.
58544         Reported by Simon Josefsson.
58545
58546 2008-03-26  Jim Meyering  <meyering@redhat.com>
58547
58548         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
58549         * modules/gnumakefile (clean-GNUmakefile): Also, use
58550         test ... && ... || : syntax rather than if-then ... fi.
58551
58552         gnumakefile: Don't double-quote-expand $(VPATH) value.
58553         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
58554
58555 2008-03-24  Eric Blake  <ebb9@byu.net>
58556
58557         Alter GNUmakefile to install into top directory.
58558         * modules/maintainer-makefile: Split, and add dependency...
58559         * modules/gnumakefile: to this new module.
58560         * build-aux/GNUmakefile: Move...
58561         * top/GNUmakefile: ...here.
58562         * build-aux/maint.mk: Move...
58563         * top/maint.mk: ...here.
58564         * MODULES.html.sh (Support for maintaining...): Document new
58565         module.
58566
58567 2008-03-23  Bruno Haible  <bruno@clisp.org>
58568
58569         * gnulib-tool: New options --vc-files, --no-vc-files.
58570         (func_usage): Document them.
58571         (vc_files): New variable.
58572         (func_import): Consider vc_files.
58573         (func_create_testdir): Set vc_files to empty.
58574         Suggested by Jim Meyering and Karl Berry.
58575
58576 2008-03-23  Bruno Haible  <bruno@clisp.org>
58577
58578         Fix regex compilation error on HP-UX 11.
58579         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
58580         * modules/regex (Files): Add m4/mbstate_t.m4.
58581         Reported by Ton Voon <ton.voon@altinity.com>.
58582
58583 2008-03-23  Bruno Haible  <bruno@clisp.org>
58584
58585         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
58586
58587 2008-03-23  Eric Blake  <ebb9@byu.net>
58588             Bruno Haible  <bruno@clisp.org>
58589
58590         Install files from top/ in the destination directory.
58591         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
58592         augmentation also for the files from top/.
58593         (func_import, func_create_testdir): Rewrite file names:
58594         top/filename -> filename.
58595
58596 2008-03-23  Bruno Haible  <bruno@clisp.org>
58597
58598         Tweak "gnulib --version" output.
58599         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
58600
58601 2008-03-23  Bruno Haible  <bruno@clisp.org>
58602
58603         Tweak "gnulib --version" output.
58604         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
58605         rather than contents of ChangeLog, when possible.
58606
58607 2008-03-21  Eric Blake  <ebb9@byu.net>
58608
58609         More --version tweaks.
58610         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
58611         date of last ChangeLog entry.
58612
58613 2008-03-21  Jim Meyering  <meyering@redhat.com>
58614
58615         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
58616
58617 2008-03-20  Eric Blake  <ebb9@byu.net>
58618
58619         VPATH fix.
58620         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
58621
58622 2008-03-20  Simon Josefsson  <simon@josefsson.org>
58623
58624         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
58625         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
58626
58627 2008-03-20  Eric Blake  <ebb9@byu.net>
58628
58629         Sync GNUmakefile with coreutils.
58630         * build-aux/GNUmakefile (have-Makefile): Rename...
58631         (_have-Makefile): ...to this, for namespace consideration.
58632         (GNUmakefile.cfg): Include, if present.
58633         (_autoreconf): Define a default.
58634         (_is-dist-target): New rule for rebuilds to pick up intra-release
58635         version.
58636         (maint-cfg.mk): Rename...
58637         (cfg.mk): ...to this.
58638
58639 2008-03-18  Jim Meyering  <meyering@redhat.com>
58640
58641         New script and module: mktempd
58642         * MODULES.html.sh (maint+release support): Add mktempd.
58643         * build-aux/mktempd: New file.
58644         * modules/mktempd: New file.
58645
58646 2008-03-15  Jim Meyering  <meyering@redhat.com>
58647
58648         Undo last change.
58649         * lib/sha1.c, lib/md5.c: 63 != ~63.
58650         Reported by Andreas Schwab.
58651
58652         sha1.c, md5.c: Hoist a redundant expression.
58653         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
58654         "ctx->buflen" only once, before calling *_process_block.
58655         * lib/md5.c (md5_process_bytes): Likewise.
58656
58657 2008-03-14  Eric Blake  <ebb9@byu.net>
58658
58659         Bump copyright year in files generated by gnulib-tool.
58660         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
58661         gnulib-tool, rather than hard-coding it.
58662
58663         Fix 'gnulib-tool --version' output to work with git.
58664         * gnulib-tool (func_gnulib_dir): New function, extracted from...
58665         (startup): ...here.
58666         (func_version): Use it to invoke git-version-gen, rather than
58667         relying on CVS keyword expansion.  Modernize wording.
58668         (cvsdatestamp, last_checkin_date, version): Kill unused
58669         variables.
58670
58671 2008-03-12  Jim Meyering  <meyering@redhat.com>
58672
58673         Recognize optional cast of the argument to free.
58674         * build-aux/useless-if-before-free: Update regexps.
58675
58676         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
58677
58678 2008-03-11  Bruno Haible  <bruno@clisp.org>
58679
58680         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
58681         by a single package.
58682         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
58683         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
58684         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
58685         Reported by Sam Steingold <sds@gnu.org>.
58686
58687 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58688
58689         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
58690         repositories.
58691
58692 2008-03-11  Bruno Haible  <bruno@clisp.org>
58693
58694         Avoid conflicts between local macro definitions.
58695         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58696         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
58697
58698 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
58699             Bruno Haible  <bruno@clisp.org>
58700
58701         Make va_copy work with some version of xlc on AIX 5.1.
58702         * lib/stdarg.in.h: New file.
58703         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
58704         On AIX, use a <stdarg.h> file substitute.
58705         * modules/stdarg (Files): Add lib/stdarg.in.h.
58706         (Depends-on): Add include_next.
58707         (Makefile.am): Build a stdarg.h substitute if requested.
58708         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
58709
58710 2008-03-10  Bruno Haible  <bruno@clisp.org>
58711
58712         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
58713         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
58714         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58715
58716 2008-03-10  Bruno Haible  <bruno@clisp.org>
58717
58718         * modules/stdlib (Depends-on): Add include_next, remove
58719         absolute-header.
58720
58721 2008-03-09  Bruno Haible  <bruno@clisp.org>
58722
58723         * lib/freadahead.h (freadahead): Document more precisely.
58724         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
58725         the sum of both buffer sizes.
58726         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
58727         * NEWS: Document the change.
58728
58729 2008-03-09  Bruno Haible  <bruno@clisp.org>
58730
58731         Extend freadptr to return also the buffer size.
58732         * lib/freadptr.h (freadptr): Add sizep argument.
58733         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
58734         (freadptr): Add sizep argument. Determine buffer size like freadahead
58735         does.
58736         * tests/test-freadptr.c: Don't include freadahead.h.
58737         (main): Adapt for new calling convention of freadptr.
58738         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
58739         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
58740         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
58741         tests/test-freadptr2.sh.
58742         (Depends): Remove freadahead.
58743         (TESTS): Add test-freadptr2.sh.
58744         (check_PROGRAMS): Add test-freadptr2.
58745
58746 2008-03-09  Bruno Haible  <bruno@clisp.org>
58747
58748         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
58749         Report and solution by Simon Josefsson.
58750
58751 2008-03-06  Bruno Haible  <bruno@clisp.org>
58752
58753         Make fflush after ungetc work on BSD platforms.
58754         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
58755         * tests/test-fflush2.c: New file.
58756         * tests/test-fflush2.sh: New file.
58757         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
58758         tests/test-fflush2.c.
58759         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
58760         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
58761
58762 2008-03-06  Eric Blake  <ebb9@byu.net>
58763
58764         Likewise for ftello.
58765         * modules/ftello (Dependencies): Add extensions.
58766         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
58767
58768 2008-03-06  Bruno Haible  <bruno@clisp.org>
58769
58770         * modules/fseeko (Dependencies): Add extensions.
58771         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
58772         Needed on glibc systems.
58773
58774 2008-03-06  Bruno Haible  <bruno@clisp.org>
58775
58776         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
58777         email address.
58778         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58779
58780 2008-03-06  Bruno Haible  <bruno@clisp.org>
58781
58782         * users.txt: Add libgnupdf.
58783
58784 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58785
58786         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
58787         (Header File Substitutes, Function Substitutes,
58788         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
58789         (Build robot for gnulib): Fix typo.
58790
58791 2008-03-06  Bruno Haible  <bruno@clisp.org>
58792
58793         * doc/gnulib-tool.texi (VCS Issues): Small updates.
58794         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58795
58796 2008-03-06  Bruno Haible  <bruno@clisp.org>
58797
58798         * doc/func.texi: New file, extracted from doc/gnulib.texi.
58799         * doc/gnulib.texi: Include it.
58800
58801 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58802
58803         * modules/func (License): Change license to unlimited; there was
58804         no LGPL parts in the module anyway.
58805
58806 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58807
58808         * modules/__func__: Renamed to modules/func.
58809         * modules/__func__-tests: Renamed to modules/func-tests.
58810         * tests/test-__func__.c: Renamed to tests/test-func.c.
58811         * m4/__func__.m4: Renamed to m4/func.m4.
58812         * doc/gnulib.texi (__func__): Section renamed to func.
58813         Suggested by Eric Blake <ebb9@byu.net>.
58814
58815 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58816
58817         * doc/gnulib.texi (__func__): Use C99 terminology when talking
58818         about __func__.  Make example self-contained.  Suggested by Eric
58819         Blake <ebb9@byu.net>.
58820
58821         * tests/test-__func__.c (main): Avoid extraneous () around __func.
58822         Suggested by Eric Blake <ebb9@byu.net>.
58823
58824 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58825
58826         * modules/__func__: New file.
58827         * modules/__func__-tests: New file.
58828         * tests/test-__func__.c: New file.
58829         * m4/__func__.m4: New file.
58830         * doc/gnulib.texi (__func__): Document __func__ module.
58831
58832 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58833
58834         * modules/byteswap (License): Re-license as LGPLv2+.
58835
58836 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58837
58838         * doc/Makefile: Add pdf target.
58839
58840 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58841
58842         * modules/inline (License): Use 'unlimited', since there are only
58843         *.m4 files in this module.
58844
58845 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58846             Bruno Haible  <bruno@clisp.org>
58847
58848         Add support for HP C 7.1 on OpenVMS 8.3.
58849         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
58850
58851 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58852
58853         Update VMS specifics.
58854         * lib/getopt.c [VMS]: Remove include of unixlib.h.
58855
58856 2008-03-02  Jim Meyering  <meyering@redhat.com>
58857
58858         Remove the last dependency on the "free" module.
58859         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
58860         Reported by Bob Proulx.
58861
58862         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
58863
58864         Remove useless "if" tests before free.  Deprecate "free" module.
58865         * doc/posix-functions/free.texi: Mention that this
58866         module is no longer useful.
58867         * modules/free (Notice): Say this module is obsolete.
58868         * modules/readutmp (Depends-on): Remove free.
58869         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
58870         * lib/putenv.c (putenv): Likewise.
58871         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
58872         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
58873         * tests/test-c-strcasestr.c (main): Likewise.
58874         * tests/test-c-strstr.c (main): Likewise.
58875         * tests/test-mbscasestr1.c (main): Likewise.
58876         * tests/test-mbscasestr2.c (main): Likewise.
58877         * tests/test-mbsstr1.c (main): Likewise.
58878         * tests/test-mbsstr2.c (main): Likewise.
58879         * tests/test-memmem.c (main): Likewise.
58880         * tests/test-strcasestr.c (main): Likewise.
58881         * tests/test-striconv.c (main): Likewise.
58882         * tests/test-striconveh.c (main): Likewise.
58883         * tests/test-striconveha.c (main): Likewise.
58884         * tests/test-strstr.c (main): Likewise.
58885
58886         * build-aux/git-version-gen: Adjust a comment and the Usage string.
58887
58888         bootstrap: sync from coreutils again
58889         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
58890
58891 2008-03-01  Jim Meyering  <meyering@redhat.com>
58892
58893         bootstrap: sync from coreutils
58894         * build-aux/bootstrap (update_po_files): Copy a .po file into place
58895         also when the target doesn't exist.
58896
58897 2008-03-01  Eric Blake  <ebb9@byu.net>
58898
58899         Fix bugs in last patch.
58900         * lib/memchr2.c (memchr2): Fix typo.
58901         * tests/test-memchr2.c: Test previous bug, and don't use GNU
58902         extension.
58903         Reported by Bruce Korb.
58904
58905         New module 'memchr2'.
58906         * modules/memchr2: New file.
58907         * modules/memchr2-tests: Likewise.
58908         * lib/memchr2.h: Likewise.
58909         * lib/memchr2.c: Likewise, based on memchr.c.
58910         * tests/test-memchr2.c: New test.
58911         * MODULES.html.sh (String handling): Add memchr2.
58912
58913 2008-02-29  Bruno Haible  <bruno@clisp.org>
58914
58915         * modules/freadseek-tests: New file.
58916         * tests/test-freadseek.sh: New file.
58917         * tests/test-freadseek.c: New file.
58918
58919         New module 'freadseek'.
58920         * modules/freadseek: New file.
58921         * lib/freadseek.h: New file.
58922         * lib/freadseek.c: New file.
58923         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
58924
58925 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
58926
58927         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
58928         wydawca.
58929
58930         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
58931         program_invocation_name and program_invocation_short_name are
58932         present.
58933
58934 2008-02-28  Bruno Haible  <bruno@clisp.org>
58935
58936         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
58937         * tests/test-freadptr.sh: Also test non-seekable stdin.
58938
58939 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
58940
58941         * build-aux/bootstrap (source_base, m4_base)
58942         (doc_base, tests_base): New variables.
58943         (gnulib_tool_options): Do not hardcode base directories, use
58944         the above variables instead.
58945
58946 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
58947
58948         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
58949
58950 2008-02-28  Bruno Haible  <bruno@clisp.org>
58951
58952         * modules/freadptr-tests: New file.
58953         * tests/test-freadptr.sh: New file.
58954         * tests/test-freadptr.c: New file.
58955
58956         New module 'freadptr'.
58957         * modules/freadptr: New file.
58958         * lib/freadptr.h: New file.
58959         * lib/freadptr.c: New file.
58960         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
58961
58962 2008-02-26  Karl Berry  <karl@freefriends.org>
58963
58964         Sync from Libtool:
58965         * libltdl/argz.c (argz_add, argz_count): New functions.
58966         * libltdl/argz.in.h: Declare them.
58967         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
58968
58969 2008-02-22  Bruno Haible  <bruno@clisp.org>
58970
58971         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
58972         is a pointer type.  Needed for HP-UX 10.
58973         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
58974         * doc/posix-functions/gmtime_r.texi: Likewise.
58975         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58976
58977 2008-02-24  Bruno Haible  <bruno@clisp.org>
58978
58979         * modules/environ-tests: New file.
58980         * tests/test-environ.c: New file.
58981
58982         New module 'environ'.
58983         * modules/environ: New file.
58984         * lib/unistd.in.h (environ): New declaration.
58985         * m4/environ.m4: New file.
58986         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
58987         after use.
58988         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
58989         HAVE_DECL_ENVIRON.
58990         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
58991         HAVE_DECL_ENVIRON.
58992         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
58993         wrong claim that 'environ' is missing on some systems.
58994         * modules/execute (Depends-on): Add environ.
58995         * lib/execute.c (environ): Remove fallback declaration.
58996         * modules/pipe (Depends-on): Add environ.
58997         * lib/pipe.c (environ): Remove fallback declaration.
58998         * modules/setenv (Depends-on): Add environ.
58999         * lib/setenv.c (environ): Remove fallback declaration.
59000         * modules/unsetenv (Depends-on): Add environ.
59001         * lib/unsetenv.c (environ): Remove fallback declaration.
59002         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
59003         m4/environ.m4.
59004         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
59005         (gl_PREREQ_UNSETENV): Likewise.
59006
59007 2008-02-24  Bruno Haible  <bruno@clisp.org>
59008
59009         * doc/posix-functions/environ.texi: Document the MacOS X problem.
59010
59011 2008-02-20  Bob Proulx  <bob@proulx.com>
59012
59013         Enable use of older two part flavor 'git describe'.
59014         * build-aux/git-version-gen: If using the older two part flavor of
59015         git version then recreate the third part now present in the
59016         newer three part flavor of git describe.
59017
59018 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
59019
59020         * lib/fts.c (fts_build): Typo correction to comment.
59021
59022 2008-02-17  Bruno Haible  <bruno@clisp.org>
59023
59024         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
59025         generating no-op conflicts.
59026
59027 2008-02-17  Bruno Haible  <bruno@clisp.org>
59028
59029         Speed up by 10%.
59030         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
59031         result_entries, rather than an index-based loop.
59032
59033 2008-02-17  Bruno Haible  <bruno@clisp.org>
59034
59035         Speed up by 25%.
59036         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
59037         'hashcode_cached'.
59038         (entry_create): New function.
59039         (entry_hashcode): Use the cached hashcode if possible.
59040         (read_changelog_file, try_split_merged_entry): Use entry_create.
59041
59042 2008-02-17  Bruno Haible  <bruno@clisp.org>
59043
59044         Speed up from O(n^2) to O(n) for long ChangeLog files.
59045         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
59046         (read_changelog_file): Change implementation of entries_reversed list
59047         to rbtreehash.
59048         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
59049
59050 2008-02-17  Bruno Haible  <bruno@clisp.org>
59051
59052         New option --split-merged-entry.
59053         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
59054         (find_paragraph_end, try_split_merged_entry): New functions.
59055         (long_options): Add option --split-merged-entry.
59056         (usage): Document option --split-merged-entry.
59057         (main): Implement option --split-merged-entry.
59058         Reported by Eric Blake.
59059
59060 2008-02-17  Bruno Haible  <bruno@clisp.org>
59061
59062         * lib/git-merge-changelog.c: Include c-strstr.h.
59063         (main): Support the "git pull --rebase" situation.
59064         * modules/git-merge-changelog (Depends-on): Add c-strstr.
59065         Reported by Eric Blake.
59066
59067 2008-02-16  Eric Blake  <ebb9@byu.net>
59068
59069         Avoid doubling \ in common case of "c-maybe" quoting style.
59070         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
59071         eliding outer quotes.
59072         * lib/quotearg.h: Document this.
59073         * tests/test-quotearg.c (result_strings, inputs, results_g)
59074         (flag_results, locale_results): Test it by adding a new string to
59075         each test group.
59076         (compare_strings): Test new string.
59077
59078 2008-02-13  Eric Blake  <ebb9@byu.net>
59079
59080         Avoid trigraph quoting in default output.
59081         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
59082         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
59083         unless explicitly requested.
59084         * tests/test-quotearg.c (flag_results, main): Add additional tests.
59085
59086 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
59087
59088         Don't rely on signed integer overflowing to negative value.
59089         * lib/getugroups.c (getugroups): Include <limits.h>.
59090         Instead, compare against INT_MAX, and increment only if the test passes.
59091
59092 2008-02-13  Jim Meyering  <meyering@redhat.com>
59093         and Eric Blake  <ebb9@byu.net>
59094
59095         Avoid shadowing warning and compile errors on Linux.
59096         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
59097         forwarding macros on Linux.
59098         (dcgettext): Define a stub, for Linux.
59099         (results_g, main): Avoid warnings.
59100
59101 2008-02-12  Eric Blake  <ebb9@byu.net>
59102
59103         Silence warning in last patch.
59104         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
59105
59106         Quotearg part 4: add tests, fix c-maybe colon quoting.
59107         * lib/quotearg.h: Improve documentation.
59108         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
59109         escapes when adding outer quotes.  When quoting trigraphs, use
59110         valid C notation.  When quoting NUL, omit extra characters if next
59111         character is not digit.  Alter prototype.
59112         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
59113         callers.
59114         * modules/quotearg-tests: New module.
59115         * tests/test-quotearg.c: New test.
59116
59117 2008-02-07  Eric Blake  <ebb9@byu.net>
59118
59119         Quotearg part 3: add flag to control outer quote elision.
59120         * lib/quotearg.h (c_maybe_quoting_style): New style.
59121         (enum quoting_flags): Better documentation of flags.
59122         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
59123         c-maybe style.
59124         (quotearg_buffer_restyled): Handle new flag to elide outer
59125         quotes.
59126
59127         Quotearg part 2: add flag that can control NUL elision.
59128         * lib/quotearg.h (set_quoting_flags): New prototype.
59129         * lib/quotearg.c (struct quoting_options): Add flag field.
59130         (set_quoting_flags): New function.
59131         (quotearg_buffer_restyled): Add flags parameter.
59132         (quotearg_alloc_mem): Set the flag if length cannot be returned.
59133         (quotearg_n_options): Set the flag, since length cannot be
59134         returned.
59135         (quoting_options_from_style): Default flags correctly.
59136
59137         Quotearg part 1: more wrappers, restore quotearg_char state.
59138         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
59139         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
59140         (quotearg_colon_mem): New wrappers.
59141         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
59142         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
59143         functions.
59144         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
59145         (quotearg_colon_mem): New functions.
59146
59147 2008-02-11  Bruno Haible  <bruno@clisp.org>
59148
59149         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
59150         library in the current directory: it does not work with parallel make.
59151         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59152
59153 2008-02-11  Bruno Haible  <bruno@clisp.org>
59154
59155         * .gitattributes: New file.
59156
59157 2008-02-11  Jim Meyering  <meyering@redhat.com>
59158
59159         useless-if-before-free: Fix reversed exit values.
59160         * build-aux/useless-if-before-free: Use correct values
59161         for EXIT_MATCH and EXIT_NO_MATCH.
59162
59163         * build-aux/useless-if-before-free: Close stdout carefully.
59164
59165 2008-02-10  Bruno Haible  <bruno@clisp.org>
59166
59167         New module 'git-merge-changelog'.
59168         * modules/git-merge-changelog: New file.
59169         * lib/git-merge-changelog.c: New file.
59170
59171 2008-02-10  Jim Meyering  <meyering@redhat.com>
59172
59173         useless-if-before-free: New option: --list (-l).
59174
59175         useless-if-before-free: Don't exit immediately upon open failure.
59176         * build-aux/useless-if-before-free: Exit 2 for errors.
59177         Upon failure to open a file, don't exit immediately.
59178         Rather, just warn and continue with any remaining files.
59179
59180 2008-02-10  Bruno Haible  <bruno@clisp.org>
59181
59182         New abstract list operation 'node_set_value'.
59183         * lib/gl_list.h (gl_list_node_set_value): New function.
59184         (struct gl_list_implementation): New field node_set_value.
59185         * lib/gl_list.c (gl_list_node_set_value): New function.
59186         * lib/gl_array_list.c (gl_array_node_set_value): New function.
59187         (gl_array_list_implementation): Update.
59188         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
59189         (gl_carray_list_implementation): Update.
59190         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
59191         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59192         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59193         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
59194         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59195         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59196         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59197         Update.
59198         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
59199         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
59200         (gl_sublist_list_implementation): Update.
59201
59202 2008-02-10  Bruno Haible  <bruno@clisp.org>
59203
59204         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
59205         Needed when ELEMENT is #defined to 'some_type *'.
59206
59207 2008-02-10  Jim Meyering  <meyering@redhat.com>
59208
59209         New script and module: useless-if-before-free
59210         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
59211         * build-aux/useless-if-before-free: New file.
59212         * modules/useless-if-before-free: New file.
59213
59214         * build-aux/gitlog-to-changelog: Use committer date, not author date.
59215
59216         xstrtol_error: Fix typo.
59217         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
59218         s/exit_failure/exit_status/.
59219
59220 2008-02-09  Jim Meyering  <meyering@redhat.com>
59221
59222         New script and module: gitlog-to-changelog
59223         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
59224         * modules/gitlog-to-changelog: New file.
59225         * build-aux/gitlog-to-changelog: New file.
59226
59227 2008-02-08  Jim Meyering  <meyering@redhat.com>
59228
59229         Avoid two "parameter unused" warnings.
59230         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
59231         Mark "st" as used.
59232
59233         Use "git COMMAND", not "git-COMMAND".
59234         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
59235         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
59236         * build-aux/git-version-gen: Use "git status", not "git-status".
59237
59238 2008-02-07  Bruno Haible  <bruno@clisp.org>
59239
59240         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
59241         Avoids a crash on Windows Vista.
59242         Reported by Adam Strzelecki <ono@java.pl> via
59243         Simon Josefsson <simon@josefsson.org>.
59244
59245 2008-02-06  Bruno Haible  <bruno@clisp.org>
59246
59247         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
59248         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
59249         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
59250         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
59251         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59252         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59253         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
59254         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
59255         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59256         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59257         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59258         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59259         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59260         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59261         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59262         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
59263         left-adjust flag.
59264         * tests/test-snprintf-posix.h (test_function): Likewise.
59265         * tests/test-sprintf-posix.h (test_function): Likewise.
59266         * tests/test-vasprintf-posix.c (test_function): Likewise.
59267         * doc/posix-functions/fprintf.texi: Update.
59268         * doc/posix-functions/printf.texi: Update.
59269         * doc/posix-functions/snprintf.texi: Update.
59270         * doc/posix-functions/sprintf.texi: Update.
59271         * doc/posix-functions/vfprintf.texi: Update.
59272         * doc/posix-functions/vprintf.texi: Update.
59273         * doc/posix-functions/vsnprintf.texi: Update.
59274         * doc/posix-functions/vsprintf.texi: Update.
59275         Reported by Peter Fales <psfales@alcatel-lucent.com>.
59276
59277 2008-02-06  Bruno Haible  <bruno@clisp.org>
59278
59279         Fix bug introduced on 2008-01-26.
59280         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
59281
59282 2008-02-06  Bruno Haible  <bruno@clisp.org>
59283
59284         Fix bug introduced on 2007-06-10.
59285         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
59286         !NEED_PRINTF_FLAG_ZERO.
59287
59288 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
59289
59290         getloadavg: use libperfstat on AIX5
59291         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
59292
59293 2008-02-03  Bruno Haible  <bruno@clisp.org>
59294
59295         * lib/diffseq.h: Add comments about required #includes.
59296         Reported by Michael Biggs <gnulib@doubleplum.net>.
59297
59298 2008-02-01  Bruno Haible  <bruno@clisp.org>
59299
59300         * users.txt: Add gnuit.
59301
59302 2008-01-31  Bruno Haible  <bruno@clisp.org>
59303
59304         * lib/md4.c (set_uint32): Mark as inline.
59305         * lib/md5.c (set_uint32): Likewise.
59306         * lib/sha1.c (set_uint32): Likewise.
59307         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
59308         * m4/md5.m4 (gl_MD5): Likewise.
59309         * m4/sha1.m4 (gl_SHA1): Likewise.
59310
59311 2008-01-31  Jim Meyering  <meyering@redhat.com>
59312
59313         Use "sizeof VAR", rather than a literal "4".
59314         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
59315         * lib/md4.c (md4_read_ctx): Likewise.
59316         * lib/sha1.c (sha1_read_ctx): Likewise.
59317
59318 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59319
59320         * tests/test-sha1.c: New file, based on test-md5.c.
59321
59322         * modules/crypto/sha1-tests: New file.
59323
59324 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59325
59326         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
59327
59328 2008-01-31  Jim Meyering  <meyering@redhat.com>
59329
59330         Prefer "sizeof v" over the equivalent "4".
59331         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
59332         * lib/md5.c (set_uint32): Likewise.
59333         * lib/sha1.c (set_uint32): Likewise.
59334
59335 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59336
59337         * lib/sha1.c (set_uint32): Mark function as static.
59338
59339 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59340
59341         md2: clarify comments to say that alignment is not required.
59342         * lib/md2.h: Remove warning about alignment in comment.
59343         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
59344         never been required.
59345
59346 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59347
59348         md4: adapt alignment constraint fix from sha1.
59349         * lib/md4.c (set_uint32): New function, from sha1.c
59350         (md4_read_ctx): Use it.
59351         (md4_finish_ctx): Doc fix.
59352         * lib/md4.h: Doc fix.
59353
59354 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59355
59356         md5: adapt alignment constraint fix from sha1.
59357         * lib/md5.c (set_uint32): New function, from sha1.c
59358         (md5_read_ctx): Use it.
59359         (md5_finish_ctx): Doc fix.
59360         * lib/md5.h: Doc fix.
59361
59362 2008-01-30  Peter Palfrader  <weasel@debian.org>
59363
59364         sha1: remove the result buffer alignment constraint
59365         * lib/sha1.c (set_uint32): New function.
59366         (sha1_read_ctx): Rewrite to remove the result buffer alignment
59367         constraint.
59368         (sha1_finish_ctx): Remove comment warning about alignment constraint.
59369         * lib/sha1.h: Likewise.
59370
59371 2008-01-30  Andreas Schwab  <schwab@suse.de>
59372             Bruno Haible  <bruno@clisp.org>
59373
59374         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
59375         correct definition of LDBL_MIN_EXP.
59376
59377 2008-01-30  Karl Berry  <karl@gnu.org>
59378
59379         * config/srclist-update: try to preserve x bit on updates.
59380         * config/srclistvars.sh: update for karl.
59381
59382 2008-01-29  Jim Meyering  <meyering@redhat.com>
59383
59384         vasnprintf.c: Avoid warning about unused label
59385         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
59386         "overflow" label definition and associated code with the
59387         same cpp condition that guards the sole use of that label.
59388
59389 2008-01-26  Bruno Haible  <bruno@clisp.org>
59390
59391         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
59392         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
59393         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
59394         * lib/isnanl-nolibm.h (isnanl): Likewise.
59395         Reported by Paul Eggert <eggert@cs.ucla.edu>.
59396
59397 2008-01-26  Bruno Haible  <bruno@clisp.org>
59398
59399         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
59400         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
59401
59402 2008-01-26  Bruno Haible  <bruno@clisp.org>
59403
59404         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
59405         GCC >= 4.0 built-in.
59406         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
59407
59408 2008-01-26  Bruno Haible  <bruno@clisp.org>
59409
59410         Rename isnan, applicable to 'double' only, to isnand.
59411         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
59412         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
59413         (configure.ac): Update.
59414         (Include): Replace "isnan.h" with "isnand.h".
59415         * m4/isnand.m4: Renamed from m4/isnan.m4.
59416         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
59417         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
59418         instead of isnan.c.
59419         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
59420         instead of HAVE_ISNAN_IN_LIBC.
59421         (isnand): Renamed from isnan.
59422         * lib/isnand.c: New file.
59423         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
59424         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
59425         (Makefile.am): Update.
59426         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
59427         Include isnand.h instead of isnan.h.
59428         (main): Test isnand instead of isnan.
59429         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
59430         isnan-nolibm.
59431         * modules/frexp (Depends-on): Likewise.
59432         * modules/frexp-tests (Depends-on): Likewise.
59433         * modules/frexp-nolibm (Depends-on): Likewise.
59434         * modules/frexp-nolibm-tests (Depends-on): Likewise.
59435         * modules/isfinite (Depends-on): Likewise.
59436         * modules/round-tests (Depends-on): Likewise.
59437         * modules/signbit (Depends-on): Likewise.
59438         * modules/signbit-tests (Depends-on): Likewise.
59439         * modules/snprintf-posix (Depends-on): Likewise.
59440         * modules/sprintf-posix (Depends-on): Likewise.
59441         * modules/trunc-tests (Depends-on): Likewise.
59442         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59443         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59444         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59445         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59446         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59447         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59448         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59449         * modules/vasnprintf-posix (Depends-on): Likewise.
59450         * modules/vasprintf-posix (Depends-on): Likewise.
59451         * modules/vfprintf-posix (Depends-on): Likewise.
59452         * modules/vsnprintf-posix (Depends-on): Likewise.
59453         * modules/vsprintf-posix (Depends-on): Likewise.
59454         * lib/frexp.c: Include isnand.h instead of isnan.h.
59455         (ISNAN): Set to isnand instead of isnan.
59456         * lib/isfinite.c: Include isnand.h instead of isnan.h.
59457         (gl_isfinited): Use isnand instead of isnan.
59458         * lib/signbitd.c: Include isnand.h instead of isnan.h.
59459         (gl_signbitd): Use isnand instead of isnan.
59460         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
59461         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
59462         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
59463         (main): Use isnand instead of isnan.
59464         * tests/test-round1.c: Include isnand.h.
59465         (main): Use isnand instead of isnan.
59466         * tests/test-round2.c: Include isnand.h instead of isnan.h.
59467         (ISNAN): Set to isnand instead of isnan.
59468         * tests/test-trunc1.c: Include isnand.h.
59469         (main): Use isnand instead of isnan.
59470         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
59471         (equal): Use isnand instead of isnan.
59472         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
59473         isnand-nolibm.
59474         * NEWS: Mention the change.
59475
59476 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
59477             Bruno Haible  <bruno@clisp.org>
59478
59479         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
59480         the GCC builtins for signbits are present and set
59481         REPLACE_SIGNBIT_USING_GCC if so.
59482         * lib/math.in.h (signbit): Define using GCC builtins if
59483         REPLACE_SIGNBIT_USING_GCC is set.
59484         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
59485         REPLACE_SIGNBIT_USING_GCC.
59486         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
59487
59488 2008-01-25  Jim Meyering  <meyering@redhat.com>
59489
59490         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
59491         * lib/poll.c: Include <config.h>, not "config.h".
59492         * tests/test-getaddrinfo.c: Likewise.
59493
59494 2008-01-25  Simon Josefsson  <simon@josefsson.org>
59495
59496         * modules/sockets-tests: New file.
59497
59498 2008-01-24  Simon Josefsson  <simon@josefsson.org>
59499
59500         * modules/sockets: New module, can be used to call WSA_Startup and
59501         WSA_Cleanup when needed.
59502
59503         * lib/sockets.h, lib/sockets.c: New files.
59504
59505         * m4/sockets.m4: New file.
59506
59507         * tests/test-sockets.c: New file.
59508
59509 2008-01-19  Bruno Haible  <bruno@clisp.org>
59510
59511         * doc/posix-headers: Renamed from doc/headers.
59512         * doc/posix-functions: Renamed from doc/functions.
59513         * doc/gnulib.texi: Update.
59514
59515 2008-01-19  Bruno Haible  <bruno@clisp.org>
59516
59517         * doc/glibc-functions/strcasestr.texi: Include contents of
59518         doc/functions/strcasestr.texi, fixing the list of platforms.
59519         * doc/functions/strcasestr.texi: Remove file.
59520
59521 2008-01-19  Bruno Haible  <bruno@clisp.org>
59522
59523         * doc/glibc-functions/memmem.texi: Include contents of
59524         doc/functions/memmem.texi.
59525         * doc/functions/memmem.texi: Remove file.
59526
59527 2008-01-18  Bruno Haible  <bruno@clisp.org>
59528
59529         * doc/glibc-functions/*.texi: New files.
59530         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
59531         to use the new files.
59532
59533 2008-01-17  Bruno Haible  <bruno@clisp.org>
59534
59535         * tests/test-gethostname.c (main): Fix printf statement.
59536
59537 2008-01-17  Simon Josefsson  <simon@josefsson.org>
59538
59539         * modules/gethostname-tests: New file.
59540
59541         * tests/test-gethostname.c: New file.
59542
59543 2008-01-17  Simon Josefsson  <simon@josefsson.org>
59544
59545         * lib/gethostname.c: Include string.h unconditionally, strncpy is
59546         used by the UNAME case.  Reported by Bruno Haible
59547         <bruno@clisp.org>.
59548
59549 2008-01-17  Eric Blake  <ebb9@byu.net>
59550
59551         Convert c-strcasestr to be more efficient.
59552         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
59553         (Depends-on): Add c-strcase, remove malloca, strnlen.
59554         * tests/test-c-strcasestr.c (main): Enhance test.
59555         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
59556
59557 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
59558
59559         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
59560         Use it in creating po/Makevars.
59561
59562 2008-01-15  Simon Josefsson  <simon@josefsson.org>
59563
59564         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
59565         Applications that requires it should initialize libgcrypt
59566         manually.
59567
59568 2008-01-16  Simon Josefsson  <simon@josefsson.org>
59569
59570         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
59571
59572 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
59573
59574         Fix problem with getdate on mingw32 reported by Simon Josefsson
59575         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
59576         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
59577         tzname", when deciding whether to declare tzname.
59578         * lib/strftime.c (tzname): Likewise.
59579
59580 2008-01-15  Bruno Haible  <bruno@clisp.org>
59581
59582         Work around a MacOS X 10.5 bug in frexpl().
59583         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
59584         * doc/functions/frexpl.texi: Document the bug.
59585         Reported by Elias Pipping <pipping@gentoo.org>.
59586
59587 2008-01-14  Eric Blake  <ebb9@byu.net>
59588
59589         Touch up previous patch.
59590         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
59591         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
59592
59593         Convert strcasestr module to use Two-Way algorithm.
59594         * modules/strcasestr-simple: New module, based on the old
59595         strcasestr, but with Two-Way rather than KMP.
59596         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
59597         * lib/string.in.h (rpl_strcasestr): Declare.
59598         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
59599         performance.
59600         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
59601         * modules/string (Makefile.am): Support strcasestr.
59602         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
59603         * modules/strcasestr-tests (Depends-on): Check for alarm.
59604         * tests/test-strcasestr.c: Augment test.
59605         * lib/str-two-way.h: Clean up stray macro.
59606         * NEWS: Document new module.
59607         * MODULES.html.sh (string handling): Likewise.
59608         * doc/functions/strcasestr.texi: New file.
59609         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
59610         here, since it is not a POSIX function.
59611
59612 2008-01-14  Colin Watson  <cjwatson@debian.org>
59613             Bruno Haible  <bruno@clisp.org>
59614
59615         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
59616         works fine; if not, set REPLACE_STRSIGNAL.
59617         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
59618         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59619         REPLACE_STRSIGNAL.
59620         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
59621         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
59622         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
59623
59624 2008-01-14  Bruno Haible  <bruno@clisp.org>
59625
59626         * modules/strsignal (Include): Change to <string.h>.
59627
59628 2008-01-14  Colin Watson  <cjwatson@debian.org>
59629
59630         * modules/argp (Notice): Add a notice recommending to change
59631         XGETTEXT_OPTIONS.
59632         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
59633
59634 2008-01-13  Colin Watson  <cjwatson@debian.org>
59635
59636         * modules/strsignal-tests: New file.
59637         * tests/test-strsignal.c: New file.
59638
59639         * lib/strsignal.c: New file, from glibc with modifications.
59640         * lib/siglist.h: New file, from glibc with modifications.
59641         * lib/string.in.h (strsignal): New declaration.
59642         * m4/strsignal.m4: New file.
59643         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59644         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
59645         * modules/strsignal: New file.
59646         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
59647         HAVE_DECL_STRSIGNAL.
59648
59649 2008-01-13  Bruno Haible  <bruno@clisp.org>
59650
59651         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
59652         locale encoding is not ASCII. Needed for OpenBSD 4.0.
59653         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59654         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59655
59656 2008-01-13  Bruno Haible  <bruno@clisp.org>
59657
59658         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
59659         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
59660         * lib/argp.h (__attribute__): Likewise.
59661         * lib/c-stack.c (__attribute__): Likewise.
59662         * lib/error.h (__attribute__): Likewise.
59663         * lib/fts.c (__attribute__): Likewise.
59664         * lib/openat.h (__attribute__): Likewise.
59665         * lib/stdio.in.h (__attribute__): Likewise.
59666         * lib/string.in.h (__attribute__): Likewise.
59667         * lib/utimens.c (__attribute__): Likewise.
59668         * lib/vasnprintf.h (__attribute__): Likewise.
59669         * lib/xalloc.h (__attribute__): Likewise.
59670         * lib/xprintf.h (__attribute__): Likewise.
59671         * lib/xstrtol.h (__attribute__): Likewise.
59672         * lib/xvasprintf.h (__attribute__): Likewise.
59673
59674 2008-01-12  Bruno Haible  <bruno@clisp.org>
59675
59676         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
59677         * doc/glibc-headers/a.out.texi: New file.
59678         * doc/glibc-headers/aliases.texi: New file.
59679         * doc/glibc-headers/alloca.texi: New file.
59680         * doc/glibc-headers/ar.texi: New file.
59681         * doc/glibc-headers/argp.texi: New file.
59682         * doc/glibc-headers/argz.texi: New file.
59683         * doc/glibc-headers/byteswap.texi: New file.
59684         * doc/glibc-headers/crypt.texi: New file.
59685         * doc/glibc-headers/endian.texi: New file.
59686         * doc/glibc-headers/envz.texi: New file.
59687         * doc/glibc-headers/err.texi: New file.
59688         * doc/glibc-headers/error.texi: New file.
59689         * doc/glibc-headers/execinfo.texi: New file.
59690         * doc/glibc-headers/fpu_control.texi: New file.
59691         * doc/glibc-headers/fstab.texi: New file.
59692         * doc/glibc-headers/fts.texi: New file.
59693         * doc/glibc-headers/getopt.texi: New file.
59694         * doc/glibc-headers/ieee754.texi: New file.
59695         * doc/glibc-headers/ifaddrs.texi: New file.
59696         * doc/glibc-headers/libintl.texi: New file.
59697         * doc/glibc-headers/mcheck.texi: New file.
59698         * doc/glibc-headers/mntent.texi: New file.
59699         * doc/glibc-headers/obstack.texi: New file.
59700         * doc/glibc-headers/paths.texi: New file.
59701         * doc/glibc-headers/printf.texi: New file.
59702         * doc/glibc-headers/pty.texi: New file.
59703         * doc/glibc-headers/resolv.texi: New file.
59704         * doc/glibc-headers/shadow.texi: New file.
59705         * doc/glibc-headers/sysexits.texi: New file.
59706         * doc/glibc-headers/ttyent.texi: New file.
59707
59708 2008-01-12  Jim Meyering  <meyering@redhat.com>
59709
59710         announce-gen: emit Gnulib's git-based version string.
59711         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
59712         New option --gnulib-version=V, where V is expected to be
59713         the output of running git describe in the gnulib directory.
59714         (get_tool_versions): Request feedback on xdelta.  I suspect it's
59715         not useful, and plan to stop publishing an xdelta file with each
59716         coreutils release.
59717
59718         * build-aux/announce-gen: Also check for lzma-compressed files.
59719
59720 2008-01-11  Bruno Haible  <bruno@clisp.org>
59721
59722         * tests/test-memmem.c (main): Increase maximum allowed time.
59723         * tests/test-strstr.c (main): Likewise.
59724
59725 2008-01-11  Bruno Haible  <bruno@clisp.org>
59726
59727         * doc/functions/memmem.texi: Add more precisions about platforms.
59728         * doc/functions/strstr.texi: Likewise.
59729
59730 2008-01-10  Eric Blake  <ebb9@byu.net>
59731
59732         * m4/strstr.m4: Delete cruft from copy-n-paste.
59733         Reported by Bruno Haible.
59734
59735 2008-01-10  Bruno Haible  <bruno@clisp.org>
59736
59737         Make c-strstr rely on strstr.
59738         * lib/c-strstr.c: Don't include str-kmp.h.
59739         (c_strstr): Define in terms of strstr.
59740         * modules/c-strstr (Files): Remove lib/str-kmp.h.
59741         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
59742
59743 2008-01-10  Bruno Haible  <bruno@clisp.org>
59744
59745         * doc/gnulib.texi (String Functions in C Locale): New section.
59746         * doc/c-ctype.texi: New file.
59747         * doc/c-strcase.texi: New file.
59748         * doc/c-strcaseeq.texi: New file.
59749         * doc/c-strcasestr.texi: New file.
59750         * doc/c-strstr.texi: New file.
59751         * doc/c-strtod.texi: New file.
59752         * doc/c-strtold.texi: New file.
59753
59754 2008-01-10  Eric Blake  <ebb9@byu.net>
59755
59756         * lib/relocatable.h: Fix a comment.
59757
59758 2008-01-10  Eric Blake  <ebb9@byu.net>
59759
59760         Share two-way algorithm.
59761         * lib/str-two-way.h: New file, merged from...
59762         * lib/memmem.c: ...here...
59763         * lib/strstr.c: ...and here.
59764         * modules/memmem (Files): Use it.
59765         * modules/strstr (Files): Likewise.
59766
59767         Avoid quadratic strstr implementations.
59768         * lib/strstr.c: New file.
59769         * m4/strstr.m4: Likewise.
59770         * modules/strstr: Likewise.
59771         * modules/strstr-tests: Likewise.
59772         * tests/test-strstr.c: Likewise.
59773         * lib/string.in.h (rpl_strstr): Declare.
59774         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
59775         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
59776         * modules/string (Makefile.am): Likewise.
59777         * MODULES.html.sh (string handling): Mention new module.
59778         * doc/functions/strstr.texi (strstr): Document the bug.
59779
59780 2008-01-10  Bruno Haible  <bruno@clisp.org>
59781
59782         * lib/relocatable.h (relocate): State whether result is freshly
59783         allocated or not.
59784         * lib/relocatable.c (relocate): Return a freshly allocated string
59785         instead of a pointer to a privately held string.
59786         Reported by Sylvain Beucler <beuc@gnu.org>.
59787
59788 2008-01-10  Colin Watson  <cjwatson@debian.org>
59789
59790         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
59791         s/S_ISNLK/S_ISLNK/.
59792
59793 2008-01-09  Bruno Haible  <bruno@clisp.org>
59794
59795         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
59796         and other files.
59797         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
59798         if it's only a guess.
59799         * modules/memmem: Simplify by depending on memmem-simple.
59800
59801 2008-01-09  Bruno Haible  <bruno@clisp.org>
59802
59803         Work around OpenBSD 4.0 tdelete() bug.
59804         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
59805         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
59806         macros and don't redefine the enum values.
59807         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
59808         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
59809         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
59810
59811 2008-01-09  Bruno Haible  <bruno@clisp.org>
59812
59813         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
59814         (main): Don't perform the tests if setlocale did not install a UTF-8
59815         locale. Needed on OpenBSD 4.0.
59816         * modules/wcwidth-tests (Depends-on): Add localcharset.
59817
59818 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59819
59820         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
59821         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
59822         * NEWS: announce this.
59823         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
59824
59825 2008-01-09  Simon Josefsson  <simon@josefsson.org>
59826         and Eric Blake  <ebb9@byu.net>
59827
59828         Add memmem-simple module.
59829         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
59830         (gl_FUNC_MEMMEM): Separate performance from presence checks.
59831         * modules/memmem-simple: New file.
59832         * modules/memmem (Description): Tweak.
59833         * MODULES.html.sh (string handling): Mention new module.
59834         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
59835         addressed by memmem-simple.
59836         * NEWS: Document the difference.
59837
59838 2008-01-09  Eric Blake  <ebb9@byu.net>
59839
59840         Give gcc some memmem optimization hints.
59841         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
59842         (strcasestr): Declare as pure.
59843         * modules/memmem (Maintainer): Claim my implementation.
59844
59845 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59846
59847         Support AIX 6.1 and higher.
59848         * build-aux/config.libpath: Likewise.
59849         * build-aux/config.rpath: Likewise.
59850
59851 2008-01-08  Jim Meyering  <meyering@redhat.com>
59852             Bruno Haible  <bruno@clisp.org>
59853
59854         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
59855         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
59856         Reported by Peter Fales in
59857         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
59858
59859 2008-01-08  Bruno Haible  <bruno@clisp.org>
59860
59861         * modules/unictype/category-of (Depends-on): Add
59862         unictype/category-none.
59863         * modules/unictype/category-and-tests (Depends-on): Add
59864         unictype/category-{L,N,Lu,Nd}.
59865         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
59866         * modules/unictype/category-or-tests (Depends-on): Add
59867         unictype/category-{L,N}.
59868         * modules/unictype/category-name-tests (Depends-on): Add
59869         unictype/category-{Z,Nl}.
59870         Reported by Simon Josefsson.
59871
59872 2008-01-08  Bruno Haible  <bruno@clisp.org>
59873
59874         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
59875         convention better.
59876         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
59877         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
59878         Reported by Peter Miller <millerp@canb.auug.org.au>.
59879
59880 2008-01-08  Eric Blake  <ebb9@byu.net>
59881
59882         Rewrite memmem to guarantee linear complexity without malloc.
59883         * lib/memmem.c (memmem): Use Two-Way rather than
59884         Knuth-Morris-Pratt, to allow O(1) space usage.
59885         (critical_factorization, two_way_short_needle)
59886         (two_way_long_needle): New functions.
59887         (knuth_morris_pratt): Delete.
59888         * modules/memmem (Depends-on): No longer need malloca or stdbool.
59889         Add stdint.
59890         * tests/test-memmem.c (main): Add tests for periodic needle and
59891         sublinear performance.
59892         * doc/functions/memmem.texi (memmem): Document other deficiencies
59893         in cygwin and older glibc.
59894
59895 2008-01-08  Bruno Haible  <bruno@clisp.org>
59896
59897         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
59898         augmentation.
59899
59900 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
59901
59902         Add a configure time option: --disable-acl.
59903         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
59904         AC_ARG_ENABLE(acl).
59905
59906 2008-01-06  Simon Josefsson  <simon@josefsson.org>
59907
59908         * tests/test-localename.c: Don't include obsolete "setenv.h".
59909
59910         * modules/localename-tests (Depends-on): Need unsetenv.
59911
59912 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59913
59914         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
59915
59916 2008-01-06  Colin Watson  <cjwatson@debian.org>
59917
59918         * users.txt: Add man-db.
59919
59920 2008-01-07  Bruno Haible  <bruno@clisp.org>
59921
59922         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
59923         previous section name.
59924
59925 2008-01-07  Bruno Haible  <bruno@clisp.org>
59926
59927         * lib/progname.c (set_program_name): Don't strip off a leading
59928         "lt-" prefix outside a .libs directory.
59929         Suggested by Paul Eggert.
59930
59931 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
59932             Bruno Haible  <bruno@clisp.org>
59933
59934         Improve memory cleanup in 'relocatable' module.
59935         * lib/relocatable.h (compute_curr_prefix): Change return type to
59936         'char *'.
59937         * lib/relocatable.c (compute_curr_prefix): Change return type to
59938         'char *'. Free curr_installdir after use.
59939         (relocate): Free curr_prefix_better after use.
59940         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
59941
59942 2008-01-01  Bruno Haible  <bruno@clisp.org>
59943
59944         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
59945         failure on older glibc systems.
59946         Reported by Peter Fales <psfales@alcatel-lucent.com>.
59947
59948 2008-01-05  Eric Blake  <ebb9@byu.net>
59949
59950         Avoid quadratic system memmem.
59951         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
59952         Reported by Ralf Wildenhues.
59953
59954         Fix memmem test for mingw.
59955         * modules/memmem-tests (configure.ac): Check for alarm.
59956         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
59957         it.
59958         * doc/functions/memmem.texi: New file.
59959         * doc/gnulib.texi (Function Substitutes): Add memmem.
59960         Reported by Bruno Haible.
59961
59962 2008-01-04  Bruno Haible  <bruno@clisp.org>
59963
59964         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
59965         Require gl_HEADER_STRINGS_H_DEFAULTS, not
59966         gl_HEADER_STRING_H_DEFAULTS.
59967
59968 2008-01-04  Eric Blake  <ebb9@byu.net>
59969
59970         Shorten duration of memmem test.
59971         * tests/test-memmem.c (main): Use alarm to declare failure if test
59972         is taking too long.
59973         Reported by Ralf Wildenhues.
59974
59975 2007-12-21  Simon Josefsson  <simon@josefsson.org>
59976
59977         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
59978         string, needed by strerror.
59979
59980 2008-01-03  Colin Watson  <cjwatson@debian.org>
59981             Bruno Haible  <bruno@clisp.org>
59982
59983         * doc/gnulib-tool.texi (Localization): New section.
59984
59985 2008-01-02  Bruno Haible  <bruno@clisp.org>
59986
59987         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
59988         variables to 'unsigned char *' type.
59989         Reported by Paul Eggert.
59990
59991 2008-01-02  Jim Meyering  <jim@meyering.net>
59992
59993         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
59994
59995 2007-12-31  Jim Meyering  <jim@meyering.net>
59996
59997         Avoid use of private FTS type name.
59998         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
59999
60000 2007-12-30  Karl Berry  <karl@gnu.org>
60001
60002         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
60003         work around defect in Texinfo and/or the standalone Info browser.
60004
60005 2007-12-30  Bruno Haible  <bruno@clisp.org>
60006
60007         Unify 5 copies of the KMP code.
60008         * lib/str-kmp.h: New file.
60009         * lib/c-strcasestr.c: Include str-kmp.h.
60010         (knuth_morris_pratt): Remove function.
60011         (c_strcasestr): Update.
60012         * lib/c-strstr.c: Include str-kmp.h.
60013         (knuth_morris_pratt): Remove function.
60014         (c_strcasestr): Update.
60015         * lib/mbscasestr.c: Include str-kmp.h.
60016         (knuth_morris_pratt_unibyte): Remove function.
60017         * lib/mbsstr.c: Include str-kmp.h.
60018         (knuth_morris_pratt_unibyte): Remove function.
60019         * lib/strcasestr.c: Include str-kmp.h.
60020         (knuth_morris_pratt): Remove function.
60021         (strcasestr): Update.
60022         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
60023         * modules/c-strstr (Files): Likewise.
60024         * modules/mbscasestr (Files): Likewise.
60025         * modules/mbsstr (Files): Likewise.
60026         * modules/strcasestr (Files): Likewise.
60027         Suggested by Paul Eggert.
60028
60029 2007-12-30  Bruno Haible  <bruno@clisp.org>
60030
60031         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
60032         defined.
60033
60034 2007-12-30  Bruno Haible  <bruno@clisp.org>
60035
60036         * lib/xmalloca.h: Include xalloc.h.
60037         (xnmalloca): New macro.
60038
60039 2007-12-30  Bruno Haible  <bruno@clisp.org>
60040
60041         * lib/malloca.h (nmalloca): New macro.
60042         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
60043         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
60044         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
60045         knuth_morris_pratt_multibyte): Likewise.
60046         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
60047         knuth_morris_pratt_multibyte): Likewise.
60048         * lib/memmem.c (knuth_morris_pratt): Likewise.
60049         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
60050
60051 2007-12-25  Bruno Haible  <bruno@clisp.org>
60052
60053         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
60054         * lib/glob.c: Don't include openat.h.
60055         (link_exists2_p): Add back the code that deals with the
60056         !GLOB_ALTDIRFUNC case.
60057         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
60058         let it do the filename concatenation.
60059         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
60060         * modules/glob (Depends-on): Remove openat.
60061
60062 2007-12-31  Bruno Haible  <bruno@clisp.org>
60063
60064         * modules/dirfd (License): Change to LGPLv2+.
60065         Approved by Jim Meyering.
60066
60067 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
60068
60069         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
60070         when multiplying M by sizeof (size_t).
60071
60072 2007-12-10  Martin Lambers  <marlam@marlam.de>
60073
60074         Override getpagesize on mingw.
60075         * lib/getpagesize.c: New file.
60076         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
60077         * modules/getpagesize (Files): Add lib/getpagesize.c.
60078         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
60079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
60080         REPLACE_GETPAGESIZE.
60081         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
60082
60083 2007-12-25  Bruno Haible  <bruno@clisp.org>
60084
60085         * modules/localcharset (Notice): New field.
60086         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
60087         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
60088
60089 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
60090             Bruno Haible  <bruno@clisp.org>
60091
60092         Avoid using the syntax symbol() in formatted documentation.
60093         * MODULES.html.sh (func_module): When replacing symbol() with a
60094         hyperlink, remove the parentheses. Show an error if some remain.
60095         Recognize and render the '...' syntax.
60096         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
60097         Rework. Add paragraph about GCC's inlining.
60098         * doc/alloca.texi: Likewise.
60099         * doc/error.texi: Remove parentheses from symbol reference.
60100         * doc/gnulib-intro.texi: Likewise.
60101         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
60102         * modules/fnmatch (Description): Reword to say "the ... function".
60103         * modules/full-read (Description): Likewise.
60104         * modules/full-write (Description): Likewise.
60105         * modules/safe-read (Description): Likewise.
60106         * modules/safe-write (Description): Likewise.
60107         * modules/strchrnul (Description): Likewise.
60108         * modules/trim (Description): Likewise.
60109         * modules/error (Description): Remove parentheses from symbol
60110         references.
60111         * modules/verror (Description): Likewise.
60112         Reported by Karl Berry.
60113
60114 2007-12-25  Bruno Haible  <bruno@clisp.org>
60115
60116         Fixup after 2007-10-16 commit.
60117         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
60118
60119 2007-12-24  Bruno Haible  <bruno@clisp.org>
60120
60121         Make --enable-relocatable work with DESTDIR.
60122         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
60123         to compute installdir from destprog.
60124         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
60125         also set the RELOC_DESTDIR variable.
60126         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
60127
60128 2007-12-24  Bruno Haible  <bruno@clisp.org>
60129
60130         Fix link error due to xalloc_die().
60131         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
60132         of xreadlink.
60133         * lib/relocwrapper.c: Update comments.
60134         * build-aux/install-reloc: Remove xreadlink.c from file list.
60135         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
60136         xreadlink.c.
60137         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
60138
60139 2007-12-24  Bruno Haible  <bruno@clisp.org>
60140
60141         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
60142         * lib/setenv.h: Remove file.
60143         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
60144         lib/setenv.h.
60145         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
60146         (Depends-on): Add stdlib.
60147         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
60148         gl_FUNC_UNSETENV.
60149         (Include): Replace setenv.h with <stdlib.h>.
60150         * modules/unsetenv: New file.
60151         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
60152         * lib/unsetenv.c: Include <stdlib.h> first.
60153         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
60154         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
60155         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
60156         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
60157         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
60158         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
60159         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
60160         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
60161         * doc/functions/unsetenv.texi: Update.
60162         * modules/xsetenv (Depends-on): Add unsetenv.
60163         * modules/getdate (Depends-on): Likewise.
60164         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
60165         * lib/xsetenv.c: Don't include setenv.h.
60166         * lib/getdate.y: Likewise.
60167         * lib/relocwrapper.c: Likewise.
60168         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
60169         (Depends-on): Add stdlib.
60170         * NEWS: Mention the changes.
60171         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
60172
60173 2007-12-23  Bruno Haible  <bruno@clisp.org>
60174
60175         * lib/memmem.c (memmem): Use lowercase variable names. Tab
60176         indentation.
60177
60178 2007-12-23  Bruno Haible  <bruno@clisp.org>
60179
60180         * lib/c-strcasestr.c: Add more comments.
60181         * lib/c-strstr.c: Likewise.
60182         * lib/mbscasestr.c: Likewise.
60183         * lib/mbsstr.c: Likewise.
60184         * lib/strcasestr.c: Likewise.
60185         * lib/memmem.c: Likewise.
60186
60187 2007-12-23  Bruno Haible  <bruno@clisp.org>
60188
60189         * tests/test-memmem.c: Include <string.h> first.
60190
60191 2007-12-22  Bruno Haible  <bruno@clisp.org>
60192
60193         * gnulib-tool (func_create_testdir): Change $auxdir while generating
60194         the contents of $testsbase.
60195         Reported by Ralf Wildenhues.
60196
60197 2007-12-22  Bruno Haible  <bruno@clisp.org>
60198
60199         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
60200         two variables local_ldadd_before, local_ldadd_last.
60201
60202 2007-12-20  Eric Blake  <ebb9@byu.net>
60203
60204         Work around circular library issue when cross-compiling.
60205         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
60206         that progname.o does not need to pull in rpl_memcmp.
60207
60208 2007-12-19  Eric Blake  <ebb9@byu.net>
60209
60210         Fix memmem to avoid O(n^2) worst-case complexity.
60211         * lib/memmem.c (knuth_morris_pratt): New function.
60212         (memmem): Use it if first few naive iterations fail.
60213         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
60214         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
60215         * modules/memchr (License): Likewise.
60216         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
60217         malloca.
60218         * tests/test-memmem.c: Rewrite, borrowing ideas from
60219         test-mbsstr1.c; the old version wouldn't even compile!
60220         * modules/memmem-tests: New file.
60221         * lib/string.in.h (rpl_memmem): Add declaration.
60222         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
60223         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
60224         REPLACE_MEMMEM.
60225
60226 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60227
60228         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
60229         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
60230         before any system include files, and undef after them all.  This
60231         should fix a problem on VMS reported by John E. Malmberg in
60232         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
60233
60234 2007-12-17  Eric Blake  <ebb9@byu.net>
60235
60236         Revert addition of verify, for BSD/OS.
60237         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
60238         can't handle large files, for the sake of obsolete platforms.
60239         * modules/fseeko (Depends-on): Remove verify.
60240         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
60241         * doc/functions/ftello.texi (ftello): Likewise.
60242         * doc/functions/fgetpos.texi (fgetpos): Likewise.
60243         Reported by Larry Jones.
60244
60245 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
60246
60247         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
60248         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
60249
60250 2007-12-17  Jim Meyering  <meyering@redhat.com>
60251
60252         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
60253         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
60254         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
60255         * modules/getcwd (Depends-on): Add openat.
60256         Reported by Petr Salinger.
60257
60258 2007-12-17  Bruno Haible  <bruno@clisp.org>
60259
60260         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
60261         avoid a segmentation fault of the configure test on x86_64 systems.
60262
60263 2007-12-15  Jim Meyering  <meyering@redhat.com>
60264
60265         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
60266
60267 2007-12-13  Eric Blake  <ebb9@byu.net>
60268
60269         Another fseek test.
60270         * tests/test-fseek.c (main): Also test ungetc handling.
60271         * tests/test-fseeko.c (main): Likewise.
60272         * modules/fseeko (Depends-on): Add verify.
60273         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
60274         large.
60275         Reported by Larry Jones.
60276
60277         Fix fseeko on mingw.
60278         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
60279         seek.
60280
60281         Beef up fseek tests.
60282         * tests/test-fseek.c (main): Also test eof handling.
60283         * tests/test-fseeko.c (main): Likewise.
60284         Reported by Larry Jones.
60285
60286 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
60287
60288         Fix fseeko on BSD-based platforms.
60289         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
60290         successful seek.
60291
60292 2007-12-12  Eric Blake  <ebb9@byu.net>
60293
60294         Allow circular dependency of separate libtests.a
60295         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
60296         when use_libtests.
60297
60298 2007-12-11  Eric Blake  <ebb9@byu.net>
60299
60300         Fix bug with -0.0L in previous patch.
60301         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
60302         * tests/test-isnan.c (main): Also test on zeroes.
60303         * tests/test-isnanf.c (main): Likewise.
60304         * tests/test-isnanl.h (main): Likewise.
60305
60306         Detect pseudo-denormals on x86 even when cross-compiling.
60307         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
60308         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
60309         invalid bit patterns that happen to satisfy ==.
60310
60311         Avoid link failures with separate libtests.a.
60312         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
60313         last, to satisfy circular dependencies.
60314
60315 2007-12-11  Eric Blake  <ebb9@byu.net>
60316         and Bruno Haible  <bruno@clisp.org>
60317
60318         Fix OpenBSD 4.0 <float.h> handling of long double.
60319         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
60320         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
60321         * doc/headers/float.texi (float.h): Document OpenBSD bug.
60322
60323 2007-12-11  Jim Meyering  <meyering@redhat.com>
60324
60325         * users.txt: Add libvirt.
60326
60327         Support versions of autoconf prior to 2.59c.
60328         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
60329         if it is not already defined.
60330
60331 2007-12-09  Bruno Haible  <bruno@clisp.org>
60332
60333         Let 'gnulib-tool --import' collect sources needed for the tests in
60334         tests/ rather than in lib/.
60335         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
60336         argument. If true, add rules to generate libtests.a, and put libtests.a
60337         into $(LDADD). Consider source files in subdirectories and set
60338         uses_subdirs.
60339         (func_emit_initmacro_start, func_emit_initmacro_end,
60340         func_emit_initmacro_done): Pass all arguments explicitly.
60341         (func_import): Determine two module lists main_modules,
60342         testsrelated_modules. Determine use_libtests. Determine two variables
60343         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
60344         instead of just sed_transform_lib_file. Determine two variables
60345         main_files and testsrelated_files. Compute 'files' as the union of
60346         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
60347         func_add_or_update. In the generated gnulib-comp.m4, collect the
60348         object files for tests/ in different variables than those for lib/.
60349         Substitute LIBTESTS_LIBDEPS.
60350         (func_create_testdir): Combine the uses_subdirs results from
60351         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
60352
60353 2007-12-09  Bruno Haible  <bruno@clisp.org>
60354
60355         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
60356         the build-aux directory.
60357
60358 2007-12-09  Bruno Haible  <bruno@clisp.org>
60359
60360         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
60361         introduced on 2006-09-09.
60362
60363 2007-12-07  Jim Meyering  <meyering@redhat.com>
60364
60365         Let these macros work also with autoconf-2.59.
60366         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
60367         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
60368         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
60369
60370 2007-12-06  Jim Meyering  <meyering@redhat.com>
60371
60372         Avoid a configure-time syntax error in gl_FUNC_ACL.
60373         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
60374         function in each branch, before testing the cache variable.
60375
60376 2007-12-04  Eric Blake  <ebb9@byu.net>
60377
60378         Make scripts executable.
60379         * build-aux/config.guess: Add execute permissions.
60380         * build-aux/config.sub: Likewise.
60381         * build-aux/gendocs.sh: Likewise.
60382
60383         Fix frexp on mingw.
60384         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
60385         cross-compiling.
60386         * doc/functions/frexp.texi (frexp): Document the bug.
60387
60388         Make cygwin fseeko check more reliable.
60389         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
60390         version numbers, rather than unrelated feature check.
60391         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
60392         * doc/functions/ftello.texi (ftello): Likewise.
60393         Reported by Bruno Haible.
60394
60395         * m4/strerror.m4: Bump version number.
60396
60397 2007-12-03  Bruno Haible  <bruno@clisp.org>
60398
60399         * doc/functions/mprotect.texi: Mention the mingw problem.
60400
60401 2007-12-03  Eric Blake  <ebb9@byu.net>
60402
60403         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
60404         REPLACE_STRERROR is initialized before this macro.
60405
60406 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
60407
60408         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
60409         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
60410         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
60411         put -lsec in even for programs other than 'ls'.  This fixes a problem
60412         for gettext reported by Bruno Haible in
60413         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
60414         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
60415         Add support for Solaris 10.  This isn't efficient, but should get the
60416         job done for now.
60417
60418 2007-12-03  James Youngman  <jay@gnu.org>
60419
60420         * doc/regexprops-generic.texi: change "an close-group" to "a
60421         close-group" and "illegal" to "not allowed".
60422
60423 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60424
60425         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
60426         pr_byname.h. Needed for the rare case when the maintainer has done
60427         "make maintainer-clean" in the source directory and then attempts a
60428         build outside the source directory.
60429         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
60430         scripts_byname.h.
60431
60432 2007-12-02  Martin Lambers <marlam@marlam.de>
60433             Bruno Haible  <bruno@clisp.org>
60434
60435         * lib/getpagesize.h: Remove file.
60436         * lib/unistd.in.h: Include declaration of getpagesize here.
60437         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
60438         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
60439         HAVE_SYS_PARAM_H.
60440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
60441         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
60442         * modules/getpagesize (Files): Remove lib/getpagesize.h.
60443         (Depends-on): Add unistd.
60444         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60445         (Include): Use <unistd.h> instead of getpagesize.h.
60446         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
60447         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
60448         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
60449         gl_GETPAGESIZE invocation, already handled by module dependency.
60450         * lib/pagealign_alloc.c: Don't include getpagesize.h.
60451
60452 2007-12-02  Bruno Haible  <bruno@clisp.org>
60453
60454         * modules/strings-tests: New file.
60455         * tests/test-strings.c: New file.
60456
60457         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
60458         * lib/strings.in.h: New file.
60459         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
60460         * m4/strings_h.m4: New file.
60461         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
60462         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
60463         * modules/strings: New file.
60464         * modules/string (Makefile.am): Update.
60465         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
60466         Reported by Karl Berry.
60467
60468 2007-12-01  Eric Blake  <ebb9@byu.net>
60469
60470         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
60471         accommodate fix in cygwin 1.5.25.
60472
60473 2007-12-01  Jim Meyering  <meyering@redhat.com>
60474
60475         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
60476         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
60477         that would inhibit utf8-optimization of a regexp containing line-
60478         or buffer-anchors, e.g., `^', `$'.
60479
60480 2007-11-30  Bruno Haible  <bruno@clisp.org>
60481
60482         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
60483         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
60484         glthread_recursive_lock_init.
60485         * lib/lock.c (glthread_recursive_lock_init)
60486         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
60487         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60488
60489 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
60490
60491         New function qset_acl, like set_acl but with syscall semantics.
60492         * lib/acl.h (qset_acl): New decl.
60493         * lib/acl.c (qset_acl): New function.
60494         (set_acl): Use new function.  Use more-consistent diagnostics.
60495
60496 2007-11-28  Jim Meyering  <meyering@redhat.com>
60497
60498         * modules/physmem (License): Change from GPL to LGPLv2+.
60499
60500 2007-11-26  Bruno Haible  <bruno@clisp.org>
60501
60502         * lib/vasnprintf.c (decode_long_double): Don't abort if the
60503         'long double' type has excess precision.
60504         Reported by Jim Meyering in
60505         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
60506
60507 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60508
60509         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
60510         Sync from <http://gnu.org/licenses>.
60511         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
60512         with license text from same location.
60513         * doc/maintain.texi, doc/standards.texi:  Sync from
60514         <http://savannah.gnu.org/projects/gnustandards>.
60515
60516 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
60517         and Jim Meyering  <meyering@redhat.com>
60518
60519         Adjust getdate' grammar to accept a slightly more regular language.
60520         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
60521         Before, the former was rejected.
60522         * lib/getdate.y (digits_to_date_time): New function, factored
60523         out of ...
60524         (number): ...here.  Just call digits_to_date_time.
60525         (hybrid): New non-terminal to handle an <unsigned number,
60526         signed relative offset> sequence consistently.
60527
60528 2007-11-18  Jim Meyering  <meyering@redhat.com>
60529
60530         Pull my changes from coreutils:
60531         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
60532         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
60533         use of $gnulib_tool_option_extras, so that it's separated from the
60534         preceding argument.
60535
60536         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
60537         * build-aux/bootstrap (cp_mark_as_generated): Create any required
60538         parent destination directories before copying a file into place.
60539
60540 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
60541
60542         bootstrap: work also with 4-argument variant of AC_INIT
60543         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
60544
60545 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60546
60547         Port test-getaddrinfo to Solaris.
60548         Problem reported by Bruno Haible in
60549         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
60550         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
60551         explanation of setting 'hints'.
60552         Don't reject an implementation merely because it returns EAI_SERVICE.
60553         (EAI_SERVICE): Define to 0 if not defined.
60554
60555 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
60556
60557         The license of gnu-make and posix-shell is now "GPLed build tool".
60558         * modules/gnu-make (License): Likewise.
60559         * modules/posix-shell (License): Likewise.
60560
60561         New module posix-shell, for determining a POSIX shell
60562         or perhaps something that is close enough to a POSIX shell.
60563         * m4/posix-shell.m4: New file.
60564         * modules/posix-shell: New file.
60565
60566         * MODULES.html.sh: Mention new module.
60567
60568         New module gnu-make, for determining whether we're using GNU Make.
60569         * m4/gnu-make.m4: New file.
60570         * modules/gnu-make: New file.
60571         * MODULES.html.sh: Mention new module.
60572
60573 2007-11-14  Jim Meyering  <meyering@redhat.com>
60574
60575         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
60576         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
60577         use this macro to create a function _definition_.
60578         Remove useless "#undef ARGMATCH_DIE".
60579
60580 2007-11-14  Bruno Haible  <bruno@clisp.org>
60581
60582         * lib/config.charset: Update for OpenBSD 4.1.
60583         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
60584
60585 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
60586
60587         Document 64-bit #if problems in stdint.texi.
60588         * doc/headers/stdint.texi (stdint.h): Mention problems with
60589         64-bit-#if, and how to work around them.
60590
60591         Don't insist on 'long long int' support in the preprocessor.  It
60592         breaks too many things.  For example, PRIdMAX still uses a 'long
60593         long int' format with the latest Sun compiler, even though
60594         HAVE_LONG_LONG_INT isn't defined due to that compiler's
60595         preprocessor problem.  This causes the latest coreutils to dump
60596         core on Solaris 10 sparc with the Sun C compiler.
60597         Instead, fix the 2007-10-16 problem in a different way, by evaluating
60598         the troublesome expressions at configure-time, not at #if-time.
60599         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
60600         preprocessor.
60601         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
60602         compile-time C checks, done at 'configure'-time.
60603         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
60604         * modules/inttypes (Makefile): Substitute the new symbols that
60605         gl_INTTYPES_H now generates.
60606         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
60607
60608 2007-11-12  Bruno Haible  <bruno@clisp.org>
60609
60610         Tests for Unicode character classification functions.
60611
60612         * modules/unictype/bidicategory-byname-tests: New file.
60613         * modules/unictype/bidicategory-name-tests: New file.
60614         * modules/unictype/bidicategory-of-tests: New file.
60615         * modules/unictype/bidicategory-test-tests: New file.
60616         * modules/unictype/block-list-tests: New file.
60617         * modules/unictype/block-of-tests: New file.
60618         * modules/unictype/block-test-tests: New file.
60619         * modules/unictype/category-C-tests: New file.
60620         * modules/unictype/category-Cc-tests: New file.
60621         * modules/unictype/category-Cf-tests: New file.
60622         * modules/unictype/category-Cn-tests: New file.
60623         * modules/unictype/category-Co-tests: New file.
60624         * modules/unictype/category-Cs-tests: New file.
60625         * modules/unictype/category-L-tests: New file.
60626         * modules/unictype/category-Ll-tests: New file.
60627         * modules/unictype/category-Lm-tests: New file.
60628         * modules/unictype/category-Lo-tests: New file.
60629         * modules/unictype/category-Lt-tests: New file.
60630         * modules/unictype/category-Lu-tests: New file.
60631         * modules/unictype/category-M-tests: New file.
60632         * modules/unictype/category-Mc-tests: New file.
60633         * modules/unictype/category-Me-tests: New file.
60634         * modules/unictype/category-Mn-tests: New file.
60635         * modules/unictype/category-N-tests: New file.
60636         * modules/unictype/category-Nd-tests: New file.
60637         * modules/unictype/category-Nl-tests: New file.
60638         * modules/unictype/category-No-tests: New file.
60639         * modules/unictype/category-P-tests: New file.
60640         * modules/unictype/category-Pc-tests: New file.
60641         * modules/unictype/category-Pd-tests: New file.
60642         * modules/unictype/category-Pe-tests: New file.
60643         * modules/unictype/category-Pf-tests: New file.
60644         * modules/unictype/category-Pi-tests: New file.
60645         * modules/unictype/category-Po-tests: New file.
60646         * modules/unictype/category-Ps-tests: New file.
60647         * modules/unictype/category-S-tests: New file.
60648         * modules/unictype/category-Sc-tests: New file.
60649         * modules/unictype/category-Sk-tests: New file.
60650         * modules/unictype/category-Sm-tests: New file.
60651         * modules/unictype/category-So-tests: New file.
60652         * modules/unictype/category-Z-tests: New file.
60653         * modules/unictype/category-Zl-tests: New file.
60654         * modules/unictype/category-Zp-tests: New file.
60655         * modules/unictype/category-Zs-tests: New file.
60656         * modules/unictype/category-and-not-tests: New file.
60657         * modules/unictype/category-and-tests: New file.
60658         * modules/unictype/category-byname-tests: New file.
60659         * modules/unictype/category-name-tests: New file.
60660         * modules/unictype/category-none-tests: New file.
60661         * modules/unictype/category-of-tests: New file.
60662         * modules/unictype/category-or-tests: New file.
60663         * modules/unictype/category-test-withtable-tests: New file.
60664         * modules/unictype/combining-class-tests: New file.
60665         * modules/unictype/ctype-alnum-tests: New file.
60666         * modules/unictype/ctype-alpha-tests: New file.
60667         * modules/unictype/ctype-blank-tests: New file.
60668         * modules/unictype/ctype-cntrl-tests: New file.
60669         * modules/unictype/ctype-digit-tests: New file.
60670         * modules/unictype/ctype-graph-tests: New file.
60671         * modules/unictype/ctype-lower-tests: New file.
60672         * modules/unictype/ctype-print-tests: New file.
60673         * modules/unictype/ctype-punct-tests: New file.
60674         * modules/unictype/ctype-space-tests: New file.
60675         * modules/unictype/ctype-upper-tests: New file.
60676         * modules/unictype/ctype-xdigit-tests: New file.
60677         * modules/unictype/decimal-digit-tests: New file.
60678         * modules/unictype/digit-tests: New file.
60679         * modules/unictype/mirror-tests: New file.
60680         * modules/unictype/numeric-tests: New file.
60681         * modules/unictype/property-alphabetic-tests: New file.
60682         * modules/unictype/property-ascii-hex-digit-tests: New file.
60683         * modules/unictype/property-bidi-arabic-digit-tests: New file.
60684         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
60685         * modules/unictype/property-bidi-block-separator-tests: New file.
60686         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
60687         * modules/unictype/property-bidi-common-separator-tests: New file.
60688         * modules/unictype/property-bidi-control-tests: New file.
60689         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
60690         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
60691         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
60692         * modules/unictype/property-bidi-european-digit-tests: New file.
60693         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
60694         * modules/unictype/property-bidi-left-to-right-tests: New file.
60695         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
60696         * modules/unictype/property-bidi-other-neutral-tests: New file.
60697         * modules/unictype/property-bidi-pdf-tests: New file.
60698         * modules/unictype/property-bidi-segment-separator-tests: New file.
60699         * modules/unictype/property-bidi-whitespace-tests: New file.
60700         * modules/unictype/property-byname-tests: New file.
60701         * modules/unictype/property-combining-tests: New file.
60702         * modules/unictype/property-composite-tests: New file.
60703         * modules/unictype/property-currency-symbol-tests: New file.
60704         * modules/unictype/property-dash-tests: New file.
60705         * modules/unictype/property-decimal-digit-tests: New file.
60706         * modules/unictype/property-default-ignorable-code-point-tests: New file.
60707         * modules/unictype/property-deprecated-tests: New file.
60708         * modules/unictype/property-diacritic-tests: New file.
60709         * modules/unictype/property-extender-tests: New file.
60710         * modules/unictype/property-format-control-tests: New file.
60711         * modules/unictype/property-grapheme-base-tests: New file.
60712         * modules/unictype/property-grapheme-extend-tests: New file.
60713         * modules/unictype/property-grapheme-link-tests: New file.
60714         * modules/unictype/property-hex-digit-tests: New file.
60715         * modules/unictype/property-hyphen-tests: New file.
60716         * modules/unictype/property-id-continue-tests: New file.
60717         * modules/unictype/property-id-start-tests: New file.
60718         * modules/unictype/property-ideographic-tests: New file.
60719         * modules/unictype/property-ids-binary-operator-tests: New file.
60720         * modules/unictype/property-ids-trinary-operator-tests: New file.
60721         * modules/unictype/property-ignorable-control-tests: New file.
60722         * modules/unictype/property-iso-control-tests: New file.
60723         * modules/unictype/property-join-control-tests: New file.
60724         * modules/unictype/property-left-of-pair-tests: New file.
60725         * modules/unictype/property-line-separator-tests: New file.
60726         * modules/unictype/property-logical-order-exception-tests: New file.
60727         * modules/unictype/property-lowercase-tests: New file.
60728         * modules/unictype/property-math-tests: New file.
60729         * modules/unictype/property-non-break-tests: New file.
60730         * modules/unictype/property-not-a-character-tests: New file.
60731         * modules/unictype/property-numeric-tests: New file.
60732         * modules/unictype/property-other-alphabetic-tests: New file.
60733         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
60734         * modules/unictype/property-other-grapheme-extend-tests: New file.
60735         * modules/unictype/property-other-id-continue-tests: New file.
60736         * modules/unictype/property-other-id-start-tests: New file.
60737         * modules/unictype/property-other-lowercase-tests: New file.
60738         * modules/unictype/property-other-math-tests: New file.
60739         * modules/unictype/property-other-uppercase-tests: New file.
60740         * modules/unictype/property-paired-punctuation-tests: New file.
60741         * modules/unictype/property-paragraph-separator-tests: New file.
60742         * modules/unictype/property-pattern-syntax-tests: New file.
60743         * modules/unictype/property-pattern-white-space-tests: New file.
60744         * modules/unictype/property-private-use-tests: New file.
60745         * modules/unictype/property-punctuation-tests: New file.
60746         * modules/unictype/property-quotation-mark-tests: New file.
60747         * modules/unictype/property-radical-tests: New file.
60748         * modules/unictype/property-sentence-terminal-tests: New file.
60749         * modules/unictype/property-soft-dotted-tests: New file.
60750         * modules/unictype/property-space-tests: New file.
60751         * modules/unictype/property-terminal-punctuation-tests: New file.
60752         * modules/unictype/property-test-tests: New file.
60753         * modules/unictype/property-titlecase-tests: New file.
60754         * modules/unictype/property-unassigned-code-value-tests: New file.
60755         * modules/unictype/property-unified-ideograph-tests: New file.
60756         * modules/unictype/property-uppercase-tests: New file.
60757         * modules/unictype/property-variation-selector-tests: New file.
60758         * modules/unictype/property-white-space-tests: New file.
60759         * modules/unictype/property-xid-continue-tests: New file.
60760         * modules/unictype/property-xid-start-tests: New file.
60761         * modules/unictype/property-zero-width-tests: New file.
60762         * modules/unictype/scripts-tests: New file.
60763         * modules/unictype/syntax-c-ident-tests: New file.
60764         * modules/unictype/syntax-c-whitespace-tests: New file.
60765         * modules/unictype/syntax-java-ident-tests: New file.
60766         * modules/unictype/syntax-java-whitespace-tests: New file.
60767         * tests/unictype/test-bidi_byname.c: New file.
60768         * tests/unictype/test-bidi_name.c: New file.
60769         * tests/unictype/test-bidi_of.c: New file.
60770         * tests/unictype/test-bidi_test.c: New file.
60771         * tests/unictype/test-block_list.c: New file.
60772         * tests/unictype/test-block_of.c: New file.
60773         * tests/unictype/test-block_test.c: New file.
60774         * tests/unictype/test-categ_and.c: New file.
60775         * tests/unictype/test-categ_and_not.c: New file.
60776         * tests/unictype/test-categ_byname.c: New file.
60777         * tests/unictype/test-categ_name.c: New file.
60778         * tests/unictype/test-categ_none.c: New file.
60779         * tests/unictype/test-categ_of.c: New file.
60780         * tests/unictype/test-categ_or.c: New file.
60781         * tests/unictype/test-categ_test_withtable.c: New file.
60782         * tests/unictype/test-combining.c: New file.
60783         * tests/unictype/test-decdigit.c: New file.
60784         * tests/unictype/test-digit.c: New file.
60785         * tests/unictype/test-mirror.c: New file.
60786         * tests/unictype/test-numeric.c: New file.
60787         * tests/unictype/test-pr_byname.c: New file.
60788         * tests/unictype/test-pr_test.c: New file.
60789         * tests/unictype/test-predicate-part1.h: New file.
60790         * tests/unictype/test-predicate-part2.h: New file.
60791         * tests/unictype/test-scripts.c: New file.
60792         * tests/unictype/test-sy_c_ident.c: New file.
60793         * tests/unictype/test-sy_java_ident.c: New file.
60794
60795         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
60796         for Unicode 5.0.0.
60797         * tests/unictype/test-categ_Cc.c: Likewise.
60798         * tests/unictype/test-categ_Cf.c: Likewise.
60799         * tests/unictype/test-categ_Cn.c: Likewise.
60800         * tests/unictype/test-categ_Co.c: Likewise.
60801         * tests/unictype/test-categ_Cs.c: Likewise.
60802         * tests/unictype/test-categ_L.c: Likewise.
60803         * tests/unictype/test-categ_Ll.c: Likewise.
60804         * tests/unictype/test-categ_Lm.c: Likewise.
60805         * tests/unictype/test-categ_Lo.c: Likewise.
60806         * tests/unictype/test-categ_Lt.c: Likewise.
60807         * tests/unictype/test-categ_Lu.c: Likewise.
60808         * tests/unictype/test-categ_M.c: Likewise.
60809         * tests/unictype/test-categ_Mc.c: Likewise.
60810         * tests/unictype/test-categ_Me.c: Likewise.
60811         * tests/unictype/test-categ_Mn.c: Likewise.
60812         * tests/unictype/test-categ_N.c: Likewise.
60813         * tests/unictype/test-categ_Nd.c: Likewise.
60814         * tests/unictype/test-categ_Nl.c: Likewise.
60815         * tests/unictype/test-categ_No.c: Likewise.
60816         * tests/unictype/test-categ_P.c: Likewise.
60817         * tests/unictype/test-categ_Pc.c: Likewise.
60818         * tests/unictype/test-categ_Pd.c: Likewise.
60819         * tests/unictype/test-categ_Pe.c: Likewise.
60820         * tests/unictype/test-categ_Pf.c: Likewise.
60821         * tests/unictype/test-categ_Pi.c: Likewise.
60822         * tests/unictype/test-categ_Po.c: Likewise.
60823         * tests/unictype/test-categ_Ps.c: Likewise.
60824         * tests/unictype/test-categ_S.c: Likewise.
60825         * tests/unictype/test-categ_Sc.c: Likewise.
60826         * tests/unictype/test-categ_Sk.c: Likewise.
60827         * tests/unictype/test-categ_Sm.c: Likewise.
60828         * tests/unictype/test-categ_So.c: Likewise.
60829         * tests/unictype/test-categ_Z.c: Likewise.
60830         * tests/unictype/test-categ_Zl.c: Likewise.
60831         * tests/unictype/test-categ_Zp.c: Likewise.
60832         * tests/unictype/test-categ_Zs.c: Likewise.
60833         * tests/unictype/test-ctype_alnum.c: Likewise.
60834         * tests/unictype/test-ctype_alpha.c: Likewise.
60835         * tests/unictype/test-ctype_blank.c: Likewise.
60836         * tests/unictype/test-ctype_cntrl.c: Likewise.
60837         * tests/unictype/test-ctype_digit.c: Likewise.
60838         * tests/unictype/test-ctype_graph.c: Likewise.
60839         * tests/unictype/test-ctype_lower.c: Likewise.
60840         * tests/unictype/test-ctype_print.c: Likewise.
60841         * tests/unictype/test-ctype_punct.c: Likewise.
60842         * tests/unictype/test-ctype_space.c: Likewise.
60843         * tests/unictype/test-ctype_upper.c: Likewise.
60844         * tests/unictype/test-ctype_xdigit.c: Likewise.
60845         * tests/unictype/test-decdigit.h: Likewise.
60846         * tests/unictype/test-digit.h: Likewise.
60847         * tests/unictype/test-numeric.h: Likewise.
60848         * tests/unictype/test-pr_alphabetic.c: Likewise.
60849         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
60850         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60851         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
60852         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
60853         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
60854         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
60855         * tests/unictype/test-pr_bidi_control.c: Likewise.
60856         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
60857         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
60858         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60859         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
60860         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60861         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60862         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60863         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60864         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
60865         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
60866         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
60867         * tests/unictype/test-pr_combining.c: Likewise.
60868         * tests/unictype/test-pr_composite.c: Likewise.
60869         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60870         * tests/unictype/test-pr_dash.c: Likewise.
60871         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60872         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
60873         * tests/unictype/test-pr_deprecated.c: Likewise.
60874         * tests/unictype/test-pr_diacritic.c: Likewise.
60875         * tests/unictype/test-pr_extender.c: Likewise.
60876         * tests/unictype/test-pr_format_control.c: Likewise.
60877         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60878         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60879         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60880         * tests/unictype/test-pr_hex_digit.c: Likewise.
60881         * tests/unictype/test-pr_hyphen.c: Likewise.
60882         * tests/unictype/test-pr_id_continue.c: Likewise.
60883         * tests/unictype/test-pr_id_start.c: Likewise.
60884         * tests/unictype/test-pr_ideographic.c: Likewise.
60885         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
60886         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
60887         * tests/unictype/test-pr_ignorable_control.c: Likewise.
60888         * tests/unictype/test-pr_iso_control.c: Likewise.
60889         * tests/unictype/test-pr_join_control.c: Likewise.
60890         * tests/unictype/test-pr_left_of_pair.c: Likewise.
60891         * tests/unictype/test-pr_line_separator.c: Likewise.
60892         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
60893         * tests/unictype/test-pr_lowercase.c: Likewise.
60894         * tests/unictype/test-pr_math.c: Likewise.
60895         * tests/unictype/test-pr_non_break.c: Likewise.
60896         * tests/unictype/test-pr_not_a_character.c: Likewise.
60897         * tests/unictype/test-pr_numeric.c: Likewise.
60898         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60899         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
60900         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
60901         * tests/unictype/test-pr_other_id_continue.c: Likewise.
60902         * tests/unictype/test-pr_other_id_start.c: Likewise.
60903         * tests/unictype/test-pr_other_lowercase.c: Likewise.
60904         * tests/unictype/test-pr_other_math.c: Likewise.
60905         * tests/unictype/test-pr_other_uppercase.c: Likewise.
60906         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
60907         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
60908         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
60909         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
60910         * tests/unictype/test-pr_private_use.c: Likewise.
60911         * tests/unictype/test-pr_punctuation.c: Likewise.
60912         * tests/unictype/test-pr_quotation_mark.c: Likewise.
60913         * tests/unictype/test-pr_radical.c: Likewise.
60914         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60915         * tests/unictype/test-pr_soft_dotted.c: Likewise.
60916         * tests/unictype/test-pr_space.c: Likewise.
60917         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60918         * tests/unictype/test-pr_titlecase.c: Likewise.
60919         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60920         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60921         * tests/unictype/test-pr_uppercase.c: Likewise.
60922         * tests/unictype/test-pr_variation_selector.c: Likewise.
60923         * tests/unictype/test-pr_white_space.c: Likewise.
60924         * tests/unictype/test-pr_xid_continue.c: Likewise.
60925         * tests/unictype/test-pr_xid_start.c: Likewise.
60926         * tests/unictype/test-pr_zero_width.c: Likewise.
60927         * tests/unictype/test-sy_c_whitespace.c: Likewise.
60928         * tests/unictype/test-sy_java_whitespace.c: Likewise.
60929
60930 2007-11-12  Bruno Haible  <bruno@clisp.org>
60931
60932         Unicode character classification functions.
60933         * lib/unictype.h: New file.
60934         * modules/unictype/base: New file.
60935         * modules/unictype/category-L: New file.
60936         * modules/unictype/category-Lu: New file.
60937         * modules/unictype/category-Ll: New file.
60938         * modules/unictype/category-Lt: New file.
60939         * modules/unictype/category-Lm: New file.
60940         * modules/unictype/category-Lo: New file.
60941         * modules/unictype/category-M: New file.
60942         * modules/unictype/category-Mn: New file.
60943         * modules/unictype/category-Mc: New file.
60944         * modules/unictype/category-Me: New file.
60945         * modules/unictype/category-N: New file.
60946         * modules/unictype/category-Nd: New file.
60947         * modules/unictype/category-Nl: New file.
60948         * modules/unictype/category-No: New file.
60949         * modules/unictype/category-P: New file.
60950         * modules/unictype/category-Pc: New file.
60951         * modules/unictype/category-Pd: New file.
60952         * modules/unictype/category-Ps: New file.
60953         * modules/unictype/category-Pe: New file.
60954         * modules/unictype/category-Pi: New file.
60955         * modules/unictype/category-Pf: New file.
60956         * modules/unictype/category-Po: New file.
60957         * modules/unictype/category-S: New file.
60958         * modules/unictype/category-Sm: New file.
60959         * modules/unictype/category-Sc: New file.
60960         * modules/unictype/category-Sk: New file.
60961         * modules/unictype/category-So: New file.
60962         * modules/unictype/category-Z: New file.
60963         * modules/unictype/category-Zs: New file.
60964         * modules/unictype/category-Zl: New file.
60965         * modules/unictype/category-Zp: New file.
60966         * modules/unictype/category-C: New file.
60967         * modules/unictype/category-Cc: New file.
60968         * modules/unictype/category-Cf: New file.
60969         * modules/unictype/category-Cs: New file.
60970         * modules/unictype/category-Co: New file.
60971         * modules/unictype/category-Cn: New file.
60972         * modules/unictype/category-or: New file.
60973         * modules/unictype/category-of: New file.
60974         * modules/unictype/category-test: New file.
60975         * modules/unictype/category-test-withtable: New file.
60976         * modules/unictype/category-byname: New file.
60977         * modules/unictype/category-none: New file.
60978         * modules/unictype/category-and: New file.
60979         * modules/unictype/category-and-not: New file.
60980         * modules/unictype/category-name: New file.
60981         * modules/unictype/combining-class: New file.
60982         * modules/unictype/category-all: New file.
60983         * modules/unictype/bidicategory-all: New file.
60984         * modules/unictype/bidicategory-byname: New file.
60985         * modules/unictype/bidicategory-name: New file.
60986         * modules/unictype/bidicategory-of: New file.
60987         * modules/unictype/bidicategory-test: New file.
60988         * modules/unictype/decimal-digit: New file.
60989         * modules/unictype/digit: New file.
60990         * modules/unictype/numeric: New file.
60991         * modules/unictype/mirror: New file.
60992         * modules/unictype/property-white-space: New file.
60993         * modules/unictype/property-alphabetic: New file.
60994         * modules/unictype/property-other-alphabetic: New file.
60995         * modules/unictype/property-not-a-character: New file.
60996         * modules/unictype/property-default-ignorable-code-point: New file.
60997         * modules/unictype/property-other-default-ignorable-code-point: New
60998         file.
60999         * modules/unictype/property-deprecated: New file.
61000         * modules/unictype/property-logical-order-exception: New file.
61001         * modules/unictype/property-variation-selector: New file.
61002         * modules/unictype/property-private-use: New file.
61003         * modules/unictype/property-unassigned-code-value: New file.
61004         * modules/unictype/property-uppercase: New file.
61005         * modules/unictype/property-other-uppercase: New file.
61006         * modules/unictype/property-lowercase: New file.
61007         * modules/unictype/property-other-lowercase: New file.
61008         * modules/unictype/property-titlecase: New file.
61009         * modules/unictype/property-soft-dotted: New file.
61010         * modules/unictype/property-id-start: New file.
61011         * modules/unictype/property-other-id-start: New file.
61012         * modules/unictype/property-id-continue: New file.
61013         * modules/unictype/property-other-id-continue: New file.
61014         * modules/unictype/property-xid-start: New file.
61015         * modules/unictype/property-xid-continue: New file.
61016         * modules/unictype/property-pattern-white-space: New file.
61017         * modules/unictype/property-pattern-syntax: New file.
61018         * modules/unictype/property-join-control: New file.
61019         * modules/unictype/property-grapheme-base: New file.
61020         * modules/unictype/property-grapheme-extend: New file.
61021         * modules/unictype/property-other-grapheme-extend: New file.
61022         * modules/unictype/property-grapheme-link: New file.
61023         * modules/unictype/property-bidi-control: New file.
61024         * modules/unictype/property-bidi-left-to-right: New file.
61025         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
61026         * modules/unictype/property-bidi-arabic-right-to-left: New file.
61027         * modules/unictype/property-bidi-european-digit: New file.
61028         * modules/unictype/property-bidi-eur-num-separator: New file.
61029         * modules/unictype/property-bidi-eur-num-terminator: New file.
61030         * modules/unictype/property-bidi-arabic-digit: New file.
61031         * modules/unictype/property-bidi-common-separator: New file.
61032         * modules/unictype/property-bidi-block-separator: New file.
61033         * modules/unictype/property-bidi-segment-separator: New file.
61034         * modules/unictype/property-bidi-whitespace: New file.
61035         * modules/unictype/property-bidi-non-spacing-mark: New file.
61036         * modules/unictype/property-bidi-boundary-neutral: New file.
61037         * modules/unictype/property-bidi-pdf: New file.
61038         * modules/unictype/property-bidi-embedding-or-override: New file.
61039         * modules/unictype/property-bidi-other-neutral: New file.
61040         * modules/unictype/property-hex-digit: New file.
61041         * modules/unictype/property-ascii-hex-digit: New file.
61042         * modules/unictype/property-ideographic: New file.
61043         * modules/unictype/property-unified-ideograph: New file.
61044         * modules/unictype/property-radical: New file.
61045         * modules/unictype/property-ids-binary-operator: New file.
61046         * modules/unictype/property-ids-trinary-operator: New file.
61047         * modules/unictype/property-zero-width: New file.
61048         * modules/unictype/property-space: New file.
61049         * modules/unictype/property-non-break: New file.
61050         * modules/unictype/property-iso-control: New file.
61051         * modules/unictype/property-format-control: New file.
61052         * modules/unictype/property-dash: New file.
61053         * modules/unictype/property-hyphen: New file.
61054         * modules/unictype/property-punctuation: New file.
61055         * modules/unictype/property-line-separator: New file.
61056         * modules/unictype/property-paragraph-separator: New file.
61057         * modules/unictype/property-quotation-mark: New file.
61058         * modules/unictype/property-sentence-terminal: New file.
61059         * modules/unictype/property-terminal-punctuation: New file.
61060         * modules/unictype/property-currency-symbol: New file.
61061         * modules/unictype/property-math: New file.
61062         * modules/unictype/property-other-math: New file.
61063         * modules/unictype/property-paired-punctuation: New file.
61064         * modules/unictype/property-left-of-pair: New file.
61065         * modules/unictype/property-combining: New file.
61066         * modules/unictype/property-composite: New file.
61067         * modules/unictype/property-decimal-digit: New file.
61068         * modules/unictype/property-numeric: New file.
61069         * modules/unictype/property-diacritic: New file.
61070         * modules/unictype/property-extender: New file.
61071         * modules/unictype/property-ignorable-control: New file.
61072         * modules/unictype/property-test: New file.
61073         * modules/unictype/property-byname: New file.
61074         * modules/unictype/property-all: New file.
61075         * modules/unictype/scripts: New file.
61076         * modules/unictype/scripts-all: New file.
61077         * modules/unictype/block-of: New file.
61078         * modules/unictype/block-test: New file.
61079         * modules/unictype/block-list: New file.
61080         * modules/unictype/block-all: New file.
61081         * modules/unictype/syntax-c-whitespace: New file.
61082         * modules/unictype/syntax-java-whitespace: New file.
61083         * modules/unictype/syntax-c-ident: New file.
61084         * modules/unictype/syntax-java-ident: New file.
61085         * modules/unictype/ctype-alnum: New file.
61086         * modules/unictype/ctype-alpha: New file.
61087         * modules/unictype/ctype-cntrl: New file.
61088         * modules/unictype/ctype-digit: New file.
61089         * modules/unictype/ctype-graph: New file.
61090         * modules/unictype/ctype-lower: New file.
61091         * modules/unictype/ctype-print: New file.
61092         * modules/unictype/ctype-punct: New file.
61093         * modules/unictype/ctype-space: New file.
61094         * modules/unictype/ctype-upper: New file.
61095         * modules/unictype/ctype-xdigit: New file.
61096         * modules/unictype/ctype-blank: New file.
61097         * lib/unictype/bidi_byname.c: New file.
61098         * lib/unictype/bidi_name.c: New file.
61099         * lib/unictype/bidi_of.c: New file.
61100         * lib/unictype/bidi_test.c: New file.
61101         * lib/unictype/bitmap.h: New file.
61102         * lib/unictype/block_test.c: New file.
61103         * lib/unictype/blocks.c: New file.
61104         * lib/unictype/categ_C.c: New file.
61105         * lib/unictype/categ_Cc.c: New file.
61106         * lib/unictype/categ_Cf.c: New file.
61107         * lib/unictype/categ_Cn.c: New file.
61108         * lib/unictype/categ_Co.c: New file.
61109         * lib/unictype/categ_Cs.c: New file.
61110         * lib/unictype/categ_L.c: New file.
61111         * lib/unictype/categ_Ll.c: New file.
61112         * lib/unictype/categ_Lm.c: New file.
61113         * lib/unictype/categ_Lo.c: New file.
61114         * lib/unictype/categ_Lt.c: New file.
61115         * lib/unictype/categ_Lu.c: New file.
61116         * lib/unictype/categ_M.c: New file.
61117         * lib/unictype/categ_Mc.c: New file.
61118         * lib/unictype/categ_Me.c: New file.
61119         * lib/unictype/categ_Mn.c: New file.
61120         * lib/unictype/categ_N.c: New file.
61121         * lib/unictype/categ_Nd.c: New file.
61122         * lib/unictype/categ_Nl.c: New file.
61123         * lib/unictype/categ_No.c: New file.
61124         * lib/unictype/categ_P.c: New file.
61125         * lib/unictype/categ_Pc.c: New file.
61126         * lib/unictype/categ_Pd.c: New file.
61127         * lib/unictype/categ_Pe.c: New file.
61128         * lib/unictype/categ_Pf.c: New file.
61129         * lib/unictype/categ_Pi.c: New file.
61130         * lib/unictype/categ_Po.c: New file.
61131         * lib/unictype/categ_Ps.c: New file.
61132         * lib/unictype/categ_S.c: New file.
61133         * lib/unictype/categ_Sc.c: New file.
61134         * lib/unictype/categ_Sk.c: New file.
61135         * lib/unictype/categ_Sm.c: New file.
61136         * lib/unictype/categ_So.c: New file.
61137         * lib/unictype/categ_Z.c: New file.
61138         * lib/unictype/categ_Zl.c: New file.
61139         * lib/unictype/categ_Zp.c: New file.
61140         * lib/unictype/categ_Zs.c: New file.
61141         * lib/unictype/categ_and.c: New file.
61142         * lib/unictype/categ_and_not.c: New file.
61143         * lib/unictype/categ_byname.c: New file.
61144         * lib/unictype/categ_name.c: New file.
61145         * lib/unictype/categ_none.c: New file.
61146         * lib/unictype/categ_of.c: New file.
61147         * lib/unictype/categ_or.c: New file.
61148         * lib/unictype/categ_test.c: New file.
61149         * lib/unictype/combining.c: New file.
61150         * lib/unictype/ctype_alnum.c: New file.
61151         * lib/unictype/ctype_alpha.c: New file.
61152         * lib/unictype/ctype_blank.c: New file.
61153         * lib/unictype/ctype_cntrl.c: New file.
61154         * lib/unictype/ctype_digit.c: New file.
61155         * lib/unictype/ctype_graph.c: New file.
61156         * lib/unictype/ctype_lower.c: New file.
61157         * lib/unictype/ctype_print.c: New file.
61158         * lib/unictype/ctype_punct.c: New file.
61159         * lib/unictype/ctype_space.c: New file.
61160         * lib/unictype/ctype_upper.c: New file.
61161         * lib/unictype/ctype_xdigit.c: New file.
61162         * lib/unictype/decdigit.c: New file.
61163         * lib/unictype/digit.c: New file.
61164         * lib/unictype/identsyntaxmap.h: New file.
61165         * lib/unictype/mirror.c: New file.
61166         * lib/unictype/numeric.c: New file.
61167         * lib/unictype/pr_alphabetic.c: New file.
61168         * lib/unictype/pr_ascii_hex_digit.c: New file.
61169         * lib/unictype/pr_bidi_arabic_digit.c: New file.
61170         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
61171         * lib/unictype/pr_bidi_block_separator.c: New file.
61172         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
61173         * lib/unictype/pr_bidi_common_separator.c: New file.
61174         * lib/unictype/pr_bidi_control.c: New file.
61175         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
61176         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
61177         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
61178         * lib/unictype/pr_bidi_european_digit.c: New file.
61179         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
61180         * lib/unictype/pr_bidi_left_to_right.c: New file.
61181         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
61182         * lib/unictype/pr_bidi_other_neutral.c: New file.
61183         * lib/unictype/pr_bidi_pdf.c: New file.
61184         * lib/unictype/pr_bidi_segment_separator.c: New file.
61185         * lib/unictype/pr_bidi_whitespace.c: New file.
61186         * lib/unictype/pr_byname.c: New file.
61187         * lib/unictype/pr_byname.gperf: New file.
61188         * lib/unictype/pr_combining.c: New file.
61189         * lib/unictype/pr_composite.c: New file.
61190         * lib/unictype/pr_currency_symbol.c: New file.
61191         * lib/unictype/pr_dash.c: New file.
61192         * lib/unictype/pr_decimal_digit.c: New file.
61193         * lib/unictype/pr_default_ignorable_code_point.c: New file.
61194         * lib/unictype/pr_deprecated.c: New file.
61195         * lib/unictype/pr_diacritic.c: New file.
61196         * lib/unictype/pr_extender.c: New file.
61197         * lib/unictype/pr_format_control.c: New file.
61198         * lib/unictype/pr_grapheme_base.c: New file.
61199         * lib/unictype/pr_grapheme_extend.c: New file.
61200         * lib/unictype/pr_grapheme_link.c: New file.
61201         * lib/unictype/pr_hex_digit.c: New file.
61202         * lib/unictype/pr_hyphen.c: New file.
61203         * lib/unictype/pr_id_continue.c: New file.
61204         * lib/unictype/pr_id_start.c: New file.
61205         * lib/unictype/pr_ideographic.c: New file.
61206         * lib/unictype/pr_ids_binary_operator.c: New file.
61207         * lib/unictype/pr_ids_trinary_operator.c: New file.
61208         * lib/unictype/pr_ignorable_control.c: New file.
61209         * lib/unictype/pr_iso_control.c: New file.
61210         * lib/unictype/pr_join_control.c: New file.
61211         * lib/unictype/pr_left_of_pair.c: New file.
61212         * lib/unictype/pr_line_separator.c: New file.
61213         * lib/unictype/pr_logical_order_exception.c: New file.
61214         * lib/unictype/pr_lowercase.c: New file.
61215         * lib/unictype/pr_math.c: New file.
61216         * lib/unictype/pr_non_break.c: New file.
61217         * lib/unictype/pr_not_a_character.c: New file.
61218         * lib/unictype/pr_numeric.c: New file.
61219         * lib/unictype/pr_other_alphabetic.c: New file.
61220         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
61221         * lib/unictype/pr_other_grapheme_extend.c: New file.
61222         * lib/unictype/pr_other_id_continue.c: New file.
61223         * lib/unictype/pr_other_id_start.c: New file.
61224         * lib/unictype/pr_other_lowercase.c: New file.
61225         * lib/unictype/pr_other_math.c: New file.
61226         * lib/unictype/pr_other_uppercase.c: New file.
61227         * lib/unictype/pr_paired_punctuation.c: New file.
61228         * lib/unictype/pr_paragraph_separator.c: New file.
61229         * lib/unictype/pr_pattern_syntax.c: New file.
61230         * lib/unictype/pr_pattern_white_space.c: New file.
61231         * lib/unictype/pr_private_use.c: New file.
61232         * lib/unictype/pr_punctuation.c: New file.
61233         * lib/unictype/pr_quotation_mark.c: New file.
61234         * lib/unictype/pr_radical.c: New file.
61235         * lib/unictype/pr_sentence_terminal.c: New file.
61236         * lib/unictype/pr_soft_dotted.c: New file.
61237         * lib/unictype/pr_space.c: New file.
61238         * lib/unictype/pr_terminal_punctuation.c: New file.
61239         * lib/unictype/pr_test.c: New file.
61240         * lib/unictype/pr_titlecase.c: New file.
61241         * lib/unictype/pr_unassigned_code_value.c: New file.
61242         * lib/unictype/pr_unified_ideograph.c: New file.
61243         * lib/unictype/pr_uppercase.c: New file.
61244         * lib/unictype/pr_variation_selector.c: New file.
61245         * lib/unictype/pr_white_space.c: New file.
61246         * lib/unictype/pr_xid_continue.c: New file.
61247         * lib/unictype/pr_xid_start.c: New file.
61248         * lib/unictype/pr_zero_width.c: New file.
61249         * lib/unictype/scripts.c: New file.
61250         * lib/unictype/sy_c_ident.c: New file.
61251         * lib/unictype/sy_c_whitespace.c: New file.
61252         * lib/unictype/sy_java_ident.c: New file.
61253         * lib/unictype/sy_java_whitespace.c: New file.
61254
61255         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
61256         Unicode 5.0.0.
61257         * lib/unictype/blocks.h: Likewise.
61258         * lib/unictype/categ_C.h: Likewise.
61259         * lib/unictype/categ_Cc.h: Likewise.
61260         * lib/unictype/categ_Cf.h: Likewise.
61261         * lib/unictype/categ_Cn.h: Likewise.
61262         * lib/unictype/categ_Co.h: Likewise.
61263         * lib/unictype/categ_Cs.h: Likewise.
61264         * lib/unictype/categ_L.h: Likewise.
61265         * lib/unictype/categ_Ll.h: Likewise.
61266         * lib/unictype/categ_Lm.h: Likewise.
61267         * lib/unictype/categ_Lo.h: Likewise.
61268         * lib/unictype/categ_Lt.h: Likewise.
61269         * lib/unictype/categ_Lu.h: Likewise.
61270         * lib/unictype/categ_M.h: Likewise.
61271         * lib/unictype/categ_Mc.h: Likewise.
61272         * lib/unictype/categ_Me.h: Likewise.
61273         * lib/unictype/categ_Mn.h: Likewise.
61274         * lib/unictype/categ_N.h: Likewise.
61275         * lib/unictype/categ_Nd.h: Likewise.
61276         * lib/unictype/categ_Nl.h: Likewise.
61277         * lib/unictype/categ_No.h: Likewise.
61278         * lib/unictype/categ_P.h: Likewise.
61279         * lib/unictype/categ_Pc.h: Likewise.
61280         * lib/unictype/categ_Pd.h: Likewise.
61281         * lib/unictype/categ_Pe.h: Likewise.
61282         * lib/unictype/categ_Pf.h: Likewise.
61283         * lib/unictype/categ_Pi.h: Likewise.
61284         * lib/unictype/categ_Po.h: Likewise.
61285         * lib/unictype/categ_Ps.h: Likewise.
61286         * lib/unictype/categ_S.h: Likewise.
61287         * lib/unictype/categ_Sc.h: Likewise.
61288         * lib/unictype/categ_Sk.h: Likewise.
61289         * lib/unictype/categ_Sm.h: Likewise.
61290         * lib/unictype/categ_So.h: Likewise.
61291         * lib/unictype/categ_Z.h: Likewise.
61292         * lib/unictype/categ_Zl.h: Likewise.
61293         * lib/unictype/categ_Zp.h: Likewise.
61294         * lib/unictype/categ_Zs.h: Likewise.
61295         * lib/unictype/categ_of.h: Likewise.
61296         * lib/unictype/combining.h: Likewise.
61297         * lib/unictype/ctype_alnum.h: Likewise.
61298         * lib/unictype/ctype_alpha.h: Likewise.
61299         * lib/unictype/ctype_blank.h: Likewise.
61300         * lib/unictype/ctype_cntrl.h: Likewise.
61301         * lib/unictype/ctype_digit.h: Likewise.
61302         * lib/unictype/ctype_graph.h: Likewise.
61303         * lib/unictype/ctype_lower.h: Likewise.
61304         * lib/unictype/ctype_print.h: Likewise.
61305         * lib/unictype/ctype_punct.h: Likewise.
61306         * lib/unictype/ctype_space.h: Likewise.
61307         * lib/unictype/ctype_upper.h: Likewise.
61308         * lib/unictype/ctype_xdigit.h: Likewise.
61309         * lib/unictype/decdigit.h: Likewise.
61310         * lib/unictype/digit.h: Likewise.
61311         * lib/unictype/mirror.h: Likewise.
61312         * lib/unictype/numeric.h: Likewise.
61313         * lib/unictype/pr_alphabetic.h: Likewise.
61314         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
61315         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
61316         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
61317         * lib/unictype/pr_bidi_block_separator.h: Likewise.
61318         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
61319         * lib/unictype/pr_bidi_common_separator.h: Likewise.
61320         * lib/unictype/pr_bidi_control.h: Likewise.
61321         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
61322         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
61323         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
61324         * lib/unictype/pr_bidi_european_digit.h: Likewise.
61325         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
61326         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
61327         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
61328         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
61329         * lib/unictype/pr_bidi_pdf.h: Likewise.
61330         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
61331         * lib/unictype/pr_bidi_whitespace.h: Likewise.
61332         * lib/unictype/pr_combining.h: Likewise.
61333         * lib/unictype/pr_composite.h: Likewise.
61334         * lib/unictype/pr_currency_symbol.h: Likewise.
61335         * lib/unictype/pr_dash.h: Likewise.
61336         * lib/unictype/pr_decimal_digit.h: Likewise.
61337         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
61338         * lib/unictype/pr_deprecated.h: Likewise.
61339         * lib/unictype/pr_diacritic.h: Likewise.
61340         * lib/unictype/pr_extender.h: Likewise.
61341         * lib/unictype/pr_format_control.h: Likewise.
61342         * lib/unictype/pr_grapheme_base.h: Likewise.
61343         * lib/unictype/pr_grapheme_extend.h: Likewise.
61344         * lib/unictype/pr_grapheme_link.h: Likewise.
61345         * lib/unictype/pr_hex_digit.h: Likewise.
61346         * lib/unictype/pr_hyphen.h: Likewise.
61347         * lib/unictype/pr_id_continue.h: Likewise.
61348         * lib/unictype/pr_id_start.h: Likewise.
61349         * lib/unictype/pr_ideographic.h: Likewise.
61350         * lib/unictype/pr_ids_binary_operator.h: Likewise.
61351         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
61352         * lib/unictype/pr_ignorable_control.h: Likewise.
61353         * lib/unictype/pr_iso_control.h: Likewise.
61354         * lib/unictype/pr_join_control.h: Likewise.
61355         * lib/unictype/pr_left_of_pair.h: Likewise.
61356         * lib/unictype/pr_line_separator.h: Likewise.
61357         * lib/unictype/pr_logical_order_exception.h: Likewise.
61358         * lib/unictype/pr_lowercase.h: Likewise.
61359         * lib/unictype/pr_math.h: Likewise.
61360         * lib/unictype/pr_non_break.h: Likewise.
61361         * lib/unictype/pr_not_a_character.h: Likewise.
61362         * lib/unictype/pr_numeric.h: Likewise.
61363         * lib/unictype/pr_other_alphabetic.h: Likewise.
61364         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
61365         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
61366         * lib/unictype/pr_other_id_continue.h: Likewise.
61367         * lib/unictype/pr_other_id_start.h: Likewise.
61368         * lib/unictype/pr_other_lowercase.h: Likewise.
61369         * lib/unictype/pr_other_math.h: Likewise.
61370         * lib/unictype/pr_other_uppercase.h: Likewise.
61371         * lib/unictype/pr_paired_punctuation.h: Likewise.
61372         * lib/unictype/pr_paragraph_separator.h: Likewise.
61373         * lib/unictype/pr_pattern_syntax.h: Likewise.
61374         * lib/unictype/pr_pattern_white_space.h: Likewise.
61375         * lib/unictype/pr_private_use.h: Likewise.
61376         * lib/unictype/pr_punctuation.h: Likewise.
61377         * lib/unictype/pr_quotation_mark.h: Likewise.
61378         * lib/unictype/pr_radical.h: Likewise.
61379         * lib/unictype/pr_sentence_terminal.h: Likewise.
61380         * lib/unictype/pr_soft_dotted.h: Likewise.
61381         * lib/unictype/pr_space.h: Likewise.
61382         * lib/unictype/pr_terminal_punctuation.h: Likewise.
61383         * lib/unictype/pr_titlecase.h: Likewise.
61384         * lib/unictype/pr_unassigned_code_value.h: Likewise.
61385         * lib/unictype/pr_unified_ideograph.h: Likewise.
61386         * lib/unictype/pr_uppercase.h: Likewise.
61387         * lib/unictype/pr_variation_selector.h: Likewise.
61388         * lib/unictype/pr_white_space.h: Likewise.
61389         * lib/unictype/pr_xid_continue.h: Likewise.
61390         * lib/unictype/pr_xid_start.h: Likewise.
61391         * lib/unictype/pr_zero_width.h: Likewise.
61392         * lib/unictype/scripts.h: Likewise.
61393         * lib/unictype/scripts_byname.gperf: Likewise.
61394         * lib/unictype/sy_c_ident.h: Likewise.
61395         * lib/unictype/sy_c_whitespace.h: Likewise.
61396         * lib/unictype/sy_java_ident.h: Likewise.
61397         * lib/unictype/sy_java_whitespace.h: Likewise.
61398
61399         * lib/unictype/Makefile: New file.
61400         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
61401         glibc.
61402         * lib/unictype/3level.h: New file, copied from glibc.
61403         * lib/unictype/3levelbit.h: New file.
61404
61405 2007-11-11  Bruno Haible  <bruno@clisp.org>
61406
61407         * modules/gperf: New file.
61408         * modules/iconv_open (Depends-on): Add it.
61409         (Makefile.am): Remove the GPERF definition.
61410
61411 2007-11-11  Bruno Haible  <bruno@clisp.org>
61412
61413         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
61414         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
61415
61416 2007-11-11  Bruno Haible  <bruno@clisp.org>
61417
61418         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
61419         (usage): Remove function.
61420
61421 2007-11-11  Bruno Haible  <bruno@clisp.org>
61422
61423         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
61424         gl_FUNC_CEILF_LIBS.
61425         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
61426         gl_FUNC_CEIL_LIBS.
61427         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
61428         gl_FUNC_CEILL_LIBS.
61429         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
61430         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
61431         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
61432
61433 2007-11-11  Bruno Haible  <bruno@clisp.org>
61434
61435         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
61436         roundf were declared but do not exist on functions.
61437         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
61438         roundl were declared but do not exist on functions.
61439         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
61440         HAVE_FLOORL_AND_CEILL, respectively.
61441         Needed for Sun C on Solaris 10.
61442
61443 2007-11-11  Bruno Haible  <bruno@clisp.org>
61444
61445         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
61446         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
61447         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
61448         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
61449         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
61450         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
61451         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
61452         HAVE_DECL_ROUNDF.
61453         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
61454         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
61455         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
61456         of HAVE_DECL_ROUND*.
61457         * modules/math (Makefile.am): Update.
61458
61459 2007-11-10  Bruno Haible  <bruno@clisp.org>
61460
61461         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
61462         ptrdiff_t as m4/intl.m4.
61463
61464 2007-11-10  Jim Meyering  <meyering@redhat.com>
61465
61466         Avoid link failure for the argmatch test.
61467         * tests/test-argmatch.c (usage): Define function to avoid a link
61468         failure: argmatch_die requires a usage function.
61469
61470 2007-11-09  Bruno Haible  <bruno@clisp.org>
61471
61472         * doc/functions/snprintf.texi: Mention BeOS deficiency.
61473         * doc/functions/vsnprintf.texi: Likewise.
61474         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
61475         with a size argument < 2.
61476
61477 2007-11-09  Bruno Haible  <bruno@clisp.org>
61478
61479         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
61480         buffer. Fixes an inefficiency introduced on 2007-11-03.
61481
61482 2007-11-09  Bruno Haible  <bruno@clisp.org>
61483
61484         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
61485         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
61486
61487 2007-11-08  Jim Meyering  <meyering@redhat.com>
61488
61489         Change cache variable name prefix "jm_" to "gl_" everywhere.
61490         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
61491         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
61492         * m4/uptime.m4: s/gl_/jm_/
61493
61494 2007-11-07  Bruno Haible  <bruno@clisp.org>
61495
61496         Update to GNU gettext 0.17.
61497         * m4/intl.m4: Update to GNU gettext 0.17.
61498         * m4/po.m4: Likewise.
61499         * modules/gettext (Files): Remove m4/ulonglong.m4.
61500         (configure.ac): Require gettext infrastructure from version 0.17.
61501
61502 2007-11-06  Bruno Haible  <bruno@clisp.org>
61503
61504         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
61505         symbolic values are not defined in a public header.
61506         * lib/freadable.c (freadable) [QNX]: Likewise.
61507         * lib/freadahead.c (freadahead) [QNX]: Likewise.
61508         * lib/freading.c (freading) [QNX]: Likewise.
61509         * lib/fseterr.c (fseterr) [QNX]: Likewise.
61510         * lib/fwritable.c (fwritable) [QNX]: Likewise.
61511         * lib/fwriting.c (fwriting) [QNX]: Likewise.
61512         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
61513         Reported by Alain Magloire.
61514
61515         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
61516
61517 2007-11-05  Bruno Haible  <bruno@clisp.org>
61518
61519         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
61520         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
61521         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
61522         Reported by Eric Blake.
61523
61524 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61525             Bruno Haible  <bruno@clisp.org>
61526
61527         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
61528         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
61529         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
61530         (malloc): Undefine also before including <stdlib.h>.
61531         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
61532         Needed on OSF/1 4.0.
61533
61534 2007-11-05  Jim Meyering  <meyering@redhat.com>
61535
61536         git-version-gen: sync from coreutils.
61537         * build-aux/git-version-gen: Add comments.
61538         Change the first '-' to '.' in the snapshot version string,
61539         e.g., 6.9-377-08144 -> 6.9.377-08144
61540         Remove first parameter.
61541         Don't declare a version "-dirty" merely because a time
61542         stamp has changed.
61543
61544 2007-11-04  Bruno Haible  <bruno@clisp.org>
61545
61546         * lib/lock.h: Protect all macro definitions containing an 'if'
61547         statement through a "do { ... } while (0)".
61548         * lib/tls.h: Likewise.
61549
61550 2007-11-04  Bruno Haible  <bruno@clisp.org>
61551
61552         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
61553
61554 2007-11-04  Bruno Haible  <bruno@clisp.org>
61555
61556         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
61557         * modules/fprintf-posix (Depends-on): Add nocrash.
61558         * modules/snprintf-posix (Depends-on): Likewise.
61559         * modules/sprintf-posix (Depends-on): Likewise.
61560         * modules/vasnprintf-posix (Depends-on): Likewise.
61561         * modules/vasprintf-posix (Depends-on): Likewise.
61562         * modules/vfprintf-posix (Depends-on): Likewise.
61563         * modules/vsnprintf-posix (Depends-on): Likewise.
61564         * modules/vsprintf-posix (Depends-on): Likewise.
61565         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61566         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61567         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61568         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61569         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61570         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61571         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61572
61573 2007-11-04  Bruno Haible  <bruno@clisp.org>
61574
61575         * modules/nocrash: New file.
61576         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
61577         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
61578
61579 2007-11-04  Bruno Haible  <bruno@clisp.org>
61580
61581         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
61582         precision handling.
61583         * tests/test-vasprintf-posix.c (test_function): Likewise.
61584         * tests/test-snprintf-posix.h (test_function): Likewise.
61585         * tests/test-sprintf-posix.h (test_function): Likewise.
61586
61587         Fix *printf behaviour for large precisions on mingw and BeOS.
61588         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
61589         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
61590         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
61591         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61592         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61593         gl_PRINTF_PRECISION and test its result. Invoke
61594         gl_PREREQ_VASNPRINTF_PRECISION.
61595         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61596         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61597         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61598         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61599         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61600         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61601         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61602         * doc/functions/fprintf.texi: Update.
61603         * doc/functions/printf.texi: Update.
61604         * doc/functions/snprintf.texi: Update.
61605         * doc/functions/sprintf.texi: Update.
61606         * doc/functions/vfprintf.texi: Update.
61607         * doc/functions/vprintf.texi: Update.
61608         * doc/functions/vsnprintf.texi: Update.
61609         * doc/functions/vsprintf.texi: Update.
61610
61611 2007-11-04  Bruno Haible  <bruno@clisp.org>
61612
61613         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
61614
61615 2007-11-04  Bruno Haible  <bruno@clisp.org>
61616
61617         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
61618         Reported by Sylvain Beucler <beuc@gnu.org>.
61619
61620 2007-11-03  Bruno Haible  <bruno@clisp.org>
61621
61622         * tests/test-fprintf-posix2.sh: New file.
61623         * tests/test-fprintf-posix2.c: New file.
61624         * modules/fprintf-posix-tests (Files): Add them.
61625         (TESTS): Add test-fprintf-posix2.sh.
61626         (configure.ac): Check for getrlimit and setrlimit.
61627         (check_PROGRAMS): Add test-fprintf-posix2.
61628
61629         * tests/test-printf-posix2.sh: New file.
61630         * tests/test-printf-posix2.c: New file.
61631         * modules/printf-posix-tests (Files): Add them.
61632         (TESTS): Add test-printf-posix2.sh.
61633         (configure.ac): Check for getrlimit and setrlimit.
61634         (check_PROGRAMS): Add test-printf-posix2.
61635
61636         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
61637         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
61638         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
61639         (decode_double): New function, copied from decode_long_double.
61640         (scale10_round_decimal_decoded): New function, extracted from
61641         scale10_round_decimal_long_double.
61642         (scale10_round_decimal_long_double): Use it.
61643         (scale10_round_decimal_double): New function.
61644         (floorlog10): New function.
61645         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
61646         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
61647         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61648         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61649         gl_PRINTF_ENOMEM and test its result. Invoke
61650         gl_PREREQ_VASNPRINTF_ENOMEM.
61651         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61652         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61653         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61654         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61655         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61656         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61657         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61658         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
61659         * modules/snprintf-posix (Depends-on): Likewise.
61660         * modules/sprintf-posix (Depends-on): Likewise.
61661         * modules/vasnprintf-posix (Depends-on): Likewise.
61662         * modules/vasprintf-posix (Depends-on): Likewise.
61663         * modules/vfprintf-posix (Depends-on): Likewise.
61664         * modules/vsnprintf-posix (Depends-on): Likewise.
61665         * modules/vsprintf-posix (Depends-on): Likewise.
61666         * doc/functions/fprintf.texi: Update.
61667         * doc/functions/printf.texi: Update.
61668         * doc/functions/snprintf.texi: Update.
61669         * doc/functions/sprintf.texi: Update.
61670         * doc/functions/vfprintf.texi: Update.
61671         * doc/functions/vprintf.texi: Update.
61672         * doc/functions/vsnprintf.texi: Update.
61673         * doc/functions/vsprintf.texi: Update.
61674
61675 2007-11-03  Bruno Haible  <bruno@clisp.org>
61676
61677         * modules/frexp-nolibm-tests: New file.
61678
61679         * modules/frexp-nolibm: New file.
61680         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
61681
61682 2007-11-03  Bruno Haible  <bruno@clisp.org>
61683
61684         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
61685         value is C99 compliant.
61686         Needed for OSF/1 5.1.
61687
61688 2007-11-03  Bruno Haible  <bruno@clisp.org>
61689
61690         Fix out-of-memory handling of vasnprintf.
61691         * lib/printf-parse.c: Include <errno.h>.
61692         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
61693         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
61694         is already set.
61695
61696 2007-11-02  Eric Blake  <ebb9@byu.net>
61697
61698         Fix tests on cygwin.
61699         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
61700
61701 2007-11-01  Bruno Haible  <bruno@clisp.org>
61702
61703         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
61704         warning.
61705         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
61706         needed for POSIX compatibility.
61707
61708 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
61709
61710         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
61711         for compatibility with GNU.
61712
61713 2007-11-01  Bruno Haible  <bruno@clisp.org>
61714
61715         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
61716         (putenv): Renamed from rpl_putenv. Change argument type from
61717         'const char *' to 'char *'.
61718         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
61719         of defining putenv in config.h, just set REPLACE_PUTENV.
61720         * modules/putenv (Depends-on): Add stdlib.
61721         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61722         (Include): Use <stdlib.h>.
61723         * lib/stdlib.in.h (putenv): New declaration.
61724         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
61725         REPLACE_PUTENV.
61726         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
61727         REPLACE_PUTENV.
61728         Needed for MacOS X 10.5.0.
61729         Reported by Peter O'Gorman <peter@pogma.com>.
61730
61731 2007-11-01  Jim Meyering  <meyering@redhat.com>
61732
61733         Treat an empty date string exactly like "0".
61734         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
61735         if the remaining date string (to be parsed) is empty, use "0".
61736         Reported by Mischa Molhoek and discussed in this thread:
61737         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
61738
61739 2007-10-31  Bruno Haible  <bruno@clisp.org>
61740
61741         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
61742         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
61743         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
61744         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
61745         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
61746         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
61747
61748 2007-10-31  Bruno Haible  <bruno@clisp.org>
61749
61750         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
61751         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
61752         (AC_TYPE_LONG_LONG_INT): Use it.
61753         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
61754         it as well.
61755         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
61756         to m4/longlong.m4.
61757         * modules/stdint (Files): Remove m4/ulonglong.m4.
61758         * modules/strtoull (Files): Use m4/longlong.m4 instead of
61759         m4/ulonglong.m4.
61760         * modules/strtoumax (Files): Likewise.
61761
61762 2007-10-30  Bruno Haible  <bruno@clisp.org>
61763
61764         * modules/xvasprintf-posix: New file.
61765         Suggested by Eric Blake.
61766
61767 2007-10-30  Bruno Haible  <bruno@clisp.org>
61768
61769         * modules/xprintf-posix-tests: New file.
61770         * tests/test-xprintf-posix.sh: New file.
61771         * tests/test-xprintf-posix.c: New file.
61772         * tests/test-xfprintf-posix.c: New file.
61773
61774         * modules/xprintf-posix: New file.
61775
61776 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61777
61778         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
61779         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
61780         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
61781
61782 2007-10-29  Bruno Haible  <bruno@clisp.org>
61783
61784         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
61785         contain the special marker '_cv_'.
61786         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
61787         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
61788         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
61789         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
61790         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
61791         Reported by Ralf Wildenhues.
61792
61793 2007-10-29  Bruno Haible  <bruno@clisp.org>
61794
61795         * gnulib-tool (func_import): When --lgpl is not specified, set
61796         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
61797         GPLv3.
61798         Reported by Simon Josefsson.
61799
61800 2007-10-28  Bruno Haible  <bruno@clisp.org>
61801
61802         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
61803         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
61804         HAVE_DECL_ISFINITE.
61805         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61806         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
61807         HAVE_DECL_ISFINITE.
61808
61809 2007-10-28  Bruno Haible  <bruno@clisp.org>
61810
61811         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
61812         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
61813
61814 2007-10-28  Bruno Haible  <bruno@clisp.org>
61815
61816         Fix link errors with Sun C 5.0 on Solaris 10.
61817         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
61818         function is declared but not present in the compiler's libm.
61819         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
61820         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
61821         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
61822         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
61823         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
61824         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
61825         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
61826         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61827         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
61828         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
61829         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
61830         HAVE_DECL_FLOORL.
61831
61832 2007-10-28  Bruno Haible  <bruno@clisp.org>
61833
61834         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
61835         gl_FUNC_FLOORL. Cache the result.
61836         (gl_FUNC_FLOORL): Use it.
61837         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
61838         gl_FUNC_CEILL. Cache the result.
61839         (gl_FUNC_CEILL): Use it.
61840
61841         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
61842         gl_FUNC_FLOOR. Cache the result.
61843         (gl_FUNC_FLOOR): Use it.
61844         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
61845         gl_FUNC_CEIL. Cache the result.
61846         (gl_FUNC_CEIL): Use it.
61847
61848         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
61849         gl_FUNC_FLOORF. Cache the result.
61850         (gl_FUNC_FLOORF): Use it.
61851         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
61852         gl_FUNC_CEILF. Cache the result.
61853         (gl_FUNC_CEILF): Use it.
61854
61855 2007-10-28  Bruno Haible  <bruno@clisp.org>
61856
61857         * gnulib-tool: Allow specifying the LGPL version number through
61858         --lgpl=2 or --lgpl=3.
61859         (func_usage): Document --lgpl with argument.
61860         Handle --lgpl=... arguments.
61861         (func_import): Recognize also gl_LGPL calls with an argument. When
61862         --lgpl=2 is used and the module's license is just LGPL, report an
61863         error. Set sed_transform_lib_file according to the lgpl variable. In
61864         the generated files, use --lgpl or gl_LGPL invocations with argument,
61865         if necessary.
61866         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
61867         an LGPv2+ license.
61868         * doc/gnulib-tool.texi (Modified imports): Update explanation of
61869         gl_LGPL macro.
61870
61871 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61872             Bruno Haible  <bruno@clisp.org>
61873
61874         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
61875         (u16_uctomb_aux): Likewise.
61876         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
61877         !HAVE_INLINE.
61878         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
61879
61880 2007-10-28  Bruno Haible  <bruno@clisp.org>
61881
61882         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
61883         Invoke AM_GETTEXT_OPTION if it exists.
61884         * modules/vasprintf: Likewise.
61885         * modules/verror: Likewise.
61886         * modules/xprintf: Likewise.
61887         * modules/xvasprintf: Likewise.
61888
61889 2007-10-27  Ben Pfaff  <blp@gnu.org>
61890
61891         * lib/math.in.h: Define isfinite macro and prototypes for
61892         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
61893         implementations.
61894         * m4/math_h.m4: New substitutions for isfinite module.
61895         * lib/isfinite.c: New file.
61896         * m4/isfinite.m4: New file.
61897         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
61898         * modules/isfinite: New file.
61899         * modules/isfinite-tests: New file.
61900         * tests/tests-isfinite.c: New file.
61901         * doc/functions/isfinite.texi: Mention isfinite module.
61902         * MODULES.html.sh: Mention new module.
61903
61904 2007-10-27  Ben Pfaff  <blp@gnu.org>
61905
61906         Ralf Wildenhues reported that Tru64 4.0D declares the round
61907         functions but does not have definitions.
61908         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
61909         cannot be found in any library, set the output variable to
61910         "missing" instead of "".
61911         * m4/round.m4: Also use our substitute if we cannot find round in
61912         any library, even if it is declared.
61913         * m4/roundf.m4: Likewise for roundf.
61914         * m4/roundl.m4: Likewise for roundl.
61915         * lib/math.in.h: Undefine roundf, round, roundl before defining
61916         their replacements, to allow for hypothetical systems where these
61917         may be defined as macros but not available in libraries.
61918
61919 2007-10-27  Bruno Haible  <bruno@clisp.org>
61920
61921         * doc/gnulib.texi: Invoke @firstparagraphindent.
61922         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
61923         changes in gnulib.
61924         (Source changes): New section.
61925
61926 2007-10-26  Bruno Haible  <bruno@clisp.org>
61927
61928         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
61929         borrowed from autoconf.
61930
61931 2007-10-26  Bruno Haible  <bruno@clisp.org>
61932
61933         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
61934         strerror returned the empty string. Needed on HP-UX 11.00.
61935
61936 2007-10-24  Micah Cowan  <micah@cowan.name>
61937
61938         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
61939         * build-aux/bootstrap: Remove support for now-unnecessary option,
61940         --cvs-user, and envvars CVS_USER, CVS_RSH.
61941
61942 2007-10-24  Jim Meyering  <meyering@redhat.com>
61943
61944         Avoid diagnostics from sha1sum when there is no cached checksum.
61945         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
61946         if the po.s1 file hasn't been created yet.
61947
61948         * build-aux/bootstrap: Sync from coreutils:
61949         2007-10-24  Jim Meyering  <meyering@redhat.com>
61950         Get gnulib from the git repository, not from an obsolete cvs one.
61951         * build-aux/bootstrap: Suggestion from Micah Cowan.
61952         2007-10-04  Jim Meyering  <jim@meyering.net>
61953         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
61954         (update_po_files): Work also when there are no .po files in po/.
61955
61956 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61957
61958         * README: Append ".git" to git and cg examples.
61959         Problem reported by Benoit Sigoure.
61960
61961 2007-10-23  Micah Cowan  <micah@cowan.name>
61962
61963         * users.txt: Add wget.
61964
61965 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61966
61967         Fix linking of some unistdio tests on FreeBSD.
61968         * modules/unistdio/u16-vsnprintf-tests
61969         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
61970         * modules/unistdio/u16-vsprintf-tests
61971         (test_u16_vsnprintf1_LDADD): Likewise.
61972         * modules/unistdio/u32-vsnprintf-tests
61973         (test_u32_vsnprintf1_LDADD): Likewise.
61974         * modules/unistdio/u32-vsprintf-tests
61975         (test_u32_vsprintf1_LDADD): Likewise.
61976         * modules/unistdio/u8-vsnprintf-tests
61977         (test_u8_vsnprintf1_LDADD): Likewise.
61978         * modules/unistdio/u8-vsprintf-tests
61979         (test_u8_vsprintf1_LDADD): Likewise.
61980         * modules/unistdio/ulc-vsnprintf-tests
61981         (test_ulc_vsnprintf1_LDADD): Likewise.
61982         * modules/unistdio/ulc-vsprintf-tests
61983         (test_ulc_vsprintf1_LDADD): Likewise.
61984
61985         Fix linking of some uniconv tests on FreeBSD.
61986         * modules/uniconv/u16-conv-from-enc-tests
61987         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
61988         * modules/uniconv/u16-conv-to-enc-tests
61989         (test_u16_conv_to_enc_LDADD): Likewise.
61990         * modules/uniconv/u16-strconv-from-enc-tests
61991         (test_u16_strconv_from_enc_LDADD): Likewise.
61992         * modules/uniconv/u16-strconv-to-enc-tests
61993         (test_u16_strconv_to_enc_LDADD): Likewise.
61994         * modules/uniconv/u32-conv-from-enc-tests
61995         (test_u32_conv_from_enc_LDADD): Likewise.
61996         * modules/uniconv/u32-conv-to-enc-tests
61997         (test_u32_conv_to_enc_LDADD): Likewise.
61998         * modules/uniconv/u32-strconv-from-enc-tests
61999         (test_u32_strconv_from_enc_LDADD): Likewise.
62000         * modules/uniconv/u32-strconv-to-enc-tests
62001         (test_u32_strconv_to_enc_LDADD): Likewise.
62002         * modules/uniconv/u8-conv-from-enc-tests
62003         (test_u8_conv_from_enc_LDADD): Likewise.
62004         * modules/uniconv/u8-conv-to-enc-tests
62005         (test_u8_conv_to_enc_LDADD): Likewise.
62006         * modules/uniconv/u8-strconv-from-enc-tests
62007         (test_u8_strconv_from_enc_LDADD): Likewise.
62008         * modules/uniconv/u8-strconv-to-enc-tests
62009         (test_u8_strconv_to_enc_LDADD): Likewise.
62010
62011 2007-10-22  Bruno Haible  <bruno@clisp.org>
62012
62013         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
62014         size.
62015
62016 2007-10-22  Eric Blake  <ebb9@byu.net>
62017
62018         Tweak x*printf documentation.
62019         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
62020         variable name and comments.
62021         Suggested by Bruno Haible.
62022
62023 2007-10-22  Bruno Haible  <bruno@clisp.org>
62024
62025         * lib/acl.c (copy_acl): Fix file name in comment.
62026
62027 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62028
62029         Fix Tru64 problem with stdbool.h.
62030         * lib/stdbool.in.h (false, true):
62031         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
62032         Don't declare as an enum in this situation; it runs afoul of Tru64.
62033         Problem reported by Steven M. Schweda in
62034         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
62035
62036 2007-10-22  Eric Blake  <ebb9@byu.net>
62037
62038         Also wrap vf?printf.
62039         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
62040         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
62041         (xvprintf, xvfprintf): New functions.
62042
62043 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62044
62045         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
62046         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
62047
62048         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
62049         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
62050
62051 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62052
62053         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
62054         by Bruno Haible.
62055
62056 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62057
62058         * lib/getloadavg.c
62059         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
62060         Undef `sys' after including sys/table.h, for Tru64 4.0D.
62061
62062         * tests/test-i-ring.c: Work for C89.
62063
62064 2007-10-22  Bruno Haible  <bruno@clisp.org>
62065
62066         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
62067         -1u, in preprocessor expression, so that we don't test for the bug
62068         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
62069         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
62070
62071 2007-10-22  Eric Blake  <ebb9@byu.net>
62072
62073         * tests/test-yesno.sh: Silence stderr during test.
62074
62075 2007-10-22  Simon Josefsson  <simon@josefsson.org>
62076
62077         * modules/crypto/gc-camellia: New file.
62078
62079         * m4/gc-camellia.m4: New file.
62080
62081         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
62082
62083         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
62084
62085 2007-10-22  Simon Josefsson  <simon@josefsson.org>
62086
62087         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
62088         --help to stdout.  Reported by sms@antinode.org (Steven
62089         M. Schweda).
62090
62091 2007-10-22  Simon Josefsson  <simon@josefsson.org>
62092
62093         * users.txt: Fix link to libksba.
62094
62095 2007-10-21  Ben Pfaff  <blp@gnu.org>
62096
62097         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
62098         round.c roundf implementation that depends on floorf and ceilf to
62099         be tested unconditionally.
62100
62101 2007-10-21  Ben Pfaff  <blp@gnu.org>
62102
62103         * m4/check-libm-func.m4: Removed.
62104         * m4/check-math-lib.m4: New file.
62105         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
62106         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
62107         definition and lack of AC_LIBOBJ([roundf]).
62108         * m4/roundl.m4: Ditto, and similarly for roundl.
62109         * modules/round: Reference new m4 file.
62110         * modules/roundf: Ditto.
62111         * modules/roundl: Ditto.
62112         * tests/test-round2.c (main): Use ROUND instead of round.
62113         Bug report from Bruno Haible.
62114
62115 2007-10-21  Bruno Haible  <bruno@clisp.org>
62116
62117         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
62118         context.
62119
62120 2007-10-21  Bruno Haible  <bruno@clisp.org>
62121
62122         * tests/test-wcwidth.c (main): Allow negative result for some control
62123         characters.
62124
62125         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
62126         Needed on OSF/1 5.1.
62127
62128 2007-10-21  Bruno Haible  <bruno@clisp.org>
62129
62130         * tests/test-floorf1.c: Include isnanf.h.
62131         (main): Use isnanf() instead of isnan().
62132         * tests/test-ceilf1.c: Include isnanf.h.
62133         (main): Use isnanf() instead of isnan().
62134         * tests/test-truncf1.c: Include isnanf.h.
62135         (main): Use isnanf() instead of isnan().
62136         * tests/test-roundf1.c: Include isnanf.h.
62137         (main): Use isnanf() instead of isnan().
62138
62139 2007-10-21  Eric Blake  <ebb9@byu.net>
62140
62141         * users.txt: Update URL for m4.
62142
62143 2007-10-21  Bruno Haible  <bruno@clisp.org>
62144
62145         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
62146
62147 2007-10-21  Bruno Haible  <bruno@clisp.org>
62148
62149         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
62150         Git's management files if the CVS files are not present.
62151
62152 2007-10-20  Bruno Haible  <bruno@clisp.org>
62153
62154         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
62155         gcc-3.4.x.
62156
62157 2007-10-20  Ben Pfaff  <blp@gnu.org>
62158
62159         * lib/math.in.h: Declare round, roundf, roundl if we are providing
62160         implementations.
62161         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
62162         * lib/round.c: New file.
62163         * lib/roundf.c: New file.
62164         * lib/roundl.c: New file.
62165         * m4/round.m4: New file.
62166         * m4/roundf.m4: New file.
62167         * m4/roundl.m4: New file.
62168         * m4/check-libm-func-m4: New file.
62169         * modules/math: Replace round, roundf, roundl related @VARS@ in
62170         math.in.h.
62171         * modules/round: New file.
62172         * modules/round-tests: New file.
62173         * modules/roundf: New file.
62174         * modules/roundf-tests: New file.
62175         * modules/roundl: New file.
62176         * modules/roundl-tests: New file.
62177         * tests/test-round1.c: New file.
62178         * tests/test-round2.c: New file.
62179         * tests/test-roundf1.c: New file.
62180         * tests/test-roundf2.c: New file.
62181         * tests/test-roundl.c: New file.
62182         * doc/functions/round.texi: Mention round module.
62183         * doc/functions/roundf.texi: Mention roundf module.
62184         * doc/functions/roundl.texi: Mention roundl module.
62185         * MODULES.html.sh: Mention new modules.
62186         Thanks to Bruno Haible for suggestions.
62187
62188 2007-10-20  Jim Meyering  <meyering@redhat.com>
62189
62190         * lib/xprintf.c: Include <config.h> unconditionally.
62191
62192         Change xprintf's license to GPL.
62193         * modules/xprintf (License): s/LGPL/GPL/, since this module
62194         depends on modules (exit and exitfail) which are GPL.
62195         Suggestion from Bruno Haible.
62196
62197         xprintf fixes.
62198         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
62199         Use a clearer diagnostic.
62200         Patch from Bruno Haible.
62201
62202 2007-10-20  Bruno Haible  <bruno@clisp.org>
62203
62204         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
62205         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
62206         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62207
62208 2007-10-20  Bruno Haible  <bruno@clisp.org>
62209
62210         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
62211         precision in the comparison result > x - 1 or similar.
62212         * tests/test-ceilf2.c (correct_result_p): Likewise.
62213         * tests/test-truncf2.c (correct_result_p): Likewise.
62214         * tests/test-trunc2.c (correct_result_p): Likewise.
62215         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62216
62217 2007-10-20  Bruno Haible  <bruno@clisp.org>
62218
62219         * modules/ceil: New file.
62220         * m4/ceil.m4: New file.
62221         * doc/functions/ceil.texi: Mention the 'ceil' module.
62222
62223 2007-10-20  Bruno Haible  <bruno@clisp.org>
62224
62225         * modules/floor: New file.
62226         * m4/floor.m4: New file.
62227         * doc/functions/floor.texi: Mention the 'floor' module.
62228
62229 2007-10-20  Bruno Haible  <bruno@clisp.org>
62230
62231         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
62232         of %a.
62233         * modules/floorf-tests (Depends-on): Likewise.
62234         * modules/truncf-tests (Depends-on): Likewise.
62235         * modules/trunc-tests (Depends-on): Likewise.
62236         Reported by Ben Pfaff.
62237
62238 2007-10-19  Jim Meyering  <meyering@redhat.com>
62239
62240         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
62241         Don't bother testing specific errno values.  Just test ferror.
62242
62243         New module: xprintf
62244         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
62245
62246 2007-10-19  Bruno Haible  <bruno@clisp.org>
62247
62248         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
62249         syntax.
62250         * modules/javaexec (Makefile.am): Likewise.
62251         * modules/relocatable-prog (Makefile.am): Likewise.
62252         Suggested by Jim Meyering.
62253
62254 2007-10-18  Bruno Haible  <bruno@clisp.org>
62255
62256         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
62257         Reported by Jim Meyering.
62258
62259 2007-10-18  Eric Blake  <ebb9@byu.net>
62260
62261         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
62262
62263 2007-10-18  Bruno Haible  <bruno@clisp.org>
62264
62265         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
62266         the format string into writable memory. Needed in Fortify conditions.
62267
62268 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
62269             Bruno Haible  <bruno@clisp.org>
62270
62271         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
62272         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
62273         * modules/trim (Depends-on): Add mbchar.
62274         (configure.ac): Add gl_FUNC_MBRTOWC.
62275         (Makefile.am): Augment lib_SOURCES.
62276
62277 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62278
62279         Modify glob.c to use fstatat and dirfd, to simplify it.
62280         Suggested by Eric Blake.
62281         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
62282         Don't include <stdbool.h>; not used.
62283         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
62284         (link_exists_p): Simplify implementation, since we can now assume
62285         dirfd and fstatat.
62286         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
62287
62288 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62289
62290         * gnulib-tool (func_get_dependencies): Fix sed script to
62291         match only tests.
62292
62293 2007-10-17  Bruno Haible  <bruno@clisp.org>
62294
62295         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
62296         allow locale names without encoding suffix.
62297         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
62298         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62299
62300 2007-10-16  Bruno Haible  <bruno@clisp.org>
62301
62302         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
62303         * lib/getgroups.c (getgroups): Likewise.
62304         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
62305
62306 2007-10-16  Bruno Haible  <bruno@clisp.org>
62307
62308         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
62309         * modules/malloc-posix (License): Likewise.
62310         * modules/realloc-posix (License): Likewise.
62311         * modules/calloc-posix (License): Likewise.
62312         * modules/intprops (License): Change from GPL to LGPL, with
62313         Paul Eggert's approval.
62314
62315 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62316
62317         Merge glibc changes into lib/glob.c.
62318
62319         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
62320         2007-10-15 04:59:03 UTC.  Here are the changes:
62321
62322         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
62323
62324         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
62325
62326         * lib/glob.c: Add some branch prediction throughout.
62327
62328         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
62329
62330         [BZ #5103]
62331         * lib/glob.c (glob): Recognize patterns starting \/.
62332
62333         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
62334
62335         [BZ #3996]
62336         * lib/glob.c (attribute_hidden): Define if not defined.
62337         (glob): Unescape dirname, filename or username when needed and not
62338         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
62339         is NULL.  Handle unescaped [ in pattern without closing ].
62340         Don't pass GLOB_CHECK down to recursive glob for directories.
62341         (__glob_pattern_type): New function.
62342         (__glob_pattern_p): Implement using __glob_pattern_type.
62343         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
62344         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
62345         Remove unreachable code.
62346
62347         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
62348
62349         * lib/glob.c (glob_in_dir): Add some comments and asserts to
62350         explain why there are no leaks.
62351
62352         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
62353
62354         [BZ #3253]
62355         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
62356         time, rather allocate increasingly bigger arrays of pointers, if
62357         possible with alloca, if too large with malloc.
62358
62359 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62360
62361         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
62362         Problem reported by H.Merijn Brand in
62363         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
62364         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
62365         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
62366
62367 2007-10-15  Bruno Haible  <bruno@clisp.org>
62368
62369         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
62370         with explicit rpl_ prefix.
62371         * lib/fopen.c (fopen): Likewise.
62372         * lib/freopen.c (freopen): Likewise.
62373         * lib/iconv.c (iconv): Likewise.
62374         * lib/iconv_close.c (iconv_close): Likewise.
62375
62376 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62377
62378         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
62379
62380 2007-10-15  Bruno Haible  <bruno@clisp.org>
62381
62382         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
62383         <stddef.h> instead of <stdlib.h> since we only need NULL.
62384         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62385
62386 2007-10-15  Bruno Haible  <bruno@clisp.org>
62387
62388         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
62389         Replace paragraph talking about LIBOBJS.
62390         Reported by Colin Watson <cjwatson@debian.org>.
62391
62392 2007-10-15  Bruno Haible  <bruno@clisp.org>
62393
62394         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
62395         <stdlib.h> before using NULL.
62396
62397 2007-10-15  Simon Josefsson  <simon@josefsson.org>
62398
62399         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
62400         Reported by Albert Chin <china@thewrittenword.com>.
62401
62402 2007-10-14  Bruno Haible  <bruno@clisp.org>
62403
62404         * modules/iconv_open-utf-tests: New file.
62405         * tests/test-iconv-utf.c: New file.
62406
62407         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
62408         * modules/iconv_open-utf: New file.
62409         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
62410         (iconv, iconv_close): New declarations.
62411         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
62412         be defined.
62413         (iconv_open): Add special handling of conversion between UTF-8 and
62414         UTF-{16,32}{BE,LE}.
62415         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
62416         * lib/iconv_close.c: New file.
62417         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
62418         gl_FUNC_ICONV_OPEN.
62419         (gl_FUNC_ICONV_OPEN): Use it.
62420         (gl_FUNC_ICONV_OPEN_UTF): New macro.
62421         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
62422         and REPLACE_ICONV_UTF.
62423         * modules/iconv_open (Depends-on): Add c-strcase.
62424         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
62425         ICONV_CONST.
62426         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
62427
62428 2007-10-13  Albert Chin  <china@thewrittenword.com>
62429             Bruno Haible  <bruno@clisp.org>
62430
62431         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
62432         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
62433
62434 2007-10-13  Bruno Haible  <bruno@clisp.org>
62435
62436         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
62437         defined, use the ISO C99 inline semantics.
62438         * lib/argp.h (ARGP_EI): Likewise.
62439
62440 2007-10-13  Bruno Haible  <bruno@clisp.org>
62441
62442         Handle 'inline' change in gcc 4.3.0.
62443         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
62444         argp_fmtstream_write, argp_fmtstream_set_lmargin,
62445         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
62446         argp_fmtstream_point): Disable 'extern' declaration if the function
62447         definition is going to be provided inline.
62448         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
62449         semantics, not the ISO C99 inline semantics.
62450         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
62451         'extern' declaration if the function definition is going to be provided
62452         inline.
62453         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
62454         the GNU C inline semantics, not the ISO C99 inline semantics. With
62455         GCC 4.2, avoid a warning.
62456
62457 2007-10-13  Bruno Haible  <bruno@clisp.org>
62458
62459         * lib/freading.h (freading): Enable the use of __freading for
62460         glibc >= 2.7.
62461         * lib/freading.c (freading): Likewise.
62462
62463 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62464
62465         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
62466         "warning: C99 inline functions are not supported; using GNU89".
62467
62468 2007-10-12  Bruno Haible  <bruno@clisp.org>
62469
62470         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
62471         of 2.
62472         * tests/test-ceilf2.c: New file.
62473         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
62474
62475         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
62476         * modules/ceilf-tests: Update.
62477
62478 2007-10-12  Bruno Haible  <bruno@clisp.org>
62479
62480         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
62481         of 2.
62482         * tests/test-floorf2.c: New file.
62483         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
62484
62485         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
62486         * modules/floorf-tests: Update.
62487
62488 2007-10-12  Bruno Haible  <bruno@clisp.org>
62489
62490         * tests/test-trunc2.c: New file.
62491         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
62492
62493         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
62494         * modules/trunc-tests: Update.
62495
62496 2007-10-12  Bruno Haible  <bruno@clisp.org>
62497
62498         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
62499         of 2.
62500         * tests/test-truncf2.c: New file.
62501         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
62502
62503         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
62504         * modules/truncf-tests: Update.
62505
62506 2007-10-11  Eric Blake  <ebb9@byu.net>
62507
62508         Don't claim strerror is broken on Interix.
62509         * doc/functions/strerror.texi (strerror): Known broken systems are
62510         now Solaris 8, and not Interix.
62511         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
62512         Interix on cross-compile.
62513         Reported by Martin Koeppe in
62514         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
62515
62516 2007-10-11  Bruno Haible  <bruno@clisp.org>
62517
62518         * modules/i-ring-tests: New file.
62519         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
62520         instead of assert.
62521
62522 2007-10-11  Bruno Haible  <bruno@clisp.org>
62523
62524         * modules/filenamecat-tests: New file.
62525         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
62526         * lib/filenamecat.c: Remove test code.
62527
62528 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62529
62530         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
62531
62532         * lib/strerror.c: Include <string.h> always, to test interface,
62533         and to remove the need for the dummy.
62534         Include intprops.h to compute width instead of doing it ourselves
62535         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
62536         (strerror): Define it to return NULL if there's no system strerror.
62537         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
62538         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
62539         ancient pre-strerror Unix systems well any more.  Saying "unknown
62540         system error" is enough.
62541         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
62542         simpler strerror.c implementation.
62543         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
62544         Simplify the tests to reflect the simpler strerror implementation.
62545         * modules/strerror (Depends-on): Add intprops.
62546
62547 2007-10-09  Eric Blake  <ebb9@byu.net>
62548
62549         Silence test-fpending.
62550         * modules/fpending-tests (Files): Add wrapper script.
62551         * tests/test-fpending.sh: New file.
62552
62553 2007-10-09  Bruno Haible  <bruno@clisp.org>
62554
62555         * MODULES.html.sh (func_module): Don't create a hyperlink for
62556         function names like 'printf_frexp'.
62557         (Misc): Add crc, memxor.
62558         (Characteristics of floating types): New section.
62559         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
62560         isnanf-nolibm, signbit, trunc, truncf, truncl.
62561         (Enhancements for ISO C 99 functions): New subsection Input/output.
62562         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
62563         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
62564         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
62565         (Compatibility checks for POSIX:2001 functions): Add clock-time.
62566         (Enhancements for POSIX:2001 functions): Add chdir-long.
62567         (File system functions): Add areadlink, chdir-safer, read-file.
62568         Remove cycle-check.
62569         (File system as inode set): New section.
62570         (Date and time): Add gethrxtime.
62571         (Multithreading): Add openmp.
62572         (Internationalization functions): Add localename.
62573         (Unicode string functions): Add unistr/u*-mbsnlen.
62574         (Support for maintaining and releasing projects): Add git-version-gen.
62575         (Lone files): Remove directories.
62576
62577 2007-10-08  Ben Pfaff  <blp@gnu.org>
62578
62579         * lib/xmalloca.h: Fix typo in comment.
62580
62581 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62582
62583         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
62584         when avoiding problems with integer overflow.  Use a portable test
62585         instead.
62586
62587 2007-10-08  Simon Josefsson  <simon@josefsson.org>
62588
62589         * modules/dummy (License): Change to LGPLv2+.
62590         * modules/float (License): Likewise
62591         * modules/realloc (License): Likewise
62592         * modules/stdlib (License): Likewise
62593
62594 2007-10-07  Bruno Haible  <bruno@clisp.org>
62595
62596         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
62597         * floor.c (TWO_MANT_DIG): Likewise.
62598         * ceil.c (TWO_MANT_DIG): Likewise.
62599         Reported by Ben Pfaff.
62600
62601 2007-10-07  Bruno Haible  <bruno@clisp.org>
62602
62603         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
62604         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
62605         * lib/frexp.c (FUNC): Likewise.
62606         * lib/printf-frexp.h (printf_frexp): Likewise.
62607         * lib/printf-frexpl.h (printf_frexpl): Likewise.
62608         * lib/printf-frexp.c (FUNC): Likewise.
62609         Suggested by Jim Meyering.
62610
62611 2007-10-07  Jim Meyering  <meyering@redhat.com>
62612
62613         Make xnanosleep's integer overflow test more robust.
62614         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
62615         so that gcc-4.3.0 doesn't optimize away this test for overflow.
62616
62617 2007-10-07  Bruno Haible  <bruno@clisp.org>
62618
62619         * NEWS: Mention the license change.
62620
62621         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
62622         abbreviations in the modules files.
62623
62624         Change copyright notice from GPLv2+ to GPLv3+.
62625         * README: Change copyright notice.
62626         * MODULES.html.sh: Likewise.
62627         * build-aux/bootstrap.conf: Likewise.
62628         * build-aux/config.libpath: Likewise.
62629         * build-aux/csharpcomp.sh.in: Likewise.
62630         * build-aux/csharpexec.sh.in: Likewise.
62631         * build-aux/install-reloc: Likewise.
62632         * build-aux/javacomp.sh.in: Likewise.
62633         * build-aux/javaexec.sh.in: Likewise.
62634         * build-aux/ldd.sh.in: Likewise.
62635         * build-aux/reloc-ldflags: Likewise.
62636         * build-aux/relocatable.sh.in: Likewise.
62637         * build-aux/x-to-1.in: Likewise.
62638         * check-module: Likewise.
62639         * config/srclistvars.sh: Likewise.
62640         * gnulib-tool: Likewise.
62641         * lib/acl-internal.h: Likewise.
62642         * lib/acl.c: Likewise.
62643         * lib/acl.h: Likewise.
62644         * lib/acl_entries.c: Likewise.
62645         * lib/areadlink-with-size.c: Likewise.
62646         * lib/areadlink.c: Likewise.
62647         * lib/areadlink.h: Likewise.
62648         * lib/argmatch.c: Likewise.
62649         * lib/argmatch.h: Likewise.
62650         * lib/argp-ba.c: Likewise.
62651         * lib/argp-eexst.c: Likewise.
62652         * lib/argp-fmtstream.c: Likewise.
62653         * lib/argp-fmtstream.h: Likewise.
62654         * lib/argp-fs-xinl.c: Likewise.
62655         * lib/argp-help.c: Likewise.
62656         * lib/argp-namefrob.h: Likewise.
62657         * lib/argp-parse.c: Likewise.
62658         * lib/argp-pin.c: Likewise.
62659         * lib/argp-pv.c: Likewise.
62660         * lib/argp-pvh.c: Likewise.
62661         * lib/argp-xinl.c: Likewise.
62662         * lib/argp.h: Likewise.
62663         * lib/at-func.c: Likewise.
62664         * lib/atanl.c: Likewise.
62665         * lib/backupfile.c: Likewise.
62666         * lib/backupfile.h: Likewise.
62667         * lib/basename.c: Likewise.
62668         * lib/binary-io.h: Likewise.
62669         * lib/byteswap.in.h: Likewise.
62670         * lib/c-stack.c: Likewise.
62671         * lib/c-stack.h: Likewise.
62672         * lib/c-strcasestr.c: Likewise.
62673         * lib/c-strcasestr.h: Likewise.
62674         * lib/c-strstr.c: Likewise.
62675         * lib/c-strstr.h: Likewise.
62676         * lib/c-strtod.c: Likewise.
62677         * lib/calloc.c: Likewise.
62678         * lib/canon-host.c: Likewise.
62679         * lib/canon-host.h: Likewise.
62680         * lib/canonicalize-lgpl.c: Likewise.
62681         * lib/canonicalize.c: Likewise.
62682         * lib/canonicalize.h: Likewise.
62683         * lib/ceil.c: Likewise.
62684         * lib/ceilf.c: Likewise.
62685         * lib/ceill.c: Likewise.
62686         * lib/chdir-long.c: Likewise.
62687         * lib/chdir-long.h: Likewise.
62688         * lib/chdir-safer.c: Likewise.
62689         * lib/chdir-safer.h: Likewise.
62690         * lib/chown.c: Likewise.
62691         * lib/classpath.c: Likewise.
62692         * lib/classpath.h: Likewise.
62693         * lib/clean-temp.c: Likewise.
62694         * lib/clean-temp.h: Likewise.
62695         * lib/cloexec.c: Likewise.
62696         * lib/close-stream.c: Likewise.
62697         * lib/closein.c: Likewise.
62698         * lib/closein.h: Likewise.
62699         * lib/closeout.c: Likewise.
62700         * lib/closeout.h: Likewise.
62701         * lib/concat-filename.c: Likewise.
62702         * lib/copy-file.c: Likewise.
62703         * lib/copy-file.h: Likewise.
62704         * lib/count-one-bits.h: Likewise.
62705         * lib/crc.c: Likewise.
62706         * lib/crc.h: Likewise.
62707         * lib/creat-safer.c: Likewise.
62708         * lib/csharpcomp.c: Likewise.
62709         * lib/csharpcomp.h: Likewise.
62710         * lib/csharpexec.c: Likewise.
62711         * lib/csharpexec.h: Likewise.
62712         * lib/cycle-check.c: Likewise.
62713         * lib/cycle-check.h: Likewise.
62714         * lib/diacrit.c: Likewise.
62715         * lib/diacrit.h: Likewise.
62716         * lib/diffseq.h: Likewise.
62717         * lib/dirchownmod.c: Likewise.
62718         * lib/dirent.in.h: Likewise.
62719         * lib/dirfd.c: Likewise.
62720         * lib/dirfd.h: Likewise.
62721         * lib/dirname.c: Likewise.
62722         * lib/dirname.h: Likewise.
62723         * lib/dummy.c: Likewise.
62724         * lib/dup-safer.c: Likewise.
62725         * lib/dup2.c: Likewise.
62726         * lib/eealloc.h: Likewise.
62727         * lib/error.c: Likewise.
62728         * lib/error.h: Likewise.
62729         * lib/euidaccess.c: Likewise.
62730         * lib/exclude.c: Likewise.
62731         * lib/exclude.h: Likewise.
62732         * lib/execute.c: Likewise.
62733         * lib/execute.h: Likewise.
62734         * lib/exitfail.c: Likewise.
62735         * lib/exitfail.h: Likewise.
62736         * lib/expl.c: Likewise.
62737         * lib/fatal-signal.c: Likewise.
62738         * lib/fatal-signal.h: Likewise.
62739         * lib/fbufmode.c: Likewise.
62740         * lib/fbufmode.h: Likewise.
62741         * lib/fchdir.c: Likewise.
62742         * lib/fchmodat.c: Likewise.
62743         * lib/fchownat.c: Likewise.
62744         * lib/fcntl--.h: Likewise.
62745         * lib/fcntl-safer.h: Likewise.
62746         * lib/fcntl.in.h: Likewise.
62747         * lib/fd-safer.c: Likewise.
62748         * lib/fflush.c: Likewise.
62749         * lib/file-has-acl.c: Likewise.
62750         * lib/file-set.c: Likewise.
62751         * lib/file-type.c: Likewise.
62752         * lib/file-type.h: Likewise.
62753         * lib/fileblocks.c: Likewise.
62754         * lib/filemode.c: Likewise.
62755         * lib/filemode.h: Likewise.
62756         * lib/filename.h: Likewise.
62757         * lib/filenamecat.c: Likewise.
62758         * lib/filenamecat.h: Likewise.
62759         * lib/findprog.c: Likewise.
62760         * lib/findprog.h: Likewise.
62761         * lib/float.in.h: Likewise.
62762         * lib/floor.c: Likewise.
62763         * lib/floorf.c: Likewise.
62764         * lib/floorl.c: Likewise.
62765         * lib/fopen-safer.c: Likewise.
62766         * lib/fopen.c: Likewise.
62767         * lib/fpending.c: Likewise.
62768         * lib/fpending.h: Likewise.
62769         * lib/fprintf.c: Likewise.
62770         * lib/fprintftime.h: Likewise.
62771         * lib/fpucw.h: Likewise.
62772         * lib/fpurge.c: Likewise.
62773         * lib/fpurge.h: Likewise.
62774         * lib/freadable.c: Likewise.
62775         * lib/freadable.h: Likewise.
62776         * lib/freadahead.c: Likewise.
62777         * lib/freadahead.h: Likewise.
62778         * lib/freading.c: Likewise.
62779         * lib/freading.h: Likewise.
62780         * lib/free.c: Likewise.
62781         * lib/freopen.c: Likewise.
62782         * lib/frexp.c: Likewise.
62783         * lib/frexpl.c: Likewise.
62784         * lib/fseek.c: Likewise.
62785         * lib/fseterr.c: Likewise.
62786         * lib/fseterr.h: Likewise.
62787         * lib/fstatat.c: Likewise.
62788         * lib/fstrcmp.c: Likewise.
62789         * lib/fstrcmp.h: Likewise.
62790         * lib/fsusage.c: Likewise.
62791         * lib/fsusage.h: Likewise.
62792         * lib/ftell.c: Likewise.
62793         * lib/ftello.c: Likewise.
62794         * lib/fts-cycle.c: Likewise.
62795         * lib/fts.c: Likewise.
62796         * lib/fts_.h: Likewise.
62797         * lib/full-read.c: Likewise.
62798         * lib/full-read.h: Likewise.
62799         * lib/full-write.c: Likewise.
62800         * lib/full-write.h: Likewise.
62801         * lib/fwritable.c: Likewise.
62802         * lib/fwritable.h: Likewise.
62803         * lib/fwriteerror.c: Likewise.
62804         * lib/fwriteerror.h: Likewise.
62805         * lib/fwriting.c: Likewise.
62806         * lib/fwriting.h: Likewise.
62807         * lib/gcd.c: Likewise.
62808         * lib/gcd.h: Likewise.
62809         * lib/getcwd.c: Likewise.
62810         * lib/getdate.h: Likewise.
62811         * lib/getdate.y: Likewise.
62812         * lib/getdomainname.c: Likewise.
62813         * lib/getdomainname.h: Likewise.
62814         * lib/getgroups.c: Likewise.
62815         * lib/gethostname.c: Likewise.
62816         * lib/gethrxtime.c: Likewise.
62817         * lib/gethrxtime.h: Likewise.
62818         * lib/getloadavg.c: Likewise.
62819         * lib/getndelim2.c: Likewise.
62820         * lib/getndelim2.h: Likewise.
62821         * lib/getnline.c: Likewise.
62822         * lib/getnline.h: Likewise.
62823         * lib/getopt.c: Likewise.
62824         * lib/getopt.in.h: Likewise.
62825         * lib/getopt1.c: Likewise.
62826         * lib/getopt_int.h: Likewise.
62827         * lib/getpagesize.h: Likewise.
62828         * lib/getsubopt.c: Likewise.
62829         * lib/gettime.c: Likewise.
62830         * lib/getugroups.c: Likewise.
62831         * lib/getugroups.h: Likewise.
62832         * lib/getusershell.c: Likewise.
62833         * lib/gl_anyavltree_list1.h: Likewise.
62834         * lib/gl_anyavltree_list2.h: Likewise.
62835         * lib/gl_anyhash_list1.h: Likewise.
62836         * lib/gl_anyhash_list2.h: Likewise.
62837         * lib/gl_anylinked_list1.h: Likewise.
62838         * lib/gl_anylinked_list2.h: Likewise.
62839         * lib/gl_anyrbtree_list1.h: Likewise.
62840         * lib/gl_anyrbtree_list2.h: Likewise.
62841         * lib/gl_anytree_list1.h: Likewise.
62842         * lib/gl_anytree_list2.h: Likewise.
62843         * lib/gl_anytree_oset.h: Likewise.
62844         * lib/gl_anytreehash_list1.h: Likewise.
62845         * lib/gl_anytreehash_list2.h: Likewise.
62846         * lib/gl_array_list.c: Likewise.
62847         * lib/gl_array_list.h: Likewise.
62848         * lib/gl_array_oset.c: Likewise.
62849         * lib/gl_array_oset.h: Likewise.
62850         * lib/gl_avltree_list.c: Likewise.
62851         * lib/gl_avltree_list.h: Likewise.
62852         * lib/gl_avltree_oset.c: Likewise.
62853         * lib/gl_avltree_oset.h: Likewise.
62854         * lib/gl_avltreehash_list.c: Likewise.
62855         * lib/gl_avltreehash_list.h: Likewise.
62856         * lib/gl_carray_list.c: Likewise.
62857         * lib/gl_carray_list.h: Likewise.
62858         * lib/gl_linked_list.c: Likewise.
62859         * lib/gl_linked_list.h: Likewise.
62860         * lib/gl_linkedhash_list.c: Likewise.
62861         * lib/gl_linkedhash_list.h: Likewise.
62862         * lib/gl_list.c: Likewise.
62863         * lib/gl_list.h: Likewise.
62864         * lib/gl_oset.c: Likewise.
62865         * lib/gl_oset.h: Likewise.
62866         * lib/gl_rbtree_list.c: Likewise.
62867         * lib/gl_rbtree_list.h: Likewise.
62868         * lib/gl_rbtree_oset.c: Likewise.
62869         * lib/gl_rbtree_oset.h: Likewise.
62870         * lib/gl_rbtreehash_list.c: Likewise.
62871         * lib/gl_rbtreehash_list.h: Likewise.
62872         * lib/gl_sublist.c: Likewise.
62873         * lib/gl_sublist.h: Likewise.
62874         * lib/group-member.c: Likewise.
62875         * lib/group-member.h: Likewise.
62876         * lib/hard-locale.c: Likewise.
62877         * lib/hard-locale.h: Likewise.
62878         * lib/hash-pjw.c: Likewise.
62879         * lib/hash-pjw.h: Likewise.
62880         * lib/hash-triple.c: Likewise.
62881         * lib/hash.c: Likewise.
62882         * lib/hash.h: Likewise.
62883         * lib/human.c: Likewise.
62884         * lib/human.h: Likewise.
62885         * lib/i-ring.c: Likewise.
62886         * lib/i-ring.h: Likewise.
62887         * lib/idcache.c: Likewise.
62888         * lib/imaxabs.c: Likewise.
62889         * lib/imaxdiv.c: Likewise.
62890         * lib/inet_pton.c: Likewise.
62891         * lib/inet_pton.h: Likewise.
62892         * lib/intprops.h: Likewise.
62893         * lib/inttostr.c: Likewise.
62894         * lib/inttostr.h: Likewise.
62895         * lib/inttypes.in.h: Likewise.
62896         * lib/isapipe.c: Likewise.
62897         * lib/isdir.c: Likewise.
62898         * lib/isnan.c: Likewise.
62899         * lib/isnan.h: Likewise.
62900         * lib/isnanf.c: Likewise.
62901         * lib/isnanf.h: Likewise.
62902         * lib/isnanl-nolibm.h: Likewise.
62903         * lib/isnanl.c: Likewise.
62904         * lib/isnanl.h: Likewise.
62905         * lib/javacomp.c: Likewise.
62906         * lib/javacomp.h: Likewise.
62907         * lib/javaexec.c: Likewise.
62908         * lib/javaexec.h: Likewise.
62909         * lib/javaversion.c: Likewise.
62910         * lib/javaversion.h: Likewise.
62911         * lib/javaversion.java: Likewise.
62912         * lib/lbrkprop.h: Likewise.
62913         * lib/lchmod.h: Likewise.
62914         * lib/lchown.c: Likewise.
62915         * lib/ldexpl.c: Likewise.
62916         * lib/linebreak.c: Likewise.
62917         * lib/linebreak.h: Likewise.
62918         * lib/linebuffer.c: Likewise.
62919         * lib/linebuffer.h: Likewise.
62920         * lib/locale.in.h: Likewise.
62921         * lib/logl.c: Likewise.
62922         * lib/long-options.c: Likewise.
62923         * lib/long-options.h: Likewise.
62924         * lib/lstat.c: Likewise.
62925         * lib/lstat.h: Likewise.
62926         * lib/math.in.h: Likewise.
62927         * lib/mbchar.c: Likewise.
62928         * lib/mbchar.h: Likewise.
62929         * lib/mbfile.h: Likewise.
62930         * lib/mbiter.h: Likewise.
62931         * lib/mbscasecmp.c: Likewise.
62932         * lib/mbscasestr.c: Likewise.
62933         * lib/mbschr.c: Likewise.
62934         * lib/mbscspn.c: Likewise.
62935         * lib/mbslen.c: Likewise.
62936         * lib/mbsncasecmp.c: Likewise.
62937         * lib/mbsnlen.c: Likewise.
62938         * lib/mbspbrk.c: Likewise.
62939         * lib/mbspcasecmp.c: Likewise.
62940         * lib/mbsrchr.c: Likewise.
62941         * lib/mbssep.c: Likewise.
62942         * lib/mbsspn.c: Likewise.
62943         * lib/mbsstr.c: Likewise.
62944         * lib/mbstok_r.c: Likewise.
62945         * lib/mbswidth.c: Likewise.
62946         * lib/mbswidth.h: Likewise.
62947         * lib/mbuiter.h: Likewise.
62948         * lib/memcasecmp.c: Likewise.
62949         * lib/memcasecmp.h: Likewise.
62950         * lib/memchr.c: Likewise.
62951         * lib/memcmp.c: Likewise.
62952         * lib/memcoll.c: Likewise.
62953         * lib/memcoll.h: Likewise.
62954         * lib/memcpy.c: Likewise.
62955         * lib/memrchr.c: Likewise.
62956         * lib/mkancesdirs.c: Likewise.
62957         * lib/mkdir-p.c: Likewise.
62958         * lib/mkdir-p.h: Likewise.
62959         * lib/mkdir.c: Likewise.
62960         * lib/mkdirat.c: Likewise.
62961         * lib/mkdtemp.c: Likewise.
62962         * lib/mkstemp-safer.c: Likewise.
62963         * lib/mkstemp.c: Likewise.
62964         * lib/modechange.c: Likewise.
62965         * lib/modechange.h: Likewise.
62966         * lib/mountlist.c: Likewise.
62967         * lib/mountlist.h: Likewise.
62968         * lib/mpsort.c: Likewise.
62969         * lib/nanosleep.c: Likewise.
62970         * lib/obstack.c: Likewise.
62971         * lib/obstack.h: Likewise.
62972         * lib/open-safer.c: Likewise.
62973         * lib/open.c: Likewise.
62974         * lib/openat-die.c: Likewise.
62975         * lib/openat-priv.h: Likewise.
62976         * lib/openat-proc.c: Likewise.
62977         * lib/openat.c: Likewise.
62978         * lib/openat.h: Likewise.
62979         * lib/pagealign_alloc.c: Likewise.
62980         * lib/pagealign_alloc.h: Likewise.
62981         * lib/physmem.c: Likewise.
62982         * lib/physmem.h: Likewise.
62983         * lib/pipe-safer.c: Likewise.
62984         * lib/pipe.c: Likewise.
62985         * lib/pipe.h: Likewise.
62986         * lib/posixtm.c: Likewise.
62987         * lib/posixtm.h: Likewise.
62988         * lib/posixver.c: Likewise.
62989         * lib/printf-frexp.c: Likewise.
62990         * lib/printf-frexp.h: Likewise.
62991         * lib/printf-frexpl.c: Likewise.
62992         * lib/printf-frexpl.h: Likewise.
62993         * lib/printf.c: Likewise.
62994         * lib/progname.c: Likewise.
62995         * lib/progname.h: Likewise.
62996         * lib/progreloc.c: Likewise.
62997         * lib/putenv.c: Likewise.
62998         * lib/quote.c: Likewise.
62999         * lib/quote.h: Likewise.
63000         * lib/quotearg.c: Likewise.
63001         * lib/quotearg.h: Likewise.
63002         * lib/raise.c: Likewise.
63003         * lib/readline.c: Likewise.
63004         * lib/readline.h: Likewise.
63005         * lib/readlink.c: Likewise.
63006         * lib/readtokens.c: Likewise.
63007         * lib/readtokens.h: Likewise.
63008         * lib/readtokens0.c: Likewise.
63009         * lib/readtokens0.h: Likewise.
63010         * lib/readutmp.c: Likewise.
63011         * lib/readutmp.h: Likewise.
63012         * lib/realloc.c: Likewise.
63013         * lib/relocwrapper.c: Likewise.
63014         * lib/rename-dest-slash.c: Likewise.
63015         * lib/rename.c: Likewise.
63016         * lib/rmdir.c: Likewise.
63017         * lib/rpmatch.c: Likewise.
63018         * lib/safe-read.c: Likewise.
63019         * lib/safe-read.h: Likewise.
63020         * lib/safe-write.c: Likewise.
63021         * lib/safe-write.h: Likewise.
63022         * lib/same-inode.h: Likewise.
63023         * lib/same.c: Likewise.
63024         * lib/same.h: Likewise.
63025         * lib/save-cwd.c: Likewise.
63026         * lib/save-cwd.h: Likewise.
63027         * lib/savedir.c: Likewise.
63028         * lib/savedir.h: Likewise.
63029         * lib/savewd.c: Likewise.
63030         * lib/savewd.h: Likewise.
63031         * lib/search.in.h: Likewise.
63032         * lib/setenv.c: Likewise.
63033         * lib/setenv.h: Likewise.
63034         * lib/settime.c: Likewise.
63035         * lib/sh-quote.c: Likewise.
63036         * lib/sh-quote.h: Likewise.
63037         * lib/sig2str.c: Likewise.
63038         * lib/sig2str.h: Likewise.
63039         * lib/signal.in.h: Likewise.
63040         * lib/signbitd.c: Likewise.
63041         * lib/signbitf.c: Likewise.
63042         * lib/signbitl.c: Likewise.
63043         * lib/sigprocmask.c: Likewise.
63044         * lib/sincosl.c: Likewise.
63045         * lib/sleep.c: Likewise.
63046         * lib/sprintf.c: Likewise.
63047         * lib/sqrtl.c: Likewise.
63048         * lib/stat-time.h: Likewise.
63049         * lib/stdio--.h: Likewise.
63050         * lib/stdio-safer.h: Likewise.
63051         * lib/stdlib--.h: Likewise.
63052         * lib/stdlib-safer.h: Likewise.
63053         * lib/stdlib.in.h: Likewise.
63054         * lib/stpcpy.c: Likewise.
63055         * lib/stpncpy.c: Likewise.
63056         * lib/strchrnul.c: Likewise.
63057         * lib/strcspn.c: Likewise.
63058         * lib/strerror.c: Likewise.
63059         * lib/strftime.c: Likewise.
63060         * lib/strftime.h: Likewise.
63061         * lib/striconveh.c: Likewise.
63062         * lib/striconveh.h: Likewise.
63063         * lib/striconveha.c: Likewise.
63064         * lib/striconveha.h: Likewise.
63065         * lib/stripslash.c: Likewise.
63066         * lib/strnlen1.c: Likewise.
63067         * lib/strnlen1.h: Likewise.
63068         * lib/strtod.c: Likewise.
63069         * lib/strtoimax.c: Likewise.
63070         * lib/strtok_r.c: Likewise.
63071         * lib/strtol.c: Likewise.
63072         * lib/strtoll.c: Likewise.
63073         * lib/strtoul.c: Likewise.
63074         * lib/strtoull.c: Likewise.
63075         * lib/sysexits.in.h: Likewise.
63076         * lib/tempname.c: Likewise.
63077         * lib/tempname.h: Likewise.
63078         * lib/timespec.h: Likewise.
63079         * lib/tls.c: Likewise.
63080         * lib/tls.h: Likewise.
63081         * lib/tmpdir.c: Likewise.
63082         * lib/tmpdir.h: Likewise.
63083         * lib/tmpfile-safer.c: Likewise.
63084         * lib/tmpfile.c: Likewise.
63085         * lib/trigl.c: Likewise.
63086         * lib/trigl.h: Likewise.
63087         * lib/trim.c: Likewise.
63088         * lib/trim.h: Likewise.
63089         * lib/trunc.c: Likewise.
63090         * lib/truncf.c: Likewise.
63091         * lib/truncl.c: Likewise.
63092         * lib/tsearch.c: Likewise.
63093         * lib/unicodeio.c: Likewise.
63094         * lib/unicodeio.h: Likewise.
63095         * lib/unistd--.h: Likewise.
63096         * lib/unistd-safer.h: Likewise.
63097         * lib/unistdio/ulc-fprintf.c: Likewise.
63098         * lib/unistdio/ulc-vfprintf.c: Likewise.
63099         * lib/unlinkdir.c: Likewise.
63100         * lib/unlinkdir.h: Likewise.
63101         * lib/unlocked-io.h: Likewise.
63102         * lib/unsetenv.c: Likewise.
63103         * lib/userspec.c: Likewise.
63104         * lib/utime.c: Likewise.
63105         * lib/utimecmp.c: Likewise.
63106         * lib/utimecmp.h: Likewise.
63107         * lib/utimens.c: Likewise.
63108         * lib/verify.h: Likewise.
63109         * lib/verror.c: Likewise.
63110         * lib/verror.h: Likewise.
63111         * lib/version-etc-fsf.c: Likewise.
63112         * lib/version-etc.c: Likewise.
63113         * lib/version-etc.h: Likewise.
63114         * lib/vfprintf.c: Likewise.
63115         * lib/vprintf.c: Likewise.
63116         * lib/vsprintf.c: Likewise.
63117         * lib/w32spawn.h: Likewise.
63118         * lib/wait-process.c: Likewise.
63119         * lib/wait-process.h: Likewise.
63120         * lib/wcwidth.c: Likewise.
63121         * lib/write-any-file.c: Likewise.
63122         * lib/xalloc-die.c: Likewise.
63123         * lib/xalloc.h: Likewise.
63124         * lib/xasprintf.c: Likewise.
63125         * lib/xgetcwd.c: Likewise.
63126         * lib/xgetcwd.h: Likewise.
63127         * lib/xgetdomainname.c: Likewise.
63128         * lib/xgetdomainname.h: Likewise.
63129         * lib/xgethostname.c: Likewise.
63130         * lib/xmalloc.c: Likewise.
63131         * lib/xmalloca.c: Likewise.
63132         * lib/xmalloca.h: Likewise.
63133         * lib/xmemcoll.c: Likewise.
63134         * lib/xnanosleep.c: Likewise.
63135         * lib/xreadlink.c: Likewise.
63136         * lib/xreadlink.h: Likewise.
63137         * lib/xsetenv.c: Likewise.
63138         * lib/xsetenv.h: Likewise.
63139         * lib/xstriconv.c: Likewise.
63140         * lib/xstriconv.h: Likewise.
63141         * lib/xstrndup.c: Likewise.
63142         * lib/xstrndup.h: Likewise.
63143         * lib/xstrtod.c: Likewise.
63144         * lib/xstrtod.h: Likewise.
63145         * lib/xstrtol-error.c: Likewise.
63146         * lib/xstrtol.c: Likewise.
63147         * lib/xstrtol.h: Likewise.
63148         * lib/xtime.h: Likewise.
63149         * lib/xvasprintf.c: Likewise.
63150         * lib/xvasprintf.h: Likewise.
63151         * lib/yesno.c: Likewise.
63152         * lib/yesno.h: Likewise.
63153         * posix-modules: Likewise.
63154         * tests/test-alloca-opt.c: Likewise.
63155         * tests/test-arcfour.c: Likewise.
63156         * tests/test-arctwo.c: Likewise.
63157         * tests/test-argmatch.c: Likewise.
63158         * tests/test-argp-2.sh: Likewise.
63159         * tests/test-argp.c: Likewise.
63160         * tests/test-arpa_inet.c: Likewise.
63161         * tests/test-array_list.c: Likewise.
63162         * tests/test-array_oset.c: Likewise.
63163         * tests/test-atexit.c: Likewise.
63164         * tests/test-avltree_list.c: Likewise.
63165         * tests/test-avltree_oset.c: Likewise.
63166         * tests/test-avltreehash_list.c: Likewise.
63167         * tests/test-base64.c: Likewise.
63168         * tests/test-binary-io.c: Likewise.
63169         * tests/test-byteswap.c: Likewise.
63170         * tests/test-c-ctype.c: Likewise.
63171         * tests/test-c-strcasecmp.c: Likewise.
63172         * tests/test-c-strcasestr.c: Likewise.
63173         * tests/test-c-strncasecmp.c: Likewise.
63174         * tests/test-c-strstr.c: Likewise.
63175         * tests/test-canonicalize-lgpl.c: Likewise.
63176         * tests/test-canonicalize.c: Likewise.
63177         * tests/test-carray_list.c: Likewise.
63178         * tests/test-ceilf.c: Likewise.
63179         * tests/test-ceill.c: Likewise.
63180         * tests/test-count-one-bits.c: Likewise.
63181         * tests/test-crc.c: Likewise.
63182         * tests/test-dirname.c: Likewise.
63183         * tests/test-fbufmode.c: Likewise.
63184         * tests/test-fcntl.c: Likewise.
63185         * tests/test-fflush.c: Likewise.
63186         * tests/test-floorf.c: Likewise.
63187         * tests/test-floorl.c: Likewise.
63188         * tests/test-fopen.c: Likewise.
63189         * tests/test-fprintf-posix.c: Likewise.
63190         * tests/test-fprintf-posix.h: Likewise.
63191         * tests/test-fpurge.c: Likewise.
63192         * tests/test-freadable.c: Likewise.
63193         * tests/test-freadahead.c: Likewise.
63194         * tests/test-freading.c: Likewise.
63195         * tests/test-freopen.c: Likewise.
63196         * tests/test-frexp.c: Likewise.
63197         * tests/test-frexpl.c: Likewise.
63198         * tests/test-fseek.c: Likewise.
63199         * tests/test-fseeko.c: Likewise.
63200         * tests/test-fseterr.c: Likewise.
63201         * tests/test-fstrcmp.c: Likewise.
63202         * tests/test-ftell.c: Likewise.
63203         * tests/test-ftello.c: Likewise.
63204         * tests/test-fwritable.c: Likewise.
63205         * tests/test-fwriting.c: Likewise.
63206         * tests/test-getaddrinfo.c: Likewise.
63207         * tests/test-getpass.c: Likewise.
63208         * tests/test-gettimeofday.c: Likewise.
63209         * tests/test-hmac-md5.c: Likewise.
63210         * tests/test-hmac-sha1.c: Likewise.
63211         * tests/test-iconv.c: Likewise.
63212         * tests/test-iconvme.c: Likewise.
63213         * tests/test-inttypes.c: Likewise.
63214         * tests/test-isnan.c: Likewise.
63215         * tests/test-isnanf.c: Likewise.
63216         * tests/test-isnanl-nolibm.c: Likewise.
63217         * tests/test-isnanl.c: Likewise.
63218         * tests/test-isnanl.h: Likewise.
63219         * tests/test-ldexpl.c: Likewise.
63220         * tests/test-linked_list.c: Likewise.
63221         * tests/test-linkedhash_list.c: Likewise.
63222         * tests/test-locale.c: Likewise.
63223         * tests/test-localename.c: Likewise.
63224         * tests/test-lock.c: Likewise.
63225         * tests/test-lseek.c: Likewise.
63226         * tests/test-malloca.c: Likewise.
63227         * tests/test-math.c: Likewise.
63228         * tests/test-mbscasecmp.c: Likewise.
63229         * tests/test-mbscasestr1.c: Likewise.
63230         * tests/test-mbscasestr2.c: Likewise.
63231         * tests/test-mbscasestr3.c: Likewise.
63232         * tests/test-mbscasestr4.c: Likewise.
63233         * tests/test-mbschr.c: Likewise.
63234         * tests/test-mbscspn.c: Likewise.
63235         * tests/test-mbsncasecmp.c: Likewise.
63236         * tests/test-mbspbrk.c: Likewise.
63237         * tests/test-mbspcasecmp.c: Likewise.
63238         * tests/test-mbsrchr.c: Likewise.
63239         * tests/test-mbsspn.c: Likewise.
63240         * tests/test-mbsstr1.c: Likewise.
63241         * tests/test-mbsstr2.c: Likewise.
63242         * tests/test-mbsstr3.c: Likewise.
63243         * tests/test-md5.c: Likewise.
63244         * tests/test-memmem.c: Likewise.
63245         * tests/test-netinet_in.c: Likewise.
63246         * tests/test-open.c: Likewise.
63247         * tests/test-printf-frexp.c: Likewise.
63248         * tests/test-printf-frexpl.c: Likewise.
63249         * tests/test-printf-posix.c: Likewise.
63250         * tests/test-printf-posix.h: Likewise.
63251         * tests/test-rbtree_list.c: Likewise.
63252         * tests/test-rbtree_oset.c: Likewise.
63253         * tests/test-rbtreehash_list.c: Likewise.
63254         * tests/test-read-file.c: Likewise.
63255         * tests/test-rijndael.c: Likewise.
63256         * tests/test-search.c: Likewise.
63257         * tests/test-signbit.c: Likewise.
63258         * tests/test-sleep.c: Likewise.
63259         * tests/test-snprintf-posix.c: Likewise.
63260         * tests/test-snprintf-posix.h: Likewise.
63261         * tests/test-snprintf.c: Likewise.
63262         * tests/test-sprintf-posix.c: Likewise.
63263         * tests/test-sprintf-posix.h: Likewise.
63264         * tests/test-stat-time.c: Likewise.
63265         * tests/test-stdbool.c: Likewise.
63266         * tests/test-stdint.c: Likewise.
63267         * tests/test-stdio.c: Likewise.
63268         * tests/test-stdlib.c: Likewise.
63269         * tests/test-stpncpy.c: Likewise.
63270         * tests/test-strcasestr.c: Likewise.
63271         * tests/test-striconv.c: Likewise.
63272         * tests/test-striconveh.c: Likewise.
63273         * tests/test-striconveha.c: Likewise.
63274         * tests/test-string.c: Likewise.
63275         * tests/test-sys_select.c: Likewise.
63276         * tests/test-sys_socket.c: Likewise.
63277         * tests/test-sys_stat.c: Likewise.
63278         * tests/test-sys_time.c: Likewise.
63279         * tests/test-sysexits.c: Likewise.
63280         * tests/test-time.c: Likewise.
63281         * tests/test-tls.c: Likewise.
63282         * tests/test-trunc.c: Likewise.
63283         * tests/test-truncf.c: Likewise.
63284         * tests/test-truncl.c: Likewise.
63285         * tests/test-unistd.c: Likewise.
63286         * tests/test-vasnprintf-posix.c: Likewise.
63287         * tests/test-vasnprintf-posix2.c: Likewise.
63288         * tests/test-vasnprintf.c: Likewise.
63289         * tests/test-vasprintf-posix.c: Likewise.
63290         * tests/test-vasprintf.c: Likewise.
63291         * tests/test-verify.c: Likewise.
63292         * tests/test-vfprintf-posix.c: Likewise.
63293         * tests/test-vprintf-posix.c: Likewise.
63294         * tests/test-vsnprintf-posix.c: Likewise.
63295         * tests/test-vsnprintf.c: Likewise.
63296         * tests/test-vsprintf-posix.c: Likewise.
63297         * tests/test-wchar.c: Likewise.
63298         * tests/test-wctype.c: Likewise.
63299         * tests/test-wcwidth.c: Likewise.
63300         * tests/test-xstrtol.c: Likewise.
63301         * tests/test-xvasprintf.c: Likewise.
63302         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
63303         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
63304         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
63305         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
63306         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
63307         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
63308         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
63309         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
63310         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
63311         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
63312         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
63313         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
63314         * tests/uniname/test-uninames.c: Likewise.
63315         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
63316         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
63317         * tests/unistdio/test-u16-printf1.h: Likewise.
63318         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
63319         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
63320         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
63321         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
63322         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
63323         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
63324         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
63325         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
63326         * tests/unistdio/test-u32-printf1.h: Likewise.
63327         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
63328         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
63329         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
63330         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
63331         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
63332         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
63333         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
63334         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
63335         * tests/unistdio/test-u8-printf1.h: Likewise.
63336         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
63337         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
63338         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
63339         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
63340         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
63341         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
63342         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
63343         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
63344         * tests/unistdio/test-ulc-printf1.h: Likewise.
63345         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
63346         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
63347         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
63348         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
63349         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
63350         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
63351         * tests/uniwidth/test-u16-strwidth.c: Likewise.
63352         * tests/uniwidth/test-u16-width.c: Likewise.
63353         * tests/uniwidth/test-u32-strwidth.c: Likewise.
63354         * tests/uniwidth/test-u32-width.c: Likewise.
63355         * tests/uniwidth/test-u8-strwidth.c: Likewise.
63356         * tests/uniwidth/test-u8-width.c: Likewise.
63357         * tests/uniwidth/test-uc_width.c: Likewise.
63358         * config/srclist-update: Likewise.
63359         (fixlicense): Update to GPLv3+.
63360
63361         Change copyright notice from LGPLv2.1+ to LGPLv3+.
63362         * tests/test-tsearch.c: Change copyright notice.
63363
63364         Change copyright notice from LGPLv2.0+ to LGPLv3+.
63365         * lib/c-strcaseeq.h: Change copyright notice.
63366         * lib/streq.h: Likewise.
63367         * lib/uniconv.h: Likewise.
63368         * lib/uniconv/u-conv-from-enc.h: Likewise.
63369         * lib/uniconv/u-conv-to-enc.h: Likewise.
63370         * lib/uniconv/u-strconv-from-enc.h: Likewise.
63371         * lib/uniconv/u-strconv-to-enc.h: Likewise.
63372         * lib/uniconv/u16-conv-from-enc.c: Likewise.
63373         * lib/uniconv/u16-conv-to-enc.c: Likewise.
63374         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
63375         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
63376         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
63377         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
63378         * lib/uniconv/u32-conv-from-enc.c: Likewise.
63379         * lib/uniconv/u32-conv-to-enc.c: Likewise.
63380         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
63381         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
63382         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
63383         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
63384         * lib/uniconv/u8-conv-from-enc.c: Likewise.
63385         * lib/uniconv/u8-conv-to-enc.c: Likewise.
63386         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
63387         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
63388         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
63389         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
63390         * lib/uniname.h: Likewise.
63391         * lib/uniname/uniname.c: Likewise.
63392         * lib/unistdio.h: Likewise.
63393         * lib/unistdio/u-asnprintf.h: Likewise.
63394         * lib/unistdio/u-asprintf.h: Likewise.
63395         * lib/unistdio/u-printf-args.c: Likewise.
63396         * lib/unistdio/u-printf-args.h: Likewise.
63397         * lib/unistdio/u-printf-parse.h: Likewise.
63398         * lib/unistdio/u-snprintf.h: Likewise.
63399         * lib/unistdio/u-sprintf.h: Likewise.
63400         * lib/unistdio/u-vasprintf.h: Likewise.
63401         * lib/unistdio/u-vsnprintf.h: Likewise.
63402         * lib/unistdio/u-vsprintf.h: Likewise.
63403         * lib/unistdio/u16-asnprintf.c: Likewise.
63404         * lib/unistdio/u16-asprintf.c: Likewise.
63405         * lib/unistdio/u16-printf-parse.c: Likewise.
63406         * lib/unistdio/u16-snprintf.c: Likewise.
63407         * lib/unistdio/u16-sprintf.c: Likewise.
63408         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
63409         * lib/unistdio/u16-u16-asprintf.c: Likewise.
63410         * lib/unistdio/u16-u16-snprintf.c: Likewise.
63411         * lib/unistdio/u16-u16-sprintf.c: Likewise.
63412         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
63413         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
63414         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
63415         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
63416         * lib/unistdio/u16-vasnprintf.c: Likewise.
63417         * lib/unistdio/u16-vasprintf.c: Likewise.
63418         * lib/unistdio/u16-vsnprintf.c: Likewise.
63419         * lib/unistdio/u16-vsprintf.c: Likewise.
63420         * lib/unistdio/u32-asnprintf.c: Likewise.
63421         * lib/unistdio/u32-asprintf.c: Likewise.
63422         * lib/unistdio/u32-printf-parse.c: Likewise.
63423         * lib/unistdio/u32-snprintf.c: Likewise.
63424         * lib/unistdio/u32-sprintf.c: Likewise.
63425         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
63426         * lib/unistdio/u32-u32-asprintf.c: Likewise.
63427         * lib/unistdio/u32-u32-snprintf.c: Likewise.
63428         * lib/unistdio/u32-u32-sprintf.c: Likewise.
63429         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
63430         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
63431         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
63432         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
63433         * lib/unistdio/u32-vasnprintf.c: Likewise.
63434         * lib/unistdio/u32-vasprintf.c: Likewise.
63435         * lib/unistdio/u32-vsnprintf.c: Likewise.
63436         * lib/unistdio/u32-vsprintf.c: Likewise.
63437         * lib/unistdio/u8-asnprintf.c: Likewise.
63438         * lib/unistdio/u8-asprintf.c: Likewise.
63439         * lib/unistdio/u8-printf-parse.c: Likewise.
63440         * lib/unistdio/u8-snprintf.c: Likewise.
63441         * lib/unistdio/u8-sprintf.c: Likewise.
63442         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
63443         * lib/unistdio/u8-u8-asprintf.c: Likewise.
63444         * lib/unistdio/u8-u8-snprintf.c: Likewise.
63445         * lib/unistdio/u8-u8-sprintf.c: Likewise.
63446         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
63447         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
63448         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
63449         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
63450         * lib/unistdio/u8-vasnprintf.c: Likewise.
63451         * lib/unistdio/u8-vasprintf.c: Likewise.
63452         * lib/unistdio/u8-vsnprintf.c: Likewise.
63453         * lib/unistdio/u8-vsprintf.c: Likewise.
63454         * lib/unistdio/ulc-asnprintf.c: Likewise.
63455         * lib/unistdio/ulc-asprintf.c: Likewise.
63456         * lib/unistdio/ulc-printf-parse.c: Likewise.
63457         * lib/unistdio/ulc-snprintf.c: Likewise.
63458         * lib/unistdio/ulc-sprintf.c: Likewise.
63459         * lib/unistdio/ulc-vasnprintf.c: Likewise.
63460         * lib/unistdio/ulc-vasprintf.c: Likewise.
63461         * lib/unistdio/ulc-vsnprintf.c: Likewise.
63462         * lib/unistdio/ulc-vsprintf.c: Likewise.
63463         * lib/unistr.h: Likewise.
63464         * lib/unistr/u-cpy-alloc.h: Likewise.
63465         * lib/unistr/u-cpy.h: Likewise.
63466         * lib/unistr/u-endswith.h: Likewise.
63467         * lib/unistr/u-move.h: Likewise.
63468         * lib/unistr/u-set.h: Likewise.
63469         * lib/unistr/u-startswith.h: Likewise.
63470         * lib/unistr/u-stpcpy.h: Likewise.
63471         * lib/unistr/u-stpncpy.h: Likewise.
63472         * lib/unistr/u-strcat.h: Likewise.
63473         * lib/unistr/u-strcpy.h: Likewise.
63474         * lib/unistr/u-strcspn.h: Likewise.
63475         * lib/unistr/u-strdup.h: Likewise.
63476         * lib/unistr/u-strlen.h: Likewise.
63477         * lib/unistr/u-strncat.h: Likewise.
63478         * lib/unistr/u-strncpy.h: Likewise.
63479         * lib/unistr/u-strnlen.h: Likewise.
63480         * lib/unistr/u-strpbrk.h: Likewise.
63481         * lib/unistr/u-strspn.h: Likewise.
63482         * lib/unistr/u-strstr.h: Likewise.
63483         * lib/unistr/u-strtok.h: Likewise.
63484         * lib/unistr/u16-check.c: Likewise.
63485         * lib/unistr/u16-chr.c: Likewise.
63486         * lib/unistr/u16-cmp.c: Likewise.
63487         * lib/unistr/u16-cpy-alloc.c: Likewise.
63488         * lib/unistr/u16-cpy.c: Likewise.
63489         * lib/unistr/u16-endswith.c: Likewise.
63490         * lib/unistr/u16-mblen.c: Likewise.
63491         * lib/unistr/u16-mbsnlen.c: Likewise.
63492         * lib/unistr/u16-mbtouc-aux.c: Likewise.
63493         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
63494         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
63495         * lib/unistr/u16-mbtouc.c: Likewise.
63496         * lib/unistr/u16-mbtoucr.c: Likewise.
63497         * lib/unistr/u16-move.c: Likewise.
63498         * lib/unistr/u16-next.c: Likewise.
63499         * lib/unistr/u16-prev.c: Likewise.
63500         * lib/unistr/u16-set.c: Likewise.
63501         * lib/unistr/u16-startswith.c: Likewise.
63502         * lib/unistr/u16-stpcpy.c: Likewise.
63503         * lib/unistr/u16-stpncpy.c: Likewise.
63504         * lib/unistr/u16-strcat.c: Likewise.
63505         * lib/unistr/u16-strchr.c: Likewise.
63506         * lib/unistr/u16-strcmp.c: Likewise.
63507         * lib/unistr/u16-strcpy.c: Likewise.
63508         * lib/unistr/u16-strcspn.c: Likewise.
63509         * lib/unistr/u16-strdup.c: Likewise.
63510         * lib/unistr/u16-strlen.c: Likewise.
63511         * lib/unistr/u16-strmblen.c: Likewise.
63512         * lib/unistr/u16-strmbtouc.c: Likewise.
63513         * lib/unistr/u16-strncat.c: Likewise.
63514         * lib/unistr/u16-strncmp.c: Likewise.
63515         * lib/unistr/u16-strncpy.c: Likewise.
63516         * lib/unistr/u16-strnlen.c: Likewise.
63517         * lib/unistr/u16-strpbrk.c: Likewise.
63518         * lib/unistr/u16-strrchr.c: Likewise.
63519         * lib/unistr/u16-strspn.c: Likewise.
63520         * lib/unistr/u16-strstr.c: Likewise.
63521         * lib/unistr/u16-strtok.c: Likewise.
63522         * lib/unistr/u16-to-u32.c: Likewise.
63523         * lib/unistr/u16-to-u8.c: Likewise.
63524         * lib/unistr/u16-uctomb-aux.c: Likewise.
63525         * lib/unistr/u16-uctomb.c: Likewise.
63526         * lib/unistr/u32-check.c: Likewise.
63527         * lib/unistr/u32-chr.c: Likewise.
63528         * lib/unistr/u32-cmp.c: Likewise.
63529         * lib/unistr/u32-cpy-alloc.c: Likewise.
63530         * lib/unistr/u32-cpy.c: Likewise.
63531         * lib/unistr/u32-endswith.c: Likewise.
63532         * lib/unistr/u32-mblen.c: Likewise.
63533         * lib/unistr/u32-mbsnlen.c: Likewise.
63534         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
63535         * lib/unistr/u32-mbtouc.c: Likewise.
63536         * lib/unistr/u32-mbtoucr.c: Likewise.
63537         * lib/unistr/u32-move.c: Likewise.
63538         * lib/unistr/u32-next.c: Likewise.
63539         * lib/unistr/u32-prev.c: Likewise.
63540         * lib/unistr/u32-set.c: Likewise.
63541         * lib/unistr/u32-startswith.c: Likewise.
63542         * lib/unistr/u32-stpcpy.c: Likewise.
63543         * lib/unistr/u32-stpncpy.c: Likewise.
63544         * lib/unistr/u32-strcat.c: Likewise.
63545         * lib/unistr/u32-strchr.c: Likewise.
63546         * lib/unistr/u32-strcmp.c: Likewise.
63547         * lib/unistr/u32-strcpy.c: Likewise.
63548         * lib/unistr/u32-strcspn.c: Likewise.
63549         * lib/unistr/u32-strdup.c: Likewise.
63550         * lib/unistr/u32-strlen.c: Likewise.
63551         * lib/unistr/u32-strmblen.c: Likewise.
63552         * lib/unistr/u32-strmbtouc.c: Likewise.
63553         * lib/unistr/u32-strncat.c: Likewise.
63554         * lib/unistr/u32-strncmp.c: Likewise.
63555         * lib/unistr/u32-strncpy.c: Likewise.
63556         * lib/unistr/u32-strnlen.c: Likewise.
63557         * lib/unistr/u32-strpbrk.c: Likewise.
63558         * lib/unistr/u32-strrchr.c: Likewise.
63559         * lib/unistr/u32-strspn.c: Likewise.
63560         * lib/unistr/u32-strstr.c: Likewise.
63561         * lib/unistr/u32-strtok.c: Likewise.
63562         * lib/unistr/u32-to-u16.c: Likewise.
63563         * lib/unistr/u32-to-u8.c: Likewise.
63564         * lib/unistr/u32-uctomb.c: Likewise.
63565         * lib/unistr/u8-check.c: Likewise.
63566         * lib/unistr/u8-chr.c: Likewise.
63567         * lib/unistr/u8-cmp.c: Likewise.
63568         * lib/unistr/u8-cpy-alloc.c: Likewise.
63569         * lib/unistr/u8-cpy.c: Likewise.
63570         * lib/unistr/u8-endswith.c: Likewise.
63571         * lib/unistr/u8-mblen.c: Likewise.
63572         * lib/unistr/u8-mbsnlen.c: Likewise.
63573         * lib/unistr/u8-mbtouc-aux.c: Likewise.
63574         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
63575         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
63576         * lib/unistr/u8-mbtouc.c: Likewise.
63577         * lib/unistr/u8-mbtoucr.c: Likewise.
63578         * lib/unistr/u8-move.c: Likewise.
63579         * lib/unistr/u8-next.c: Likewise.
63580         * lib/unistr/u8-prev.c: Likewise.
63581         * lib/unistr/u8-set.c: Likewise.
63582         * lib/unistr/u8-startswith.c: Likewise.
63583         * lib/unistr/u8-stpcpy.c: Likewise.
63584         * lib/unistr/u8-stpncpy.c: Likewise.
63585         * lib/unistr/u8-strcat.c: Likewise.
63586         * lib/unistr/u8-strchr.c: Likewise.
63587         * lib/unistr/u8-strcmp.c: Likewise.
63588         * lib/unistr/u8-strcpy.c: Likewise.
63589         * lib/unistr/u8-strcspn.c: Likewise.
63590         * lib/unistr/u8-strdup.c: Likewise.
63591         * lib/unistr/u8-strlen.c: Likewise.
63592         * lib/unistr/u8-strmblen.c: Likewise.
63593         * lib/unistr/u8-strmbtouc.c: Likewise.
63594         * lib/unistr/u8-strncat.c: Likewise.
63595         * lib/unistr/u8-strncmp.c: Likewise.
63596         * lib/unistr/u8-strncpy.c: Likewise.
63597         * lib/unistr/u8-strnlen.c: Likewise.
63598         * lib/unistr/u8-strpbrk.c: Likewise.
63599         * lib/unistr/u8-strrchr.c: Likewise.
63600         * lib/unistr/u8-strspn.c: Likewise.
63601         * lib/unistr/u8-strstr.c: Likewise.
63602         * lib/unistr/u8-strtok.c: Likewise.
63603         * lib/unistr/u8-to-u16.c: Likewise.
63604         * lib/unistr/u8-to-u32.c: Likewise.
63605         * lib/unistr/u8-uctomb-aux.c: Likewise.
63606         * lib/unistr/u8-uctomb.c: Likewise.
63607         * lib/unitypes.h: Likewise.
63608         * lib/uniwidth.h: Likewise.
63609         * lib/uniwidth/cjk.h: Likewise.
63610         * lib/uniwidth/u16-strwidth.c: Likewise.
63611         * lib/uniwidth/u16-width.c: Likewise.
63612         * lib/uniwidth/u32-strwidth.c: Likewise.
63613         * lib/uniwidth/u32-width.c: Likewise.
63614         * lib/uniwidth/u8-strwidth.c: Likewise.
63615         * lib/uniwidth/u8-width.c: Likewise.
63616         * lib/uniwidth/width.c: Likewise.
63617
63618 2007-10-07  Bruno Haible  <bruno@clisp.org>
63619
63620         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
63621         The file is still under LGPL (see modules/inttypes).
63622
63623 2007-10-06  Bruno Haible  <bruno@clisp.org>
63624
63625         * modules/trunc (Dependencies): Add 'extensions'.
63626         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
63627         Reported by Ben Pfaff <blp@gnu.org>.
63628
63629 2007-10-06  Bruno Haible  <bruno@clisp.org>
63630
63631         * modules/freopen-tests: New file.
63632         * tests/test-freopen.c: New file.
63633
63634         * modules/fopen-tests: New file.
63635         * tests/test-fopen.c: New file.
63636
63637         * modules/fopen: New file.
63638         * lib/fopen.c: New file.
63639         * m4/fopen.m4: New file.
63640         * modules/freopen: New file.
63641         * lib/freopen.c: New file.
63642         * m4/freopen.m4: New file.
63643         * lib/stdio.in.h (fopen, freopen): New declarations.
63644         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
63645         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63646         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
63647         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63648         * doc/functions/fopen.texi: Mention the 'fopen' module.
63649         * doc/functions/freopen.texi: Mention the 'freopen' module.
63650
63651 2007-10-06  Bruno Haible  <bruno@clisp.org>
63652
63653         * modules/open-tests: New file.
63654         * tests/test-open.c: New file.
63655
63656         * modules/open: New file.
63657         * lib/open.c: New file.
63658         * m4/open.m4: New file.
63659         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
63660         lib/open.c does.
63661         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
63662         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
63663         macros.
63664         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
63665         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
63666         REPLACE_OPEN.
63667         * doc/functions/open.texi: Mention the 'open' module.
63668
63669 2007-10-04  Bruno Haible  <bruno@clisp.org>
63670
63671         * modules/ceill-tests: New file.
63672         * tests/test-ceill.c: New file.
63673
63674         * modules/ceill: New file.
63675         * lib/ceill.c: Replace entire file.
63676         * m4/ceill.m4: New file.
63677         * lib/math.in.h (ceill): Replace declaration.
63678         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
63679         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
63680         * doc/functions/ceill.texi: Mention the 'ceill' module.
63681         * modules/mathl (Files): Remove lib/ceill.c.
63682         (Depends-on): Add ceill.
63683
63684 2007-10-04  Bruno Haible  <bruno@clisp.org>
63685
63686         * modules/ceilf-tests: New file.
63687         * tests/test-ceilf.c: New file.
63688
63689         * modules/ceilf: New file.
63690         * lib/ceil.c: New file.
63691         * lib/ceilf.c: New file.
63692         * m4/ceilf.m4: New file.
63693         * lib/math.in.h (ceilf): New declaration.
63694         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
63695         HAVE_DECL_CEILF.
63696         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
63697         HAVE_DECL_CEILF.
63698         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
63699
63700 2007-10-04  Bruno Haible  <bruno@clisp.org>
63701
63702         * modules/floorl-tests: New file.
63703         * tests/test-floorl.c: New file.
63704
63705         * modules/floorl: New file.
63706         * lib/floorl.c: Replace entire file.
63707         * m4/floorl.m4: New file.
63708         * lib/math.in.h (floorl): Replace declaration.
63709         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
63710         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
63711         * doc/functions/floorl.texi: Mention the 'floorl' module.
63712         * modules/mathl (Files): Remove lib/floorl.c.
63713         (Depends-on): Add floorl.
63714
63715 2007-10-04  Bruno Haible  <bruno@clisp.org>
63716
63717         * modules/floorf-tests: New file.
63718         * tests/test-floorf.c: New file.
63719
63720         * modules/floorf: New file.
63721         * lib/floor.c: New file.
63722         * lib/floorf.c: New file.
63723         * m4/floorf.m4: New file.
63724         * lib/math.in.h (floorf): New declaration.
63725         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
63726         HAVE_DECL_FLOORF.
63727         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
63728         HAVE_DECL_FLOORF.
63729         * doc/functions/floorf.texi: Mention the 'floorf' module.
63730
63731 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
63732             Bruno Haible  <bruno@clisp.org>
63733
63734         Advertise for the Git server instead of the CVS server.
63735         * doc/gnulib-intro.texi (Steady Development): Mention the Git
63736         repository instead of the CVS one.
63737         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
63738         about all VCS systems generically.
63739         * doc/gnulib.texi (Introduction): Capitalize `Git'.
63740
63741 2007-10-04  Bruno Haible  <bruno@clisp.org>
63742
63743         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
63744         means.
63745         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
63746
63747 2007-10-04  Bruno Haible  <bruno@clisp.org>
63748
63749         * modules/truncl-tests: New file.
63750         * tests/test-truncl.c: New file.
63751
63752         * modules/truncl: New file.
63753         * lib/truncl.c: New file.
63754         * m4/truncl.m4: New file.
63755         * lib/math.in.h (truncl): New declaration.
63756         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
63757         HAVE_DECL_TRUNCL.
63758         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
63759         HAVE_DECL_TRUNCL.
63760         * doc/functions/truncl.texi: Mention the 'truncl' module.
63761
63762 2007-10-04  Bruno Haible  <bruno@clisp.org>
63763
63764         * modules/truncf-tests: New file.
63765         * tests/test-truncf.c: New file.
63766
63767         * modules/truncf: New file.
63768         * lib/trunc.c: Make paramerizable through USE_* macros.
63769         * lib/truncf.c: New file.
63770         * m4/truncf.m4: New file.
63771         * lib/math.in.h (truncf): New declaration.
63772         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
63773         HAVE_DECL_TRUNCF.
63774         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
63775         HAVE_DECL_TRUNCF.
63776         * doc/functions/truncf.texi: Mention the 'truncf' module.
63777
63778 2007-10-03  Bruno Haible  <bruno@clisp.org>
63779
63780         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
63781         augmentation also for tests modules.
63782         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
63783         * modules/atexit-tests (Makefile.am): Likewise.
63784         * modules/binary-io-tests (Makefile.am): Likewise.
63785         * modules/c-strcase-tests (Makefile.am): Likewise.
63786         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
63787         * modules/canonicalize-tests (Makefile.am): Likewise.
63788         * modules/closein-tests (Makefile.am): Likewise.
63789         * modules/fprintf-posix-tests (Makefile.am): Likewise.
63790         * modules/freadahead-tests (Makefile.am): Likewise.
63791         * modules/fseek-tests (Makefile.am): Likewise.
63792         * modules/fseeko-tests (Makefile.am): Likewise.
63793         * modules/ftell-tests (Makefile.am): Likewise.
63794         * modules/ftello-tests (Makefile.am): Likewise.
63795         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
63796         * modules/isnanl-tests (Makefile.am): Likewise.
63797         * modules/lseek-tests (Makefile.am): Likewise.
63798         * modules/mbscasecmp-tests (Makefile.am): Likewise.
63799         * modules/mbscasestr-tests (Makefile.am): Likewise.
63800         * modules/mbschr-tests (Makefile.am): Likewise.
63801         * modules/mbscspn-tests (Makefile.am): Likewise.
63802         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
63803         * modules/mbspbrk-tests (Makefile.am): Likewise.
63804         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
63805         * modules/mbsrchr-tests (Makefile.am): Likewise.
63806         * modules/mbsspn-tests (Makefile.am): Likewise.
63807         * modules/mbsstr-tests (Makefile.am): Likewise.
63808         * modules/printf-posix-tests (Makefile.am): Likewise.
63809         * modules/snprintf-posix-tests (Makefile.am): Likewise.
63810         * modules/sprintf-posix-tests (Makefile.am): Likewise.
63811         * modules/tsearch-tests (Makefile.am): Likewise.
63812         * modules/uniname/uniname-tests (Makefile.am): Likewise.
63813         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
63814         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
63815         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
63816         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
63817         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
63818         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
63819         * modules/vprintf-posix-tests (Makefile.am): Likewise.
63820         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
63821         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
63822         * modules/xstrtoimax-tests (Makefile.am): Likewise.
63823         * modules/xstrtol-tests (Makefile.am): Likewise.
63824         * modules/xstrtoumax-tests (Makefile.am): Likewise.
63825         * modules/yesno-tests (Makefile.am): Likewise.
63826
63827 2007-10-03  Bruno Haible  <bruno@clisp.org>
63828
63829         * modules/trunc-tests: New file.
63830         * tests/test-trunc.c: New file.
63831
63832         * modules/trunc: New file.
63833         * lib/trunc.c: New file.
63834         * m4/trunc.m4: New file.
63835         * lib/math.in.h (trunc): New declaration.
63836         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
63837         HAVE_DECL_TRUNC.
63838         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
63839         HAVE_DECL_TRUNC.
63840         * doc/functions/trunc.texi: Mention the 'trunc' module.
63841
63842 2007-10-03  Bruno Haible  <bruno@clisp.org>
63843
63844         * tests/test-fpending.c: New file, mostly copied
63845         from coreutils/lib/t-fpending.c.
63846         * modules/fpending-tests: New file.
63847
63848 2007-10-03  Bruno Haible  <bruno@clisp.org>
63849
63850         Port the stdio extensions to QNX (untested).
63851         * lib/fseterr.c (fseterr): Add support for QNX.
63852         * lib/fbufmode.c (fbufmode): Likewise.
63853         * lib/freadable.c (freadable): Likewise.
63854         * lib/fwritable.c (fwritable): Likewise.
63855         * lib/freading.c (freading): Likewise.
63856         * lib/fwriting.c (fwriting): Likewise.
63857         * lib/freadahead.c (freadahed): Likewise.
63858         * lib/fpurge.c (fpurge): Likewise.
63859         * lib/fseeko.c (rpl_fseeko): Likewise.
63860
63861 2007-10-03  Bruno Haible  <bruno@clisp.org>
63862             Jim Meyering  <jim@meyering.net>
63863             Eric Blake  <ebb9@byu.net>
63864
63865         * doc/relocatable.texi: Use @command instead of @program.
63866
63867 2007-10-02  Jim Meyering  <jim@meyering.net>
63868
63869         Perform one more "_.h" -> ".in.h" substitution.
63870         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
63871         instead of unistd_.h here, too.
63872
63873 2007-10-01  Bruno Haible  <bruno@clisp.org>
63874
63875         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
63876         Needed for the alloca-opt module.
63877
63878 2007-09-30  Bruno Haible  <bruno@clisp.org>
63879
63880         * lib/alloca.in.h: Renamed from lib/alloca_.h.
63881         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
63882         alloca_.h.
63883         * lib/argz.in.h: Renamed from lib/argz_.h.
63884         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
63885         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
63886         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
63887         byteswap_.h.
63888         * lib/dirent.in.h: Renamed from lib/dirent_.h.
63889         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
63890         dirent_.h.
63891         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
63892         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
63893         fcntl_.h.
63894         * lib/float.in.h: Renamed from lib/float_.h.
63895         * modules/float (Files, Makefile.am): Use float.in.h instead of
63896         float_.h.
63897         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
63898         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
63899         fnmatch_.h.
63900         * lib/getopt.in.h: Renamed from lib/getopt_.h.
63901         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
63902         getopt_.h.
63903         * lib/glob.in.h: Renamed from lib/glob_.h.
63904         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
63905         * lib/iconv.in.h: Renamed from lib/iconv_.h.
63906         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
63907         iconv_.h.
63908         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
63909         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
63910         inttypes_.h.
63911         * lib/locale.in.h: Renamed from lib/locale_.h.
63912         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
63913         locale_.h.
63914         * lib/math.in.h: Renamed from lib/math_.h.
63915         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
63916         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
63917         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
63918         of netinet_in_.h. Add dependency.
63919         * lib/poll.in.h: Renamed from lib/poll_.h.
63920         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
63921         * lib/search.in.h: Renamed from lib/search_.h.
63922         * modules/search (Files, Makefile.am): Use search.in.h instead of
63923         search_.h.
63924         * lib/signal.in.h: Renamed from lib/signal_.h.
63925         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
63926         _signal.h.
63927         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
63928         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
63929         stdbool_.h.
63930         * lib/stdint.in.h: Renamed from lib/stdint_.h.
63931         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
63932         stdint_.h.
63933         * lib/stdio.in.h: Renamed from lib/stdio_.h.
63934         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
63935         stdio_.h.
63936         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
63937         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
63938         stdlib_.h.
63939         * lib/string.in.h: Renamed from lib/string_.h.
63940         * modules/string (Files, Makefile.am): Use string.in.h instead of
63941         string_.h.
63942         * doc/gnulib-tool.texi (Initial import): Update.
63943         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
63944         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
63945         of sys_select_.h. Add dependency.
63946         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
63947         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
63948         of sys_socket_.h.
63949         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
63950         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
63951         sys_stat_.h.
63952         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
63953         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
63954         sys_time_.h.
63955         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
63956         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
63957         sysexits_.h.
63958         * lib/time.in.h: Renamed from lib/time_.h.
63959         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
63960         * lib/unistd.in.h: Renamed from lib/unistd_.h.
63961         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
63962         unistd_.h.
63963         * lib/wchar.in.h: Renamed from lib/wchar_.h.
63964         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
63965         wchar_.h.
63966         * lib/wctype.in.h: Renamed from lib/wctype_.h.
63967         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
63968         wctype_.h.
63969         * build-aux/bootstrap (slurp): Update.
63970         * lib/.cppi-disable: Update.
63971
63972 2007-09-30  Bruno Haible  <bruno@clisp.org>
63973
63974         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
63975         Needed on BeOS.
63976
63977 2007-09-30  Bruno Haible  <bruno@clisp.org>
63978
63979         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
63980
63981 2007-09-29  Bruno Haible  <bruno@clisp.org>
63982
63983         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
63984
63985 2007-09-29  Bruno Haible  <bruno@clisp.org>
63986
63987         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
63988         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
63989         * build-aux/install-reloc: Compile also areadlink.c.
63990         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
63991
63992 2007-09-29  Bruno Haible  <bruno@clisp.org>
63993
63994         * gnulib-tool (func_emit_initmacro_done): Indentation.
63995
63996 2007-09-29  Bruno Haible  <bruno@clisp.org>
63997
63998         * README: Add CVS checkout update instructions.
63999         Info from Bob Proulx <bob@proulx.com>.
64000
64001 2007-09-28  Eric Blake  <ebb9@byu.net>
64002
64003         Provide move-if-change.
64004         * build-aux/move-if-change: New file, based on best practice
64005         rather than any canonical upstream location.
64006
64007 2007-09-28  Jim Meyering  <jim@meyering.net>
64008
64009         Fix canonicalize loop-detection corner case.
64010         Do not attempt to stat the symlink values stored via seen_triple.
64011         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
64012         on linux-2.6.18, (but not 2.6.22).
64013         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
64014         triple_compare.  The former compares dev,ino,filename, while the latter
64015         would actually stat dirname(filename) when dev and ino were equal.
64016         * lib/hash-triple.c: Install <string.h>.
64017         (STREQ): Define.
64018         (triple_compare_ino_str): New function.
64019         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
64020
64021 2007-09-28  Eric Blake  <ebb9@byu.net>
64022
64023         Enforce that AC_REPLACE_FUNCS files exist.
64024         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
64025         override check for typos.
64026
64027         Fix test-closein on Solaris 10.
64028         * tests/test-closein.c (main): Don't assume stdin can be inherited
64029         closed on all systems.
64030         * tests/test-closein.sh: Likewise.
64031         Reported by Piotr Tarnowski.
64032
64033 2007-09-28  Jim Meyering  <jim@meyering.net>
64034
64035         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
64036
64037 2007-09-27  Jim Meyering  <jim@meyering.net>
64038
64039         canonicalize: Avoid a false-positive cycle failure.
64040         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
64041         Sort.  Remove cycle-check.
64042         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
64043         not cycle-check.h.
64044         (seen_triple): New function.
64045         (canonicalize_filename_mode): Use it instead of cycle-check.
64046         * tests/test-canonicalize.c: Add a test for this bug.
64047         * tests/test-canonicalize.sh: Set up and run the test.
64048
64049         New module, file-set, from coreutils.
64050         * modules/file-set: Define it.
64051         * lib/file-set.c, lib/file-set.h: Implement.
64052
64053         New module, hash-triple, from coreutils.
64054         * modules/hash-triple: Define it.
64055         * lib/hash-triple.c, lib/hash-triple.h: Implement.
64056
64057 2007-09-25  Eric Blake  <ebb9@byu.net>
64058
64059         Fix strerror on Interix.
64060         * lib/string_.h (strerror): Declare replacement.
64061         * doc/functions/strerror.texi (strerror): Document the Interix
64062         shortcoming.
64063         * modules/string (Makefile.am): Support new hooks.
64064         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
64065         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
64066         gl_FUNC_STRERROR_SEPARATE.
64067         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
64068         * lib/strerror.c (rpl_strerror): Provide replacement.
64069         * modules/strerror (Depends-on): Add string.
64070         (configure.ac): Detect use of module.
64071         * tests/test-strerror.c: New file.
64072         * modules/strerror-tests: New test module.
64073         * modules/argp (Depends-on): Add strerror.
64074         * modules/error (Depends-on): Likewise.
64075         Reported by Martin Koeppe.
64076
64077 2007-09-24  Bruno Haible  <bruno@clisp.org>
64078
64079         * README: Update git instructions.
64080
64081 2007-09-24  Eric Blake  <ebb9@byu.net>
64082
64083         Revert fpending breakage from 2007-09-08.
64084         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
64085         __fpending.c.
64086
64087 2007-09-24  Jim Meyering  <jim@meyering.net>
64088
64089         filenamecat.c: Add a test.
64090         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
64091         showing how the function works when DIR is the empty string.
64092
64093 2007-09-21  Simon Josefsson  <simon@josefsson.org>
64094
64095         * tests/test-canonicalize.sh: Turn on executable bit.
64096
64097 2007-09-19  Eric Blake  <ebb9@byu.net>
64098
64099         * README: Update CVS instructions.
64100
64101 2007-09-18  Bruno Haible  <bruno@clisp.org>
64102
64103         * modules/areadlink: New file.
64104         * lib/areadlink.h (areadlink): New declaration.
64105         * lib/areadlink.c: New file, based on lib/xreadlink.c.
64106
64107 2007-09-17  Jim Meyering  <jim@meyering.net>
64108
64109         * lib/savewd.c (ESTALE) [!defined]: Define.
64110         Reported to be required on Interix by Martin Koeppe.
64111
64112 2007-09-17  Bruno Haible  <bruno@clisp.org>
64113
64114         * gnulib-tool (func_version): Use $version.
64115
64116 2007-09-16  Bruno Haible  <bruno@clisp.org>
64117
64118         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
64119         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
64120         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
64121         Reported by Greg Schafer <gschafer@zip.com.au>.
64122
64123 2007-09-15  Bruno Haible  <bruno@clisp.org>
64124
64125         * gnulib-tool (sed): Try a little harder to make bash understand the
64126         alias.
64127         Reported by Bruce Korb <bruce.korb@gmail.com>.
64128
64129 2007-09-13  Eric Blake  <ebb9@byu.net>
64130
64131         * ChangeLog: Remove conflict markers.
64132
64133 2007-09-13  Simon Josefsson  <simon@josefsson.org>
64134
64135         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
64136         Reported by Bruno Haible <bruno@clisp.org>.
64137
64138 2007-09-12  Bruno Haible  <bruno@clisp.org>
64139
64140         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
64141         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
64142         is not defined.
64143
64144 2007-09-12  Eric Blake  <ebb9@byu.net>
64145
64146         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
64147         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
64148         Autoconf definition.
64149         * modules/euidaccess (Depends-on): Add extensions, for
64150         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
64151         * modules/fnmatch (Depends-on): Likewise.
64152         * modules/getaddrinfo (Depends-on): Likewise.
64153         * modules/getdelim (Depends-on): Likewise.
64154         * modules/getline (Depends-on): Likewise.
64155         * modules/getsubopt (Depends-on): Likewise.
64156         * modules/gettext (Depends-on): Likewise.
64157         * modules/group-member (Depends-on): Likewise.
64158         * modules/mbchar (Depends-on): Likewise.
64159         * modules/memmem (Depends-on): Likewise.
64160         * modules/mempcpy (Depends-on): Likewise.
64161         * modules/memrchr (Depends-on): Likewise.
64162         * modules/pagealign_alloc (Depends-on): Likewise.
64163         * modules/readutmp (Depends-on): Likewise.
64164         * modules/stpcpy (Depends-on): Likewise.
64165         * modules/stpncpy (Depends-on): Likewise.
64166         * modules/strchrnul (Depends-on): Likewise.
64167         * modules/strndup (Depends-on): Likewise.
64168         * modules/strsep (Depends-on): Likewise.
64169         * modules/strverscmp (Depends-on): Likewise.
64170         * modules/vasprintf (Depends-on): Likewise.
64171         * modules/wcwidth (Depends-on): Likewise.
64172         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
64173         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
64174         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
64175         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
64176         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
64177         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64178         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
64179         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64180         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
64181         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
64182         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
64183         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64184         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64185         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
64186         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
64187         * m4/readutmp.m4 (gl_READUTMP): Likewise.
64188         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64189         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64190         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64191         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64192         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64193         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64194         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64195         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
64196         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
64197         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64198         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
64199         so that lock.m4 can be used in gettext without extensions module.
64200
64201 2007-09-11  Bruno Haible  <bruno@clisp.org>
64202
64203         * m4/isc-posix.m4: Remove file.
64204         Suggested by Eric Blake.
64205
64206 2007-09-11  Eric Blake  <ebb9@byu.net>
64207
64208         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
64209
64210 2007-09-10  Bruno Haible  <bruno@clisp.org>
64211
64212         * posix-modules: Fix typo in error message.
64213         Reported by Matt <mkraai@beckman.com>.
64214
64215 2007-09-09  Bruno Haible  <bruno@clisp.org>
64216
64217         * doc/functions/getdelim.texi: Update list of platforms lacking the
64218         function.
64219         * doc/functions/getline.texi: Likewise.
64220
64221 2007-09-09  Jim Meyering  <jim@meyering.net>
64222
64223         * lib/hash.c (hash_initialize): Detect calloc failure.
64224         Reported by Bruno Haible.
64225
64226 2007-09-09  Bruno Haible  <bruno@clisp.org>
64227
64228         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
64229         malloc or realloc fails.
64230
64231 2007-09-09  Bruno Haible  <bruno@clisp.org>
64232
64233         * modules/getcwd (Depends-on): Add malloc-posix.
64234         * modules/glob (Depends-on): Likewise.
64235         * modules/putenv (Depends-on): Likewise.
64236         * modules/strdup (Depends-on): Likewise.
64237         * modules/getdelim (Depends-on): Add realloc-posix.
64238         * modules/read-file (Depends-on): Likewise.
64239
64240 2007-09-09  Bruno Haible  <bruno@clisp.org>
64241
64242         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
64243         (gl_FUNC_MALLOC_POSIX): Require it.
64244         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
64245         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
64246         * modules/realloc (Files): Add m4/malloc.m4.
64247         * modules/calloc (Files): Likewise.
64248
64249 2007-09-09  Bruno Haible  <bruno@clisp.org>
64250
64251         * modules/malloc-posix: New file.
64252         * modules/malloc (Depends-on): Add malloc-posix.
64253         * lib/malloc.c: Include errno.h.
64254         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
64255         and a POSIX-compatible malloc into a single function. Set ENOMEM
64256         when returning NULL.
64257         * m4/malloc.m4: New file.
64258         * doc/functions/malloc.texi: Mention the malloc-posix module.
64259         * lib/stdlib_.h (malloc): New declaration.
64260         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64261         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
64262         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
64263         and HAVE_MALLOC_POSIX.
64264
64265 2007-09-09  Bruno Haible  <bruno@clisp.org>
64266
64267         * modules/realloc-posix: New file.
64268         * modules/realloc (Depends-on): Add realloc-posix.
64269         * lib/realloc.c: Include errno.h.
64270         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
64271         and a POSIX-compatible realloc into a single function. Set ENOMEM
64272         when returning NULL.
64273         * m4/realloc.m4: New file.
64274         * doc/functions/realloc.texi: Mention the realloc-posix module.
64275         * lib/stdlib_.h (realloc): New declaration.
64276         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64277         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
64278         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
64279         and HAVE_REALLOC_POSIX.
64280
64281 2007-09-09  Bruno Haible  <bruno@clisp.org>
64282
64283         * modules/calloc-posix: New file.
64284         * modules/calloc (Depends-on): Add calloc-posix.
64285         * lib/calloc.c: Include errno.h.
64286         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
64287         and a POSIX-compatible calloc into a single function. Set ENOMEM
64288         when returning NULL.
64289         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
64290         * doc/functions/calloc.texi: Mention the calloc-posix module.
64291         * lib/stdlib_.h (calloc): New declaration.
64292         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64293         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
64294         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
64295         and HAVE_CALLOC_POSIX.
64296
64297 2007-09-09  Bruno Haible  <bruno@clisp.org>
64298
64299         Allow for modules to show an arbitrary notice.
64300         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
64301         * gnulib-tool: New option --extract-notice.
64302         (func_usage): Document it.
64303         (sed_extract_prog): Update.
64304         (func_get_notice): New function.
64305         (func_modules_notice): New function.
64306         (func_import, func_create_testdir): Invoke it.
64307         Suggested by Jim Meyering.
64308
64309 2007-09-09  Bruno Haible  <bruno@clisp.org>
64310
64311         * gnulib-tool: New options --verbose, --quiet.
64312         (func_usage): Document them.
64313         (verbose): New variable.
64314         (func_execute_command): New function.
64315         (func_import): Don't show the module list and the file list if
64316         $verbose < 0.
64317         (func_create_testdir): Likewise. Use func_execute_command.
64318         (func_create_megatestdir): Use func_execute_command.
64319
64320 2007-09-08  Bruno Haible  <bruno@clisp.org>
64321
64322         * gnulib-tool (func_import): Prefer rsync over wget when available,
64323         for fetching the PO files.
64324
64325 2007-09-08  Bruno Haible  <bruno@clisp.org>
64326
64327         * posix-modules: New file. Portions copied from gnulib-tool.
64328         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
64329
64330 2007-09-08  Jim Meyering  <jim@meyering.net>
64331
64332         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
64333         * lib/fpending.h: Rename from __fpending.h.
64334         * lib/fpending.c: Rename from __fpending.c.
64335         Include "fpending.h", not "__fpending.h".
64336         * lib/__fpending.h, lib/__fpending.c: Remove files.
64337         * modules/fpending (Files): Reflect new file names.
64338         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
64339
64340 2007-09-08  Bruno Haible  <bruno@clisp.org>
64341
64342         * m4/inttypes-h.m4: Remove stub file.
64343
64344 2007-09-07  Simon Josefsson  <simon@josefsson.org>
64345
64346         * doc/headers/stdint.texi: Discuss #include_next issue.
64347
64348 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64349
64350         * build-aux/bootstrap: Remove obsolete comment about wget --help.
64351
64352 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64353
64354         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
64355         in variable name.
64356
64357 2007-09-03  Jim Meyering  <jim@meyering.net>
64358
64359         New module: git-version-gen.
64360         * modules/git-version-gen: New file.
64361
64362         Import changes from coreutils for bootstrap script.
64363
64364         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
64365
64366         bootstrap: uses rsync to download the .po files
64367         * build-aux/bootstrap (po_download_command_format): New global.
64368         (download_po_files): Use rsync.
64369         (update_po_files): Don't remove .po files after download,
64370         so future rsync runs can take advantage of the copies.
64371
64372         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
64373
64374         Solve the unnecessary-.po-file-regeneration problem once and for all.
64375         * build-aux/bootstrap (download_po_files): New function, renamed from
64376         get_translations.  Now, downloads, but doesn't update LINGUAS.
64377         (update_po_files): New function.
64378
64379         bootstrap: Ignore more.
64380         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
64381         uniwidth to e.g., lib/.gitignore.
64382         (slurp): Handle the sys_stat_.h -> sys mapping, too.
64383
64384         * build-aux/bootstrap: New setting: vc_ignore.
64385         (insert_sorted_if_absent): Create $file if absent.
64386         Adapt to new, possibly empty, list: $vc_ignore.
64387
64388         bootstrap: generate more ignorable names
64389         * build-aux/bootstrap (slurp): When generating ignorable names,
64390         also map .sin to .sed, .gperf to .c, and .y to .c.
64391
64392 2007-09-03  Jim Meyering  <jim@meyering.net>
64393
64394         * build-aux/git-version-gen: New file, from coreutils.  For details, see
64395         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
64396
64397 2007-09-02  Bruno Haible  <bruno@clisp.org>
64398
64399         Fix mis-recognition of 'mcs' on QNX 6.
64400         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
64401         output contains the string "Mono".
64402         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
64403         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
64404
64405 2007-09-01  Bruno Haible  <bruno@clisp.org>
64406
64407         Fix collision between uniwidth/* and linebreak modules.
64408         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
64409         u32_width): Remove declarations.
64410         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
64411         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
64412         streq3, streq2, streq1, streq0): Remove functions.
64413         (STREQ): Remove macro.
64414         (is_cjk_encoding): Remove function.
64415         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
64416         (uc_width, u8_width, u16_width, u32_width): Remove functions.
64417         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
64418         * NEWS: Document the change.
64419
64420 2007-09-01  Bruno Haible  <bruno@clisp.org>
64421
64422         * lib/streq.h: Add double-inclusion guard.
64423
64424 2007-09-01  Karl Berry  <karl@gnu.org>
64425
64426         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
64427
64428 2007-08-28  Jim Meyering  <jim@meyering.net>
64429
64430         Rename mreadlink_with_size to areadlink_with_size.
64431         * NEWS: Document the change.
64432         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
64433         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
64434         * lib/mreadlink.h: Rename this to...
64435         * lib/areadlink.h: ...this.
64436         * modules/mreadlink-with-size: Rename this to...
64437         * modules/areadlink-with-size: ...this.
64438         * lib/canonicalize.c: Reflect the renaming.
64439         * modules/canonicalize: Likewise.
64440
64441 2007-08-26  Bruno Haible  <bruno@clisp.org>
64442
64443         * gnulib-tool (func_import): When deciding which files to remove,
64444         consider also dangling symbolic links.
64445         Reported by Eric Blake.
64446
64447 2007-08-26  Bruno Haible  <bruno@clisp.org>
64448
64449         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
64450
64451 2007-08-23  Simon Josefsson  <simon@josefsson.org>
64452
64453         * lib/readline.c: Don't include getline.h, the prototype is now
64454         found in stdio.h.
64455
64456 2007-08-23  Jim Meyering  <jim@meyering.net>
64457
64458         Getdelim touchup.
64459         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
64460         around the funlockfile call, since funlockfile never sets errno.
64461         Don't set errno upon failed realloc.
64462
64463 2007-08-22  Eric Blake  <ebb9@byu.net>
64464
64465         Getline touchups.
64466         * lib/getdelim.c (getdelim): Revert regression that required *n to
64467         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
64468         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
64469         getdelim, rather than whether implementation is missing.
64470         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
64471         * lib/stdio_.h (getline): Also declare if replacement is
64472         required.
64473         * doc/functions/getdelim.texi: New file.
64474         * doc/functions/getline.texi: Likewise.
64475         * doc/gnulib.texi (Function Substitutes): Add new files.
64476         Reported by Bruno Haible.
64477
64478 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
64479
64480         * users.txt: Add Guile.
64481
64482 2007-08-22  Eric Blake  <ebb9@byu.net>
64483
64484         * tests/test-getdelim.c (main): Use remove, not unlink.
64485         * tests/test-getline.c (main): Likewise.
64486
64487         Move getline and getdelim into stdio.h, per POSIX 200x.
64488         * modules/getline (Files): Remove getline.h.
64489         (Depends-on): Add stdio.
64490         (configure.ac): Add module indicator.
64491         * modules/getdelim (Files): Remove getdelim.h.
64492         (Depends-on): Add stdio.
64493         (configure.ac): Add module indicator.
64494         * modules/stdio (Makefile.am): Work with new indicators.
64495         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
64496         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
64497         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64498         * lib/getdelim.h: Delete.
64499         * lib/getline.h: Delete.
64500         * lib/stdio_.h (getdelim, getline): Declare.
64501         * modules/getdelim-tests: New module.
64502         * modules/getline-tests: Likewise.
64503         * tests/test-getdelim.c: New file.
64504         * tests/test-getline.c: Likewise.
64505         * NEWS: Document the change.
64506         * lib/getline.c: Update choice of header.
64507         * lib/csharpcomp.c: Likewise.
64508         * lib/getpass.c: Likewise.
64509         * lib/javacomp.c: Likewise.
64510         * lib/javaversion.c: Likewise.
64511         * lib/yesno.c: Likewise.
64512         * lib/getdelim.c: Likewise.
64513         (getdelim): Set errno on failure, and avoid memory leak.
64514
64515 2007-08-19  Bruno Haible  <bruno@clisp.org>
64516
64517         * modules/closein (Depends-on): Add freadahead.
64518         * lib/closein.c: Include freadahead.h.
64519         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
64520         is zero.
64521
64522 2007-08-19  Bruno Haible  <bruno@clisp.org>
64523
64524         * modules/freadahead-tests: New file.
64525         * tests/test-freadahead.sh: New file.
64526         * tests/test-freadahead.c: New file.
64527
64528         * modules/freadahead: New file.
64529         * lib/freadahead.h: New file.
64530         * lib/freadahead.c: New file.
64531         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
64532         fbufmode, fpurge, freadable, fwritable.
64533
64534 2007-08-19  Eric Blake  <ebb9@byu.net>
64535
64536         Test yesno in combination with closein.
64537         * lib/yesno.c (yesno): Document use of stdin.
64538         * modules/yesno-tests (Files): New module.
64539         * tests/test-yesno.c (main): New file.
64540         * tests/test-yesno.sh: Likewise.
64541
64542 2007-08-19  Bruno Haible  <bruno@clisp.org>
64543
64544         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
64545         * lib/fseeko.c (rpl_fseeko): Likewise.
64546         * lib/fseterr.c (fseterr): Likewise.
64547
64548 2007-08-19  Bruno Haible  <bruno@clisp.org>
64549
64550         * tests/test-lseek.c (main): Disable a test for BeOS.
64551         * doc/functions/lseek.texi: Document the BeOS bug.
64552
64553 2007-08-19  Bruno Haible  <bruno@clisp.org>
64554             Eric Blake  <ebb9@byu.net>
64555
64556         * lib/lseek.c: Include <sys/stat.h>.
64557         (rpl_lseek): Add workaround code also for Unix platforms.
64558         Needed for BeOS.
64559         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
64560         * doc/functions/lseek.texi: Document BeOS definiency.
64561
64562 2007-08-18  Bruno Haible  <bruno@clisp.org>
64563
64564         * modules/fstrcmp-tests: New file.
64565         * tests/test-fstrcmp.c: New file.
64566
64567 2007-08-18  Bruno Haible  <bruno@clisp.org>
64568
64569         * modules/fstrcmp: New file, from GNU gettext with modifications.
64570         * lib/fstrcmp.h: New file, from GNU gettext.
64571         * lib/fstrcmp.c: New file, from GNU gettext.
64572         * MODULES.html.sh (String handling): Add fstrcmp.
64573
64574 2007-08-18  Bruno Haible  <bruno@clisp.org>
64575
64576         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
64577         'bool'.
64578         (diag, compareseq): Remove const from the ctxt argument.
64579         (USE_HEURISTIC): Undefine at the end.
64580
64581 2007-08-18  Jim Meyering  <jim@meyering.net>
64582
64583         New file: lib/idcache.h
64584         * NEWS: Mention the addition.
64585         * modules/idcache (Files): Add lib/idcache.h
64586         * lib/idcache.c: Include "idcache.h".
64587         Don't include <sys/types.h>.
64588         Add a FIXME comment.
64589         Move file-scoped "static" declarations to the top.
64590         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
64591
64592 2007-08-17  Bruno Haible  <bruno@clisp.org>
64593         and Paul Eggert  <eggert@cs.ucla.edu>
64594
64595         * MODULES.html.sh: Add diffseq.
64596         * modules/diffseq: New file.
64597         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
64598         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
64599
64600 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64601
64602         Import changes from coreutils for bootstrap script.
64603
64604         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
64605
64606         * build-aux/bootstrap (slurp): Work even in environments where
64607         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
64608         current code does not slurp files whose names start with ".", and
64609         this looks like it might be a troublesome area.
64610
64611         2007-07-11  Jim Meyering  <jim@meyering.net>
64612
64613         If there's a GPL vN copyright comment, require that N == 3.
64614
64615         2007-07-08  Jim Meyering  <jim@meyering.net>
64616
64617         Run the coreutils-specific code only if tests/Makefile.am.in exists.
64618         * build-aux/bootstrap (mam_template): Move definition out of loop.
64619
64620         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
64621
64622         * build-aux/bootstrap (symlink_to_dir): Rename function from
64623         symlink_to_gnulib.  Add a directory parameter.  Update all
64624         callers.
64625         (cp_mark_as_generated): Also check for -- and link to -- files in
64626         gl/.
64627
64628         2007-07-08  Jim Meyering  <jim@meyering.net>
64629
64630         Adapt to deeper hierarchy in gnulib.
64631         * build-aux/bootstrap (symlink_to_dir): If the destination
64632         directory doesn't exist, create it. This is required at least for
64633         "lib/uniwidth/cjk.h".
64634
64635         2007-05-15  Jim Meyering  <jim@meyering.net>
64636
64637         * build-aux/bootstrap: Now that generated Makefile.am files
64638         are no longer under version control, they must be created at
64639         bootstrap time.
64640
64641 2007-08-14  Ben Pfaff  <blp@gnu.org>
64642
64643         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
64644
64645 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64646
64647         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
64648         given the changes below.
64649         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
64650         even on hosts that have padding bits beyond the supported 64.
64651
64652 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64653
64654         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
64655         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
64656         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
64657         depends on it.
64658         (xstrtol_error): Remove.
64659         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
64660         but with a different signature.
64661         (ATTRIBUTE_NORETURN, __attribute__): New macros.
64662         * lib/xstrtol-error.c: Include exitfail.h.
64663         (xstrtol_fatal): New function, with a different signature from the
64664         old xstrtol_error, so that the caller need not worry about passing
64665         in an exit status, or about storage management of the option argument.
64666         (xstrtol_error): Now a static function.  Redo signature to
64667         implement xstrtol_fatal.  Output the correct number of hyphens in
64668         front of the option so that the caller need not worry about
64669         storage management.
64670         (N_): New macro.
64671         (_): Remove; not used now.
64672         * modules/xstrtol: Depend on getopt.
64673         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
64674         of old STRTOL_FATAL_ERROR macro.
64675         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
64676         of test program.
64677         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
64678         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
64679
64680 2007-08-08  Eric Blake  <ebb9@byu.net>
64681
64682         * lib/xstrtol-error.c: Add missing include.
64683
64684         Move xstrtol messages into gnulib domain, when --pobase is used.
64685         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
64686         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
64687         * modules/xstrtol (Files): Distribute new file.
64688         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
64689         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
64690         * tests/test-xstrtol.c: ...into new file.
64691         * tests/test-xstrtoul.c: Also test xstrtoul.
64692         * tests/test-xstrtoimax.c: Also test xstrtoimax.
64693         * tests/test-xstrtoumax.c: Also test xstrtoumax.
64694         * tests/test-xstrtol.sh: Drive the tests.
64695         * tests/test-xstrtoimax.sh: Likewise.
64696         * tests/test-xstrtoumax.sh: Likewise.
64697         * modules/xstrtol-tests: New module.
64698         * modules/xstrtoimax-tests: Likewise.
64699         * modules/xstrtoumax-tests: Likewise.
64700
64701 2007-08-08  Jim Meyering  <jim@meyering.net>
64702
64703         New function: mfile_name_concat.
64704         * lib/filenamecat.c (mfile_name_concat): New function, just like
64705         file_name_concat, but return NULL upon failure rather than exiting
64706         with a diagnostic.
64707         * lib/filenamecat.h: Declare it.
64708
64709 2007-08-07  Bruno Haible  <bruno@clisp.org>
64710
64711         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
64712         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
64713         warning from gcc.
64714         Reported by Eric Blake.
64715
64716 2007-08-07  Simon Josefsson  <simon@josefsson.org>
64717
64718         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
64719         * modules/crypto/arcfour (License): Likewise.
64720         * modules/crypto/des-tests (License): Likewise.
64721         * modules/crypto/gc-arctwo-tests (License): Likewise.
64722         * modules/crypto/gc-des-tests (License): Likewise.
64723         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
64724         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
64725         * modules/crypto/gc-md2-tests (License): Likewise.
64726         * modules/crypto/gc-md4-tests (License): Likewise.
64727         * modules/crypto/gc-md5-tests (License): Likewise.
64728         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
64729         * modules/crypto/gc-rijndael-tests (License): Likewise.
64730         * modules/crypto/gc-sha1-tests (License): Likewise.
64731         * modules/crypto/gc-tests (License): Likewise.
64732         * modules/crypto/hmac-md5 (License): Likewise.
64733         * modules/crypto/hmac-sha1 (License): Likewise.
64734         * modules/crypto/md2-tests (License): Likewise.
64735         * modules/crypto/md4-tests (License): Likewise.
64736         * modules/crypto/md5 (License): Likewise.
64737         * modules/crypto/rijndael (License): Likewise.
64738         * modules/crypto/sha1 (License): Likewise.
64739         * modules/memxor (License): Likewise.
64740
64741 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64742         and Bruno Haible  <bruno@clisp.org>
64743
64744         * NEWS: Describe interface changes to human, xstrtol.
64745         * lib/human.h: Include <xstrtol.h>.
64746         (human_options): Return enum strtol_error, not int.  Remove
64747         bool arg; take int * instead.
64748         * lib/human.c: Don't include "gettext.h".
64749         (_): Remove; no longer used.
64750         Don't include <xstrtol.h>, since human.h does it.
64751         (human_options): Adjust to abovementioned interface changes.
64752         Do not report error to stderr; that's now the caller's
64753         responsibility.
64754         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
64755         interface change.
64756         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
64757         Str, Argument_type_string.  All uses changed.  Put " argument"
64758         in diagnostics to make them clearer.  Change wording of suffix
64759         message for clarity.
64760         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
64761         Argument_type_string.
64762         (STRTOL_FATAL_WARN): Remove; no longer used.
64763         * modules/human (Depends-on): Remove gettext-h.
64764
64765 2007-08-06  Simon Josefsson  <simon@josefsson.org>
64766
64767         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
64768
64769 2007-07-31  Bruno Haible  <bruno@clisp.org>
64770
64771         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
64772         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
64773         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
64774
64775 2007-07-31  Bruno Haible  <bruno@clisp.org>
64776
64777         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
64778         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
64779
64780 2007-07-30  Bruno Haible  <bruno@clisp.org>
64781
64782         * modules/base64 (License): Use the synonymous term "LGPLv2+".
64783         * modules/c-ctype (License): Likewise.
64784         * modules/c-strcase (License): Likewise.
64785         * modules/check-version (License): Likewise.
64786         * modules/iconv (License): Likewise.
64787         * modules/iconv_open (License): Likewise.
64788         * modules/read-file (License): Likewise.
64789         * modules/striconv (License): Likewise.
64790         * modules/strverscmp (License): Likewise.
64791         * modules/vasprintf (License): Likewise.
64792         * modules/crypto/des (License): Likewise.
64793         * modules/crypto/gc (License): Likewise.
64794         * modules/crypto/gc-arcfour (License): Likewise.
64795         * modules/crypto/gc-arctwo (License): Likewise.
64796         * modules/crypto/gc-des (License): Likewise.
64797         * modules/crypto/gc-hmac-md5 (License): Likewise.
64798         * modules/crypto/gc-hmac-sha1 (License): Likewise.
64799         * modules/crypto/gc-md2 (License): Likewise.
64800         * modules/crypto/gc-md4 (License): Likewise.
64801         * modules/crypto/gc-md5 (License): Likewise.
64802         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
64803         * modules/crypto/gc-random (License): Likewise.
64804         * modules/crypto/gc-rijndael (License): Likewise.
64805         * modules/crypto/gc-sha1 (License): Likewise.
64806         * modules/crypto/md2 (License): Likewise.
64807         * modules/crypto/md4 (License): Likewise.
64808
64809 2007-07-30  Jim Meyering  <jim@meyering.net>
64810
64811         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
64812         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
64813         it has valid stat data.  This bug would cause du not to count the
64814         sizes of inaccessible directories.
64815         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
64816         in <http://bugzilla.redhat.com/250077>.
64817
64818 2007-07-25  Peter O'Gorman  <peter@pogma.com>
64819             Bruno Haible  <bruno@clisp.org>
64820
64821         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
64822         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
64823         #include_next, gives a diagnostic about it, but reports no error in
64824         the exit code.
64825         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
64826
64827 2007-07-24  Ben Pfaff  <blp@gnu.org>
64828
64829         Improve name: "count-one-bits" is better than "popcount".
64830         * MODULES.html.sh: Update name.
64831         * lib/popcount.h: Renamed lib/count-one-bits.h.
64832         (popcount): Renamed count_one_bits.
64833         (popcountl): Renamed count_one_bits_l.
64834         (popcountll): Renamed count_one_bits_ll.
64835         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
64836         * modules/popcount: Renamed module/count-one-bits.
64837         * modules/popcount-tests: Renamed module/count-one-bits-tests.
64838         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
64839
64840 2007-07-23  Ben Pfaff  <blp@gnu.org>
64841
64842         * lib/popcount.h (popcount32): Reduce size of constants, to allow
64843         better code generation, and add U to large constants to avoid
64844         warnings, in non-GCC case.
64845         Suggested by Bruno Haible.
64846
64847 2007-07-23  Ben Pfaff  <blp@gnu.org>
64848
64849         * lib/popcount.h: Use verify_true instead of if...abort.
64850         * modules/popcount: Depend on verify module.
64851         Suggested by Jim Meyering.
64852
64853 2007-07-23  Bruno Haible  <bruno@clisp.org>
64854
64855         * gnulib-tool (func_import): Create a .cvsignore file also when the
64856         directory is not yet in CVS but the toplevel directory is. When
64857         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
64858         Reported by Karl Berry.
64859
64860 2007-07-22  Ben Pfaff  <blp@gnu.org>
64861
64862         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
64863         case.
64864         Suggested by Eric Blake.
64865
64866 2007-07-22  Ben Pfaff  <blp@gnu.org>
64867
64868         New module: popcount.
64869         * MODULES.html.sh: Add popcount.
64870         * modules/popcount: New file.
64871         * modules/popcount-tests: New file.
64872         * tests/test-popcount.c: New file.
64873         * lib/popcount.h: New file.
64874         * m4/popcount.m4: New file.
64875
64876 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64877
64878         * build-aux/announce-gen: Update to GPLv3.
64879
64880         * build-aux/config.guess: Update from config.
64881
64882 2007-07-21  Bruno Haible  <bruno@clisp.org>
64883
64884         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
64885         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
64886
64887 2007-07-20  Jim Meyering  <jim@meyering.net>
64888
64889         * check-module: Diagnose a self-dependency.
64890
64891 2007-07-19  Bruno Haible  <bruno@clisp.org>
64892
64893         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
64894         empty.
64895         Reported by Eric Blake.
64896
64897 2007-07-18  Bruno Haible  <bruno@clisp.org>
64898
64899         * gnulib-tool: New options --po-base, --po-domain.
64900         (func_usage): Document them.
64901         (pobase, po_domain): New variables.
64902         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
64903         DEFAULT_TEXT_DOMAIN.
64904         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
64905         (func_import): Consider pobase and po_domain. Create a po/ directory.
64906         (func_create_testdir): Set pobase and po_domain to empty.
64907         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
64908         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
64909
64910 2007-07-18  Bruno Haible  <bruno@clisp.org>
64911
64912         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64913         EXTRA_DIST augmentation for files in build-aux/.
64914
64915 2007-07-16  Bruno Haible  <bruno@clisp.org>
64916
64917         * modules/lseek (License): Use the synonymous term "LGPLv2+".
64918         * modules/getdelim (License): Likewise.
64919
64920 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64921
64922         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
64923         * modules/d-type (License): Likewise.
64924         * modules/extensions (License): Likewise.
64925         * modules/fnmatch (License): Likewise.
64926         * modules/fseeko (License): Likewise.
64927         * modules/getaddrinfo (License): Likewise.
64928         * modules/getline (License): Likewise.
64929         * modules/getlogin_r (License): Likewise.
64930         * modules/getpass (License): Likewise.
64931         * modules/gettimeofday (License): Likewise.
64932         * modules/glob (License): Likewise.
64933         * modules/inet_ntop (License): Likewise.
64934         * modules/malloc (License): Likewise.
64935         * modules/malloca (License): Likewise.
64936         * modules/memmem (License): Likewise.
64937         * modules/mempcpy (License): Likewise.
64938         * modules/memset (License): Likewise.
64939         * modules/minmax (License): Likewise.
64940         * modules/mktime (License): Likewise.
64941         * modules/netinet_in (License): Likewise.
64942         * modules/pathmax (License): Likewise.
64943         * modules/poll (License): Likewise.
64944         * modules/regex (License): Likewise.
64945         * modules/snprintf (License): Likewise.
64946         * modules/stdbool (License): Likewise.
64947         * modules/stdint (License): Likewise.
64948         * modules/stdio (License): Likewise.
64949         * modules/strcase (License): Likewise.
64950         * modules/strcasestr (License): Likewise.
64951         * modules/strdup (License): Likewise.
64952         * modules/string (License): Likewise.
64953         * modules/strndup (License): Likewise.
64954         * modules/strnlen (License): Likewise.
64955         * modules/strpbrk (License): Likewise.
64956         * modules/strptime (License): Likewise.
64957         * modules/strsep (License): Likewise.
64958         * modules/sys_select (License): Likewise.
64959         * modules/sys_socket (License): Likewise.
64960         * modules/sys_stat (License): Likewise.
64961         * modules/sys_time (License): Likewise.
64962         * modules/time (License): Likewise.
64963         * modules/time_r (License): Likewise.
64964         * modules/timegm (License): Likewise.
64965         * modules/unistd (License): Likewise.
64966         * modules/vsnprintf (License): Likewise.
64967         * modules/wctype (License): Likewise.
64968
64969 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64970
64971         * modules/argz (License): LGPLv2+.
64972
64973 2007-07-15  Karl Berry  <karl@gnu.org>
64974
64975         * doc/gnulib.texi: revise node structure per new fdl.texi.
64976
64977 2007-07-14  Bruno Haible  <bruno@clisp.org>
64978
64979         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
64980         the output file.
64981         * lib/uniname/uninames.h: Regenerated.
64982
64983 2007-07-14  Karl Berry  <karl@gnu.org>
64984
64985         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
64986         omitting sectioning and index commands.
64987
64988 2007-07-13  Bruno Haible  <bruno@clisp.org>
64989
64990         New gnulib-tool option --more-symlinks.
64991         * gnulib-tool (func_usage): Document --more-symlinks.
64992         (do_copyrights): New variable.
64993         Recognize option --more-symlinks.
64994         (func_import): Don't add a copyright notice transform to
64995         sed_transform_lib_file if do_copyrights is empty.
64996
64997 2007-07-13  Bruno Haible  <bruno@clisp.org>
64998
64999         * lib/vasnprintf.c (decimal_point_char): Define also if
65000         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
65001         && !NEED_PRINTF_DIRECTIVE_A.
65002         Reported by Clemens Koller <clemens.koller@anagramm.de> via
65003         Gary V. Vaughan <gary@gnu.org>.
65004
65005 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
65006
65007         * lib/inttypes_.h: Undo previous change, since it was fixed
65008         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
65009
65010 2007-07-13  Bruno Haible  <bruno@clisp.org>
65011
65012         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
65013         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
65014
65015 2007-07-13  Jim Meyering  <jim@meyering.net>
65016
65017         df: Don't fail for Tru64's "file-on-file mount".
65018         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
65019         so we fall through and use statfs instead.  Details here:
65020         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
65021         Reported by Albert Chin.
65022
65023 2007-07-13  Bruno Haible  <bruno@clisp.org>
65024
65025         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
65026         * modules/configmake (License): Likewise.
65027         * modules/gettext (License): Likewise.
65028         * modules/gettext-h (License): Likewise.
65029         * modules/include_next (License): Likewise.
65030         * modules/link-warning (License): Likewise.
65031         * modules/localcharset (License): Likewise.
65032         * modules/localename (License): Likewise.
65033         * modules/lock (License): Likewise.
65034         * modules/relocatable-lib-lgpl (License): Likewise.
65035         * modules/size_max (License): Likewise.
65036         * modules/vasnprintf (License): Likewise.
65037         * modules/wchar (License): Likewise.
65038         * modules/xsize (License): Likewise.
65039
65040 2007-07-13  Bruno Haible  <bruno@clisp.org>
65041
65042         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
65043         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
65044
65045 2007-07-12  Bruno Haible  <bruno@clisp.org>
65046
65047         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
65048         in the modules files.
65049
65050 2007-07-11  Karl Berry  <karl@gnu.org>
65051
65052         * MODULES.html.sh (func_module): use
65053          sed -e '\|^'"${includefile}"'$|d'
65054          instead of /.../d, to avoid errors on $includefile's containing /.
65055
65056 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65057
65058         * gnulib-tool (func_import): Avoid duplication of --avoid
65059         statements
65060         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
65061         names to `_' in variable names.
65062
65063 2007-07-10  Eric Blake  <ebb9@byu.net>
65064
65065         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
65066         * NEWS: Document this change.
65067
65068 2007-07-08  Bruno Haible  <bruno@clisp.org>
65069
65070         Update to Unicode 5.0.
65071         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
65072         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
65073         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
65074         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
65075         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
65076         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
65077         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
65078         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
65079         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
65080         U+10A3F, U+1D242..U+1D244.
65081         (nonspacing_table_ind): Update.
65082         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
65083         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
65084
65085 2007-07-08  Bruno Haible  <bruno@clisp.org>
65086
65087         Update to Unicode 5.0.
65088         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
65089         code transform. Extend the name index field of unicode_name_to_code and
65090         unicode_code_to_name from 16 to 24 bits.
65091         * lib/uniname/uniname.c (unicode_character_name,
65092         unicode_name_character): Add the range 0x12xxx to the code transform.
65093         * lib/uniname/uninames.h: Regenerated.
65094         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
65095
65096 2007-07-07  Bruno Haible  <bruno@clisp.org>
65097
65098         * modules/wcwidth-tests: New file.
65099         * tests/test-wcwidth.c: New file.
65100
65101         Work around MacOS X wcwidth() bug.
65102         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
65103         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
65104         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
65105         original wcwidth in non-UTF-8 locales.
65106         * modules/wcwidth (Depends-on): Add localcharset, streq,
65107         uniwidth/width.
65108         * doc/functions/wcwidth.texi: Update.
65109
65110 2007-07-07  Bruno Haible  <bruno@clisp.org>
65111
65112         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
65113         (wcwidth): New declaration.
65114         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
65115         macros.
65116         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
65117         here. Prepare for creating <wchar.h> unconditionally.
65118         * modules/wchar (Depends-on): Add link-warning.
65119         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
65120         REPLACE_WCWIDTH, and GL_LINK_WARNING.
65121         * lib/wcwidth.h: Remove file.
65122         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
65123         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
65124         * modules/wcwidth (Files): Remove lib/wcwidth.h.
65125         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
65126         (Include): Replace wcwidth.h with <wchar.h>.
65127         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
65128         * lib/mbchar.h: Don't include wcwidth.h.
65129         * lib/mbswidth.c: Likewise.
65130         * NEWS: Mention the change.
65131
65132 2007-07-07  Bruno Haible  <bruno@clisp.org>
65133
65134         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
65135         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
65136         definition with an external declaration.
65137         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
65138         defined as a function. Remove AC_C_INLINE requirement.
65139         * modules/wcwidth (Files): Add lib/wcwidth.c.
65140         (Makefile.am): Remove redundant statement.
65141
65142 2007-07-07  Bruno Haible  <bruno@clisp.org>
65143
65144         * MODULES.html.sh (Unicode string functions): Add the new modules.
65145
65146         * tests/uniwidth/test-u32-strwidth.c: New file.
65147         * modules/uniwidth/u32-strwidth-tests: New file.
65148
65149         * lib/uniwidth/u32-strwidth.c: New file.
65150         * modules/uniwidth/u32-strwidth: New file.
65151
65152         * tests/uniwidth/test-u16-strwidth.c: New file.
65153         * modules/uniwidth/u16-strwidth-tests: New file.
65154
65155         * lib/uniwidth/u16-strwidth.c: New file.
65156         * modules/uniwidth/u16-strwidth: New file.
65157
65158         * tests/uniwidth/test-u8-strwidth.c: New file.
65159         * modules/uniwidth/u8-strwidth-tests: New file.
65160
65161         * lib/uniwidth/u8-strwidth.c: New file.
65162         * modules/uniwidth/u8-strwidth: New file.
65163
65164         * tests/uniwidth/test-u32-width.c: New file.
65165         * modules/uniwidth/u32-width-tests: New file.
65166
65167         * lib/uniwidth/u32-width.c: New file.
65168         * modules/uniwidth/u32-width: New file.
65169
65170         * tests/uniwidth/test-u16-width.c: New file.
65171         * modules/uniwidth/u16-width-tests: New file.
65172
65173         * lib/uniwidth/u16-width.c: New file.
65174         * modules/uniwidth/u16-width: New file.
65175
65176         * tests/uniwidth/test-u8-width.c: New file.
65177         * modules/uniwidth/u8-width-tests: New file.
65178
65179         * lib/uniwidth/u8-width.c: New file.
65180         * modules/uniwidth/u8-width: New file.
65181
65182         * tests/uniwidth/test-uc_width.c: New file.
65183         * modules/uniwidth/width-tests: New file.
65184
65185         * lib/uniwidth/width.c: New file, from GNU libiconv.
65186         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
65187         * modules/uniwidth/width: New file.
65188
65189         * lib/uniwidth.h: New file, from GNU libiconv.
65190         * modules/uniwidth/base: New file.
65191
65192 2007-07-07  Bruno Haible  <bruno@clisp.org>
65193
65194         * lib/uniname.h: New file, from GNU gettext.
65195         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
65196         * lib/uniname/uninames.h: New file, from GNU gettext.
65197         * lib/uniname/uniname.c: New file, from GNU gettext.
65198         * tests/uniname/test-uninames.sh: New file.
65199         * tests/uniname/test-uninames.c: New file, from GNU gettext.
65200         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
65201         * modules/uniname/base: New file.
65202         * modules/uniname/uniname: New file.
65203         * modules/uniname/uniname-tests: New file.
65204         * MODULES.html.sh (Unicode string functions): Add the new modules.
65205
65206 2007-07-06  Bruno Haible  <bruno@clisp.org>
65207
65208         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
65209
65210 2007-07-06  Bruno Haible  <bruno@clisp.org>
65211
65212         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
65213         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
65214         includes <cygwin/sys_time.h> which includes <sys/select.h> which
65215         include <sys/time.h>.
65216         Reported by Eric Blake.
65217
65218 2007-07-06  Eric Blake  <ebb9@byu.net>
65219
65220         Fix testing canonicalize on cygwin.
65221         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
65222         Revert patch from 2007-06-19.
65223         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
65224         canonicalize module is also in use.
65225         * tests/test-canonicalize.c: New file.
65226         * tests/test-canonicalize.sh: Likewise.
65227         * modules/canonicalize-tests: Likewise.
65228
65229 2007-07-06  Jim Meyering  <jim@meyering.net>
65230
65231         * lib/getugroups.c (getugroups): Detect getgrent failure.
65232         Adjust comment to reflect reality: this function may return -1.
65233
65234 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
65235
65236         * build-aux/bootstrap (TP_URL,get_translations): Update to use
65237         the new TP address.
65238         (usage): Fix typo
65239         (gnulib_mk): New variable.
65240
65241 2007-07-05  Jim Meyering  <jim@meyering.net>
65242
65243         Don't let endgrent clobber errno, no matter how improbable.
65244         * lib/getugroups.c (getugroups): Save and restore errno around
65245         endgrent call.
65246
65247         Close the group DB even when failing with 2^31 or more members.
65248         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
65249
65250 2007-07-04  Jim Meyering  <jim@meyering.net>
65251
65252         * lib/getugroups.h: New file.
65253         * lib/getugroups.c: Include "getugroups.h".
65254         Remove uses of "register" keyword.
65255         Move local variable, "cp", down into scope where used.
65256         Give "username" parameter the "const" attribute.
65257         * modules/getugroups (Files): Add lib/getugroups.h
65258
65259 2007-07-04  Karl Berry  <karl@gnu.org>
65260
65261         * MODULES.html.sh (func_all_modules): Complete rename of
65262         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
65263
65264 2007-07-02  Bruno Haible  <bruno@clisp.org>
65265
65266         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
65267         mode, when inttypes.h comes from gnulib.
65268         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
65269
65270 2007-07-02  Simon Josefsson  <simon@josefsson.org>
65271
65272         * NEWS: Mention lgpl module name change.
65273
65274         * modules/lgpl-2.1: Renamed from lgpl.
65275
65276         * NEWS: Mention gpl module name change.
65277
65278         * modules/gpl-3.0: New file, based on gpl-2.0.
65279
65280         * modules/gpl-2.0: Renamed from gpl.
65281
65282         * modules/gpl: Fix filename, doc/gpl.texi is now found at
65283         doc/gpl-2.0.texi.
65284
65285 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65286
65287         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
65288         #define __STDC_LIMIT_MACROS temporarily while including
65289         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
65290         Problem reported by Joel E. Denny in
65291         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
65292
65293 2007-07-01  Bruno Haible  <bruno@clisp.org>
65294
65295         * lib/unistdio.h: New file.
65296         * lib/unistdio/u-asnprintf.h: New file.
65297         * lib/unistdio/u-asprintf.h: New file.
65298         * lib/unistdio/u-printf-args.c: New file.
65299         * lib/unistdio/u-printf-args.h: New file.
65300         * lib/unistdio/u-printf-parse.h: New file.
65301         * lib/unistdio/u-snprintf.h: New file.
65302         * lib/unistdio/u-sprintf.h: New file.
65303         * lib/unistdio/u-vasprintf.h: New file.
65304         * lib/unistdio/u-vsnprintf.h: New file.
65305         * lib/unistdio/u-vsprintf.h: New file.
65306         * lib/unistdio/ulc-asnprintf.c: New file.
65307         * lib/unistdio/ulc-asprintf.c: New file.
65308         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
65309         * lib/unistdio/ulc-printf-parse.c: New file.
65310         * lib/unistdio/ulc-snprintf.c: New file.
65311         * lib/unistdio/ulc-sprintf.c: New file.
65312         * lib/unistdio/ulc-vasnprintf.c: New file.
65313         * lib/unistdio/ulc-vasprintf.c: New file.
65314         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
65315         * lib/unistdio/ulc-vsnprintf.c: New file.
65316         * lib/unistdio/ulc-vsprintf.c: New file.
65317         * lib/unistdio/u8-asnprintf.c: New file.
65318         * lib/unistdio/u8-asprintf.c: New file.
65319         * lib/unistdio/u8-printf-parse.c: New file.
65320         * lib/unistdio/u8-snprintf.c: New file.
65321         * lib/unistdio/u8-sprintf.c: New file.
65322         * lib/unistdio/u8-vasnprintf.c: New file.
65323         * lib/unistdio/u8-vasprintf.c: New file.
65324         * lib/unistdio/u8-vsnprintf.c: New file.
65325         * lib/unistdio/u8-vsprintf.c: New file.
65326         * lib/unistdio/u8-u8-asnprintf.c: New file.
65327         * lib/unistdio/u8-u8-asprintf.c: New file.
65328         * lib/unistdio/u8-u8-snprintf.c: New file.
65329         * lib/unistdio/u8-u8-sprintf.c: New file.
65330         * lib/unistdio/u8-u8-vasnprintf.c: New file.
65331         * lib/unistdio/u8-u8-vasprintf.c: New file.
65332         * lib/unistdio/u8-u8-vsnprintf.c: New file.
65333         * lib/unistdio/u8-u8-vsprintf.c: New file.
65334         * lib/unistdio/u16-asnprintf.c: New file.
65335         * lib/unistdio/u16-asprintf.c: New file.
65336         * lib/unistdio/u16-printf-parse.c: New file.
65337         * lib/unistdio/u16-snprintf.c: New file.
65338         * lib/unistdio/u16-sprintf.c: New file.
65339         * lib/unistdio/u16-vasnprintf.c: New file.
65340         * lib/unistdio/u16-vasprintf.c: New file.
65341         * lib/unistdio/u16-vsnprintf.c: New file.
65342         * lib/unistdio/u16-vsprintf.c: New file.
65343         * lib/unistdio/u16-u16-asnprintf.c: New file.
65344         * lib/unistdio/u16-u16-asprintf.c: New file.
65345         * lib/unistdio/u16-u16-snprintf.c: New file.
65346         * lib/unistdio/u16-u16-sprintf.c: New file.
65347         * lib/unistdio/u16-u16-vasnprintf.c: New file.
65348         * lib/unistdio/u16-u16-vasprintf.c: New file.
65349         * lib/unistdio/u16-u16-vsnprintf.c: New file.
65350         * lib/unistdio/u16-u16-vsprintf.c: New file.
65351         * lib/unistdio/u32-asnprintf.c: New file.
65352         * lib/unistdio/u32-asprintf.c: New file.
65353         * lib/unistdio/u32-printf-parse.c: New file.
65354         * lib/unistdio/u32-snprintf.c: New file.
65355         * lib/unistdio/u32-sprintf.c: New file.
65356         * lib/unistdio/u32-vasnprintf.c: New file.
65357         * lib/unistdio/u32-vasprintf.c: New file.
65358         * lib/unistdio/u32-vsnprintf.c: New file.
65359         * lib/unistdio/u32-vsprintf.c: New file.
65360         * lib/unistdio/u32-u32-asnprintf.c: New file.
65361         * lib/unistdio/u32-u32-asprintf.c: New file.
65362         * lib/unistdio/u32-u32-snprintf.c: New file.
65363         * lib/unistdio/u32-u32-sprintf.c: New file.
65364         * lib/unistdio/u32-u32-vasnprintf.c: New file.
65365         * lib/unistdio/u32-u32-vasprintf.c: New file.
65366         * lib/unistdio/u32-u32-vsnprintf.c: New file.
65367         * lib/unistdio/u32-u32-vsprintf.c: New file.
65368         * tests/unistdio/test-ulc-asnprintf1.c: New file.
65369         * tests/unistdio/test-ulc-asnprintf1.h: New file.
65370         * tests/unistdio/test-ulc-printf1.h: New file.
65371         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
65372         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
65373         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
65374         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
65375         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
65376         * tests/unistdio/test-ulc-vasprintf1.c: New file.
65377         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
65378         * tests/unistdio/test-ulc-vsprintf1.c: New file.
65379         * tests/unistdio/test-u8-asnprintf1.c: New file.
65380         * tests/unistdio/test-u8-asnprintf1.h: New file.
65381         * tests/unistdio/test-u8-printf1.h: New file.
65382         * tests/unistdio/test-u8-vasnprintf1.c: New file.
65383         * tests/unistdio/test-u8-vasnprintf2.c: New file.
65384         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
65385         * tests/unistdio/test-u8-vasnprintf3.c: New file.
65386         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
65387         * tests/unistdio/test-u8-vasprintf1.c: New file.
65388         * tests/unistdio/test-u8-vsnprintf1.c: New file.
65389         * tests/unistdio/test-u8-vsprintf1.c: New file.
65390         * tests/unistdio/test-u16-asnprintf1.c: New file.
65391         * tests/unistdio/test-u16-asnprintf1.h: New file.
65392         * tests/unistdio/test-u16-printf1.h: New file.
65393         * tests/unistdio/test-u16-vasnprintf1.c: New file.
65394         * tests/unistdio/test-u16-vasnprintf2.c: New file.
65395         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
65396         * tests/unistdio/test-u16-vasnprintf3.c: New file.
65397         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
65398         * tests/unistdio/test-u16-vasprintf1.c: New file.
65399         * tests/unistdio/test-u16-vsnprintf1.c: New file.
65400         * tests/unistdio/test-u16-vsprintf1.c: New file.
65401         * tests/unistdio/test-u32-asnprintf1.c: New file.
65402         * tests/unistdio/test-u32-asnprintf1.h: New file.
65403         * tests/unistdio/test-u32-printf1.h: New file.
65404         * tests/unistdio/test-u32-vasnprintf1.c: New file.
65405         * tests/unistdio/test-u32-vasnprintf2.c: New file.
65406         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
65407         * tests/unistdio/test-u32-vasnprintf3.c: New file.
65408         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
65409         * tests/unistdio/test-u32-vasprintf1.c: New file.
65410         * tests/unistdio/test-u32-vsnprintf1.c: New file.
65411         * tests/unistdio/test-u32-vsprintf1.c: New file.
65412         * modules/unistdio/base: New file.
65413         * modules/unistdio/u-printf-args: New file.
65414         * modules/unistdio/ulc-asnprintf: New file.
65415         * modules/unistdio/ulc-asprintf: New file.
65416         * modules/unistdio/ulc-fprintf: New file.
65417         * modules/unistdio/ulc-printf-parse: New file.
65418         * modules/unistdio/ulc-snprintf: New file.
65419         * modules/unistdio/ulc-sprintf: New file.
65420         * modules/unistdio/ulc-vasnprintf: New file.
65421         * modules/unistdio/ulc-vasprintf: New file.
65422         * modules/unistdio/ulc-vfprintf: New file.
65423         * modules/unistdio/ulc-vsnprintf: New file.
65424         * modules/unistdio/ulc-vsprintf: New file.
65425         * modules/unistdio/u8-asnprintf: New file.
65426         * modules/unistdio/u8-asprintf: New file.
65427         * modules/unistdio/u8-printf-parse: New file.
65428         * modules/unistdio/u8-snprintf: New file.
65429         * modules/unistdio/u8-sprintf: New file.
65430         * modules/unistdio/u8-vasnprintf: New file.
65431         * modules/unistdio/u8-vasprintf: New file.
65432         * modules/unistdio/u8-vsnprintf: New file.
65433         * modules/unistdio/u8-vsprintf: New file.
65434         * modules/unistdio/u8-u8-asnprintf: New file.
65435         * modules/unistdio/u8-u8-asprintf: New file.
65436         * modules/unistdio/u8-u8-snprintf: New file.
65437         * modules/unistdio/u8-u8-sprintf: New file.
65438         * modules/unistdio/u8-u8-vasnprintf: New file.
65439         * modules/unistdio/u8-u8-vasprintf: New file.
65440         * modules/unistdio/u8-u8-vsnprintf: New file.
65441         * modules/unistdio/u8-u8-vsprintf: New file.
65442         * modules/unistdio/u16-asnprintf: New file.
65443         * modules/unistdio/u16-asprintf: New file.
65444         * modules/unistdio/u16-printf-parse: New file.
65445         * modules/unistdio/u16-snprintf: New file.
65446         * modules/unistdio/u16-sprintf: New file.
65447         * modules/unistdio/u16-vasnprintf: New file.
65448         * modules/unistdio/u16-vasprintf: New file.
65449         * modules/unistdio/u16-vsnprintf: New file.
65450         * modules/unistdio/u16-vsprintf: New file.
65451         * modules/unistdio/u16-u16-asnprintf: New file.
65452         * modules/unistdio/u16-u16-asprintf: New file.
65453         * modules/unistdio/u16-u16-snprintf: New file.
65454         * modules/unistdio/u16-u16-sprintf: New file.
65455         * modules/unistdio/u16-u16-vasnprintf: New file.
65456         * modules/unistdio/u16-u16-vasprintf: New file.
65457         * modules/unistdio/u16-u16-vsnprintf: New file.
65458         * modules/unistdio/u16-u16-vsprintf: New file.
65459         * modules/unistdio/u32-asnprintf: New file.
65460         * modules/unistdio/u32-asprintf: New file.
65461         * modules/unistdio/u32-printf-parse: New file.
65462         * modules/unistdio/u32-snprintf: New file.
65463         * modules/unistdio/u32-sprintf: New file.
65464         * modules/unistdio/u32-vasnprintf: New file.
65465         * modules/unistdio/u32-vasprintf: New file.
65466         * modules/unistdio/u32-vsnprintf: New file.
65467         * modules/unistdio/u32-vsprintf: New file.
65468         * modules/unistdio/u32-u32-asnprintf: New file.
65469         * modules/unistdio/u32-u32-asprintf: New file.
65470         * modules/unistdio/u32-u32-snprintf: New file.
65471         * modules/unistdio/u32-u32-sprintf: New file.
65472         * modules/unistdio/u32-u32-vasnprintf: New file.
65473         * modules/unistdio/u32-u32-vasprintf: New file.
65474         * modules/unistdio/u32-u32-vsnprintf: New file.
65475         * modules/unistdio/u32-u32-vsprintf: New file.
65476         * modules/unistdio/ulc-asnprintf-tests: New file.
65477         * modules/unistdio/ulc-vasnprintf-tests: New file.
65478         * modules/unistdio/ulc-vasprintf-tests: New file.
65479         * modules/unistdio/ulc-vsnprintf-tests: New file.
65480         * modules/unistdio/ulc-vsprintf-tests: New file.
65481         * modules/unistdio/u8-asnprintf-tests: New file.
65482         * modules/unistdio/u8-vasnprintf-tests: New file.
65483         * modules/unistdio/u8-vasprintf-tests: New file.
65484         * modules/unistdio/u8-vsnprintf-tests: New file.
65485         * modules/unistdio/u8-vsprintf-tests: New file.
65486         * modules/unistdio/u16-asnprintf-tests: New file.
65487         * modules/unistdio/u16-vasnprintf-tests: New file.
65488         * modules/unistdio/u16-vasprintf-tests: New file.
65489         * modules/unistdio/u16-vsnprintf-tests: New file.
65490         * modules/unistdio/u16-vsprintf-tests: New file.
65491         * modules/unistdio/u32-asnprintf-tests: New file.
65492         * modules/unistdio/u32-vasnprintf-tests: New file.
65493         * modules/unistdio/u32-vasprintf-tests: New file.
65494         * modules/unistdio/u32-vsnprintf-tests: New file.
65495         * modules/unistdio/u32-vsprintf-tests: New file.
65496         * MODULES.html.sh (Unicode string functions): Add the new modules.
65497
65498 2007-07-01  Bruno Haible  <bruno@clisp.org>
65499
65500         * lib/sprintf.c (sprintf): Limit the available length estimation,
65501         to avoid address wraparound.
65502         * lib/vsprintf.c (vsprintf): Likewise.
65503         * modules/sprintf-posix (Dependencies): Add stdint.
65504         * modules/vsprintf-posix (Dependencies): Likewise.
65505
65506 2007-07-01  Bruno Haible  <bruno@clisp.org>
65507
65508         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
65509         Windows PATH as well. Conservative double-quoting. Comments.
65510
65511 2007-07-01  Bruno Haible  <bruno@clisp.org>
65512             Eric Blake  <ebb9@byu.net>
65513             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65514
65515         * gnulib-tool (self_abspathname): Fix algorithm to cope with
65516         empty components in $PATH, denoting '.'.
65517
65518 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65519
65520         * gnulib-tool: Fix indentation.
65521         (func_create_megatestdir): Likewise.
65522         Report by Bruno Haible.
65523
65524 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65525
65526         Sync from Automake.
65527         * build-aux/gnupload: Fix shell portability issues with for loops.
65528         Report by Karl Berry.
65529
65530 2007-06-29  Simon Josefsson  <simon@josefsson.org>
65531
65532         * build-aux/maint.mk (POURL): Use translationproject.org.
65533
65534 2007-06-27  Simon Josefsson  <simon@josefsson.org>
65535             Bruno Haible  <bruno@clisp.org>
65536
65537         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
65538         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
65539         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
65540         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
65541         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
65542
65543 2007-06-27  Bruno Haible  <bruno@clisp.org>
65544
65545         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
65546         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
65547
65548 2007-06-26  Karl Berry  <karl@gnu.org>
65549
65550         * MODULES.html.sh: remove xreadlink-with-size.
65551
65552 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65553
65554         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
65555         method that I hope also handles the double-include problem noted
65556         by Bruno Haible in
65557         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
65558
65559 2007-06-23  Bruno Haible  <bruno@clisp.org>
65560
65561         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65562         Don't let the 'mostlyclean' target fail if the last subdirectory could
65563         not be removed.
65564         Reported by Karl Berry.
65565
65566 2007-06-23  Bruno Haible  <bruno@clisp.org>
65567
65568         * gnulib-tool (echo): Add a speedier workaround for ksh.
65569         * tests/test-echo.sh: Likewise.
65570
65571 2007-06-23  Bruno Haible  <bruno@clisp.org>
65572
65573         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
65574         * tests/test-echo.sh: Likewise.
65575
65576 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65577
65578         * gnulib-tool (IFS): Initialize early, so we don't set it to
65579         empty later.
65580         (self_abspathname): Rewrite algorithm to set it, reindent.
65581         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
65582         (func_create_megatestdir): Merge some sed scripts.
65583
65584 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65585
65586         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
65587         exposed by Sun Studio 11 cc on Solaris 8.
65588
65589 2007-06-22  Bruno Haible  <bruno@clisp.org>
65590
65591         * gnulib-tool (echo): Ensure the echo primitive does not interpret
65592         backslashes.
65593         * tests/test-echo.sh: New file.
65594
65595 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65596
65597         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
65598         simplify `sed_replace_build_aux' scripts, they are portable but
65599         echoing them with `echo' is not.
65600         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
65601
65602 2007-06-21  Karl Berry  <karl@gnu.org>
65603
65604         * config/srclist.txt: guess we can't handle the licenses via
65605         srclist at the moment.
65606
65607 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
65608
65609         * MODULES.html.sh: Add include_next.
65610         * modules/include_next: New file.
65611
65612 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
65613
65614         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
65615         INCLUDE_NEXT.
65616         (gl_CHECK_NEXT_HEADERS): New macro.
65617         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
65618         the obsolescent gl_ABSOLUTE_HEADER.
65619         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
65620         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
65621         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
65622         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
65623         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
65624         * m4/math_h.m4 (gl_MATH_H): Likewise.
65625         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
65626         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
65627         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
65628         * m4/stdint.m4 (gl_STDINT_H): Likewise.
65629         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
65630         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
65631         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
65632         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
65633         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
65634         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
65635         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
65636         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
65637         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
65638         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
65639         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
65640         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65641         * m4/inttypes.m4 (gl_INTTYPES_H): Define
65642         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
65643         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
65644         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
65645         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
65646         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
65647         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
65648         * lib/float_.h: Likewise.
65649         * lib/inttypes_.h: Likewise.
65650         * lib/math_.h: Likewise.
65651         * lib/search_.h: Likewise.
65652         * lib/signal_.h: Likewise.
65653         * lib/stdint_.h: Likewise.
65654         * lib/stdio_.h: Likewise.
65655         * lib/stdlib_.h: Likewise.
65656         * lib/string_.h: Likewise.
65657         * lib/sys_stat_.h: Likewise.
65658         * lib/sys_time_.h: Likewise.
65659         * lib/time_.h: Likewise.
65660         * lib/unistd_.h: Likewise.
65661         * lib/wchar_.h: Likewise.
65662         * lib/wctype_.h: Likewise.
65663         * lib/dirent_.h: Likewise.
65664         * lib/iconv_.h: Likewise.
65665         * lib/locale_.h: Likewise.
65666         * lib/netinet_in_.h: Likewise.
65667         * lib/sys_select_.h: Likewise.
65668         * lib/sys_socket_.h: Likewise.
65669         * lib/sysexits_.h: Likewise.
65670         * modules/fcntl (Depends-on): Depend on include_next, not
65671         absolute_header.
65672         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
65673         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
65674         * modules/fchdir: Likewise.
65675         * modules/float: Likewise.
65676         * modules/iconv_open: Likewise.
65677         * modules/inttypes: Likewise.
65678         * modules/locale: Likewise.
65679         * modules/math: Likewise.
65680         * modules/netinet_in: Likewise.
65681         * modules/search: Likewise.
65682         * modules/signal: Likewise.
65683         * modules/stdint: Likewise.
65684         * modules/stdio: Likewise.
65685         * modules/stdlib: Likewise.
65686         * modules/string: Likewise.
65687         * modules/sys_select: Likewise.
65688         * modules/sys_socket: Likewise.
65689         * modules/sys_stat: Likewise.
65690         * modules/sys_time: Likewise.
65691         * modules/sysexits: Likewise.
65692         * modules/time: Likewise.
65693         * modules/unistd: Likewise.
65694         * modules/wchar: Likewise.
65695         * modules/wctype: Likewise.
65696         * modules/sys_stat: Change maintainer to "all".
65697         * modules/unistd: Likewise.
65698
65699 2007-06-20  Karl Berry  <karl@gnu.org>
65700
65701         * config/srclist.txt: track www changes in license files.
65702
65703 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
65704
65705         * build-aux/bootstrap: Remove stray dot.
65706         Make sure build_aux settings are honored when linking
65707         gnulib_extra_files.
65708
65709 2007-06-19  Eric Blake  <ebb9@byu.net>
65710
65711         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
65712         Allow compilation on cygwin.
65713
65714 2007-06-19  Jim Meyering  <jim@meyering.net>
65715
65716         xreadlink-with-size: Remove module.  No longer used.
65717         Ex-callers now use xreadlink or mreadlink-with-size.
65718         * modules/xreadlink-with-size: Remove module.
65719         * lib/xreadlink-with-size.c: Remove file.
65720         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
65721         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
65722         just before the function definition *is* accurate.
65723
65724         Eliminate one way canonicalize_filename_mode could exit.
65725         * lib/canonicalize.c (canonicalize_filename_mode):
65726         Use mreadlink_with_size, not xreadlink_with_size.
65727
65728 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
65729
65730         Detect porting problems to FreeBSD/arm, which has time_t wider than
65731         long int.  Original problem reported for GNU diff by Xin Li in
65732         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
65733         * modules/getdate (Depends-on): Add intprops, verify.
65734         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
65735         is an integer type no wider than long int.
65736
65737 2007-06-18  Jim Meyering  <jim@meyering.net>
65738
65739         New module: mreadlink-with-size.
65740         * MODULES.html.sh: Add mreadlink-with-size.
65741         * modules/mreadlink-with-size: New module
65742         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
65743         not xreadlink-with-size.
65744         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
65745
65746 2007-06-16  Bruno Haible  <bruno@clisp.org>
65747
65748         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
65749         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
65750         Reported by Gary V. Vaughan <gary@gnu.org>.
65751
65752 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
65753
65754         Revamp lchown so that it lives in unistd.h where it belongs.
65755         * lib/lchown.h: Remove.
65756         * lib/dirchownmod.c: Don't include lib/lchown.h.
65757         * lib/fchownat.c: Likewise.
65758         * lib/openat.c: Likewise.
65759         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
65760         does not follow symlinks.
65761         (EOPNOTSUPP): Define if not defined.
65762         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
65763         is defined to 0.
65764         (lchown): New decl.
65765         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
65766         Do not check for lchown decl.
65767         Set REPLACE_LCHOWN.
65768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
65769         REPLACE_LCHOWN.
65770         * modules/chown: Make it clear it follows symlinks.
65771         * modules/lchown: Make it clear it doesn't follow symlinks.
65772         (Files): Remove lib/lchown.h
65773         (Depends-on): Add unistd.
65774         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
65775         (Include): Include <unistd.h>, not "lchown.h".
65776         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
65777         REPLACE_LCHOWN.
65778
65779 2007-06-15  Jim Meyering  <jim@meyering.net>
65780
65781         Change license (GPL to LGPL) of fsusage and dependents.
65782         * modules/fsusage (License): Change to LGPL.
65783         * modules/full-read (License): Likewise.
65784         * modules/full-write (License): Likewise.
65785         * modules/safe-read (License): Likewise.
65786         * modules/safe-write (License): Likewise.
65787
65788 2007-06-14  Ben Pfaff  <blp@gnu.org>
65789
65790         Missing part of allocsa -> malloca transition.
65791         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
65792         gl_MALLOCA.
65793
65794 2007-06-12  Bruno Haible  <bruno@clisp.org>
65795
65796         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
65797         to ia64, x86_64, i386.
65798         Reported by Eric Blake.
65799
65800 2007-06-12  Bruno Haible  <bruno@clisp.org>
65801
65802         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
65803         cross-compiling to x86_64.
65804
65805 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
65806
65807         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
65808         glitch reported by Ralf Wildenhues in
65809         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
65810
65811         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
65812         Vin Shelton.
65813
65814 2007-06-11  Bruno Haible  <bruno@clisp.org>
65815
65816         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
65817         replacement string.
65818         Reported by Eric Blake.
65819
65820 2007-06-10  Bruno Haible  <bruno@clisp.org>
65821
65822         Prepare vasnprintf code for use with Unicode strings.
65823         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
65824         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
65825         TYPE_U32_STRING.
65826         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
65827         a_u32_string variants.
65828         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65829         * lib/printf-args.c: Don't include config.h and the specification
65830         header if PRINTF_FETCHARGS is already defined.
65831         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65832         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
65833         TYPE_U16_STRING, TYPE_U32_STRING.
65834         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
65835         u16_directive, u16_directives, u32_directive, u32_directives): New
65836         types.
65837         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
65838         New declarations.
65839         * lib/printf-parse.c: Don't include config.h and the specification
65840         header if PRINTF_PARSE is already defined. Eliminate the set of
65841         parameters for WIDE_CHAR_VERSION; the user of this file must provide
65842         them now. Include c-ctype.h.
65843         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
65844         directive and CHAR_T_ONLY_ASCII.
65845         * lib/vasnprintf.c: Don't include config.h and the specification header
65846         if VASNPRINTF is already defined.
65847         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
65848         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
65849         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
65850         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
65851         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
65852         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
65853         code accordingly.
65854         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
65855         pad_ourselves also in this case, with the 'c' and 's' directives, and
65856         with a different notion of "width".
65857         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
65858
65859 2007-06-10  Bruno Haible  <bruno@clisp.org>
65860
65861         * modules/unistr/u32-mbsnlen: New file.
65862         * lib/unistr/u32-mbsnlen.c: New file.
65863
65864         * modules/unistr/u16-mbsnlen: New file.
65865         * lib/unistr/u16-mbsnlen.c: New file.
65866
65867         * modules/unistr/u8-mbsnlen: New file.
65868         * lib/unistr/u8-mbsnlen.c: New file.
65869
65870         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
65871         declarations.
65872
65873 2007-06-10  Bruno Haible  <bruno@clisp.org>
65874
65875         * lib/string_.h (mbsnlen): New declaration.
65876         * lib/mbsnlen.c: New file.
65877         * m4/mbsnlen.m4: New file.
65878         * modules/mbsnlen: New file.
65879         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
65880         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
65881         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
65882
65883 2007-06-10  Bruno Haible  <bruno@clisp.org>
65884
65885         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
65886
65887 2007-06-10  Bruno Haible  <bruno@clisp.org>
65888
65889         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
65890         * lib/mbuiter.h: Likewise.
65891
65892 2007-06-10  Bruno Haible  <bruno@clisp.org>
65893
65894         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
65895         declaration.
65896
65897 2007-06-10  Karl Berry  <karl@gnu.org>
65898
65899         * config/srclist.txt: remove gettext entries, Bruno prefers
65900         to update individually.
65901
65902 2007-06-10  Bruno Haible  <bruno@clisp.org>
65903
65904         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
65905         'maxlen'. Ensure only length + width bytes are allocated, not
65906         length + 1 + width.
65907
65908 2007-06-09  Bruno Haible  <bruno@clisp.org>
65909
65910         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
65911         (CHAR_T): Remove macro.
65912         (VASNPRINTF): Update.
65913
65914 2007-06-09  Bruno Haible  <bruno@clisp.org>
65915
65916         * MODULES.html.sh (Unicode string functions): Add the new modules.
65917
65918         * modules/uniconv/u32-conv-to-enc: New file.
65919         * lib/uniconv/u32-conv-to-enc.c: New file.
65920         * modules/uniconv/u32-conv-to-enc-tests: New file.
65921         * tests/uniconv/test-u32-conv-to-enc.c: New file.
65922
65923         * modules/uniconv/u16-conv-to-enc: New file.
65924         * lib/uniconv/u16-conv-to-enc.c: New file.
65925         * lib/uniconv/u-conv-to-enc.h: New file.
65926         * modules/uniconv/u16-conv-to-enc-tests: New file.
65927         * tests/uniconv/test-u16-conv-to-enc.c: New file.
65928
65929         * modules/uniconv/u8-conv-to-enc: New file.
65930         * lib/uniconv/u8-conv-to-enc.c: New file.
65931         * modules/uniconv/u8-conv-to-enc-tests: New file.
65932         * tests/uniconv/test-u8-conv-to-enc.c: New file.
65933
65934         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
65935         u32_conv_to_encoding): New declarations.
65936
65937 2007-06-09  Bruno Haible  <bruno@clisp.org>
65938
65939         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
65940
65941 2007-06-09  Bruno Haible  <bruno@clisp.org>
65942
65943         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
65944         * modules/malloca: Renamed from modules/allocsa, updated.
65945         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
65946         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
65947         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
65948         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
65949         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
65950         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
65951         * modules/xmalloca: Renamed from modules/xallocsa, updated.
65952         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
65953         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
65954         * modules/c-strcasestr (Depends-on): Update.
65955         * lib/c-strcasestr.c: Update.
65956         * modules/c-strstr (Depends-on): Update.
65957         * lib/c-strstr.c: Update.
65958         * modules/canonicalize-lgpl (Depends-on): Update.
65959         * lib/canonicalize-lgpl.c: Update.
65960         * modules/clean-temp (Depends-on): Update.
65961         * lib/clean-temp.c: Update.
65962         * modules/csharpcomp (Depends-on): Update.
65963         * lib/csharpcomp.c: Update.
65964         * modules/csharpexec (Depends-on): Update.
65965         * lib/csharpexec.c: Update.
65966         * modules/javacomp (Depends-on): Update.
65967         * lib/javacomp.c: Update.
65968         * modules/javaexec (Depends-on): Update.
65969         * lib/javaexec.c: Update.
65970         * modules/mbscasestr (Depends-on): Update.
65971         * lib/mbscasestr.c: Update.
65972         * modules/mbsstr (Depends-on): Update.
65973         * lib/mbsstr.c: Update.
65974         * modules/setenv (Depends-on): Update.
65975         * lib/setenv.c: Update.
65976         * modules/strcasestr (Depends-on): Update.
65977         * lib/strcasestr.c: Update.
65978         * modules/striconveha (Depends-on): Update.
65979         * lib/striconveha.c: Update.
65980         * modules/relocatable-prog-wrapper (Files): Update.
65981         * lib/relocwrapper.c: Update.
65982         * build-aux/install-reloc: Update.
65983         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
65984
65985 2007-06-08  Bruno Haible  <bruno@clisp.org>
65986
65987         Port to uClibc.
65988         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
65989         * lib/fpurge.c (fpurge): Likewise.
65990         * lib/freading.c (freading): Likewise.
65991         * lib/fseeko.c (rpl_fseeko): Likewise.
65992         * lib/fseterr.c (fseterr): Likewise.
65993         * lib/fwriting.c (fwriting): Likewise.
65994         * tests/test-fflush.c (main): Avoid a failure on uClibc.
65995
65996 2007-06-08  Bruno Haible  <bruno@clisp.org>
65997
65998         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
65999         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
66000         * modules/gettext (Files): Add m4/intlmacosx.m4.
66001
66002 2007-06-07  Bruno Haible  <bruno@clisp.org>
66003
66004         * modules/localename-tests: New file.
66005         * tests/test-localename.c: New file.
66006
66007         New module 'localename'.
66008         * lib/localename.h: New file.
66009         * lib/localename.c: New file, from GNU gettext.
66010         * m4/localename.m4: New file.
66011         * modules/localename: New file.
66012
66013 2007-06-07  Bruno Haible  <bruno@clisp.org>
66014
66015         Work around the lack of <wchar.h> on some builds of uClibc.
66016         * doc/headers/wchar.texi: Update.
66017         * lib/wchar_.h: Include <wchar.h> only if it exists.
66018         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
66019         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
66020         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
66021         doesn't exist.
66022         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
66023         * modules/mbfile (Depends-on): Add wchar.
66024         * modules/mbiter (Depends-on): Likewise.
66025         * modules/mbuiter (Depends-on): Likewise.
66026         Reported by Simon Josefsson.
66027
66028 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
66029
66030         Work around problem reported by Steven M. Schweda in
66031         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
66032         Tru64 5.1B with the Compaq compiler environment installed declares
66033         an 'isblank' function but does not define it in the C library.
66034         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
66035         * lib/regex_internal.h (isblank): Likewise.
66036         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
66037         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66038
66039 2007-06-05  Bruno Haible  <bruno@clisp.org>
66040
66041         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
66042         ia64.
66043         * modules/printf-safe: New file.
66044         * modules/fprintf-posix (Depends-on): Add printf-safe.
66045         * modules/printf-posix (Depends-on): Likewise.
66046         * modules/snprintf-posix (Depends-on): Likewise.
66047         * modules/sprintf-posix (Depends-on): Likewise.
66048         * modules/vasnprintf-posix (Depends-on): Likewise.
66049         * modules/vasprintf-posix (Depends-on): Likewise.
66050         * modules/vfprintf-posix (Depends-on): Likewise.
66051         * modules/vprintf-posix (Depends-on): Likewise.
66052         * modules/vsnprintf-posix (Depends-on): Likewise.
66053         * modules/vsprintf-posix (Depends-on): Likewise.
66054         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
66055         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
66056         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
66057         "no" on i386, x86_64, ia64.
66058         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
66059         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66060         on i386, x86_64, ia64.
66061         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
66062         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66063         on i386, x86_64, ia64.
66064         * tests/test-vasnprintf-posix.c: Include float.h.
66065         (LDBL80_WORDS): New macro.
66066         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66067         on i386, x86_64, ia64.
66068         * tests/test-vasprintf-posix.c: Include float.h.
66069         (LDBL80_WORDS): New macro.
66070         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66071         on i386, x86_64, ia64.
66072         * tests/test-snprintf-posix.c: Include float.h.
66073         * tests/test-sprintf-posix.c: Likewise.
66074         * tests/test-vsnprintf-posix.c: Likewise.
66075         * tests/test-vsprintf-posix.c: Likewise.
66076
66077 2007-06-05  Bruno Haible  <bruno@clisp.org>
66078
66079         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
66080         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
66081         non-IEEE numbers on i386, x86_64, ia64.
66082         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
66083         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
66084         * tests/test-isnanl.h: Include float.h.
66085         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
66086
66087 2007-06-05  Bruno Haible  <bruno@clisp.org>
66088
66089         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
66090         also the %a / %A. Handle the %a / %A code before this extra handling.
66091
66092 2007-06-05  Bruno Haible  <bruno@clisp.org>
66093
66094         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
66095         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
66096
66097 2007-06-05  Bruno Haible  <bruno@clisp.org>
66098
66099         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
66100         typo in variable name.
66101
66102 2007-06-05  Eric Blake  <ebb9@byu.net>
66103
66104         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
66105         Reported by Simon Josefsson.
66106
66107 2007-06-04  Bruno Haible  <bruno@clisp.org>
66108
66109         Avoid test failures on some PowerPC platforms.
66110         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
66111         Define differently for PowerPC.
66112         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
66113         Reported by Gary V. Vaughan <gary@gnu.org>.
66114
66115 2007-06-02  Bruno Haible  <bruno@clisp.org>
66116
66117         Fix test-stdint failure on FreeBSD/ia64.
66118         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
66119         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
66120         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
66121         * doc/headers/stdint.texi: Update.
66122
66123 2007-06-01  Bruno Haible  <bruno@clisp.org>
66124
66125         * tests/test-binary-io.c (main): Pass a third argument to open().
66126         Reported by Gary V. Vaughan <gary@gnu.org>.
66127
66128 2007-06-01  Bruno Haible  <bruno@clisp.org>
66129
66130         * doc/functions/frexpl.texi: Update for mingw.
66131
66132 2007-06-01  Bruno Haible  <bruno@clisp.org>
66133
66134         * tests/test-lseek.c (main): Disable test of errno for invalid third
66135         argument.
66136         * doc/functions/lseek.texi: Update.
66137         Reported by Gary V. Vaughan <gary@gnu.org>.
66138
66139 2007-05-28  Bruno Haible  <bruno@clisp.org>
66140
66141         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
66142
66143 2007-05-31  Eric Blake  <ebb9@byu.net>
66144
66145         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
66146         cross compiling.
66147
66148 2007-05-30  Eric Blake  <ebb9@byu.net>
66149         and Bruno Haible  <bruno@clisp.org>
66150
66151         Work around mingw test failures exposed by m4-1.4.9b.
66152         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
66153         * tests/test-unistd.c: Disable uid_t and git_t tests for the
66154         moment.
66155
66156 2007-05-30  Bruno Haible  <bruno@clisp.org>
66157
66158         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
66159         assuming that they are closed. Needed on HP-UX 11.
66160
66161 2007-05-29  Bruno Haible  <bruno@clisp.org>
66162
66163         Fix a problem with #include_next.
66164         * lib/dirent_.h: Split the double-inclusion guard.
66165         * lib/fcntl_.h: Likewise.
66166         * lib/float_.h: Likewise.
66167         * lib/iconv_.h: Likewise.
66168         * lib/inttypes_.h: Likewise.
66169         * lib/locale_.h: Likewise.
66170         * lib/math_.h: Likewise.
66171         * lib/netinet_in_.h: Likewise.
66172         * lib/search_.h: Likewise.
66173         * lib/signal_.h: Likewise.
66174         * lib/stdint_.h: Likewise.
66175         * lib/stdio_.h: Likewise.
66176         * lib/stdlib_.h: Likewise.
66177         * lib/string_.h: Likewise.
66178         * lib/sys_select_.h: Likewise.
66179         * lib/sys_socket_.h: Likewise.
66180         * lib/sys_stat_.h: Likewise.
66181         * lib/sys_time_.h: Likewise.
66182         * lib/sysexits_.h: Likewise.
66183         * lib/time_.h: Likewise.
66184         * lib/unistd_.h: Likewise.
66185         * lib/wchar_.h: Likewise.
66186         * lib/wctype_.h: Likewise.
66187
66188 2007-05-29  Bruno Haible  <bruno@clisp.org>
66189
66190         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
66191         for the moment.
66192
66193 2007-05-29  Bruno Haible  <bruno@clisp.org>
66194
66195         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
66196         invocation.
66197         Reported by Eric Blake.
66198
66199 2007-05-29  Bruno Haible  <bruno@clisp.org>
66200
66201         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
66202         compiling case.
66203
66204 2007-05-29  Eric Blake  <ebb9@byu.net>
66205             Bruno Haible  <bruno@clisp.org>
66206
66207         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
66208         cross compiles.
66209
66210 2007-05-28  Eric Blake  <ebb9@byu.net>
66211
66212         * modules/closein-tests (test_closein_LDADD): Support test on
66213         cygwin with libtool.
66214
66215 2007-05-28  Bruno Haible  <bruno@clisp.org>
66216
66217         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
66218         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
66219         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
66220         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
66221         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
66222         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
66223         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
66224         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
66225         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
66226
66227 2007-05-28  Eric Blake  <ebb9@byu.net>
66228
66229         Unconditionally include <config.h> in unit tests.
66230         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
66231         * tests/test-allocsa.c, tests/test-arcfour.c,
66232         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
66233         tests/test-array_list.c, tests/test-array_oset.c,
66234         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
66235         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
66236         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
66237         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
66238         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
66239         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
66240         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
66241         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
66242         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
66243         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
66244         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
66245         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
66246         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
66247         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
66248         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
66249         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
66250         test-md5.c, test-memmem.c, test-printf-posix.c,
66251         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
66252         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
66253         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
66254         test-strcasestr.c, test-striconv.c, test-striconveh.c,
66255         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
66256         test-vasnprintf-posix2.c, test-vasnprintf.c,
66257         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
66258         test-vfprintf-posix.c, test-vprintf-posix.c,
66259         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
66260         test-xvasprintf.c: Likewise.
66261
66262 2007-05-28  Bruno Haible  <bruno@clisp.org>
66263
66264         * gnulib-tool (func_import): Remember the --with-tests command-line
66265         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
66266         Reported by Eric Blake.
66267
66268 2007-05-28  Bruno Haible  <bruno@clisp.org>
66269
66270         * modules/ftell-tests: New file.
66271         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
66272         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
66273
66274         * lib/ftell.c: New file.
66275         * modules/ftell: New file.
66276         * m4/ftell.m4: New file.
66277         * doc/functions/ftell.texi: Update.
66278         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
66279         REPLACE_FTELL.
66280         * lib/stdio_.h (rpl_ftell): New declaration.
66281         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
66282         REPLACE_FTELL.
66283
66284 2007-05-28  Eric Blake  <ebb9@byu.net>
66285
66286         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
66287
66288 2007-05-28  Bruno Haible  <bruno@clisp.org>
66289
66290         * modules/fseek-tests: New file.
66291         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
66292         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
66293
66294         * lib/fseek.c: New file.
66295         * modules/fseek: New file.
66296         * m4/fseek.m4: New file.
66297         * doc/functions/fseek.texi: Update.
66298         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
66299         REPLACE_FSEEK.
66300         * lib/stdio_.h (rpl_fseek): New declaration.
66301         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
66302         REPLACE_FSEEK.
66303
66304 2007-05-28  Bruno Haible  <bruno@clisp.org>
66305
66306         * lib/stdio_.h (fflush): More comments.
66307
66308 2007-05-28  Bruno Haible  <bruno@clisp.org>
66309
66310         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
66311         runtime test.
66312
66313 2007-05-28  Eric Blake  <ebb9@byu.net>
66314
66315         Improve lseek module.
66316         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
66317         * lib/unistd_.h (lseek): Scale back link warning message.
66318         * tests/test-lseek.c: Beef up test.
66319         * tests/test-lseek.sh: Exercise more facets of lseek.
66320         Reported by Bruno Haible.
66321
66322 2007-05-28  Bruno Haible  <bruno@clisp.org>
66323
66324         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
66325         to define.
66326
66327 2007-05-27  Bruno Haible  <bruno@clisp.org>
66328
66329         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
66330
66331 2007-05-27  Bruno Haible  <bruno@clisp.org>
66332
66333         * modules/openmp: New file.
66334         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
66335         Noah Misch.
66336
66337 2007-05-26  Bruno Haible  <bruno@clisp.org>
66338
66339         * modules/chdir-long (Depends-on): Add fchdir.
66340         * modules/chdir-safer (Depends-on): Likewise.
66341         * modules/fts (Depends-on): Likewise.
66342         * modules/fts-lgpl (Depends-on): Likewise.
66343         * modules/openat (Depends-on): Likewise.
66344         * modules/savewd (Depends-on): Likewise.
66345
66346 2007-05-24  Eric Blake  <ebb9@byu.net>
66347
66348         Fix lseek on mingw.
66349         * modules/lseek: New module.
66350         * m4/lseek.m4: New file.
66351         * lib/lseek.c: New file.
66352         * modules/lseek-tests: New file.
66353         * tests/test-lseek.c: New file.
66354         * tests/test-lseek.sh: New file.
66355         * MODULES.html.sh: Document lseek module.
66356         * modules/fflush (Depends-on): Add lseek, fseeko.
66357         * modules/fseeko (Depends-on): Likewise.
66358         * modules/ftello (Depends-on): Likewise.
66359         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
66360         broken.
66361         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
66362         broken.
66363         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
66364         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
66365         * lib/ftello.c (rpl_ftello): Likewise.
66366         * tests/test-fseeko.c (main): Test this.
66367         * tests/test-fseeko.sh: Likewise.
66368         * tests/test-ftello.c (main): Likewise.
66369         * tests/test-ftello.sh: Likewise.
66370         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
66371         implies replacing fseek.
66372         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
66373         HAVE_FTELLO.
66374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
66375         * modules/unistd (Makefile.am): Likewise.
66376         * lib/unistd_.h (lseek): Declare a replacement.
66377         * doc/functions/lseek.texi (lseek): Document this fix.
66378         * doc/functions/fseek.texi (fseek): Likewise.
66379         * doc/functions/ftell.texi (ftell): Likewise.
66380
66381 2007-05-24  Bruno Haible  <bruno@clisp.org>
66382
66383         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
66384         in the printed representation of a NaN.
66385         * tests/test-vasprintf-posix.c (test_function): Likewise.
66386         * tests/test-snprintf-posix.h (test_function): Likewise.
66387         * tests/test-sprintf-posix.h (test_function): Likewise.
66388         Reported by Eric Blake.
66389
66390 2007-05-23  Eric Blake  <ebb9@byu.net>
66391
66392         Fix fseeko/ftello on cygwin 1.5.24.
66393         * doc/functions/fseeko.texi (fseeko): Document the fix.
66394         * doc/functions/ftello.texi (ftello): Document the fix.
66395         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
66396         * doc/functions/stdout.text (stdout): New file.
66397         * doc/functions/stderr.text (stderr): New file.
66398         * doc/gnulib.texi (Function Substitutes): Use new files.
66399         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
66400         prior to 1.7.0.
66401         * tests/test-ftello.c (main): Likewise for ftello.
66402         * tests/test-fseeko.sh: New file.
66403         * tests/test-ftello.sh: New file.
66404         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
66405         with seekable stdin.
66406         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
66407         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
66408         (gl_REPLACE_FSEEKO): New macro.
66409         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
66410         * modules/fseeko (Files): Distribute fseeko.c.
66411         * modules/ftello (Files): Distribute ftello.c.
66412         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
66413         mode.
66414         * lib/ftello.c (rpl_ftello): New file.
66415         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
66416         fseeko, ftello.
66417         (gl_STDIN_LARGE_OFFSET): New macro.
66418         * modules/stdio (Makefile.am): Perform the replacement.
66419         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
66420
66421 2007-05-23  Bruno Haible  <bruno@clisp.org>
66422
66423         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
66424         GNULIB_POSIXCHECK is defined.
66425
66426 2007-05-21  Bruno Haible  <bruno@clisp.org>
66427
66428         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
66429         Check also the output for NaN arguments. When cross-compiling, guess
66430         no on IRIX.
66431         * lib/vasnprintf.c: Update comments.
66432         * tests/test-vasnprintf-posix.c (strisnan): New function.
66433         (test_function): Use it.
66434         * tests/test-vasprintf-posix.c (strisnan): New function.
66435         (test_function): Use it.
66436         * tests/test-snprintf-posix.h (strisnan): New function.
66437         (test_function): Use it.
66438         * tests/test-sprintf-posix.h (strisnan): New function.
66439         (test_function): Use it.
66440         Reported by Eric Blake.
66441
66442 2007-05-20  Bruno Haible  <bruno@clisp.org>
66443
66444         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
66445         numbers that fails on BeOS.
66446         * doc/functions/frexpl.texi: Update.
66447
66448 2007-05-20  Jim Meyering  <jim@meyering.net>
66449
66450         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
66451         forced upon us by glibc-2.6.
66452
66453 2007-05-20  Bruno Haible  <bruno@clisp.org>
66454
66455         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
66456         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
66457         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
66458         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
66459         NEED_PRINTF_INFINITE.
66460         (is_infinitel): New function.
66461         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
66462         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
66463         gl_PREREQ_VASNPRINTF_INFINITE.
66464         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
66465         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66466         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
66467         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
66468         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
66469         gl_PREREQ_VASNPRINTF_INFINITE.
66470         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66471         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66472         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66473         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66474         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66475         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66476         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66477         * doc/functions/fprintf.texi: Update.
66478         * doc/functions/printf.texi: Update.
66479         * doc/functions/snprintf.texi: Update.
66480         * doc/functions/sprintf.texi: Update.
66481         * doc/functions/vfprintf.texi: Update.
66482         * doc/functions/vprintf.texi: Update.
66483         * doc/functions/vsnprintf.texi: Update.
66484         * doc/functions/vsprintf.texi: Update.
66485
66486 2007-05-20  Bruno Haible  <bruno@clisp.org>
66487
66488         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
66489         was not found in libc.
66490         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
66491
66492 2007-05-20  Bruno Haible  <bruno@clisp.org>
66493
66494         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
66495         printed as "-nan" instead of "nan".
66496         * tests/test-vasprintf-posix.c (test_function): Likewise.
66497         * tests/test-snprintf-posix.h (test_function): Likewise.
66498         * tests/test-sprintf-posix.h (test_function): Likewise.
66499         Needed for HP-UX 11.
66500
66501 2007-05-20  Jim Meyering  <jim@meyering.net>
66502
66503         Fix buggy test for the fchownat-deref bug.
66504         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
66505         symlink required for the run-test.  Without it, this test would
66506         always declare that fchownat doesn't work, and client code would
66507         unnecessarily use the replacement function with fixed libc.
66508         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
66509         Reported by Greg Schafer.
66510
66511 2007-05-19  Bruno Haible  <bruno@clisp.org>
66512
66513         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
66514         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
66515         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
66516         Needed for IRIX 6.5 and Solaris 2.5.1.
66517
66518 2007-05-19  Bruno Haible  <bruno@clisp.org>
66519
66520         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
66521         (test_function): Skip tests involving -0.0 on platforms where
66522         -0.0 = 0.0.
66523         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
66524         (test_function): Skip tests involving -0.0 on platforms where
66525         -0.0 = 0.0.
66526         * tests/test-snprintf-posix.h (have_minus_zero): New function.
66527         (test_function): Skip tests involving -0.0 on platforms where
66528         -0.0 = 0.0.
66529         * tests/test-sprintf-posix.h (have_minus_zero): New function.
66530         (test_function): Skip tests involving -0.0 on platforms where
66531         -0.0 = 0.0.
66532         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
66533         tests.
66534         * tests/test-printf-posix.h (test_function): Likewise.
66535         * tests/test-printf-posix.output: Remove all -0.0 related results.
66536         Needed for IRIX 6.5.
66537
66538 2007-05-19  Bruno Haible  <bruno@clisp.org>
66539
66540         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
66541         printed as "nan0x7fffffff" instead of "nan".
66542         * tests/test-vasprintf-posix.c (test_function): Likewise.
66543         * tests/test-snprintf-posix.h (test_function): Likewise.
66544         * tests/test-sprintf-posix.h (test_function): Likewise.
66545         * tests/test-fprintf-posix.h (NaN): Remove macro.
66546         (test_function): Remove all NaN related tests.
66547         * tests/test-printf-posix.h (NaN): Remove macro.
66548         (test_function): Remove all NaN related tests.
66549         * tests/test-printf-posix.output: Remove all NaN related results.
66550         Needed for IRIX 6.5.
66551
66552 2007-05-19  Bruno Haible  <bruno@clisp.org>
66553
66554         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
66555         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
66556
66557 2007-05-19  Bruno Haible  <bruno@clisp.org>
66558
66559         * lib/float_.h: New file.
66560         * m4/float_h.m4: New file.
66561         * modules/float: New file.
66562         * modules/isnanl (Dependencies): Add float.
66563         * modules/isnanl-nolibm (Dependencies): Likewise.
66564         * modules/mathl (Dependencies): Likewise.
66565         * modules/printf-frexpl (Dependencies): Likewise.
66566         * modules/signbit (Dependencies): Likewise.
66567         * modules/vasnprintf (Dependencies): Likewise.
66568         * doc/headers/float.texi: Update.
66569
66570 2007-05-19  Jim Meyering  <jim@meyering.net>
66571
66572         * lib/utimens.c (gl_futimens): Rename from futimens,
66573         now that glibc-2.6 declares futimens.
66574         * lib/utimens.h: Likewise.
66575
66576 2007-05-19  Bruno Haible  <bruno@clisp.org>
66577
66578         Avoid test failures on mingw.
66579         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
66580         * tests/test-printf-posix.sh: Likewise.
66581         * tests/test-vfprintf-posix.sh: Likewise.
66582         * tests/test-vprintf-posix.sh: Likewise.
66583
66584 2007-05-19  Bruno Haible  <bruno@clisp.org>
66585
66586         Fix *printf result for NaN, Inf, -0.0 on mingw.
66587         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
66588         * lib/vasnprintf.c: Include math.h and isnan.h.
66589         (is_infinite_or_zero): New function.
66590         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
66591         values in the %f, %F, %e, %E, %g, %G directives.
66592         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
66593         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66594         gl_PRINTF_INFINITE and test its result. Invoke
66595         gl_PREREQ_VASNPRINTF_INFINITE.
66596         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66597         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66598         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66599         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66600         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66601         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66602         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66603         * doc/functions/fprintf.texi: Update.
66604         * doc/functions/printf.texi: Update.
66605         * doc/functions/snprintf.texi: Update.
66606         * doc/functions/sprintf.texi: Update.
66607         * doc/functions/vfprintf.texi: Update.
66608         * doc/functions/vprintf.texi: Update.
66609         * doc/functions/vsnprintf.texi: Update.
66610         * doc/functions/vsprintf.texi: Update.
66611
66612 2007-05-19  Bruno Haible  <bruno@clisp.org>
66613
66614         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
66615         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
66616         Instead of multiplying with 10^k, set extra_zeroes to k.
66617         (scale10_round_long_double): Remove function.
66618
66619 2007-05-18  Bruno Haible  <bruno@clisp.org>
66620
66621         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
66622         introduced on 2007-05-06.
66623
66624 2007-05-18  Bruno Haible  <bruno@clisp.org>
66625
66626         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
66627         %g directives.
66628         * tests/test-vasprintf-posix.c (test_function): Likewise.
66629         * tests/test-snprintf-posix.h (test_function): Likewise.
66630         * tests/test-sprintf-posix.h (test_function): Likewise.
66631
66632 2007-05-18  Bruno Haible  <bruno@clisp.org>
66633
66634         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
66635         (strmatch): New function.
66636         (test_function): Test the %f directive on numbers of various exponents.
66637         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
66638         (strmatch): New function.
66639         (test_function): Test the %f directive on numbers of various exponents.
66640         * tests/test-snprintf-posix.h (strmatch): New function.
66641         (test_function): Test the %f directive on numbers of various exponents.
66642         * tests/test-sprintf-posix.h (strmatch): New function.
66643         (test_function): Test the %f directive on numbers of various exponents.
66644         * tests/test-snprintf-posix.c (SIZEOF): New macro.
66645         * tests/test-sprintf-posix.c (SIZEOF): New macro.
66646         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
66647         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
66648
66649 2007-05-18  Bruno Haible  <bruno@clisp.org>
66650
66651         Add support for 'long double' number output.
66652         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
66653         * lib/vasnprintf.c: Include math.h and float+.h.
66654         (mp_limb_t): New type.
66655         (GMP_LIMB_BITS): New macro.
66656         (mp_twolimb_t): New type.
66657         (GMP_TWOLIMB_BITS): New macro.
66658         (mpn_t): New type.
66659         (multiply, divide, convert_to_decimal, decode_long_double,
66660         scale10_round_long_double, scale10_round_decimal_long_double,
66661         floorlog10l): New functions.
66662         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
66663         for the %f, %F, %e, %E, %g, %G directives.
66664         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
66665         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66666         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
66667         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
66668         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66669         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66670         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66671         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66672         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66673         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66674         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66675         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
66676         * modules/snprintf-posix (Depends-on): Likewise.
66677         * modules/sprintf-posix (Depends-on): Likewise.
66678         * modules/vasnprintf-posix (Depends-on): Likewise.
66679         * modules/vasprintf-posix (Depends-on): Likewise.
66680         * modules/vfprintf-posix (Depends-on): Likewise.
66681         * modules/vsnprintf-posix (Depends-on): Likewise.
66682         * modules/vsprintf-posix (Depends-on): Likewise.
66683         * modules/vasnprintf (Files): Add lib/float+.h.
66684         * doc/functions/fprintf.texi: Update.
66685         * doc/functions/printf.texi: Update.
66686         * doc/functions/snprintf.texi: Update.
66687         * doc/functions/sprintf.texi: Update.
66688         * doc/functions/vfprintf.texi: Update.
66689         * doc/functions/vprintf.texi: Update.
66690         * doc/functions/vsnprintf.texi: Update.
66691         * doc/functions/vsprintf.texi: Update.
66692
66693 2007-05-18  Bruno Haible  <bruno@clisp.org>
66694
66695         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
66696
66697 2007-05-18  Bruno Haible  <bruno@clisp.org>
66698
66699         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
66700         for printing 64-bit integers. Needed for mingw.
66701
66702 2007-05-18  Bruno Haible  <bruno@clisp.org>
66703
66704         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66705         gl_FUNC_FREXPL_WORKS.
66706         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
66707
66708 2007-05-18  Bruno Haible  <bruno@clisp.org>
66709
66710         * modules/frexpl-nolibm-tests: New file.
66711
66712         * modules/frexpl-nolibm: New file.
66713         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
66714
66715 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
66716
66717         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
66718         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66719         GCC 4.2, which otherwise issues a lot of warnings.
66720         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
66721         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
66722         Likewise.
66723         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
66724         * modules/iconv_open (iconv.h): Likewise.
66725         * modules/locale (locale.h): Likewise.
66726         * modules/netinet_in (netinet/in.h): Likewise.
66727         * modules/sys_select (sys_select.h): Likewise.
66728         * modules/sys_socket (sys/socket.h): Likewise.
66729         * modules/sys_stat (sys/stat.h): Likewise.
66730         * modules/sysexits (sysexits.h): Likewise.
66731         * modules/unistd (unistd.h): Likewise.
66732
66733 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66734
66735         * modules/closein-tests (Makefile.am): Distribute
66736         `test-closein.sh'.
66737
66738 2007-05-17  Bruno Haible  <bruno@clisp.org>
66739
66740         * tests/test-printf-posix.output: Renamed from
66741         tests/test-fprintf-posix.out.
66742         * modules/fprintf-posix-tests: Update.
66743         * modules/printf-posix-tests: Update.
66744         * modules/vfprintf-posix-tests: Update.
66745         * modules/vprintf-posix-tests: Update.
66746         * tests/test-fprintf-posix.sh: Update.
66747         * tests/test-printf-posix.sh: Update.
66748         * tests/test-vfprintf-posix.sh: Update.
66749         * tests/test-vprintf-posix.sh: Update.
66750         Reported by Ralf Wildenhues.
66751
66752 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
66753
66754         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
66755         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66756         GCC 4.2, which otherwise issues a lot of warnings.
66757         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
66758         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
66759         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
66760         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
66761         it should no longer be needed.
66762         * lib/string_.h: Likewise.
66763         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
66764         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
66765         * modules/inttypes (inttypes.h): Likewise.
66766         * modules/math (math.h): Likewise.
66767         * modules/search (search.h): Likewise.
66768         * modules/signal (signal.h): Likewise.
66769         * modules/stdint (stdint.h): Likewise.
66770         * modules/stdio (stdio.h): Likewise.
66771         * modules/stdlib (stdlib.h): Likewise.
66772         * modules/string (string.h): Likewise.
66773         * modules/sys_time (sys/time.h): Likewise.
66774         * modules/time (time.h): Likewise.
66775         * modules/wchar (wchar.h): Likewise.
66776         * modules/wctype (wtype.h): Likewise.
66777
66778 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
66779
66780         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
66781
66782 2007-05-13  Bruno Haible  <bruno@clisp.org>
66783
66784         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
66785         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66786         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
66787         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66788         (gl_PREREQ_STRTOK_R): Don't require it here.
66789
66790 2007-05-13  Bruno Haible  <bruno@clisp.org>
66791
66792         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
66793         when used in C++ mode.
66794
66795 2007-05-12  Bruno Haible  <bruno@clisp.org>
66796
66797         * lib/linebuffer.h: Tweak doc.
66798         * lib/linebuffer.c: Likewise.
66799
66800 2007-05-12  James Youngman  <jay@gnu.org>
66801
66802         * lib/linebuffer.c (readlinebuffer_delim): New function,
66803         like readlinebuffer, but use a caller-specified delimiter.
66804         (readlinebuffer): Just call readlinebuffer_delim with '\n'
66805         as the delimiter.
66806         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
66807
66808 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66809
66810         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
66811         * modules/openat (Files): Remove openat-die.c.
66812         (Depends-on): Add openat-die.
66813         * modules/openat-die: New module.
66814
66815 2007-05-06  Bruno Haible  <bruno@clisp.org>
66816
66817         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
66818         Update with info about Cygwin.
66819         * doc/functions/fprintf.texi: Update.
66820         * doc/functions/printf.texi: Update.
66821         * doc/functions/snprintf.texi: Update.
66822         * doc/functions/sprintf.texi: Update.
66823         * doc/functions/vfprintf.texi: Update.
66824         * doc/functions/vprintf.texi: Update.
66825         * doc/functions/vsnprintf.texi: Update.
66826         * doc/functions/vsprintf.texi: Update.
66827         Reported by Eric Blake.
66828
66829 2007-05-06  Bruno Haible  <bruno@clisp.org>
66830
66831         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
66832         padding ourselves for the floating-point directives.
66833         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
66834         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
66835         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66836         gl_PRINTF_FLAG_ZERO and test its result. Invoke
66837         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
66838         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66839         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66840         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66841         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66842         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66843         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66844         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66845         * tests/test-snprintf-posix.h (test_function): Also check the width
66846         and some flags in the %f directive.
66847         * tests/test-sprintf-posix.h (test_function): Likewise.
66848         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66849         * tests/test-vasprintf-posix.c (test_function): Likewise.
66850         * doc/functions/fprintf.texi: Update.
66851         * doc/functions/printf.texi: Update.
66852         * doc/functions/snprintf.texi: Update.
66853         * doc/functions/sprintf.texi: Update.
66854         * doc/functions/vfprintf.texi: Update.
66855         * doc/functions/vprintf.texi: Update.
66856         * doc/functions/vsnprintf.texi: Update.
66857         * doc/functions/vsprintf.texi: Update.
66858
66859 2007-05-06  Bruno Haible  <bruno@clisp.org>
66860
66861         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
66862         pass the ' flag character to sprintf or snprintf.
66863         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
66864         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
66865         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66866         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
66867         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
66868         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66869         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66870         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66871         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66872         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66873         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66874         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66875         * tests/test-snprintf-posix.h (test_function): Also check the grouping
66876         flag.
66877         * tests/test-sprintf-posix.h (test_function): Likewise.
66878         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66879         * tests/test-vasprintf-posix.c (test_function): Likewise.
66880         * doc/functions/fprintf.texi: Update.
66881         * doc/functions/printf.texi: Update.
66882         * doc/functions/snprintf.texi: Update.
66883         * doc/functions/sprintf.texi: Update.
66884         * doc/functions/vfprintf.texi: Update.
66885         * doc/functions/vprintf.texi: Update.
66886         * doc/functions/vsnprintf.texi: Update.
66887         * doc/functions/vsprintf.texi: Update.
66888
66889 2007-05-01  Bruno Haible  <bruno@clisp.org>
66890
66891         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
66892
66893 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
66894
66895         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
66896         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
66897
66898 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66899
66900         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
66901         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
66902         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
66903
66904 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
66905
66906         * lib/argp-help.c (struct hol_entry): New member `ord'.
66907         (HOL_ENTRY_PTRCMP): Use ord for comparison
66908         (hol_sort): Initialize ord.
66909
66910 2007-05-01  Bruno Haible  <bruno@clisp.org>
66911
66912         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
66913         Reported by Eric Blake.
66914         * doc/gnulib.texi (Function Substitutes): Update.
66915
66916 2007-05-01  Bruno Haible  <bruno@clisp.org>
66917
66918         * doc/functions.texi: Remove file, now redundant through
66919         doc/functions/*.texi.
66920
66921 2007-05-01  Bruno Haible  <bruno@clisp.org>
66922
66923         * modules/argp (Depends-on): Add sleep.
66924
66925 2007-05-01  Bruno Haible  <bruno@clisp.org>
66926
66927         * modules/sleep-tests: New file.
66928         * tests/test-sleep.c: New file.
66929
66930         * modules/sleep: New file.
66931         * lib/sleep.c: New file.
66932         * m4/sleep.m4: New file.
66933         * lib/unistd_.h (sleep): New declaration.
66934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
66935         HAVE_SLEEP.
66936         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
66937         * doc/functions/sleep.texi: Document the sleep module.
66938
66939 2007-05-01  Bruno Haible  <bruno@clisp.org>
66940
66941         * lib/sigprocmask.h: Remove file.
66942         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
66943         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
66944         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
66945         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
66946         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
66947         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
66948         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
66949         HAVE_SIGSET_T as a shell variable.
66950         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
66951         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
66952         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
66953         (Depends-on): Add signal. Remove verify.
66954         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
66955         (Include): Mention <signal.h> instead of sigprocmask.h.
66956         * NEWS: Mention the change.
66957         * lib/fatal-signal.c: Don't include sigprocmask.h.
66958
66959 2007-05-01  Bruno Haible  <bruno@clisp.org>
66960
66961         * modules/signal: New file.
66962         * lib/signal_.h: New file.
66963         * m4/signal_h.m4: New file.
66964
66965 2007-05-01  Bruno Haible  <bruno@clisp.org>
66966
66967         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
66968         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
66969         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
66970         HAVE_WCTYPE_CTMP_BUG into wctype.h.
66971
66972 2007-05-01  Bruno Haible  <bruno@clisp.org>
66973
66974         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
66975         configure time.
66976         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
66977         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
66978         * modules/sys_stat (Makefile.am): Substitute their values into
66979         sys/stat.h.
66980
66981 2007-05-01  Bruno Haible  <bruno@clisp.org>
66982
66983         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
66984         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
66985         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
66986
66987 2007-05-01  Bruno Haible  <bruno@clisp.org>
66988
66989         * doc/header/assert.texi: Undo last change: don't mention the gnulib
66990         'assert' module here.
66991
66992 2007-05-01  Bruno Haible  <bruno@clisp.org>
66993
66994         * doc/functions/*.texi: New files.
66995         * doc/functions/google-ranking.txt: New file.
66996         * doc/gnulib.texi (Function Substitutes): New chapter.
66997         (ctime, inet_ntoa): Remove sections.
66998         * doc/ctime.texi: Remove file.
66999         * doc/inet_ntoa.texi: Remove file.
67000         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
67001         dependencies.
67002         (%.info): New rule, specifying a --reference-limit.
67003
67004 2007-05-01  Bruno Haible  <bruno@clisp.org>
67005
67006         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
67007
67008 2007-05-01  Bruno Haible  <bruno@clisp.org>
67009
67010         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
67011         the portability of 'mkdir' to mingw systems.
67012
67013 2007-05-01  Bruno Haible  <bruno@clisp.org>
67014
67015         * doc/headers/google-ranking.txt: New file.
67016
67017 2007-04-30  Eric Blake  <ebb9@byu.net>
67018
67019         Prefer fseeko to fseek.
67020         * modules/getpass (Depends-on): Add fseeko.
67021         * lib/getpass.c (getpass): Use fseeko, not fseek.
67022
67023 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
67024
67025         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
67026         assumes the sorting is stable, while most qsort implementations
67027         are not.  Use argument addresses to ensure they never compare as
67028         equal.
67029
67030         * tests/test-argp-2.sh (usage-indent test): Fix output
67031         (func_compare): Restore diff options
67032         * tests/test-argp.c: Restore #include "progname.h"
67033
67034 2007-04-29  Bruno Haible  <bruno@clisp.org>
67035
67036         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
67037         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67038         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
67039         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67040         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
67041         (configure.ac): Define CHECK_SNPRINTF_POSIX.
67042         (TESTS, check_PROGRAMS): Add test-snprintf.
67043         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
67044         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
67045         (TESTS, check_PROGRAMS): Add test-vsnprintf.
67046         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
67047         assertions that fail on HP-UX, OSF/1, or IRIX.
67048         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
67049
67050 2007-04-29  Bruno Haible  <bruno@clisp.org>
67051
67052         * MODULES.html.sh (posix_functions): Remove 'contents'.
67053
67054 2007-04-29  Karl Berry  <karl@gnu.org>
67055
67056         * config/srclist.txt (gendocs_template_min): new entry.
67057
67058 2007-04-29  Bruno Haible  <bruno@clisp.org>
67059
67060         Work around fpurge bug on BSD systems.
67061         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
67062         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
67063         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
67064         fpurge to rpl_fpurge if the system already has this function.
67065         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
67066         the case where the system already has this function. Correct invariants
67067         on BSD systems.
67068         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
67069         BSD systems.
67070
67071 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
67072
67073         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
67074         proposed by Sven Verdoolaege.
67075
67076         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
67077         options.
67078         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
67079         (usage and help tests): Update
67080
67081 2007-04-29  Bruno Haible  <bruno@clisp.org>
67082
67083         * tests/test-fflush.c (main): Use a file of size 17, not 10.
67084         Print more information in case of failure. Disable a test on BeOS.
67085
67086 2007-04-29  Bruno Haible  <bruno@clisp.org>
67087
67088         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
67089         This helps debugging on systems on which no gdb is available.
67090
67091 2007-04-29  Bruno Haible  <bruno@clisp.org>
67092
67093         * lib/freading.h: Improve comments.
67094         * lib/fwriting.h: Likewise.
67095         * tests/test-freading.c (main): Don't check freading immediately after
67096         repositioning. Needed for glibc.
67097
67098 2007-04-29  Bruno Haible  <bruno@clisp.org>
67099
67100         * lib/freading.c (freading): Trivial simplification.
67101
67102 2007-04-28  Bruno Haible  <bruno@clisp.org>
67103
67104         * tests/test-fwriting.c (main): Also test the interaction between
67105         fflush and fwriting.
67106         * modules/fwriting-tests (Depends-on): Add fflush.
67107
67108         * tests/test-freading.c (main): Also test the interaction between
67109         fflush and freading.
67110         * modules/freading-tests (Depends-on): Add fflush.
67111
67112 2007-04-28  Bruno Haible  <bruno@clisp.org>
67113
67114         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
67115         fseeko and ftello.
67116         Suggested by Eric Blake.
67117
67118 2007-04-28  Jim Meyering  <jim@meyering.net>
67119
67120         Avoid false-negative in gl_STDINT_H's C99 conformance test.
67121         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
67122         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
67123
67124 2007-04-27  Eric Blake  <ebb9@byu.net>
67125
67126         * doc/headers/assert.texi (assert.h): Document assert module use.
67127
67128 2007-04-27  Bruno Haible  <bruno@clisp.org>
67129
67130         * doc/headers/*.texi: New files.
67131         * doc/gnulib.texi (Header File Substitutes): New chapter.
67132         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
67133         dependencies.
67134         (standards.info ,standards.html, standards.dvi): Update dependencies.
67135         (mostlyclean, clean): New targets.
67136
67137 2007-04-27  Bruno Haible  <bruno@clisp.org>
67138
67139         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
67140         * modules/sysexits (Files, Makefile.am): Update.
67141
67142         * lib/sys_socket_.h: Renamed from lib/socket_.h.
67143         * modules/sys_socket (Files, Makefile.am): Update.
67144
67145         * lib/sys_stat_.h: Renamed from lib/stat_.h.
67146         * modules/sys_stat (Files, Makefile.am): Update.
67147
67148 2007-04-27  Eric Blake  <ebb9@byu.net>
67149
67150         * lib/freading.h: Improve comments.
67151         * lib/fwriting.h: Likewise.
67152         * lib/fflush.c: Likewise.
67153
67154         Fix closein for mingw.
67155         * modules/closein-tests: Add tests for closein.
67156         * tests/test-closein.c: New file.
67157         * tests/test-closein.sh: Likewise.
67158         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
67159         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
67160
67161 2007-04-27  Bruno Haible  <bruno@clisp.org>
67162
67163         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
67164         version is < 6.
67165         * lib/math_.h [__DECC]: Likewise.
67166         * lib/stdio_.h [__DECC]: Likewise.
67167         * lib/stdlib_.h [__DECC]: Likewise.
67168         * lib/string_.h [__DECC]: Likewise.
67169         * lib/time_.h [__DECC]: Likewise.
67170         * lib/wchar_.h [__DECC]: Likewise.
67171         * lib/wctype_.h [__DECC]: Likewise.
67172
67173 2007-04-27  Bruno Haible  <bruno@clisp.org>
67174
67175         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
67176
67177 2007-04-27  Bruno Haible  <bruno@clisp.org>
67178
67179         * lib/fflush.c: Add comments.
67180         * modules/fpurge-tests (Depends-on): Add fflush.
67181         * modules/freadable-tests (Depends-on): Likewise.
67182         * modules/fwritable-tests (Depends-on): Likewise.
67183
67184 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
67185
67186         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
67187         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
67188         Report by Bruno Haible <bruno@clisp.org>.
67189
67190 2007-04-26  Eric Blake  <ebb9@byu.net>
67191
67192         Fix fflush on mingw.
67193         * modules/fflush (Depends-on): Add freading.
67194         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
67195         but unread data.
67196
67197 2007-04-26  Eric Blake  <ebb9@byu.net>
67198         and Bruno Haible  <bruno@clisp.org>
67199
67200         Implement freading and fwriting.
67201         * lib/freading.c: New file.
67202         * lib/freading.h: Likewise.
67203         * m4/freading.m4: Likewise.
67204         * modules/freading: Likewise.
67205         * modules/freading-tests: Likewise.
67206         * tests/test-freading.c: Likewise.
67207         * lib/fwriting.c: New file.
67208         * lib/fwriting.h: Likewise.
67209         * m4/fwriting.m4: Likewise.
67210         * modules/fwriting: Likewise.
67211         * modules/fwriting-tests: Likewise.
67212         * tests/test-fwriting.c: Likewise.
67213         * MODULES.html.sh (File stream based Input/Output): Mention them.
67214
67215 2007-04-26  Bruno Haible  <bruno@clisp.org>
67216
67217         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
67218         'long' when we assume it.
67219         Suggested by Eric Blake.
67220
67221 2007-04-26  Bruno Haible  <bruno@clisp.org>
67222
67223         Ensure fseeko, ftello are declared on glibc systems.
67224         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
67225         * modules/fseeko (configure.ac-early): Likewise.
67226         * modules/ftello (configure.ac-early): Likewise.
67227         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
67228         AC_FUNC_FSEEKO for this.
67229         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
67230         (gl_CHECK_FSEEKO): Remove macro.
67231
67232 2007-04-26  Bruno Haible  <bruno@clisp.org>
67233
67234         * tests/test-fflush.c (main): Also check the ftell result after
67235         fflush and fseek/fseeko.
67236         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
67237         file descriptor position cache in the stream.
67238         * lib/fseeko.c (rpl_fseeko): Likewise.
67239
67240 2007-04-26  Bruno Haible  <bruno@clisp.org>
67241
67242         * modules/fflush-tests (Depends-on): Add fseeko.
67243
67244 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
67245             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67246
67247         * lib/argz_.h: ensure error_t definition is obtained in same
67248         mechanism system argz.h would have.
67249         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
67250         argz facilities are known bad.  Err on the side of caution if
67251         cross-compiling.
67252
67253 2007-04-25  Eric Blake  <ebb9@byu.net>
67254
67255         * lib/fpurge.c (includes): Use stdlib.h for free.
67256         * tests/test-fflush.c (main): Also test fflush-fseeko.
67257
67258 2007-04-25  Bruno Haible  <bruno@clisp.org>
67259
67260         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
67261         * lib/fseeko.c: New file.
67262         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
67263         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
67264         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
67265         gl_FUNC_FSEEKO.
67266         (gl_FUNC_FSEEKO): Invoke it.
67267         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
67268         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
67269         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
67270
67271 2007-04-25  Bruno Haible  <bruno@clisp.org>
67272
67273         * modules/fflush (Depends-on): Add ftello.
67274
67275 2007-04-25  Bruno Haible  <bruno@clisp.org>
67276
67277         * modules/ftello-tests: New file.
67278         * tests/test-ftello.c: New file.
67279
67280         * modules/ftello: New file.
67281         * m4/ftello.m4: New file.
67282         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
67283         HAVE_FTELLO.
67284         * lib/stdio_.h (ftello): New declaration.
67285         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
67286         HAVE_FTELLO.
67287
67288 2007-04-25  Bruno Haible  <bruno@clisp.org>
67289
67290         * modules/fseeko-tests: New file.
67291         * tests/test-fseeko.c: New file.
67292
67293         * modules/fseeko: New file.
67294         * m4/fseeko.m4: New file.
67295         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
67296         HAVE_FSEEKO.
67297         * lib/stdio_.h (fseeko): New declaration.
67298         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
67299         HAVE_FSEEKO.
67300
67301 2007-04-25  Bruno Haible  <bruno@clisp.org>
67302
67303         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
67304
67305 2007-04-25  Bruno Haible  <bruno@clisp.org>
67306
67307         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
67308         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
67309         * tests/test-unistd.c: Likewise.
67310         * tests/test-fcntl.c: Likewise.
67311
67312 2007-04-23  Eric Blake  <ebb9@byu.net>
67313
67314         * lib/fflush.c: Fix missing include.
67315         Reported by Bruno Haible.
67316
67317 2007-04-23  Bruno Haible  <bruno@clisp.org>
67318
67319         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
67320         Reported by Eric Blake.
67321
67322 2007-04-23  Bruno Haible  <bruno@clisp.org>
67323
67324         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
67325
67326 2007-04-23  Bruno Haible  <bruno@clisp.org>
67327
67328         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
67329
67330 2007-04-23  Bruno Haible  <bruno@clisp.org>
67331
67332         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
67333         Needed on HP-UX 11.
67334
67335 2007-04-16  Eric Blake  <ebb9@byu.net>
67336
67337         Make fflush rely on fpurge.
67338         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
67339         open coding all variants.
67340         * modules/fflush (Depends-on): Add fpurge and unistd.
67341         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
67342         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
67343
67344         Fix --with-tests compilation on cygwin.
67345         * modules/argmatch-tests (Makefile.am): List gnulib library first
67346         in LDADD.
67347         * modules/argp-tests (Makefile.am): Likewise.
67348         * modules/array-list-tests (Makefile.am): Likewise.
67349         * modules/array-oset-tests (Makefile.am): Likewise.
67350         * modules/avltree-list-tests (Makefile.am): Likewise.
67351         * modules/avltree-oset-tests (Makefile.am): Likewise.
67352         * modules/avltreehash-list-tests (Makefile.am): Likewise.
67353         * modules/carray-list-tests (Makefile.am): Likewise.
67354         * modules/dirname-tests (Makefile.am): Likewise.
67355         * modules/frexp-tests (Makefile.am): Likewise.
67356         * modules/isnanl-tests (Makefile.am): Likewise.
67357         * modules/linked-list-tests (Makefile.am): Likewise.
67358         * modules/linkedhash-list-tests (Makefile.am): Likewise.
67359         * modules/lock-tests (Makefile.am): Likewise.
67360         * modules/rbtree-list-tests (Makefile.am): Likewise.
67361         * modules/rbtree-oset-tests (Makefile.am): Likewise.
67362         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
67363         * modules/tls-tests (Makefile.am): Likewise.
67364         * modules/tsearch-tests (Makefile.am): Likewise.
67365         * modules/xvasprintf-tests (Makefile.am): Likewise.
67366
67367         Fix fpurge for cygwin.
67368         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
67369         value.
67370         * modules/fpurge-tests (Depends-on): Clean up trash.
67371
67372 2007-04-16  Simon Josefsson  <simon@josefsson.org>
67373
67374         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
67375
67376         * m4/autobuild.m4: Re-indent.
67377
67378 2007-04-13  Bruno Haible  <bruno@clisp.org>
67379
67380         * modules/fpurge-tests: New file.
67381         * tests/test-fpurge.c: New file.
67382
67383         * modules/fpurge: New file.
67384         * lib/fpurge.h: New file.
67385         * lib/fpurge.c: New file.
67386         * m4/fpurge.m4: New file.
67387
67388 2007-04-13  Bruno Haible  <bruno@clisp.org>
67389
67390         * modules/fbufmode-tests: New file.
67391         * tests/test-fbufmode.c: New file.
67392
67393         * modules/fbufmode: New file.
67394         * lib/fbufmode.h: New file.
67395         * lib/fbufmode.c: New file.
67396         * m4/fbufmode.m4: New file.
67397
67398 2007-04-13  Bruno Haible  <bruno@clisp.org>
67399
67400         * modules/fwritable-tests: New file.
67401         * tests/test-fwritable.c: New file.
67402
67403         * modules/fwritable: New file.
67404         * lib/fwritable.h: New file.
67405         * lib/fwritable.c: New file.
67406         * m4/fwritable.m4: New file.
67407
67408 2007-04-13  Bruno Haible  <bruno@clisp.org>
67409
67410         * modules/freadable-tests: New file.
67411         * tests/test-freadable.c: New file.
67412
67413         * modules/freadable: New file.
67414         * lib/freadable.h: New file.
67415         * lib/freadable.c: New file.
67416         * m4/freadable.m4: New file.
67417
67418 2007-04-13  Bruno Haible  <bruno@clisp.org>
67419
67420         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
67421         MOSTLYCLEANFILES.
67422
67423 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67424
67425         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
67426         gzip bootstrap.conf to avoid dragging in i18n machinery.
67427         (gnulib_tool_option): Use it.
67428
67429 2007-04-13  Bruno Haible  <bruno@clisp.org>
67430
67431         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
67432         %F directives.
67433         * tests/test-vasprintf-posix.c (test_function): Likewise.
67434         * tests/test-snprintf-posix.h (test_function): Likewise.
67435         * tests/test-sprintf-posix.h (test_function): Likewise.
67436         * tests/test-fprintf-posix.h (test_function): Likewise.
67437         * tests/test-printf-posix.h (test_function): Likewise.
67438         * tests/test-fprintf-posix.out: Likewise.
67439
67440 2007-04-13  Bruno Haible  <bruno@clisp.org>
67441
67442         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
67443         * modules/tls-tests (configure.ac): Likewise.
67444         Reported by Arto C. Nirkko <anirkko@insel.ch>.
67445
67446 2007-04-13  Bruno Haible  <bruno@clisp.org>
67447
67448         * lib/tls.c (glthread_tls_get): Fix return type.
67449         Patch by Arto C. Nirkko <anirkko@insel.ch>.
67450
67451 2007-04-12  Eric Blake  <ebb9@byu.net>
67452
67453         * modules/gettime (Depends-on): Remove gettime.
67454         Reported by Dmitry V. Levin.
67455
67456 2007-04-12  Bruno Haible  <bruno@clisp.org>
67457
67458         * modules/fflush (Include): Mention <stdio.h>.
67459         * modules/strtoimax (Include): Mention <inttypes.h>.
67460         * modules/strtoumax (Include): Likewise.
67461
67462 2007-04-12  Eric Blake  <ebb9@byu.net>
67463
67464         * .cvsignore: New file.
67465         * .gitignore: Likewise.
67466
67467 2007-04-12  Bruno Haible  <bruno@clisp.org>
67468
67469         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
67470         not before, since $(LDADD) often contains libgnu.a.
67471         * modules/striconv-tests (test_striconv_LDADD): Likewise.
67472         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
67473         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
67474         Needed on Cygwin.
67475
67476 2007-04-12  Eric Blake  <ebb9@byu.net>
67477
67478         Work around glibc's failure to flush stdin on fclose.
67479         * lib/closein.c (close_stdin): Flush stdin before closing.
67480
67481         Work around glibc's failure to reset seekable stdin on exit.
67482         * modules/closein: New module.
67483         * lib/closein.c: New file.
67484         * lib/closein.h: Likewise.
67485         * m4/closein.m4: Likewise.
67486         * MODULES.html.sh (File stream based Input/Output): Document it.
67487
67488 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67489
67490         * gnulib-tool: Rename generated 'autobuild' script to
67491         'do-autobuild' in --create-megatestdir output.
67492
67493         * doc/gnulib.texi (Build robot for gnulib): Fix.
67494
67495 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67496
67497         * modules/sysexits (Depends-on): Add absolute-header.
67498
67499 2007-04-12  Eric Blake  <ebb9@byu.net>
67500
67501         No need to preserve errno on success.
67502         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
67503         Reported by Bruno Haible.
67504
67505 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67506
67507         * MODULES.html.sh (Support for maintaining and releasing
67508         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
67509
67510 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67511
67512         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
67513
67514 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67515
67516         * modules/autobuild: New module.
67517
67518         * m4/autobuild.m4: New file.
67519
67520 2007-04-11  Bruno Haible  <bruno@clisp.org>
67521
67522         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
67523         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
67524         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
67525         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
67526         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67527         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67528         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67529         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67530         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67531         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67532         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
67533         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67534         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67535         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
67536         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67537         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67538         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
67539         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67540         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67541         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
67542         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67543         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67544         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
67545         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67546         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67547         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
67548         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67549         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67550         Reported by Eric Blake.
67551
67552 2007-04-11  Bruno Haible  <bruno@clisp.org>
67553
67554         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
67555
67556 2007-04-10  Bruno Haible  <bruno@clisp.org>
67557
67558         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
67559         for NaN and Infinity. Needed on FreeBSD 6.1.
67560         * tests/test-vasnprintf-posix.c (test_function): Undo last change
67561         regarding results for "%010a" of Infinity and NaN.
67562         * tests/test-vasprintf-posix.c (test_function): Likewise.
67563         * tests/test-snprintf-posix.h (test_function): Likewise.
67564         * tests/test-sprintf-posix.h (test_function): Likewise.
67565         * tests/test-fprintf-posix.h (test_function): Likewise.
67566         * tests/test-printf-posix.h (test_function): Likewise.
67567         * tests/test-fprintf-posix.out: Likewise.
67568
67569 2007-04-10  Bruno Haible  <bruno@clisp.org>
67570
67571         * modules/locale-tests: New file.
67572         * tests/test-locale.c: New file.
67573
67574         * modules/locale: New file.
67575         * lib/locale_.h: New file.
67576         * m4/locale_h.m4: New file.
67577
67578 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
67579             Bruno Haible  <bruno@clisp.org>
67580
67581         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
67582         be determined, test for availability of the copysignf, copysign,
67583         copysignl functions.
67584         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
67585         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
67586         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
67587
67588 2007-04-09  Eric Blake  <ebb9@byu.net>
67589
67590         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
67591         * modules/stdio (Makefile.am): Support fflush.
67592         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
67593         * modules/fflush: New file.
67594         * lib/fflush.c: Likewise.
67595         * m4/fflush.m4: Likewise.
67596         * modules/fflush-tests: New test.
67597         * tests/test-fflush.c: Likewise.
67598         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
67599
67600 2007-04-06  Bruno Haible  <bruno@clisp.org>
67601
67602         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
67603         (VASNPRINTF): Use signbit for faster determination whether to print a
67604         minus sign.
67605         * modules/vasnprintf (Files): Remove lib/float+.h.
67606         * modules/fprintf-posix (Depends-on): Add signbit.
67607         * modules/snprintf-posix (Depends-on): Likewise.
67608         * modules/sprintf-posix (Depends-on): Likewise.
67609         * modules/vasnprintf-posix (Depends-on): Likewise.
67610         * modules/vasprintf-posix (Depends-on): Likewise.
67611         * modules/vfprintf-posix (Depends-on): Likewise.
67612         * modules/vsnprintf-posix (Depends-on): Likewise.
67613         * modules/vsprintf-posix (Depends-on): Likewise.
67614
67615 2007-04-06  Bruno Haible  <bruno@clisp.org>
67616
67617         * tests/test-frexp.c (main): Test also the sign bit of zero results.
67618         * tests/test-frexpl.c (main): Likewise.
67619         * tests/test-ldexpl.c (main): Likewise.
67620         * modules/frexp-tests (Depends-on): Add signbit.
67621         * modules/frexpl-tests (Depdends-on): Likewise.
67622         * modules/ldexpl-tests (Depdends-on): Likewise.
67623
67624 2007-04-06  Bruno Haible  <bruno@clisp.org>
67625
67626         * modules/signbit-tests: New file.
67627         * tests/test-signbit.c: New file.
67628
67629         * modules/signbit: New file.
67630         * lib/signbitf.c: New file.
67631         * lib/signbitd.c: New file.
67632         * lib/signbitl.c: New file.
67633         * m4/signbit.m4: New file.
67634         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
67635         (signbit): New macro.
67636         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
67637         REPLACE_SIGNBIT.
67638         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
67639         REPLACE_FREXPL into math.h.
67640
67641 2007-04-06  Bruno Haible  <bruno@clisp.org>
67642
67643         * modules/isnanf-nolibm-tests: New file.
67644         * tests/test-isnanf.c: New file.
67645
67646         * modules/isnanf-nolibm: New file.
67647         * lib/isnanf.h: New file.
67648         * lib/isnanf.c: New file.
67649         * lib/isnan.c: Consider the USE_FLOAT macro.
67650         * m4/isnanf.m4: New file.
67651
67652 2007-04-06  Bruno Haible  <bruno@clisp.org>
67653
67654         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
67655         (Link): New section.
67656
67657         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
67658
67659 2007-04-06  Bruno Haible  <bruno@clisp.org>
67660
67661         Assume the 'long double' type.
67662         * m4/longdouble.m4: Remove file.
67663         * config/srclist.txt: Don't mention longdouble.m4.
67664         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
67665         * lib/float+.h: Likewise.
67666         * lib/frexp.c: Likewise.
67667         * lib/printf-args.h: Likewise.
67668         * lib/printf-args.c: Likewise.
67669         * lib/printf-frexp.c: Likewise.
67670         * lib/printf-parse.c: Likewise.
67671         * lib/vasnprintf.c: Likewise.
67672         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
67673         * m4/intl.m4: Likewise.
67674         * m4/isnanl.m4: Likewise.
67675         * m4/printf.m4: Likewise.
67676         * m4/printf-frexpl.m4: Likewise.
67677         * m4/vasnprintf.m4: Likewise.
67678         * modules/allocsa (Files): Remove m4/longdouble.m4.
67679         * modules/gettext (Files): Likewise.
67680         * modules/relocatable-prog-wrapper (Files): Likewise.
67681         * modules/vasnprintf (Files): Likewise.
67682         * modules/isnanl (Files): Likewise.
67683         (Include): Simplify.
67684         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
67685         (Include): Simplify.
67686         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
67687         (Include): Simplify.
67688         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
67689         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67690         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
67691         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67692         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67693         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67694         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
67695         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67696         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67697         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67698         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
67699         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67700         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
67701         * tests/test-isnanl.c: Likewise.
67702         * tests/test-snprintf-posix.h: Likewise.
67703         * tests/test-sprintf-posix.h: Likewise.
67704         * tests/test-vasnprintf-posix.c: Likewise.
67705         * tests/test-vasnprintf-posix2.c: Likewise.
67706         * tests/test-vasprintf-posix.c: Likewise.
67707
67708 2007-04-06  Bruno Haible  <bruno@clisp.org>
67709
67710         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
67711         * lib/math_.h [__DECC]: Include the overridden include file through
67712         #include_next, outside the double-inclusion guard.
67713         * lib/stdio_.h [__DECC]: Likewise.
67714         * lib/stdlib_.h [__DECC]: Likewise.
67715         * lib/string_.h [__DECC]: Likewise.
67716         * lib/time_.h [__DECC]: Likewise.
67717         * lib/wchar_.h [__DECC]: Likewise.
67718         * lib/wctype_.h [__DECC]: Likewise.
67719         * lib/inttypes_.h [__DECC]: Likewise.
67720         Reported by Albert Chin <china@thewrittenword.com> in
67721         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
67722
67723 2007-04-04  Eric Blake  <ebb9@byu.net>
67724
67725         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
67726         1.5.x.
67727
67728 2007-04-04  Bruno Haible  <bruno@clisp.org>
67729
67730         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
67731         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
67732
67733 2007-04-04  Bruno Haible  <bruno@clisp.org>
67734
67735         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
67736         results for "%010a" of Infinity and NaN.
67737         * tests/test-vasprintf-posix.c (test_function): Likewise.
67738         * tests/test-snprintf-posix.h (test_function): Likewise.
67739         * tests/test-sprintf-posix.h (test_function): Likewise.
67740         * tests/test-fprintf-posix.h (test_function): Remove these tests.
67741         * tests/test-printf-posix.h (test_function): Likewise.
67742         * tests/test-fprintf-posix.out: Update.
67743         Needed for FreeBSD 6.1.
67744
67745 2007-04-04  Bruno Haible  <bruno@clisp.org>
67746
67747         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
67748         directly used by the gnulib modules nor by gnulib-tool.
67749
67750 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
67751
67752         * DEPENDENCIES: Give overall description of version dependency
67753         desirability.  Use more-typical names for apps.
67754         Add shell, coreutils, diffutils, grep, tar, gzip.
67755
67756 2007-04-04  Simon Josefsson  <simon@josefsson.org>
67757
67758         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
67759
67760 2007-04-04  Karl Berry  <karl@gnu.org>
67761
67762         * MODULES.html.sh (func_module): missing '.
67763
67764 2007-04-03  Bruno Haible  <bruno@clisp.org>
67765
67766         * modules/argmatch-tests (Makefile.am): New variable
67767         test_argmatch_LDADD.
67768         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
67769         * modules/array-list-tests (Makefile.am): New variable
67770         test_array_list_LDADD.
67771         * modules/array-oset-tests (Makefile.am): New variable
67772         test_array_oset_LDADD.
67773         * modules/avltree-list-tests (Makefile.am): New variable
67774         test_avltree_list_LDADD.
67775         * modules/avltree-oset-tests (Makefile.am): New variable
67776         test_avltree_oset_LDADD.
67777         * modules/avltreehash-list-tests (Makefile.am): New variable
67778         test_avltreehash_list_LDADD.
67779         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
67780         test_canonicalize_lgpl_LDADD.
67781         * modules/carray-list-tests (Makefile.am): New variable
67782         test_carray_list_LDADD.
67783         * modules/dirname-tests (Makefile.am): New variable
67784         test_dirname_LDADD.
67785         * modules/linked-list-tests (Makefile.am): New variable
67786         test_linked_list_LDADD.
67787         * modules/linkedhash-list-tests (Makefile.am): New variable
67788         test_linkedhash_list_LDADD.
67789         * modules/rbtree-list-tests (Makefile.am): New variable
67790         test_rbtree_list_LDADD.
67791         * modules/rbtree-oset-tests (Makefile.am): New variable
67792         test_rbtree_oset_LDADD.
67793         * modules/rbtreehash-list-tests (Makefile.am): New variable
67794         test_rbtreehash_list_LDADD.
67795         * modules/xvasprintf-tests (Makefile.am): New variable
67796         test_xvasprintf_LDADD.
67797         Reported by Eric Blake.
67798
67799 2007-04-03  Eric Blake  <ebb9@byu.net>
67800
67801         * DEPENDENCIES: Weaken m4 requirements.
67802
67803 2007-04-03  Bruno Haible  <bruno@clisp.org>
67804
67805         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
67806         * modules/isnanl-tests (configure.ac): Likewise.
67807
67808 2007-04-03  Ben Pfaff  <blp@gnu.org>
67809
67810         * modules/iconv_open: Add $(srcdir)/ to source directory
67811         references in Makefile fragments that call gperf, to fix VPATH
67812         builds.
67813
67814 2007-04-03  Bruno Haible  <bruno@clisp.org>
67815
67816         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
67817         * lib/ldexpl.c: Undo last change.
67818
67819 2007-04-03  Bruno Haible  <bruno@clisp.org>
67820
67821         * modules/printf-frexpl (Depends-on): Undo last change.
67822         (Files): Add m4/ldexpl.m4.
67823
67824 2007-04-03  Bruno Haible  <bruno@clisp.org>
67825
67826         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
67827         * modules/isnanl (Link): New section.
67828
67829         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
67830         * modules/frexp (Link): New section.
67831
67832         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
67833         * modules/frexpl (Link): New section.
67834
67835         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
67836         * modules/ldexpl (Link): New section.
67837
67838 2007-04-03  Bruno Haible  <bruno@clisp.org>
67839
67840         * modules/TEMPLATE-EXTENDED: New file.
67841         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
67842
67843 2007-04-03  Bruno Haible  <bruno@clisp.org>
67844
67845         * DEPENDENCIES: New file.
67846         Suggested by Simon Josefsson.
67847
67848 2007-04-03  Bruno Haible  <bruno@clisp.org>
67849
67850         * doc/gnulib.texi: Escape @.
67851
67852 2007-04-03  James Youngman  <jay@gnu.org>
67853         and Paul Eggert  <eggert@cs.ucla.edu>
67854
67855         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
67856         birthtime on all systems that have birthtime, not just those which
67857         use st_birthtimensec rather than st_birthtim.  Putting zero in
67858         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
67859         that the birth time is not available for files on an NFS mount.
67860
67861 2007-04-03  Simon Josefsson  <simon@josefsson.org>
67862
67863         * modules/memxor: Move back from crypto/, suggested by Bruno.
67864         * modules/crypto/hmac-sha1: Fix memxor dependency.
67865
67866         * modules/crypto/gc: Moved from ../.
67867
67868 2007-04-02  Eric Blake  <ebb9@byu.net>
67869
67870         * lib/ldexpl.c (includes): Avoid libm.
67871
67872         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
67873
67874 2007-04-02  Bruno Haible  <bruno@clisp.org>
67875
67876         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
67877         on IRIX.
67878
67879 2007-04-02  Bruno Haible  <bruno@clisp.org>
67880
67881         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
67882         x86 or x86_64 platforms running MacOS X.
67883         Reported by Ryan Schmidt <@ryandesign.com>.
67884
67885 2007-04-02  Bruno Haible  <bruno@clisp.org>
67886
67887         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
67888         i386.
67889
67890 2007-04-01  Simon Josefsson  <simon@josefsson.org>
67891
67892         * modules/crypto/arcfour: Moved from ../.
67893         * modules/crypto/arcfour-tests: Moved from ../.
67894         * modules/crypto/arctwo: Moved from ../.
67895         * modules/crypto/arctwo-tests: Moved from ../.
67896         * modules/crypto/des: Moved from ../.
67897         * modules/crypto/des-tests: Moved from ../.
67898         * modules/crypto/gc-arcfour: Moved from ../.
67899         * modules/crypto/gc-arcfour-tests: Moved from ../.
67900         * modules/crypto/gc-arctwo: Moved from ../.
67901         * modules/crypto/gc-arctwo-tests: Moved from ../.
67902         * modules/crypto/gc-des: Moved from ../.
67903         * modules/crypto/gc-des-tests: Moved from ../.
67904         * modules/crypto/gc-hmac-md5: Moved from ../.
67905         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
67906         * modules/crypto/gc-hmac-sha1: Moved from ../.
67907         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
67908         * modules/crypto/gc-md2: Moved from ../.
67909         * modules/crypto/gc-md2-tests: Moved from ../.
67910         * modules/crypto/gc-md4: Moved from ../.
67911         * modules/crypto/gc-md4-tests: Moved from ../.
67912         * modules/crypto/gc-md5: Moved from ../.
67913         * modules/crypto/gc-md5-tests: Moved from ../.
67914         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
67915         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
67916         * modules/crypto/gc-random: Moved from ../.
67917         * modules/crypto/gc-rijndael: Moved from ../.
67918         * modules/crypto/gc-rijndael-tests: Moved from ../.
67919         * modules/crypto/gc-sha1: Moved from ../.
67920         * modules/crypto/gc-sha1-tests: Moved from ../.
67921         * modules/crypto/gc-tests: Moved from ../.
67922         * modules/crypto/hmac-md5: Moved from ../.
67923         * modules/crypto/hmac-md5-tests: Moved from ../.
67924         * modules/crypto/hmac-sha1: Moved from ../.
67925         * modules/crypto/hmac-sha1-tests: Moved from ../.
67926         * modules/crypto/md2: Moved from ../.
67927         * modules/crypto/md2-tests: Moved from ../.
67928         * modules/crypto/md4: Moved from ../.
67929         * modules/crypto/md4-tests: Moved from ../.
67930         * modules/crypto/md5: Moved from ../.
67931         * modules/crypto/md5-tests: Moved from ../.
67932         * modules/crypto/memxor: Moved from ../.
67933         * modules/crypto/rijndael: Moved from ../.
67934         * modules/crypto/rijndael-tests: Moved from ../.
67935         * modules/crypto/sha1: Moved from ../.
67936
67937 2007-03-30  James Youngman  <jay@gnu.org>
67938
67939         * tests/test-stat-time.c (prepare_test): use chmod() rather than
67940         rename() to change the ctime of a file (because ctime is unaffected
67941         by rename on jfs2 on AIX 5.1).
67942         (main): Start by doing cleanup, in case a previous run failed leaving
67943         test files behind.
67944
67945 2007-03-31  Bruno Haible  <bruno@clisp.org>
67946
67947         Support old proprietary implementations of iconv.
67948         * modules/iconv_open: New file.
67949         * lib/iconv_.h: New file.
67950         * m4/iconv_h.m4: New file.
67951         * lib/iconv_open.c: New file.
67952         * lib/iconv_open-aix.gperf: New file.
67953         * lib/iconv_open-hpux.gperf: New file.
67954         * lib/iconv_open-irix.gperf: New file.
67955         * lib/iconv_open-osf.gperf: New file.
67956         * m4/iconv_open.m4: New file.
67957         * modules/linebreak (Depends-on): Add iconv_open.
67958         * modules/striconv (Depends-on): Likewise.
67959         * modules/striconveh (Depends-on): Likewise.
67960         * modules/unicodeio (Depends-on): Likewise.
67961         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
67962         (iconv_t)(-1).
67963         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
67964         conversion if cd is (iconv_t)(-1).
67965         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
67966         is not possible.
67967
67968 2007-03-31  Bruno Haible  <bruno@clisp.org>
67969
67970         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67971         work on Solaris either. Protect also second use of "autodetect_jp".
67972
67973 2007-03-31  Bruno Haible  <bruno@clisp.org>
67974
67975         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
67976         the function is not present.
67977
67978 2007-03-31  Bruno Haible  <bruno@clisp.org>
67979
67980         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
67981         the function is not present.
67982
67983 2007-03-31  Bruno Haible  <bruno@clisp.org>
67984
67985         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
67986         a bug in HP-UX iconv_open().
67987
67988 2007-03-31  Bruno Haible  <bruno@clisp.org>
67989
67990         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
67991         (Mathematics <math.h>): New section, add fpieee.
67992         (Input/output <stdio.h>): Add fseterr.
67993         (Mathematics <math.h>): New section, add printf-frexp.
67994         (Container data structures): Add sublist.
67995         (Core language properties): Add fpucw, inline.
67996         (Functions for greatest-width integer types <inttypes.h>): Add
67997         imaxabs, imaxdiv, inttypes.
67998         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
67999         isnanl-nolibm, ldexp.
68000         (Mathematics <math.h>): New section, add printf-frexpl.
68001         (Support for systems lacking POSIX:2001): Add fprintf-posix,
68002         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
68003         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
68004         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
68005         (Unicode string functions): Add unistr/u*-mbtoucr.
68006         (Java): Add javacomp-script, javaexec-script.
68007         (C#): Add csharpcomp-script, csharpexec-script.
68008         (Support for building libraries and executables): Add havelib,
68009         relocatable-*.
68010         (Support for maintaining and releasing projects): Renamed from
68011         'Support for maintaining and release projects'. Add announce-gen.
68012
68013 2007-03-31  Bruno Haible  <bruno@clisp.org>
68014
68015         * README: Talk primarily about git.
68016         (git and CVS): Renamed from CVS.
68017         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
68018         gnulib is available through git.
68019         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
68020
68021 2007-03-30  Bruno Haible  <bruno@clisp.org>
68022
68023         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
68024         * lib/poll_.h: Likewise.
68025         * lib/stat_.h: Likewise.
68026         * lib/sys_time_.h: Likewise.
68027         * lib/sysexit_.h: Likewise.
68028         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
68029         * lib/stdbool_.h: Likewise.
68030         * lib/byteswap_.h: Add double-inclusion guard.
68031
68032 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
68033
68034         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
68035
68036 2007-03-30  Karl Berry  <karl@gnu.org>
68037
68038         * config/srclist-update: double space after USA in the license
68039         substitution, since that's how it's usually (?) written.
68040
68041 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
68042
68043         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
68044         reported by Bruno Haible.
68045
68046 2007-03-29  Bruno Haible  <bruno@clisp.org>
68047
68048         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
68049         a bug in AIX iconv().
68050
68051 2007-03-29  Bruno Haible  <bruno@clisp.org>
68052
68053         * modules/ldexpl-tests: New file.
68054         * tests/test-ldexpl.c: New file.
68055
68056 2007-03-29  Bruno Haible  <bruno@clisp.org>
68057
68058         * lib/ldexpl.c: Include fpucw.h.
68059         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
68060         multiplication.
68061         * modules/ldexpl (Depends-on): Add fpucw.
68062
68063 2007-03-29  Bruno Haible  <bruno@clisp.org>
68064
68065         * modules/ldexpl: New file.
68066         * m4/ldexpl.m4: New file.
68067         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
68068         set.
68069         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
68070         REPLACE_LDEXPL.
68071         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
68072         REPLACE_LDEXPL.
68073         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
68074         gl_FUNC_LDEXPL_WORKS.
68075         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
68076         * modules/mathl (Files): Remove lib/ldexpl.c.
68077         (Depends-on): Add ldexpl.
68078
68079 2007-03-29  Bruno Haible  <bruno@clisp.org>
68080
68081         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
68082
68083 2007-03-29  Bruno Haible  <bruno@clisp.org>
68084
68085         * tests/test-striconveh.c (main): Don't assume that a direct conversion
68086         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
68087         and possibly also HP-UX.
68088         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
68089         work on AIX, IRIX, HP-UX, OSF/1.
68090         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
68091         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
68092         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
68093         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
68094         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
68095         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
68096
68097 2007-03-29  Bruno Haible  <bruno@clisp.org>
68098
68099         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
68100
68101 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
68102
68103         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
68104         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
68105
68106 2007-03-29  Eric Blake  <ebb9@byu.net>
68107
68108         * lib/acl-internal.h: Remove redundant include.
68109         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
68110         Cygwin when a file is locked.
68111
68112 2007-03-29  Bruno Haible  <bruno@clisp.org>
68113
68114         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
68115         file.
68116         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
68117
68118 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
68119
68120         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
68121         try to remove a parent directory if the child couldn't be removed
68122         (except for the first rmdir, which could fail because the child
68123         doesn't exist).  Problem reported by Jeff Blaine in
68124         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
68125
68126 2007-03-28  Bruno Haible  <bruno@clisp.org>
68127
68128         * lib/striconveh.c (utf8conv_carefully): New function.
68129         (mem_cd_iconveh_internal): Invoke it.
68130
68131 2007-03-28  Bruno Haible  <bruno@clisp.org>
68132
68133         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
68134         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
68135         input.
68136         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
68137         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
68138         unistr/u8-uctomb.
68139
68140 2007-03-28  Bruno Haible  <bruno@clisp.org>
68141
68142         * modules/unistr/u8-mbtoucr: New file.
68143         * lib/unistr/u8-mbtoucr.c: New file.
68144         * modules/unistr/u16-mbtoucr: New file.
68145         * lib/unistr/u16-mbtoucr.c: New file.
68146         * modules/unistr/u16-mbtoucr: New file.
68147         * lib/unistr/u16-mbtoucr.c: New file.
68148         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
68149
68150 2007-03-27  Simon Josefsson  <simon@josefsson.org>
68151             Bruno Haible  <bruno@clisp.org>
68152
68153         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
68154         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
68155         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
68156
68157         * m4/stdio_h.m4: Add stubs for vasprintf too.
68158
68159         * modules/stdio: Support vasprintf in sed command.
68160
68161         * modules/vasprintf: Depend on stdio for prototypes.  Remove
68162         vasprintf.h.  Add stdio module indicator.
68163
68164         * lib/stdio_.h: Declare asprintf and vasprintf, based on
68165         vasprintf.h.
68166
68167         * lib/vasprintf.h: File removed.
68168
68169         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
68170         * lib/vasprintf.c: Ditto.
68171         * lib/xvasprintf.c: Ditto.
68172         * tests/test-vasprintf-posix.c: Ditto.
68173         * tests/test-vasprintf.c: Ditto.
68174
68175 2007-03-27  Bruno Haible  <bruno@clisp.org>
68176
68177         Make vasnprintf multithread-safe.
68178         * lib/vasnprintf.c (decimal_point_char): New function.
68179         (VASNPRINTF): Use it.
68180         Suggested by Simon Josefsson.
68181
68182 2007-03-27  Eric Blake  <ebb9@byu.net>
68183
68184         Support sub-second birthtime on cygwin.
68185         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
68186         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
68187         (get_stat_birthtime): Also work with st_birthtim.
68188
68189 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
68190
68191         * lib/stat-time.h (USE_BIRTHTIME): Remove.
68192         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
68193         (get_stat_birthtime_ns): Do not try to use "spare" fields.
68194         (get_stat_birthtime_ns): Simplify compile-time tests.
68195         (get_stat_birthtime): Change the API to look like
68196         get_stat_mtime etc., except return a negative tv_nsec on error.
68197         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
68198         Don't check for "spare" fields.
68199         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
68200         or for struct stat.st_birthtime, as these tests aren't used.
68201         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
68202
68203 2007-03-27  Bruno Haible  <bruno@clisp.org>
68204
68205         * lib/stat-time.h: Include <sys/stat.h>.
68206
68207 2007-03-27  James Youngman  <jay@gnu.org>
68208
68209         * lib/stat-time.h (get_stat_birthtime): New function for
68210           retrieving st_birthtime as provided by UFS2 (hence *BSD).
68211         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
68212           and its variants.
68213         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
68214         * modules/stat-time-test: New file.
68215         * tests/test-stat-time.c: New test, devised by Bruno Haible.
68216
68217 2007-03-26  Bruno Haible  <bruno@clisp.org>
68218
68219         Better support of signalling NaNs.
68220         * lib/atanl.c: Include isnanl.h.
68221         (atanl): Perform test for NaN at the beginning of the function and
68222         through a call to isnanl.
68223         * lib/cosl.c: Include isnanl.h.
68224         (cosl): Perform test for NaN at the beginning of the function and
68225         through a call to isnanl.
68226         * lib/ldexpl.c: Include isnanl.h.
68227         (ldexpl): Perform test for NaN through a call to isnanl.
68228         * lib/logl.c: Include isnanl.h.
68229         (logl): Perform test for NaN at the beginning of the function and
68230         through a call to isnanl.
68231         * lib/sinl.c: Include isnanl.h.
68232         (sinl): Perform test for NaN at the beginning of the function and
68233         through a call to isnanl.
68234         * lib/sqrtl.c: Include isnanl.h.
68235         (sqrtl): Perform test for NaN at the beginning of the function and
68236         through a call to isnanl.
68237         * lib/tanl.c: Include isnanl.h.
68238         (tanl): Perform test for NaN at the beginning of the function and
68239         through a call to isnanl.
68240         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
68241         * modules/mathl (Depends-on): Add isnanl.
68242
68243 2007-03-26  Eric Blake  <ebb9@byu.net>
68244
68245         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
68246         regression in logic sense of previous patch.
68247
68248 2007-03-26  Bruno Haible  <bruno@clisp.org>
68249
68250         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
68251         unportable shell command "if ! ...".
68252         Reported by Ralf Wildenhues.
68253
68254 2007-03-25  Bruno Haible  <bruno@clisp.org>
68255
68256         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
68257         <sysexits.h> file, and only add EX_CONFIG.
68258         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
68259         absolute file name and whether it is sufficient. Substitute also
68260         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
68261         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
68262         ABSOLUTE_SYSEXITS_H into sysexits.h.
68263
68264 2007-03-25  Bruno Haible  <bruno@clisp.org>
68265
68266         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
68267         hints is NULL.
68268
68269 2007-03-25  Bruno Haible  <bruno@clisp.org>
68270
68271         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
68272         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
68273
68274 2007-03-25  Bruno Haible  <bruno@clisp.org>
68275
68276         * lib/vasnprintf.c: Include langinfo.h.
68277         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
68278         multithread-safe.
68279         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
68280         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
68281         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68282         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68283         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68284         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68285         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68286         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
68287         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68288         Reported by Simon Josefsson.
68289
68290 2007-03-25  Bruno Haible  <bruno@clisp.org>
68291
68292         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
68293         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
68294         * modules/vasnprintf (Depends-on): Add stdint.
68295
68296 2007-03-25  Bruno Haible  <bruno@clisp.org>
68297
68298         * modules/fpieee: New file.
68299         * m4/fpieee.m4: New file.
68300         * modules/isnan-nolibm (Depends-on): Add fpieee.
68301         * modules/isnanl-nolibm (Depends-on): Add fpieee.
68302         * modules/isnanl (Depends-on): Add fpieee.
68303
68304 2007-03-25  Bruno Haible  <bruno@clisp.org>
68305
68306         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
68307
68308 2007-03-25  Bruno Haible  <bruno@clisp.org>
68309
68310         Avoid test failures on IRIX 6.5.
68311         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
68312         (main): Use it.
68313         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
68314         macros.
68315         (main): Use them.
68316
68317 2007-03-25  Bruno Haible  <bruno@clisp.org>
68318
68319         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
68320         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
68321         exists but doesn't work.
68322         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
68323         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
68324         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
68325         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
68326         math.h.
68327
68328 2007-03-25  Bruno Haible  <bruno@clisp.org>
68329
68330         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
68331         returns inf. Needed on IRIX 6.5.
68332
68333 2007-03-25  Bruno Haible  <bruno@clisp.org>
68334
68335         * tests/test-frexpl.c: Include isnanl-nolibm.h.
68336         (main): Use isnanl instead of x != x idiom.
68337         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
68338
68339         * tests/test-frexp.c: Include isnan.h.
68340         (main): Use isnan instead of x != x idiom.
68341         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
68342
68343 2007-03-25  Bruno Haible  <bruno@clisp.org>
68344
68345         * tests/test-frexp.c (NaN): New function/macro.
68346         (main): Use it instead of 0.0 / 0.0.
68347         * tests/test-isnan.c (NaN): New function/macro.
68348         (main): Use it instead of 0.0 / 0.0.
68349         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
68350         (test_function): Use it instead of 0.0 / 0.0.
68351         * tests/test-vasprintf-posix.c (NaN): New function/macro.
68352         (test_function): Use it instead of 0.0 / 0.0.
68353         * tests/test-snprintf-posix.h (NaN): New function/macro.
68354         (test_function): Use it instead of 0.0 / 0.0.
68355         * tests/test-sprintf-posix.h (NaN): New function/macro.
68356         (test_function): Use it instead of 0.0 / 0.0.
68357         * tests/test-fprintf-posix.h (NaN): New function/macro.
68358         (test_function): Use it instead of 0.0 / 0.0.
68359         * tests/test-printf-posix.h (NaN): New function/macro.
68360         (test_function): Use it instead of 0.0 / 0.0.
68361
68362         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
68363
68364 2007-03-25  Bruno Haible  <bruno@clisp.org>
68365
68366         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
68367
68368 2007-03-25  Bruno Haible  <bruno@clisp.org>
68369
68370         * lib/regexec.c (merge_state_with_log): Make static.
68371
68372 2007-03-25  Bruno Haible  <bruno@clisp.org>
68373
68374         * lib/trigl.c (kernel_rem_pio2): Make static.
68375
68376 2007-03-25  Bruno Haible  <bruno@clisp.org>
68377
68378         * lib/sincosl.c (sincosl_table): Make static.
68379
68380 2007-03-25  Bruno Haible  <bruno@clisp.org>
68381
68382         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
68383         if the compiler does not support C99.
68384
68385 2007-03-25  Bruno Haible  <bruno@clisp.org>
68386
68387         * modules/time (Makefile.am): Ensure all rule action lines start with a
68388         tab.
68389
68390 2007-03-24  Bruno Haible  <bruno@clisp.org>
68391
68392         * modules/tsearch-tests: New file.
68393         * tests/test-tsearch.sh: New file.
68394         * tests/test-tsearch.c: New file, mostly copied from glibc.
68395
68396         * modules/search-tests: New file.
68397         * tests/test-search.c: New file.
68398
68399         * modules/search: New file.
68400         * lib/search_.h: New file, incorporating lib/tsearch.h.
68401         * m4/search_h.m4: New file.
68402         * lib/tsearch.h: Remove file.
68403         * lib/tsearch.c: Include search.h instead of tsearch.h.
68404         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
68405         HAVE_TSEARCH.
68406         * modules/tsearch (Files): Remove lib/tsearch.h.
68407         (Depends-on): Add search.
68408         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
68409         (Include): Change tsearch.h into search.h.
68410
68411 2007-03-24  Bruno Haible  <bruno@clisp.org>
68412
68413         * modules/fpucw: New file.
68414         * lib/fpucw.h: New file.
68415         * lib/frexp.c: Include fpucw.h.
68416         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
68417         (FUNC): Use them.
68418         * lib/printf-frexp.c: Include fpucw.h.
68419         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
68420         (FUNC): Use them.
68421         * lib/vasnprintf.c: Include fpucw.h.
68422         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
68423         'long double' calculations.
68424         * tests/test-frexpl.c: Include fpucw.h.
68425         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
68426         * tests/test-printf-frexpl.c: Include fpucw.h.
68427         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
68428         * modules/frexpl (Depends-on): Add fpucw.
68429         * modules/printf-frexpl (Depends-on): Likewise.
68430         * modules/fprintf-posix (Depends-on): Likewise.
68431         * modules/snprintf-posix (Depends-on): Likewise.
68432         * modules/sprintf-posix (Depends-on): Likewise.
68433         * modules/vasnprintf-posix (Depends-on): Likewise.
68434         * modules/vasprintf-posix (Depends-on): Likewise.
68435         * modules/vfprintf-posix (Depends-on): Likewise.
68436         * modules/vsnprintf-posix (Depends-on): Likewise.
68437         * modules/vsprintf-posix (Depends-on): Likewise.
68438         * modules/frexpl-tests (Depends-on): Likewise.
68439         * modules/printf-frexpl-tests (Depends-on): Likewise.
68440
68441 2007-03-24  Bruno Haible  <bruno@clisp.org>
68442
68443         * lib/float+.h: New file.
68444         * lib/isnan.c: Include float+.h.
68445         (SIZE): New macro.
68446         (FUNC): Compare only SIZE bytes of the value.
68447         * lib/vasnprintf.c: Include float+.h.
68448         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
68449         SIZEOF_LDBL or SIZEOF_DBL bytes.
68450         * modules/isnan-nolibm (Files): Add lib/float+.h.
68451         * modules/isnanl-nolibm (Files): Add lib/float+.h.
68452         * modules/isnanl (Files): Add lib/float+.h.
68453         * modules/vasnprintf (Files): Add lib/float+.h.
68454
68455 2007-03-24  Bruno Haible  <bruno@clisp.org>
68456
68457         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
68458         include isnanl-nolibm.h.
68459
68460 2007-03-24  Bruno Haible  <bruno@clisp.org>
68461
68462         * tests/test-read-file.c (main): Don't produce spurious output for
68463         expected situations. Make the test fail if it encountered unexpected
68464         results.
68465
68466 2007-03-24  Bruno Haible  <bruno@clisp.org>
68467
68468         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
68469         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
68470
68471 2007-03-24  Bruno Haible  <bruno@clisp.org>
68472
68473         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
68474
68475 2007-03-24  Bruno Haible  <bruno@clisp.org>
68476
68477         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
68478         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
68479
68480         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
68481         * modules/utf8-ucs4: Turn into a symbolic link to module
68482         unistr/u8-mbtouc.
68483
68484         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
68485         utf8-ucs4-unsafe.
68486         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
68487         unistr/u8-mbtouc-unsafe.
68488
68489         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
68490         * modules/utf16-ucs4: Turn into a symbolic link to module
68491         unistr/u16-mbtouc.
68492
68493         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
68494         utf16-ucs4-unsafe.
68495         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
68496         unistr/u16-mbtouc-unsafe.
68497
68498         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
68499         * modules/ucs4-utf8: Turn into a symbolic link to module
68500         unistr/u8-ubtomb.
68501
68502         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
68503         * modules/ucs4-utf16: Turn into a symbolic link to module
68504         unistr/u16-ubtomb.
68505
68506 2007-03-24  Bruno Haible  <bruno@clisp.org>
68507
68508         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
68509         Enable the function only if HAVE_INLINE.
68510         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
68511         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
68512         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
68513         Enable the function only if HAVE_INLINE.
68514         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
68515         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
68516         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
68517         Enable the function only if HAVE_INLINE.
68518         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
68519         Enable the function only if HAVE_INLINE.
68520         * modules/utf8-ucs4: Update.
68521         * modules/utf8-ucs4-unsafe: Update.
68522         * modules/utf16-ucs4: Update.
68523         * modules/utf16-ucs4-unsafe: Update.
68524         * modules/ucs4-utf8: Update.
68525         * modules/ucs4-utf16: Update.
68526
68527 2007-03-24  Bruno Haible  <bruno@clisp.org>
68528
68529         * lib/utf8-ucs4.h: Remove file.
68530         * lib/utf8-ucs4-unsafe.h: Remove file.
68531         * lib/utf16-ucs4.h: Remove file.
68532         * lib/utf16-ucs4-unsafe.h: Remove file.
68533         * lib/ucs4-utf8.h: Remove file.
68534         * lib/ucs4-utf16.h: Remove file.
68535         * lib/unistr.h: Include their previous contents.
68536         * m4/utf-ucs4.m4: Remove file.
68537         * m4/ucs4-utf.m4: Remove file.
68538         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
68539         (Depends-on): Add unistr/base.
68540         (configure.ac): Remove gl_UTF_UCS4.
68541         (Makefile.am): Update.
68542         (Include): Change to unistr.h.
68543         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
68544         (Depends-on): Add unistr/base.
68545         (configure.ac): Remove gl_UTF_UCS4.
68546         (Makefile.am): Update.
68547         (Include): Change to unistr.h.
68548         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
68549         (Depends-on): Add unistr/base.
68550         (configure.ac): Remove gl_UTF_UCS4.
68551         (Makefile.am): Update.
68552         (Include): Change to unistr.h.
68553         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
68554         (Depends-on): Add unistr/base.
68555         (configure.ac): Remove gl_UTF_UCS4.
68556         (Makefile.am): Update.
68557         (Include): Change to unistr.h.
68558         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
68559         (Depends-on): Add unistr/base.
68560         (configure.ac): Remove gl_UCS4_UTF.
68561         (Makefile.am): Update.
68562         (Include): Change to unistr.h.
68563         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
68564         (Depends-on): Add unistr/base.
68565         (configure.ac): Remove gl_UCS4_UTF.
68566         (Makefile.am): Update.
68567         (Include): Change to unistr.h.
68568         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
68569         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
68570         utf8-ucs4-unsafe.h.
68571         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
68572         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
68573         utf16-ucs4-unsafe.h.
68574         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
68575         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
68576         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
68577         * lib/unistr/u8-strchr.c: Likewise.
68578         * lib/unistr/u8-strrchr.c: Likewise.
68579         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
68580         * lib/unistr/u16-strchr.c: Likewise.
68581         * lib/unistr/u16-strrchr.c: Likewise.
68582         * lib/striconveh.c: Update.
68583         * lib/linebreak.c: Update.
68584
68585 2007-03-24  Bruno Haible  <bruno@clisp.org>
68586
68587         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
68588         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
68589
68590 2007-03-22  Bruno Haible  <bruno@clisp.org>
68591
68592         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
68593
68594 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68595
68596         * MODULES.html.sh (File system functions): New module write-any-file.
68597         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
68598         * m4/write-any-file.m4: New files.
68599
68600 2007-03-23  Eric Blake  <ebb9@byu.net>
68601
68602         * gnulib-tool: Rearrange space-tab sequences, since some editors
68603         like to eat them.
68604
68605 2007-03-23  Eric Blake  <ebb9@byu.net>
68606
68607         * lib/version-etc.c (version_etc_va): Update license wording to
68608         be more concise.  Recommended by Richard Stallman.
68609
68610 2007-03-22  Bruno Haible  <bruno@clisp.org>
68611
68612         * lib/poll.c (MSG_PEEK): New fallback definition.
68613
68614 2007-03-22  Bruno Haible  <bruno@clisp.org>
68615
68616         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
68617         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
68618         (main): Update.
68619         Fixes a compilation error on BeOS.
68620
68621 2007-03-22  Bruno Haible  <bruno@clisp.org>
68622
68623         * modules/frexpl-tests: New file.
68624         * tests/test-frexpl.c: New file.
68625
68626         * modules/frexpl: New file.
68627         * m4/frexpl.m4: New file.
68628         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
68629         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
68630         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
68631         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
68632         (Depends-on): Add frexpl. Remove isnanl-nolibm.
68633         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
68634
68635 2007-03-22  Bruno Haible  <bruno@clisp.org>
68636
68637         * lib/frexpl.c: Share code with lib/frexp.c.
68638         * modules/mathl (Files): Add lib/frexp.c.
68639         (Depends-on): Add isnanl-nolibm.
68640
68641 2007-03-22  Bruno Haible  <bruno@clisp.org>
68642
68643         * modules/printf-frexp (Files): Add m4/frexp.m4.
68644         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
68645         only if the found frexp function actually works.
68646
68647 2007-03-22  Bruno Haible  <bruno@clisp.org>
68648
68649         * lib/frexp.c: Remove older implementation that uses divisions.
68650
68651 2007-03-21  Bruno Haible  <bruno@clisp.org>
68652
68653         * modules/frexp-tests: New file.
68654         * tests/test-frexp.c: New file.
68655
68656         * modules/frexp: New file.
68657         * lib/frexp.c: New file.
68658         * m4/frexp.m4: New file.
68659         * lib/math_.h (frexp): New declaration.
68660         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
68661         REPLACE_FREXP.
68662         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
68663
68664 2007-03-21  Bruno Haible  <bruno@clisp.org>
68665
68666         * modules/isnanl-tests: New file.
68667         * tests/test-isnanl.c: New file.
68668
68669         * modules/isnanl: New file.
68670         * lib/isnanl.h: New file.
68671         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
68672         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
68673         gl_FUNC_ISNANL_WORKS.
68674         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
68675         New macros.
68676
68677 2007-03-21  Bruno Haible  <bruno@clisp.org>
68678
68679         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
68680         lib/isnanl.h.
68681         (Include): Update.
68682         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
68683         * lib/vasnprintf.c: Update.
68684         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
68685         tests/test-isnanl.h, remove tests/test-isnanl.c.
68686         (Makefile.am): Update.
68687         * tests/test-isnanl-nolibm.c: New file.
68688         * tests/test-isnanl.h: New file.
68689         * tests/test-isnanl.c: Remove file.
68690
68691 2007-03-21  Jim Meyering  <jim@meyering.net>
68692
68693         When trying to open ".", treat ESTALE like EACCES.
68694         * lib/savewd.c (savewd_save): Resort to forking not just upon
68695         failure with EACCES, but also when errno is ESTALE.
68696
68697 2007-03-20  Bruno Haible  <bruno@clisp.org>
68698
68699         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
68700         Needed on AIX 5.1. Reported by Matthew Woehlke.
68701
68702 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68703
68704         Suggestions by Bruno Haible:
68705         * lib/acl-internal.h: Include "gettext.h" rather than rolling
68706         our own.
68707         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
68708         * modules/acl (Depends-on): Add gettext.
68709
68710 2007-03-19  Bruno Haible  <bruno@clisp.org>
68711
68712         * modules/iconvme: Remove file.
68713         * lib/iconvme.h: Remove file.
68714         * lib/iconvme.c: Remove file.
68715         * m4/iconvme.m4: Remove file.
68716
68717 2007-03-19  Bruno Haible  <bruno@clisp.org>
68718
68719         * doc/relocatable-maint.texi: Break long shell script line.
68720         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68721
68722 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68723
68724         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
68725         handle file_has_acl.
68726         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
68727         * lib/acl.c: Move header inclusions and related macro defns into
68728         lib/acl-internal.h.
68729         (S_ISLNK): Remove defn, since that's now done for us.
68730         (file_has_acl): Move to lib/file-has-acl.c.
68731         Call acl_trivial if available.  This is the crucial part of the fix.
68732         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
68733         shared within the library.  Rewrite a bit, partly to make it compatible
68734         with the GNU coding style.
68735         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
68736         Remove unnecessary double-quotes.
68737         Don't test for acl_to_text; the build will catch that.
68738         Replace acl_entries if it doesn't exist and it is needed.
68739         Check for -lsec and acl_trivial (as used on Solaris 10).
68740         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
68741         lib/file-has-acl.c.
68742         (Depends-on): Add sys_stat, for S_ISLNK.
68743
68744 2007-03-19  Ben Pfaff  <blp@gnu.org>
68745
68746         * doc/gnulib.texi: Fix typos.
68747         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68748
68749 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68750
68751         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
68752         If size is zero here, buf must be zero.
68753
68754 2007-03-19  Simon Josefsson  <simon@josefsson.org>
68755
68756         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
68757         <bruno@clisp.org>.
68758
68759 2007-03-18  Bruno Haible  <bruno@clisp.org>
68760
68761         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
68762         Suggested by Eric Blake.
68763
68764 2007-03-18  Ben Pfaff  <blp@gnu.org>
68765
68766         * doc/relocatable.texi: Recommend using as prefix a directory
68767         that does not exist and will never be created.  Based on
68768         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
68769         and others.
68770
68771 2007-03-17  Bruno Haible  <bruno@clisp.org>
68772
68773         * lib/fchownat.c: Include lchown.h.
68774
68775 2007-03-17  Bruno Haible  <bruno@clisp.org>
68776
68777         Fix endless loop when the given allocated size was > INT_MAX.
68778         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
68779         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
68780         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
68781         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
68782         * lib/sprintf.c (sprintf): Likewise.
68783
68784 2007-03-17  Bruno Haible  <bruno@clisp.org>
68785
68786         * tests/test-argp-2.sh (func_compare): Output a context diff.
68787
68788 2007-03-17  Bruno Haible  <bruno@clisp.org>
68789
68790         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
68791         locale's decimal-point character.
68792
68793 2007-03-17  Bruno Haible  <bruno@clisp.org>
68794
68795         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
68796         before comparing it. Needed because on some platforms (e.g. x86) a
68797         'long double' occupies less bytes than sizeof (long double).
68798
68799 2007-03-17  Bruno Haible  <bruno@clisp.org>
68800
68801         * tests/test-crc.c (main): Make printf statements 64-bit clean.
68802         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
68803         * tests/test-getaddrinfo.c (simple): Likewise.
68804         * tests/test-read-file.c (main): Likewise.
68805
68806 2007-03-17  Bruno Haible  <bruno@clisp.org>
68807
68808         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
68809
68810 2007-03-17  Bruno Haible  <bruno@clisp.org>
68811
68812         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
68813         unused variable.
68814
68815 2007-03-17  Bruno Haible  <bruno@clisp.org>
68816
68817         * tests/test-c-strcasecmp.c: Include c-strcase.h.
68818         * tests/test-c-strncasecmp.c: Likewise.
68819
68820 2007-03-17  Bruno Haible  <bruno@clisp.org>
68821
68822         * modules/stdlib (Depends-on): Add unistd.
68823         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
68824         Needed for MacOS X 10.3.
68825
68826 2007-03-17  Bruno Haible  <bruno@clisp.org>
68827
68828         * lib/unistr/u-strdup.h: Include <stdlib.h>.
68829
68830 2007-03-17  Bruno Haible  <bruno@clisp.org>
68831
68832         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
68833
68834 2007-03-17  Bruno Haible  <bruno@clisp.org>
68835
68836         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
68837         to reflect files copied from gnulib (with or without modifications).
68838         Suggested by Jim Meyering.
68839
68840 2007-03-17  Eric Blake  <ebb9@byu.net>
68841
68842         * NEWS: Document stdlib change from 2007-02-18.
68843
68844 2007-03-17  Jim Meyering  <jim@meyering.net>
68845
68846         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
68847         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
68848         someone uses a name containing shell meta-characters.
68849         Reported by Alfred M. Szmidt.
68850
68851         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
68852
68853 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68854
68855         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
68856         and copy gettext configuration files only if configure.ac contains
68857         a use of AM_GNU_GETTEXT_VERSION.
68858
68859 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68860
68861         * build-aux/bootstrap (gnulib_name): New variable.
68862         (gnulib_tool_options): Use it.
68863
68864 2007-03-13  Simon Josefsson  <simon@josefsson.org>
68865
68866         * tests/test-des.c: Use new namespace.
68867
68868 2007-03-15  Bruno Haible  <bruno@clisp.org>
68869
68870         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
68871         Reported by James Youngman <jay@gnu.org>.
68872
68873 2007-03-15  Bruno Haible  <bruno@clisp.org>
68874
68875         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
68876         declared prototype. Needed with cc on OSF/1 5.1.
68877
68878 2007-03-15  Bruno Haible  <bruno@clisp.org>
68879
68880         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
68881         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
68882         (struct gl_list_implementation): Add dispose_fn argument to the
68883         'create_empty', 'create' methods.
68884         (struct gl_list_impl_base): Add field 'dispose_fn'.
68885         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
68886         argument.
68887         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
68888         dispose_fn argument.
68889         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
68890         dispose_fn on the dropped values.
68891         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
68892         dispose_fn argument.
68893         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
68894         dropped values.
68895         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
68896         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68897         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
68898         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68899         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
68900         argument.
68901         (gl_tree_list_free): Call dispose_fn on the dropped values.
68902         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
68903         the dropped values.
68904         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
68905         Add dispose_fn argument.
68906         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
68907         Call dispose_fn on the dropped values.
68908         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
68909         Add dispose_fn argument.
68910         (gl_sublist_create): Initialize the 'dispose_fn' field.
68911         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
68912         * tests/test-array_list.c (main): Update.
68913         * tests/test-carray_list.c (main): Update.
68914         * tests/test-avltree_list.c (main): Update.
68915         * tests/test-rbtree_list.c (main): Update.
68916         * tests/test-avltreehash_list.c (main): Update.
68917         * tests/test-rbtreehash_list.c (main): Update.
68918         * tests/test-linked_list.c (main): Update.
68919         * tests/test-linkedhash_list.c (main): Update.
68920         * tests/test-array_oset.c (main): Update.
68921
68922 2007-03-15  Bruno Haible  <bruno@clisp.org>
68923
68924         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
68925         (gl_oset_create_empty): Add dispose_fn argument.
68926         (struct gl_oset_implementation): Add dispose_fn argument to
68927         'create_empty' method.
68928         (struct gl_oset_impl_base): Add dispose_fn field.
68929         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
68930         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
68931         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
68932         values.
68933         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
68934         (gl_tree_oset_free): Call dispose_fn on the dropped values.
68935         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
68936         dropped value.
68937         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
68938         dropped value.
68939         * tests/test-array_oset.c (main): Update.
68940         * tests/test-avltree_oset.c (main): Update.
68941         * tests/test-rbtree_oset.c (main): Update.
68942         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
68943
68944 2007-03-13  Bruno Haible  <bruno@clisp.org>
68945
68946         * tests/test-stdbool.c (i): Update after last patch.
68947
68948 2007-03-12  Bruno Haible  <bruno@clisp.org>
68949
68950         * lib/quotearg.c: Include <wctype.h> early, before the definition of
68951         the iswprint macro. Needed on Solaris 2.5.1.
68952
68953 2007-03-12  Bruno Haible  <bruno@clisp.org>
68954
68955         * tests/test-printf-frexp.c (main): Declare x as volatile.
68956
68957 2007-03-12  Simon Josefsson  <simon@josefsson.org>
68958
68959         * doc/gnulib.texi (Build robot for gnulib): New section.
68960
68961 2007-03-12  Jim Meyering  <jim@meyering.net>
68962
68963         * build-aux/bootstrap: New file.
68964         * build-aux/bootstrap.conf: New file, from coreutils.
68965
68966 2007-03-11  Bruno Haible  <bruno@clisp.org>
68967
68968         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
68969
68970 2007-03-12  Simon Josefsson  <simon@josefsson.org>
68971
68972         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
68973         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
68974         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
68975
68976 2007-03-11  Bruno Haible  <bruno@clisp.org>
68977
68978         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
68979         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
68980
68981 2007-03-11  Bruno Haible  <bruno@clisp.org>
68982
68983         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
68984         formula. Needed for SunPRO C 5.0.
68985
68986 2007-03-11  Bruno Haible  <bruno@clisp.org>
68987
68988         * modules/long-options (Depends-on): Add getopt.
68989
68990 2007-03-11  Bruno Haible  <bruno@clisp.org>
68991
68992         * modules/modechange (Depends-on): Add stdbool.
68993
68994 2007-03-11  Bruno Haible  <bruno@clisp.org>
68995
68996         * modules/i-ring (Depends-on): Add stdbool.
68997
68998 2007-03-11  Bruno Haible  <bruno@clisp.org>
68999
69000         * modules/gc-des (Depends-on): Add stdbool.
69001
69002 2007-03-11  Bruno Haible  <bruno@clisp.org>
69003
69004         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
69005
69006 2007-03-11  Bruno Haible  <bruno@clisp.org>
69007
69008         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
69009
69010 2007-03-11  Bruno Haible  <bruno@clisp.org>
69011
69012         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
69013
69014 2007-03-11  Bruno Haible  <bruno@clisp.org>
69015
69016         * lib/vasnprintf.c (sprintf): Undefine.
69017
69018 2007-03-11  Bruno Haible  <bruno@clisp.org>
69019
69020         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
69021         initializers in SunPRO C and Compaq C compilers.
69022
69023 2007-03-11  Bruno Haible  <bruno@clisp.org>
69024
69025         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
69026         decrementing code ANSI C compliant.
69027
69028 2007-03-11  Bruno Haible  <bruno@clisp.org>
69029
69030         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
69031         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
69032
69033 2007-03-11  Bruno Haible  <bruno@clisp.org>
69034
69035         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
69036         <stdbool.h> substitute doesn't pass.
69037
69038 2007-03-11  Bruno Haible  <bruno@clisp.org>
69039
69040         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
69041
69042 2007-03-11  Bruno Haible  <bruno@clisp.org>
69043
69044         * gnulib-tool (func_create_megatestdir): Create also an autobuild
69045         script, for submission to autobuild.josefsson.org.
69046
69047 2007-03-10  Bruno Haible  <bruno@clisp.org>
69048
69049         * modules/canonicalize-lgpl-tests: New file.
69050         * tests/test-canonicalize-lgpl.sh: New file.
69051         * tests/test-canonicalize-lgpl.c: New file.
69052
69053         * modules/c-strcase-tests: New file.
69054         * tests/test-c-strcase.sh: New file.
69055         * tests/test-c-strcasecmp.c: New file.
69056         * tests/test-c-strncasecmp.c: New file.
69057
69058         * modules/atexit-tests: New file.
69059         * tests/test-atexit.sh: New file.
69060         * tests/test-atexit.c: New file.
69061
69062 2007-03-10  Bruno Haible  <bruno@clisp.org>
69063
69064         * tests/test-binary-io.sh: Use temporary filenames that are not so
69065         likely to clash with those of other tests (in a parallel make).
69066         * tests/test-binary-io.c: Likewise.
69067
69068 2007-03-10  Bruno Haible  <bruno@clisp.org>
69069
69070         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
69071         fallback; use #error instead.
69072         Suggested by Simon Josefsson.
69073
69074 2007-03-10  Bruno Haible  <bruno@clisp.org>
69075
69076         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
69077         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
69078         first and the last.
69079
69080 2007-03-10  Bruno Haible  <bruno@clisp.org>
69081
69082         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
69083
69084 2007-03-10  Bruno Haible  <bruno@clisp.org>
69085
69086         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
69087         "make distcheck".
69088         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
69089         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
69090         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
69091
69092 2007-03-10  Bruno Haible  <bruno@clisp.org>
69093
69094         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
69095         variable.
69096         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
69097         variable.
69098
69099 2007-03-09  Eric Blake  <ebb9@byu.net>
69100         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
69101
69102         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
69103         types are not being provided by gnulib.
69104         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
69105         types are supported.
69106
69107 2007-03-10  Bruno Haible  <bruno@clisp.org>
69108
69109         * lib/stdio_.h (__attribute__): New macro.
69110         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
69111         vsprintf): Specify __attribute__ __format__ for GCC.
69112         Suggested by Eric Blake.
69113
69114 2007-03-09  Bruno Haible  <bruno@clisp.org>
69115
69116         * modules/printf-posix-tests: New file.
69117         * tests/test-printf-posix.sh: New file.
69118         * tests/test-printf-posix.c: New file.
69119
69120         * modules/printf-posix: New file.
69121         * lib/printf.c: New file.
69122         * m4/printf-posix-rpl.m4: New file.
69123         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
69124         REPLACE_PRINTF.
69125         * lib/stdio_.h (printf): New declaration.
69126         (format, __format__, ____printf____, ____scanf____, ____strftime____,
69127         ____strfmon____): New macros.
69128         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
69129         REPLACE_PRINTF.
69130
69131 2007-03-09  Bruno Haible  <bruno@clisp.org>
69132
69133         * tests/test-vasnprintf-posix2.sh: New file.
69134         * tests/test-vasnprintf-posix2.c: New file.
69135         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
69136         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
69137         (Makefile.am): Activate test-vasnprintf-posix2.sh.
69138
69139         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
69140         a locale dependent decimal point, rather than always '.'.
69141
69142 2007-03-09  Eric Blake  <ebb9@byu.net>
69143
69144         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
69145         spite of platforms like Tandem/NSK that define it to -1.
69146
69147 2007-03-08  Bruno Haible  <bruno@clisp.org>
69148
69149         * modules/vprintf-posix-tests: New file.
69150         * tests/test-vprintf-posix.sh: New file.
69151         * tests/test-vprintf-posix.c: New file.
69152         * tests/test-printf-posix.h: New file.
69153
69154         * modules/vprintf-posix: New file.
69155         * lib/vprintf.c: New file.
69156         * m4/vprintf-posix.m4: New file.
69157         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
69158         REPLACE_VPRINTF.
69159         * lib/stdio_.h (vprintf): New declaration.
69160         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
69161         REPLACE_VPRINTF.
69162
69163 2007-03-08  Bruno Haible  <bruno@clisp.org>
69164
69165         * modules/fprintf-posix-tests: New file.
69166         * tests/test-fprintf-posix.sh: New file.
69167         * tests/test-fprintf-posix.c: New file.
69168
69169         * modules/fprintf-posix: New file.
69170         * lib/fprintf.c: New file.
69171         * m4/fprintf-posix.m4: New file.
69172         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
69173         REPLACE_FPRINTF.
69174         * lib/stdio_.h (fprintf): New declaration.
69175         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
69176         REPLACE_FPRINTF.
69177
69178 2007-03-08  Bruno Haible  <bruno@clisp.org>
69179
69180         * modules/vfprintf-posix-tests: New file.
69181         * tests/test-vfprintf-posix.sh: New file.
69182         * tests/test-vfprintf-posix.c: New file.
69183         * tests/test-fprintf-posix.h: New file.
69184         * tests/test-fprintf-posix.out: New file.
69185
69186         * modules/vfprintf-posix: New file.
69187         * lib/vfprintf.c: New file.
69188         * m4/vfprintf-posix.m4: New file.
69189         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
69190         REPLACE_VFPRINTF.
69191         * lib/stdio_.h (vfprintf): New declaration.
69192         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
69193         REPLACE_VFPRINTF.
69194
69195 2007-03-08  Bruno Haible  <bruno@clisp.org>
69196
69197         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
69198
69199 2007-03-08  Bruno Haible  <bruno@clisp.org>
69200
69201         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
69202         instead of 'expr' invocations.
69203         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69204         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69205         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69206         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69207         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69208         Suggested by Paul Eggert.
69209
69210 2007-03-08  Bruno Haible  <bruno@clisp.org>
69211
69212         * modules/fseterr-tests: New file.
69213         * tests/test-fseterr.c: New file.
69214
69215         * modules/fseterr: New file.
69216         * lib/fseterr.h: New file.
69217         * lib/fseterr.c: New file.
69218
69219 2007-03-08  Bruno Haible  <bruno@clisp.org>
69220
69221         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
69222         * lib/getopt_.h: Likewise.
69223         * lib/mbswidth.h: Likewise.
69224         * lib/setenv.h: Likewise.
69225         * lib/vasnprintf.h: Likewise.
69226         * lib/vasprintf.h: Likewise.
69227         * lib/verror.h: Likewise.
69228         * lib/xsetenv.h: Likewise.
69229         * lib/xvasprintf.h: Likewise.
69230
69231 2007-03-08  Jim Meyering  <jim@meyering.net>
69232
69233         * users.txt: Add parted.
69234
69235         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
69236
69237 2007-03-07  Bruno Haible  <bruno@clisp.org>
69238
69239         * m4/printf.m4: Make the shell script snippets copy&pastable.
69240
69241 2007-03-02  Bruno Haible  <bruno@clisp.org>
69242
69243         * lib/netinet_in_.h: New file.
69244         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
69245         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
69246         * modules/netinet_in (Files): Add lib/netinet_in_.h.
69247         (Depends-on): Add absolute-header.
69248         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
69249         into netinet/in.h.
69250
69251 2007-03-03  Bruno Haible  <bruno@clisp.org>
69252
69253         * lib/sys_select_.h: New file.
69254         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
69255         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
69256         * modules/sys_select (Files): Add lib/sys_select_.h.
69257         (Depends-on): Add absolute-header.
69258         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
69259         into sys/select.h.
69260
69261 2007-03-02  Bruno Haible  <bruno@clisp.org>
69262
69263         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
69264         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
69265         values.
69266         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
69267         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
69268         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
69269         * modules/sys_socket (Depends-on): Add absolute-header.
69270         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
69271         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
69272         (Include): Remove requirement of inclusion of <sys/types.h>.
69273
69274 2007-03-02  Bruno Haible  <bruno@clisp.org>
69275
69276         * lib/byteswap_.h (bswap_32): Fix formula.
69277
69278 2007-03-06  Bruno Haible  <bruno@clisp.org>
69279
69280         * modules/sprintf-posix-tests: New file.
69281         * tests/test-sprintf-posix.c: New file.
69282
69283         * modules/sprintf-posix: New file.
69284         * lib/sprintf.c: New file.
69285         * m4/sprintf-posix.m4: New file.
69286         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
69287         REPLACE_SPRINTF.
69288         * lib/stdio_.h (sprintf): New declaration.
69289         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
69290         REPLACE_SPRINTF.
69291
69292 2007-03-06  Bruno Haible  <bruno@clisp.org>
69293
69294         * modules/vsprintf-posix-tests: New file.
69295         * tests/test-vsprintf-posix.c: New file.
69296         * tests/test-sprintf-posix.h: New file.
69297
69298         * modules/vsprintf-posix: New file.
69299         * lib/vsprintf.c: New file.
69300         * m4/vsprintf-posix.m4: New file.
69301         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
69302         REPLACE_VSPRINTF.
69303         * lib/stdio_.h (vsprintf): New declaration.
69304         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
69305         REPLACE_VSPRINTF.
69306
69307 2007-03-06  Bruno Haible  <bruno@clisp.org>
69308
69309         * modules/vsnprintf (Depend-on): Remove minmax.
69310
69311 2007-03-06  Bruno Haible  <bruno@clisp.org>
69312
69313         * modules/snprintf-posix-tests: New file.
69314         * tests/test-snprintf-posix.c: New file.
69315
69316         * modules/snprintf-posix: New file.
69317         * m4/snprintf-posix.m4: New file.
69318         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
69319         gl_FUNC_SNPRINTF.
69320         (gl_FUNC_SNPRINTF): Invoke it.
69321         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
69322         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
69323         is set.
69324         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
69325
69326 2007-03-06  Bruno Haible  <bruno@clisp.org>
69327
69328         * modules/vsnprintf-posix-tests: New file.
69329         * tests/test-vsnprintf-posix.c: New file.
69330         * tests/test-snprintf-posix.h: New file.
69331
69332         * modules/vsnprintf-posix: New file.
69333         * m4/vsnprintf-posix.m4: New file.
69334         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
69335         gl_FUNC_VSNPRINTF.
69336         (gl_FUNC_VSNPRINTF): Invoke it.
69337         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
69338         * lib/stdio_.h (vsnprintf): Define as a replacement if
69339         REPLACE_VSNPRINTF is set.
69340         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
69341
69342 2007-03-06  Bruno Haible  <bruno@clisp.org>
69343
69344         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
69345         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
69346
69347 2007-03-06  Bruno Haible  <bruno@clisp.org>
69348
69349         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
69350         (asinl): Declare also if HAVE_DECL_ASINL is set.
69351         (atanl): Declare also if HAVE_DECL_ATANL is set.
69352         (ceill): Declare also if HAVE_DECL_CEILL is set.
69353         (cosl): Declare also if HAVE_DECL_COSL is set.
69354         (expl): Declare also if HAVE_DECL_EXPL is set.
69355         (floorl): Declare also if HAVE_DECL_FLOORL is set.
69356         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
69357         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
69358         (logl): Declare also if HAVE_DECL_LOGL is set.
69359         (sinl): Declare also if HAVE_DECL_SINL is set.
69360         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
69361         (tanl): Declare also if HAVE_DECL_TANL is set.
69362         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
69363         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
69364         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
69365         declaration of frexpl, ldexpl.
69366         * modules/printf-frexpl (Depends-on): Add math.
69367         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
69368
69369 2007-03-05  Bruno Haible  <bruno@clisp.org>
69370
69371         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
69372         frexpl and ldexpl are declared.
69373         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
69374
69375 2007-03-05  Bruno Haible  <bruno@clisp.org>
69376
69377         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
69378         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
69379
69380 2007-03-05  Bruno Haible  <bruno@clisp.org>
69381
69382         * lib/stdio_.h: Include <stddef.h>.
69383
69384 2007-03-05  Bruno Haible  <bruno@clisp.org>
69385
69386         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
69387
69388 2007-03-05  Bruno Haible  <bruno@clisp.org>
69389
69390         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
69391         NetBSD 4, from Ralf Wildenhues.
69392
69393 2007-03-04  Bruno Haible  <bruno@clisp.org>
69394
69395         * lib/vasprintf.h: Update #if logic for the case when the functions
69396         exist but are overridden.
69397
69398 2007-03-04  Bruno Haible  <bruno@clisp.org>
69399
69400         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
69401         implementations: glibc-2.4 and MacOS X 10.3.
69402         * tests/test-vasnprintf-posix.c (test_function): Test also the case
69403         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
69404         * tests/test-vasprintf-posix.c (test_function): Likewise.
69405
69406 2007-03-04  Bruno Haible  <bruno@clisp.org>
69407
69408         * modules/vasprintf-posix-tests: New file.
69409         * tests/test-vasprintf-posix.c: New file.
69410
69411         * modules/vasprintf-posix: New file.
69412         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
69413         defined.
69414         * m4/vasprintf-posix.m4: New file.
69415         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
69416         gl_FUNC_VASPRINTF.
69417         (gl_FUNC_VASPRINTF): Invoke it.
69418         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
69419         here.
69420         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
69421
69422 2007-03-04  Bruno Haible  <bruno@clisp.org>
69423
69424         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
69425         REPLACE_GETTIMEOFDAY.
69426         * modules/sys_time (Makefile.am): Likewise.
69427         * m4/sys_time_h.m4: Likewise.
69428         * m4/gettimeofday.m4: Likewise.
69429
69430 2007-03-04  Bruno Haible  <bruno@clisp.org>
69431
69432         * modules/vasnprintf-posix-tests: New file.
69433         * tests/test-vasnprintf-posix.c: New file.
69434
69435         * modules/vasnprintf-posix: New file.
69436         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
69437         printf-frexpl.h.
69438         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
69439         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
69440         REPLACE_VASNPRINTF is defined.
69441         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
69442         gl_FUNC_VASNPRINTF.
69443         (gl_FUNC_VASNPRINTF): Invoke it.
69444         * m4/vasnprintf-posix.m4: New file.
69445         * m4/printf.m4: New file.
69446
69447 2007-03-04  Bruno Haible  <bruno@clisp.org>
69448
69449         Compile progreloc.c only if --enable-relocatable is specified.
69450         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
69451         if --enable-relocatable was specified.
69452         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
69453         lib_SOURCES.
69454
69455 2007-03-04  Jim Meyering  <jim@meyering.net>
69456
69457         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
69458         Use it consistently, rather than enumerating errno constants.
69459
69460 2007-03-04  Bruno Haible  <bruno@clisp.org>
69461
69462         * modules/xvasprintf-tests: New file.
69463         * tests/test-xvasprintf.c: New file.
69464
69465         * modules/vasprintf-tests: New file.
69466         * tests/test-vasprintf.c: New file.
69467
69468         * modules/vasnprintf-tests: New file.
69469         * tests/test-vasnprintf.c: New file.
69470
69471         * modules/vsnprintf-tests: New file.
69472         * tests/test-vsnprintf.c: New file.
69473
69474         * modules/snprintf-tests: New file.
69475         * tests/test-snprintf.c: New file.
69476
69477 2007-03-04  Bruno Haible  <bruno@clisp.org>
69478
69479         Compile relocatable.c only if --enable-relocatable is specified.
69480         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
69481         gl_RELOCATABLE_LIBRARY.
69482         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
69483         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
69484         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
69485         gl_RELOCATABLE_LIBRARY.
69486         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
69487         (Makefile.am): Remove lib_SOURCES.
69488         * modules/relocatable-lib-lgpl (configure.ac): Invoke
69489         gl_RELOCATABLE_LIBRARY.
69490         (Makefile.am): Remove lib_SOURCES.
69491         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
69492         always.
69493         * modules/relocatable-prog-wrapper (configure.ac): Invoke
69494         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
69495
69496 2007-03-04  Bruno Haible  <bruno@clisp.org>
69497
69498         * modules/argmatch-tests: New file.
69499         * tests/test-argmatch.c: New file.
69500
69501         * tests/test-allocsa.c (main): Halve the number of loop runs.
69502
69503         * modules/alloca-opt-tests: New file.
69504         * tests/test-alloca-opt.c: New file.
69505
69506 2007-03-04  Jim Meyering  <jim@meyering.net>
69507
69508         Work around difference between Linux ACLs and Solaris 10 ZFS.
69509         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
69510         for EINVAL.
69511
69512 2007-03-03  Bruno Haible  <bruno@clisp.org>
69513
69514         * modules/relocatable-prog (Depends-on): Add back progreloc's
69515         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
69516
69517 2007-03-03  Bruno Haible  <bruno@clisp.org>
69518
69519         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
69520         * modules/relocatable-lib: New file.
69521
69522 2007-03-03  Bruno Haible  <bruno@clisp.org>
69523
69524         * modules/relocatable-prog: Renamed from modules/relocatable.
69525         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
69526
69527 2007-03-03  Bruno Haible  <bruno@clisp.org>
69528
69529         * modules/relocatable-script (Files): Add doc/relocatable.texi,
69530         m4/relocatable-lib.m4.
69531         (Depends-on): Remove 'relocatable'.
69532         (configure.ac): Add gl_RELOCATABLE_NOP.
69533
69534 2007-03-03  Bruno Haible  <bruno@clisp.org>
69535
69536         * modules/relocatable-prog-wrapper: New file.
69537         * modules/relocatable (Depends-on): Add it. Remove all other
69538         dependencies except progname.
69539         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
69540
69541         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
69542         (gl_FUNC_STRERROR): Nop.
69543         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
69544
69545         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
69546         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
69547
69548         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
69549         (gl_FUNC_READLINK): Update.
69550
69551         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
69552
69553 2007-03-03  Bruno Haible  <bruno@clisp.org>
69554
69555         * lib/xreadlink.c: Include <unistd.h> unconditionally.
69556         * modules/xreadlink (Depends-on): Add unistd.
69557         * modules/xreadlink-with-size (Depends-on): Likewise.
69558
69559 2007-03-03  Bruno Haible  <bruno@clisp.org>
69560
69561         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
69562         extracted from gt_FUNC_SETENV.
69563         (gt_FUNC_SETENV): Remove macro.
69564         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
69565         remove gt_FUNC_SETENV.
69566
69567 2007-03-03  Bruno Haible  <bruno@clisp.org>
69568
69569         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
69570         ENABLE_RELOCATABLE here.
69571         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
69572
69573 2007-03-03  Bruno Haible  <bruno@clisp.org>
69574
69575         * modules/rbtreehash-list-tests (Depends-on): Add progname.
69576         * tests/test-rbtreehash_list.c: Include progname.h.
69577         (main): Call set_program_name.
69578
69579         * modules/rbtree-oset-tests (Depends-on): Add progname.
69580         * tests/test-rbtree_oset.c: Include progname.h.
69581         (main): Call set_program_name.
69582
69583         * modules/rbtree-list-tests (Depends-on): Add progname.
69584         * tests/test-rbtree_list.c: Include progname.h.
69585         (main): Call set_program_name.
69586
69587         * modules/linked-list-tests (Depends-on): Add progname.
69588         * tests/test-linked_list.c: Include progname.h.
69589         (main): Call set_program_name.
69590
69591 2007-03-03  Bruno Haible  <bruno@clisp.org>
69592
69593         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
69594         All uses of __restrict changed to _Restrict_.
69595         * lib/glob_.h (__restrict): Remove macro.
69596
69597 2007-03-02  Bruno Haible  <bruno@clisp.org>
69598
69599         * modules/gettext (configure.ac): Require gettext infrastructure
69600         from version 0.16.1.
69601
69602 2007-03-02  Bruno Haible  <bruno@clisp.org>
69603
69604         * modules/linkedhash-list-tests (Depends-on): Add progname.
69605         * tests/test-linkedhash_list.c: Include progname.h.
69606         (main): Call set_program_name.
69607
69608         * modules/carray-list-tests (Depends-on): Add progname.
69609         * tests/test-carray_list.c: Include progname.h.
69610         (main): Call set_program_name.
69611
69612         * modules/avltreehash-list-tests (Depends-on): Add progname.
69613         * tests/test-avltreehash_list.c: Include progname.h.
69614         (main): Call set_program_name.
69615
69616         * modules/avltree-oset-tests (Depends-on): Add progname.
69617         * tests/test-avltree_oset.c: Include progname.h.
69618         (main): Call set_program_name.
69619
69620         * modules/avltree-list-tests (Depends-on): Add progname.
69621         * tests/test-avltree_list.c: Include progname.h.
69622         (main): Call set_program_name.
69623
69624         * modules/array-oset-tests (Depends-on): Add progname.
69625         * tests/test-array_oset.c: Include progname.h.
69626         (main): Call set_program_name.
69627
69628         * modules/array-list-tests (Depends-on): Add progname.
69629         * tests/test-array_list.c: Include progname.h.
69630         (main): Call set_program_name.
69631
69632         * modules/argp-tests (Depends-on): Add progname.
69633         * tests/test-argp.c: Include argp.h first. Include progname.h.
69634         (main): Call set_program_name.
69635
69636 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
69637
69638         * doc/gnulib-tool.texi (Initial import): Reword description of
69639         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
69640         limited effect even if defined after the first system include.
69641
69642 2007-03-01  Bruno Haible  <bruno@clisp.org>
69643
69644         * build-aux/config.libpath: Update to libtool-1.5.22.
69645         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
69646
69647 2007-03-01  Bruno Haible  <bruno@clisp.org>
69648
69649         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
69650         foo_CFLAGS.
69651         Reported by Ralf Wildenhues.
69652
69653 2007-03-01  Bruno Haible  <bruno@clisp.org>
69654
69655         * build-aux/install-reloc: Remove object files left over by some
69656         compilers.
69657         Reported by Ralf Wildenhues.
69658
69659 2007-03-01  Bruno Haible  <bruno@clisp.org>
69660
69661         * build-aux/install-reloc: Break long lines.
69662
69663 2007-03-01  Bruno Haible  <bruno@clisp.org>
69664
69665         * doc/relocatable.texi: Document that it may not work on OpenBSD.
69666         Reported by Ralf Wildenhues.
69667
69668 2007-03-01  Bruno Haible  <bruno@clisp.org>
69669
69670         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
69671         include ordering constraints.
69672
69673 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69674
69675         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
69676         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
69677         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
69678         as another example.
69679         * lib/time_.h: Fix misspelling.
69680         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69681         Require gl_HEADER_TIME_H_DEFAULTS.
69682         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
69683         * m4/time_r.m4 (gl_TIME_R): Likewise.
69684         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
69685
69686 2007-03-01  Bruno Haible  <bruno@clisp.org>
69687
69688         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
69689         * m4/utimens.m4 (gl_UTIMENS): Likewise.
69690
69691 2007-03-01  Jim Meyering  <jim@meyering.net>
69692
69693         * modules/xreadlink (Maintainer): Add my name.
69694         * modules/xreadlink-with-size (Depends-on): Alphabetize.
69695
69696 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
69697             Bruno Haible  <bruno@clisp.org>
69698
69699         * build-aux/install-reloc: Compile also c-ctype.c.
69700         * build-aux/relocatable.sh.in: New file.
69701         * doc/relocatable.texi: New file.
69702         * doc/relocatable-maint.texi: New file.
69703         * doc/gnulib.texi: Include relocatable-maint.texi.
69704         * lib/progreloc.c: Include unistd.h unconditionally.
69705         * lib/relocwrapper.c: Include unistd.h unconditionally.
69706         Include c-ctype.h.
69707         (add_dotbin): Use c_tolower.
69708         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
69709         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
69710         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
69711         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
69712         to m4/relocatable-lib.m4.
69713         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
69714         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
69715         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
69716         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
69717         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
69718         * modules/relocatable: New file.
69719         * modules/relocatable-lib: New file.
69720         * modules/relocatable-script: New file.
69721
69722 2007-02-28  Bruno Haible  <bruno@clisp.org>
69723
69724         Import --enable-relocatable infrastructure.
69725         * build-aux/config.libpath: New file, from GNU gettext.
69726         * build-aux/install-reloc: New file, from GNU gettext.
69727         * build-aux/reloc-ldflags: New file, from GNU gettext.
69728         * lib/relocatable.h: New file, from GNU gettext.
69729         * lib/relocatable.c: New file, from GNU gettext.
69730         * lib/relocwrapper.c: New file, from GNU gettext.
69731         * m4/relocatable.m4: New file, from GNU gettext.
69732
69733 2007-02-28  Bruno Haible  <bruno@clisp.org>
69734
69735         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
69736
69737         * modules/xreadlink: New file, from GNU gettext with modifications.
69738         * lib/xreadlink.c: New file, from GNU gettext.
69739         * lib/xreadlink.h: Add comments.
69740         (xreadlink): New declaration.
69741
69742         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
69743         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
69744         lib/xreadlink-with-size.c.
69745         (configure.ac): Remove gl_XREADLINK invocation.
69746         (Makefile.am): Augment lib_SOURCES.
69747         * m4/xreadlink.m4: Remove file.
69748         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
69749         (xreadlink_with_size): Renamed from xreadink.
69750         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
69751         * modules/canonicalize (Depends-on): Replace xreadlink with
69752         xreadlink-with-size.
69753         * lib/canonicalize.c (canonicalize_filename_mode): Update.
69754
69755 2007-02-25  Jim Meyering  <jim@meyering.net>
69756
69757         * build-aux/announce-gen: When complaining about excess arguments,
69758         list them.
69759
69760 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69761
69762         * README: Document signed integer overflow situation more
69763         accurately.
69764
69765 2007-02-25  Bruno Haible  <bruno@clisp.org>
69766
69767         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
69768         'a' or 'A' conversion.
69769
69770 2007-02-25  Bruno Haible  <bruno@clisp.org>
69771
69772         * modules/filename: Renamed from modules/pathname.
69773         (Files): Replace lib/pathname.h with lib/filename.h. Replace
69774         lib/concatpath.c with lib/concat-filename.c.
69775         (Makefile.am): Update.
69776         (Include): Replace pathname.h with filename.h.
69777         * lib/filename.h: Renamed from lib/pathname.h.
69778         (concatenated_filename): Renamed from concatenated_pathname.
69779         * lib/concat-filename.c: Renamed from lib/concatpath.c.
69780         (concatenated_filename): Renamed from concatenated_pathname.
69781         * lib/findprog.c: Include filename.h instead of pathname.h.
69782         (find_in_path): Update.
69783         * lib/javacomp.c: Include filename.h instead of pathname.h.
69784         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
69785         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
69786         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
69787         is_oldgcj_14_13_usable, is_javac_usable): Update.
69788         * lib/javaexec.c: Include filename.h instead of pathname.h.
69789         (execute_java_class): Update.
69790         * modules/findprog: Update.
69791         * modules/javacomp: Update.
69792         * modules/javaexec: Update.
69793         * MODULES.html.sh (File system functions): Add 'filename', remove
69794         'pathname'.
69795
69796 2007-02-25  Bruno Haible  <bruno@clisp.org>
69797
69798         * modules/printf-frexpl-tests: New file.
69799         * tests/test-printf-frexpl.c: New file.
69800
69801         * modules/printf-frexpl: New file.
69802         * lib/printf-frexpl.h: New file.
69803         * lib/printf-frexpl.c: New file.
69804         * m4/printf-frexpl.m4: New file.
69805
69806 2007-02-25  Bruno Haible  <bruno@clisp.org>
69807
69808         * modules/printf-frexp-tests: New file.
69809         * tests/test-printf-frexp.c: New file.
69810
69811         * modules/printf-frexp: New file.
69812         * lib/printf-frexp.h: New file.
69813         * lib/printf-frexp.c: New file.
69814         * m4/printf-frexp.m4: New file.
69815
69816 2007-02-25  Bruno Haible  <bruno@clisp.org>
69817
69818         Assume automake >= 1.10 for the tests.
69819         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
69820         * modules/arctwo-tests: Likewise.
69821         * modules/argp-tests: Likewise.
69822         * modules/avltree-list-tests: Likewise.
69823         * modules/avltree-oset-tests: Likewise.
69824         * modules/avltreehash-list-tests: Likewise.
69825         * modules/carray-list-tests: Likewise.
69826         * modules/crc-tests: Likewise.
69827         * modules/des-tests: Likewise.
69828         * modules/gc-arcfour-tests: Likewise.
69829         * modules/gc-arctwo-tests: Likewise.
69830         * modules/gc-des-tests: Likewise.
69831         * modules/gc-hmac-md5-tests: Likewise.
69832         * modules/gc-hmac-sha1-tests: Likewise.
69833         * modules/gc-md2-tests: Likewise.
69834         * modules/gc-md4-tests: Likewise.
69835         * modules/gc-md5-tests: Likewise.
69836         * modules/gc-pbkdf2-sha1-tests: Likewise.
69837         * modules/gc-rijndael-tests: Likewise.
69838         * modules/gc-sha1-tests: Likewise.
69839         * modules/gc-tests: Likewise.
69840         * modules/getaddrinfo-tests: Likewise.
69841         * modules/hmac-md5-tests: Likewise.
69842         * modules/hmac-sha1-tests: Likewise.
69843         * modules/linked-list-tests: Likewise.
69844         * modules/linkedhash-list-tests: Likewise.
69845         * modules/lock-tests: Likewise.
69846         * modules/md2-tests: Likewise.
69847         * modules/md4-tests: Likewise.
69848         * modules/md5-tests: Likewise.
69849         * modules/rbtree-list-tests: Likewise.
69850         * modules/rbtree-oset-tests: Likewise.
69851         * modules/rbtreehash-list-tests: Likewise.
69852         * modules/read-file-tests: Likewise.
69853         * modules/rijndael-tests: Likewise.
69854         * modules/stdint-tests: Likewise.
69855         * modules/tls-tests: Likewise.
69856
69857 2007-02-24  Bruno Haible  <bruno@clisp.org>
69858
69859         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
69860         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
69861         function; instead check whether isnan with a double argument links.
69862         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
69863         function; instead check whether isnan with a 'long double' argument
69864         links.
69865         Reported by Eric Blake <ebb9@byu.net>.
69866
69867 2007-02-24  Bruno Haible  <bruno@clisp.org>
69868
69869         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
69870         defined.
69871         * lib/isnanl.c: Remove all code. Just include isnan.c.
69872         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
69873
69874 2007-02-25  Jim Meyering  <jim@meyering.net>
69875
69876         Avoid conflicting types for 'unsetenv' on FreeBSD.
69877         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
69878         conflicting with FreeBSD's (5.0 and 6.1) function declaration
69879         in stdlib.h.
69880
69881 2007-02-24  Bruno Haible  <bruno@clisp.org>
69882
69883         * modules/isnanl-nolibm-tests: New file.
69884         * tests/test-isnanl.c: New file.
69885
69886         * modules/isnanl-nolibm: New file.
69887         * lib/isnanl.h: New file.
69888         * lib/isnanl.c: New file.
69889         * m4/isnanl.m4: New file.
69890
69891 2007-02-24  Bruno Haible  <bruno@clisp.org>
69892
69893         * modules/isnan-nolibm-tests: New file.
69894         * tests/test-isnan.c: New file.
69895
69896         * modules/isnan-nolibm: New file.
69897         * lib/isnan.h: New file.
69898         * lib/isnan.c: New file.
69899         * m4/isnan.m4: New file.
69900
69901 2007-02-24  Bruno Haible  <bruno@clisp.org>
69902
69903         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
69904         assume that an exponent fits in 20 bits.
69905
69906 2007-02-24  Jim Meyering  <jim@meyering.net>
69907
69908         * m4/regex.m4: Update the description of the configure-time option,
69909         --without-included-regex, to state accurately what the defaults are,
69910         and perhaps to give people an idea why using this option is risky.
69911
69912 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69913
69914         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
69915         loops on small arguments.  This attempts to avoid the problem
69916         Bruno Haible reported for AIX 4.3.2 in
69917         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
69918
69919 2007-02-23  Bruno Haible  <bruno@clisp.org>
69920
69921         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
69922         Needed for help2man.
69923
69924 2007-02-23  Karl Berry  <karl@gnu.org>
69925
69926         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
69927         exists, foo.h should be cvs-ignored, not committed.
69928
69929 2007-02-23  Eric Blake  <ebb9@byu.net>
69930
69931         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
69932         * lib/stat-time.h (includes): Likewise.
69933         * lib/utimecmp.c (includes): Likewise.
69934         * lib/utimens.h (includes): Likewise.
69935         * lib/getdate.y (includes): Also include "timespec.h" for use
69936         internal to the module.
69937         * modules/utimens (Depends-on): Revert yesterday's patch.
69938         * modules/nanosleep (Depends-on): Add missing dependency.
69939
69940 2007-02-22  Bruno Haible  <bruno@clisp.org>
69941
69942         * lib/glob.c: Don't include getlogin_r.h.
69943
69944 2007-02-22  Jim Meyering  <jim@meyering.net>
69945
69946         * modules/utimens (Depends-on): Add timespec, required for
69947         utimens.h's inclusion of timespec.h.
69948
69949 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
69950
69951         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
69952         long unreadable paths in GNU/Linux.  Problem reported by Andreas
69953         Schwab in
69954         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
69955         I'll try to think of a better way to fix the Solaris problem.
69956
69957         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
69958         like glibc; on Solaris 10, it fails with errno == EINVAL.
69959         POSIX says the behavior is unspecified if the first argument is NULL,
69960         so play it safe and never pass NULL to the system getcwd.
69961
69962 2007-02-21  Jim Meyering  <jim@meyering.net>
69963
69964         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
69965         of gettimeofday.  It would conflict with the one now always
69966         provided via sys_time_.h.  Reported by Matthew Woehlke, as
69967         an IRIX 6.5 build failure.
69968
69969 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69970
69971         Minor fixups to port to Solaris 10 with Sun C 5.8.
69972         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
69973         * modules/getcwd (Depends-on): Add dirfd.
69974         * lib/putenv.c (putenv): #undef it.
69975         (rpl_putenv): New decl.
69976         (malloc, free): Include <stdlib.h> rather than prototyping separately.
69977
69978 2007-02-20  Bruno Haible  <bruno@clisp.org>
69979
69980         * modules/stdio-tests: New file.
69981         * tests/test-stdio.c: New file.
69982
69983         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
69984         (Depends-on): Add stdio.
69985         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69986         (Include): Use <stdio.h> instead of vsnprintf.h.
69987         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69988         HAVE_DECL_VSNPRINTF.
69989         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
69990
69991         * modules/snprintf (Files): Remove lib/snprintf.h.
69992         (Depends-on): Add stdio.
69993         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69994         (Include): Use <stdio.h> instead of snprintf.h.
69995         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69996         HAVE_DECL_SNPRINTF.
69997         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
69998         * lib/getaddrinfo.c: Likewise.
69999
70000         * modules/stdio: New file.
70001         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
70002         * lib/snprintf.h: Remove file.
70003         * lib/vsnprintf.h: Remove file.
70004         * lib/.cppi-disable: Remove snprintf.h.
70005         * m4/stdio_h.m4: New file.
70006         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
70007
70008 2007-02-20  Jim Meyering  <jim@meyering.net>
70009
70010         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
70011         used by e.g., mingw.  From Bruno Haible.
70012
70013 2007-02-19  Bruno Haible  <bruno@clisp.org>
70014
70015         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
70016         warnings.
70017         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70018
70019 2007-02-19  Bruno Haible  <bruno@clisp.org>
70020
70021         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
70022         from mingw users.
70023
70024 2007-02-19  Bruno Haible  <bruno@clisp.org>
70025
70026         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
70027         warnings.
70028         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
70029
70030 2007-02-19  Jim Meyering  <jim@meyering.net>
70031
70032         Don't use FD after a successful "fdopendir (fd)".
70033         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
70034         Reset it by calling dirfd on the just-obtained DIR*.
70035
70036         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
70037         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
70038
70039 2007-02-18  Bruno Haible  <bruno@clisp.org>
70040
70041         * lib/readlink.c: Include <unistd.h>.
70042         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
70043         HAVE_READLINK.
70044         * modules/readlink (Depends-on): Add unistd.
70045         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70046         (Include): Add <unistd.h>.
70047
70048         * lib/getlogin_r.h: Remove file.
70049         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
70050         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
70051         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
70052         HAVE_DECL_GETLOGIN_R.
70053         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
70054         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70055         (Include): Use <unistd.h> instead of getlogin_r.h.
70056
70057         * lib/getcwd.h: Remove file.
70058         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
70059         * lib/xgetcwd.c: Likewise.
70060         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
70061         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
70062         * modules/getcwd (Files): Remove lib/getcwd.h.
70063         (Depends-on): Add unistd.
70064         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70065         (Include): Use <unistd.h> instad of getcwd.h.
70066
70067         * lib/ftruncate.c: Include <unistd.h> first.
70068         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
70069         Set HAVE_FTRUNCATE.
70070         * modules/ftruncate (Depends-on): Add unistd.
70071         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70072
70073         * lib/fchdir.c: Include <unistd.h> first.
70074         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
70075         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
70076         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
70077         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70078         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
70079
70080         * lib/dup2.c: Include <unistd.h> first.
70081         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
70082         HAVE_DUP2.
70083         * modules/dup2 (Depends-on): Add unistd.
70084         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70085
70086         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
70087         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
70088         REPLACE_CHOWN. Don't define chown as a macro here.
70089         * modules/chown (Depends-on): Add unistd.
70090         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70091
70092         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
70093         Add definition for GL_LINK_WARNING.
70094         (chown, dup2): New declarations.
70095         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
70096         link warning.
70097         (ftruncate): New declaration.
70098         (getcwd): New declaration, taken from old getcwd.h.
70099         (getlogin_r): New declaration, taken from old getlogin_r.h.
70100         (readlink): New declaration.
70101         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
70102         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
70103         (gl_PREREQ_UNISTD): Remove macro.
70104         (gl_UNISTD_MODULE_INDICATOR): New macro.
70105         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
70106         many new variables. Don't set UNISTD_H.
70107         * modules/unistd (Description): Change.
70108         (Depends-on): Add link-warning.
70109         (configure.ac): Update.
70110         (Makefile.am): Create unistd.h always. Substitute many new variables
70111         into it.
70112
70113 2007-02-18  Bruno Haible  <bruno@clisp.org>
70114
70115         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
70116         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
70117         HAVE_GETSUBOPT.
70118         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
70119         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
70120         * lib/getsubopt.h: Remove file.
70121         * modules/getsubopt (Files): Remove lib/getsubopt.h.
70122         (Depends-on): Add stdlib.
70123         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70124         (Includes): Use <stdlib.h> instead of getsubopt.h.
70125         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
70126         Set HAVE_GETSUBOPT.
70127         * lib/getsubopt.c: Don't include getsubopt.h.
70128
70129 2007-02-18  Bruno Haible  <bruno@clisp.org>
70130
70131         * modules/fchdir (Depends-on): Add dup2.
70132
70133 2007-02-18  Bruno Haible  <bruno@clisp.org>
70134
70135         * lib/stdlib_.h: Handle glibc's special invocation convention
70136         specially.
70137
70138 2007-02-18  Bruno Haible  <bruno@clisp.org>
70139
70140         * modules/stdlib-tests: New file.
70141         * tests/test-stdlib.c: New file.
70142
70143         * modules/mkstemp (Files): Remove lib/mkstemp.h.
70144         (Depends-on): Add stdlib.
70145         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70146         (Includes): Use <stdlib.h> instead of mkstemp.h.
70147         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
70148         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
70149         * lib/mkstemp.c: Don't include mkstemp.h.
70150         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
70151         * lib/stdlib--.h: Don't include mkstemp.h.
70152
70153         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
70154         (Depends-on): Add stdlib.
70155         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70156         (Includes): Use <stdlib.h> instead of mkdtemp.h.
70157         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
70158         HAVE_MKDTEMP.
70159         * lib/mkdtemp.c: Don't include mkdtemp.h.
70160         * lib/clean-temp.c: Don't include mkdtemp.h.
70161
70162         * modules/exit (Files): Remove lib/exit.h.
70163         (Depends-on): Add stdlib.
70164         (Makefile.am): Remove lib_SOURCES.
70165         (Include): Use <stdlib.h> instead of exit.h.
70166         * lib/argmatch.c: Don't include exit.h.
70167         * lib/execute.c: Likewise.
70168         * lib/pagealign_alloc.c: Likewise.
70169         * lib/pipe.c: Likewise.
70170         * lib/wait-process.c: Likewise.
70171         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
70172         * lib/exitfail.c: Likewise.
70173         * lib/savewd.c: Likewise.
70174         * lib/xsetenv.c: Likewise.
70175
70176         * modules/stdlib: New file.
70177         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
70178         and extra comments about mkstemp().
70179         * lib/exit.h: Remove file.
70180         * lib/mkdtemp.h: Remove file.
70181         * lib/mkstemp.h: Remove file.
70182         * m4/stdlib_h.m4: New file.
70183         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
70184
70185 2007-02-18  Bruno Haible  <bruno@clisp.org>
70186
70187         * modules/math-tests: New file.
70188         * tests/test-math.c: New file.
70189
70190         * modules/math: New file.
70191         * modules/mathl (Files): Remove lib/mathl.h.
70192         (Depends-on): Add math.
70193         (Makefile.am): Don't mention mathl.h.
70194         (Include): Use <math.h> instead of mathl.h.
70195         * lib/math_.h: New file.
70196         * lib/mathl.h: Remove file.
70197         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
70198         mathl.h.
70199         * lib/asinl.c: Likewise.
70200         * lib/atanl.c: Likewise.
70201         * lib/ceill.c: Likewise.
70202         * lib/cosl.c: Likewise.
70203         * lib/expl.c: Likewise.
70204         * lib/floorl.c: Likewise.
70205         * lib/frexpl.c: Likewise.
70206         * lib/ldexpl.c: Likewise.
70207         * lib/logl.c: Likewise.
70208         * lib/sincosl.c: Likewise.
70209         * lib/sinl.c: Likewise.
70210         * lib/sqrtl.c: Likewise.
70211         * lib/tanl.c: Likewise.
70212         * lib/trigl.c: Likewise.
70213         * m4/math_h.m4: New file.
70214         * MODULES.html.sh (Mathematics): Add math.
70215
70216 2007-02-17  Bruno Haible  <bruno@clisp.org>
70217
70218         * modules/wctype-tests: New file.
70219         * tests/test-wctype.c: New file.
70220
70221         * modules/wchar-tests: New file.
70222         * tests/test-wchar.c: New file.
70223
70224         * modules/unistd-tests: New file.
70225         * tests/test-unistd.c: New file.
70226
70227         * modules/time-tests: New file.
70228         * tests/test-time.c: New file.
70229
70230         * modules/sysexits-tests: New file.
70231         * tests/test-sysexits.c: New file.
70232
70233         * modules/sys_time-tests: New file.
70234         * tests/test-sys_time.c: New file.
70235
70236         * modules/sys_stat-tests: New file.
70237         * tests/test-sys_stat.c: New file.
70238
70239         * modules/sys_socket-tests: New file.
70240         * tests/test-sys_socket.c: New file.
70241
70242         * modules/sys_select-tests: New file.
70243         * tests/test-sys_select.c: New file.
70244
70245         * modules/string-tests: New file.
70246         * tests/test-string.c: New file.
70247
70248         * modules/stdbool-tests: New file.
70249         * tests/test-stdbool.c: New file.
70250
70251         * modules/netinet_in-tests: New file.
70252         * tests/test-netinet_in.c: New file.
70253
70254         * modules/inttypes-tests: New file.
70255         * tests/test-inttypes.c: New file.
70256
70257         * modules/fcntl-tests: New file.
70258         * tests/test-fcntl.c: New file.
70259
70260         * modules/byteswap-tests: New file.
70261         * tests/test-byteswap.c: New file.
70262
70263         * modules/arpa_inet-tests: New file.
70264         * tests/test-arpa_inet.c: New file.
70265
70266 2007-02-17  Bruno Haible  <bruno@clisp.org>
70267
70268         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
70269         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
70270         if the corresponding module is not enabled. Emit link warnings if
70271         the function is used nevertheless.
70272         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
70273         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
70274         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
70275         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
70276         * modules/inttypes (Depends-on): Add link-warning.
70277         (Makefile.am): Copy the contents of build-aux/link-warning.h into
70278         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
70279         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
70280         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
70281         * modules/imaxdiv (configure.ac): Likewise.
70282         * modules/strtoimax (configure.ac): Likewise.
70283         * modules/strtoumax (configure.ac): Likewise.
70284
70285 2007-02-17  Bruno Haible  <bruno@clisp.org>
70286
70287         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
70288         gl_STRING_MODULE_INDICATOR_DEFAULTS.
70289         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
70290         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
70291
70292 2007-02-17  Bruno Haible  <bruno@clisp.org>
70293
70294         * modules/link-warning: New file.
70295         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
70296         * lib/string_.h (GL_LINK_WARNING): Remove definition.
70297         * modules/string (Depends-on): Add link-warning.
70298         (Makefile.am): Copy the contents of build-aux/link-warning.h into
70299         string.h.
70300         * MODULES.html.sh (Support for building libraries and executables): Add
70301         link-warning.
70302
70303 2007-02-17  Bruno Haible  <bruno@clisp.org>
70304
70305         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
70306         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
70307         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
70308         long lines.
70309
70310 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
70311             Bruno Haible  <bruno@clisp.org>
70312
70313         * modules/tmpfile: New file.
70314         * lib/tmpfile.c: New file.
70315         * m4/tmpfile.m4: New file.
70316         * MODULES.html.sh (func_all_modules): New section "Input/output".
70317
70318 2007-02-15  Bruno Haible  <bruno@clisp.org>
70319
70320         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
70321         (supports_delete_on_close): New function.
70322         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
70323
70324 2007-02-14  Bruno Haible  <bruno@clisp.org>
70325
70326         * modules/mbspcasecmp-tests: New file.
70327         * tests/test-mbspcasecmp.sh: New file.
70328         * tests/test-mbspcasecmp.c: New file.
70329
70330         New module mbspcasecmp.
70331         * modules/mbspcasecmp: New file.
70332         * lib/mbspcasecmp.c: New file.
70333         * lib/string_.h (strncasecmp): Change warning message.
70334         (mbspcasecmp): New declaration.
70335         * m4/mbspcasecmp.m4: New file.
70336         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70337         GNULIB_MBSPCASECMP.
70338         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
70339         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
70340
70341 2007-02-14  Bruno Haible  <bruno@clisp.org>
70342
70343         * modules/mbsncasecmp-tests: New file.
70344         * tests/test-mbsncasecmp.sh: New file.
70345         * tests/test-mbsncasecmp.c: New file.
70346
70347         New module mbsncasecmp.
70348         * modules/mbsncasecmp: New file.
70349         * lib/mbsncasecmp.c: New file.
70350         * lib/string_.h (mbsncasecmp): New declaration.
70351         * m4/mbsncasecmp.m4: New file.
70352         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70353         GNULIB_MBSNCASECMP.
70354         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
70355         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
70356
70357 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
70358
70359         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
70360         Verify that it doesn't overlap with our flags.
70361         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
70362         do not have the desired effect in multibyte locales; instead, use
70363         mbscasecmp.
70364         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
70365         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
70366         we don't require GNU fnmatch ourselves (if our users require it, they
70367         should do so explicitly).
70368
70369         Fix regex code so it doesn't rely on strcasecmp.
70370         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
70371         Otherwise, include gnulib's langinfo.h.
70372         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
70373         undesirable behavior in non-C locales.  Instead, rely on localecharset.
70374         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
70375         * modules/regex (FILES): Remove m4/codeset.m4.
70376         (Depends-on): Add localcharset.  Remove strcase.
70377
70378 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70379
70380         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
70381         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
70382
70383 2007-02-13  Bruno Haible  <bruno@clisp.org>
70384
70385         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
70386         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70387
70388 2007-02-12  Bruno Haible  <bruno@clisp.org>
70389
70390         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
70391         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
70392         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
70393         time warning rather than a link error.
70394
70395 2007-02-12  Bruno Haible  <bruno@clisp.org>
70396
70397         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
70398         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
70399         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70400
70401 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
70402
70403         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
70404         args, not 2.
70405
70406 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
70407
70408         New module 'time', so that apps can include <time.h> as per
70409         POSIX and GNU instead of separate include files like time_r.h
70410         and timegm.h.  This implementation tries out a simpler approach
70411         for replacing decls in standard include files (as compared to
70412         the string module), somewhat as an experiment.
70413
70414         * config/srclist.txt: Comment out mktime.c for now.
70415         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
70416         since it doesn't apply any more.  Use generic wording instead.
70417         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
70418         'time'.
70419         * lib/time_.h, m4/time_h.m4, modules/time: New files.
70420         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
70421         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
70422         Don't include <sys/types.h>; no longer needed since we assume C89.
70423         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
70424         * lib/strftime.c: Likewise.
70425         * lib/time_r.c: Likewise.
70426         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
70427         * lib/nanosleep.c: Include <time.h> first, to check interface.
70428         * lib/strptime.c: Likewise.
70429         * lib/time_r.c: Likewise.
70430         * lib/timegm.c: Likewise.
70431         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
70432         needed.
70433         * lib/timegm.c: Don't include timegm.h; no longer needed.
70434         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
70435         time.h now handles any problems in that area.
70436         (struct timespec, nanosleep): Remove; time.h now arranges for these.
70437         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
70438         that time.h defines struct timespec.
70439         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
70440         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
70441         handles that.
70442         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
70443         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
70444         needed.  Set REPLACE_LOCALTIME.
70445         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
70446         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
70447         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
70448         nanosleep; time_h.m4 now does that.  Don't require
70449         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
70450         module handles this now.
70451         * modules/getdate (Depends-on): Remove timespec.  Add time.
70452         * modules/nanosleep (Depends-on): Likewise.
70453         * modules/stat-time (Depends-on): Likewise.
70454         * modules/nanosleep (Include): Include time.h, not timespec.h.
70455         * modules/strptime (Files): Remove lib/strptime.h.
70456         (Depends-on): Add extensions, time.
70457         (Include): Include time.h, not strptime.h.
70458         * modules/time_r (Files): Remove lib/time_r.h.
70459         (Depends-on): Add time.
70460         (Include): Include time.h, not time_r.h.
70461         * modules/timegm: Likewise.
70462         * modules/timespec (Description): Now does timespec-related decls
70463         of our own, instead of struct timespec itself.
70464         (Depends-on): Add time; remove extensions.
70465         (Maintainer): Add self.
70466         * modules/utimecmp (Depends-on): Add time; remove timespec.
70467         * modules/utimens (Depends-on): Likewise.
70468         * modules/xnanosleep (Depends-on): Likewise.
70469
70470 2007-02-11  Bruno Haible  <bruno@clisp.org>
70471
70472         * lib/c-strstr.c: Include allocsa.h.
70473         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70474         * lib/c-strcasestr.c: Include allocsa.h.
70475         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70476         * lib/strcasestr.c: Include allocsa.h.
70477         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70478         * lib/mbsstr.c: Include allocsa.h.
70479         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
70480         allocsa/freesa instead of malloc/free.
70481         * lib/mbscasestr.c: Include allocsa.h.
70482         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
70483         allocsa/freesa instead of malloc/free.
70484         * modules/c-strstr (Depends-on): Add allocsa.
70485         * modules/c-strcasestr (Depends-on): Likewise.
70486         * modules/strcasestr (Depends-on): Likewise.
70487         * modules/mbsstr (Depends-on): Likewise.
70488         * modules/mbscasestr (Depends-on): Likewise.
70489
70490 2007-02-11  Bruno Haible  <bruno@clisp.org>
70491
70492         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
70493
70494         * modules/mbsspn-tests: New file.
70495         * tests/test-mbsspn.sh: New file.
70496         * tests/test-mbsspn.c: New file.
70497
70498 2007-02-11  Bruno Haible  <bruno@clisp.org>
70499
70500         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
70501
70502         * modules/mbspbrk-tests: New file.
70503         * tests/test-mbspbrk.sh: New file.
70504         * tests/test-mbspbrk.c: New file.
70505
70506 2007-02-11  Bruno Haible  <bruno@clisp.org>
70507
70508         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
70509         unneeded cast.
70510
70511         * modules/mbscspn-tests: New file.
70512         * tests/test-mbscspn.sh: New file.
70513         * tests/test-mbscspn.c: New file.
70514
70515 2007-02-11  Bruno Haible  <bruno@clisp.org>
70516
70517         * modules/mbscasecmp-tests: New file.
70518         * tests/test-mbscasecmp.sh: New file.
70519         * tests/test-mbscasecmp.c: New file.
70520
70521 2007-02-11  Bruno Haible  <bruno@clisp.org>
70522
70523         Ensure O(n) worst-case complexity of mbscasestr.
70524         * lib/mbscasestr.c: Include stdbool.h.
70525         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
70526         functions.
70527         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
70528         the bookkeeping indicates that it's worth it.
70529         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
70530
70531         * modules/mbscasestr-tests: New file.
70532         * tests/test-mbscasestr1.c: New file.
70533         * tests/test-mbscasestr2.sh: New file.
70534         * tests/test-mbscasestr2.c: New file.
70535         * tests/test-mbscasestr3.sh: New file.
70536         * tests/test-mbscasestr3.c: New file.
70537         * tests/test-mbscasestr4.sh: New file.
70538         * tests/test-mbscasestr4.c: New file.
70539         * m4/locale-tr.m4: New file.
70540
70541 2007-02-11  Bruno Haible  <bruno@clisp.org>
70542
70543         Ensure O(n) worst-case complexity of mbsstr.
70544         * lib/mbsstr.c: Include stdbool.h.
70545         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
70546         functions.
70547         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
70548         bookkeeping indicates that it's worth it.
70549         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
70550
70551         * modules/mbsstr-tests: New file.
70552         * tests/test-mbsstr1.c: New file.
70553         * tests/test-mbsstr2.sh: New file.
70554         * tests/test-mbsstr2.c: New file.
70555         * tests/test-mbsstr3.sh: New file.
70556         * tests/test-mbsstr3.c: New file.
70557         * m4/locale-fr.m4: New file.
70558
70559 2007-02-11  Bruno Haible  <bruno@clisp.org>
70560
70561         * lib/mbsrchr.c (mbsrchr): Fix bug.
70562
70563         * modules/mbsrchr-tests: New file.
70564         * tests/test-mbsrchr.sh: New file.
70565         * tests/test-mbsrchr.c: New file.
70566
70567 2007-02-11  Bruno Haible  <bruno@clisp.org>
70568
70569         * lib/mbschr.c (mbschr): Fix bug.
70570
70571         * modules/mbschr-tests: New file.
70572         * tests/test-mbschr.sh: New file.
70573         * tests/test-mbschr.c: New file.
70574         * m4/locale-zh.m4: New file.
70575
70576 2007-02-11  Bruno Haible  <bruno@clisp.org>
70577
70578         Support for copying multibyte string iterators.
70579         * lib/mbiter.h: Include <string.h>.
70580         (mbiter_multi_copy): New function.
70581         (mbi_copy): New macro.
70582         * lib/mbuiter.h: Include <string.h>.
70583         (mbuiter_multi_copy): New function.
70584         (mbui_copy): New macro.
70585
70586 2007-02-11  Bruno Haible  <bruno@clisp.org>
70587
70588         New module mbslen.
70589         * modules/mbslen: New file.
70590         * lib/mbslen.c: New file.
70591         * lib/string_.h (mbslen): New declaration.
70592         * m4/mbslen.m4: New file.
70593         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70594         GNULIB_MBSLEN.
70595         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
70596         * MODULES.html.sh (Internationalization functions): Add mbslen.
70597
70598 2007-02-11  Bruno Haible  <bruno@clisp.org>
70599
70600         Ensure O(n) worst-case complexity of strcasestr substitute.
70601         * lib/strcasestr.c: Include stdbool.h.
70602         (knuth_morris_pratt): New function.
70603         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70604         bookkeeping indicates that it's worth it.
70605         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
70606
70607         * modules/strcasestr-tests: New file.
70608         * tests/test-strcasestr.c: New file.
70609
70610 2007-02-11  Bruno Haible  <bruno@clisp.org>
70611
70612         Ensure O(n) worst-case complexity of c_strcasestr.
70613         * lib/c-strcasestr.c: Include stdbool.h, string.h.
70614         (knuth_morris_pratt): New function.
70615         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
70616         the bookkeeping indicates that it's worth it.
70617         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
70618
70619         * modules/c-strcasestr-tests: New file.
70620         * tests/test-c-strcasestr.c: New file.
70621
70622 2007-02-11  Bruno Haible  <bruno@clisp.org>
70623
70624         Ensure O(n) worst-case complexity of c_strstr.
70625         * lib/c-strstr.c: Include stdbool.h, string.h.
70626         (knuth_morris_pratt): New function.
70627         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70628         bookkeeping indicates that it's worth it.
70629         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
70630
70631         * lib/c-strstr.c: Complete rewrite for maintainability.
70632
70633         * modules/c-strstr-tests: New file.
70634         * tests/test-c-strstr.c: New file.
70635
70636 2007-02-11  Bruno Haible  <bruno@clisp.org>
70637
70638         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
70639         5.2.1 and earlier, whereby \055 was treated just like the range
70640         delimiter '-'.
70641         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
70642
70643 2007-02-08  Bruno Haible  <bruno@clisp.org>
70644
70645         * modules/regex (Depends-on): Add stdbool.
70646         Reported by Dalibor Topic <robilad@kaffe.org>.
70647
70648 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
70649
70650         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
70651         Prefer returning from main to exiting from it.
70652         Remove unnecessary parens after sizeof.
70653
70654 2007-02-05  Bruno Haible  <bruno@clisp.org>
70655
70656         New module mbssep.
70657         * modules/mbssep: New file.
70658         * lib/mbssep.c: New file.
70659         * lib/string_.h (strsep): Add a conditional link warning.
70660         (mbssep): New declaration.
70661         * m4/mbssep.m4: New file.
70662         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70663         GNULIB_MBSSEP.
70664         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
70665         * MODULES.html.sh (Internationalization functions): Add mbssep.
70666
70667 2007-02-05  Bruno Haible  <bruno@clisp.org>
70668
70669         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
70670         Optimize search in case of 1 delimiter.
70671
70672 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70673
70674         * lib/acl.h: Include sys/types.h before sys/acl.h.
70675
70676 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70677
70678         Merge upstream fix for glibc bugzilla #3957:
70679
70680         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
70681
70682         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
70683         bit for RE_HAT_LISTS_NOT_NEWLINE.
70684         (build_charclass_op): Remove bogus comment.
70685
70686 2007-02-05  Simon Josefsson  <simon@josefsson.org>
70687
70688         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
70689
70690 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70691
70692         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
70693         * lib/memmem.c [!defined _LIBC]: Include config.h.
70694
70695 2007-02-04  Bruno Haible  <bruno@clisp.org>
70696
70697         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
70698         warning message.
70699
70700 2007-02-04  Bruno Haible  <bruno@clisp.org>
70701
70702         New module mbstok_r.
70703         * modules/mbstok_r: New file.
70704         * lib/mbstok_r.c: New file.
70705         * lib/string_.h (strtok_r): Change argument names to match the
70706         comments. Add a conditional link warning.
70707         (mbstok_r): New declaration.
70708         * m4/mbstok_r.m4: New file.
70709         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70710         GNULIB_MBSTOK_R.
70711         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
70712         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
70713
70714 2007-02-04  Bruno Haible  <bruno@clisp.org>
70715
70716         New module mbsspn.
70717         * modules/mbsspn: New file.
70718         * lib/mbsspn.c: New file.
70719         * lib/string_.h (strspn): Add a conditional link warning.
70720         (mbsspn): New declaration.
70721         * m4/mbsspn.m4: New file.
70722         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70723         GNULIB_MBSSPN.
70724         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
70725         * MODULES.html.sh (Internationalization functions): Add mbsspn.
70726
70727 2007-02-04  Bruno Haible  <bruno@clisp.org>
70728
70729         New module mbspbrk.
70730         * modules/mbspbrk: New file.
70731         * lib/mbspbrk.c: New file.
70732         * lib/string_.h (strpbrk): Add a conditional link warning.
70733         (mbspbrk): New declaration.
70734         * m4/mbspbrk.m4: New file.
70735         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70736         GNULIB_MBSPBRK.
70737         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
70738         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
70739
70740 2007-02-04  Bruno Haible  <bruno@clisp.org>
70741
70742         New module mbscspn.
70743         * modules/mbscspn: New file.
70744         * lib/mbscspn.c: New file.
70745         * lib/string_.h (strcspn): Add a conditional link warning.
70746         (mbscspn): New declaration.
70747         * m4/mbscspn.m4: New file.
70748         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70749         GNULIB_MBSCSPN.
70750         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
70751         * MODULES.html.sh (Internationalization functions): Add mbscspn.
70752
70753 2007-02-04  Bruno Haible  <bruno@clisp.org>
70754
70755         New module mbscasestr, reduced goal of strcasestr.
70756         * modules/mbscasestr: New file.
70757         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
70758         (mbscasestr): Renamed from strcasestr.
70759         * lib/strcasestr.c: Don't include mbuiter.h.
70760         (strcasestr): Remove support for multibyte locales.
70761         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
70762         Change the conditional link warning.
70763         (mbscasestr): New declaration.
70764         * m4/mbscasestr.m4: New file.
70765         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
70766         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
70767         REPLACE_STRCASESTR.
70768         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
70769         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70770         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70771         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
70772         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
70773         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70774         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
70775         (Depends-on): Remove mbuiter.
70776         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
70777
70778 2007-02-04  Bruno Haible  <bruno@clisp.org>
70779
70780         Simplify handling of strncasecmp.
70781         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
70782         the conditional link warning.
70783         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70784         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
70785         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
70786         * modules/strcase (configure.ac): Don't invoke
70787         gl_STRING_MODULE_INDICATOR.
70788         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
70789
70790 2007-02-04  Bruno Haible  <bruno@clisp.org>
70791
70792         New module mbscasecmp, reduced goal of strcasecmp.
70793         * modules/mbscasecmp: New file.
70794         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
70795         (mbscasecmp): Renamed from strcasecmp.
70796         * lib/strcasecmp.c: Don't include mbuiter.h.
70797         (strcasecmp): Remove support for multibyte locales.
70798         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
70799         Change the conditional link warning.
70800         (mbscasecmp): New declaration.
70801         * m4/mbscasecmp.m4: New file.
70802         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
70803         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
70804         REPLACE_STRCASECMP.
70805         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
70806         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70807         GNULIB_MBSCASECMP.
70808         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
70809         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
70810         * modules/strcase (Files): Remove m4/mbrtowc.m4.
70811         (Depends-on): Remove mbuiter.
70812         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
70813
70814 2007-02-04  Bruno Haible  <bruno@clisp.org>
70815
70816         New module mbsstr. Remove module strstr.
70817         * modules/mbsstr: New file.
70818         * modules/strstr: Remove file.
70819         * lib/mbsstr.c: Renamed from lib/strstr.c.
70820         (mbsstr): Renamed from strstr.
70821         * lib/string_.h (strstr): Remove declaration. Change the conditional
70822         link warning.
70823         (mbsstr): New declaration.
70824         * m4/mbsstr.m4: New file.
70825         * m4/strstr.m4: Remove file.
70826         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
70827         REPLACE_STRSTR.
70828         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
70829         Don't initialize GNULIB_STRSTR.
70830         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
70831         substitute GNULIB_STRSTR and REPLACE_STRSTR.
70832         * MODULES.html.sh (Internationalization functions): Add mbsstr.
70833         (Support for systems lacking ANSI C 89): Remove strstr.
70834
70835 2007-02-04  Bruno Haible  <bruno@clisp.org>
70836
70837         New module mbsrchr.
70838         * modules/mbsrchr: New file.
70839         * lib/mbsrchr.c: New file.
70840         * lib/string_.h (strrchr): Add a conditional link warning.
70841         (mbsrchr): New declaration.
70842         * m4/mbsrchr.m4: New file.
70843         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70844         GNULIB_MBSRCHR.
70845         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
70846         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
70847
70848 2007-02-04  Bruno Haible  <bruno@clisp.org>
70849
70850         New module mbschr.
70851         * modules/mbschr: New file.
70852         * lib/mbschr.c: New file.
70853         * lib/string_.h (strchr): Add a conditional link warning.
70854         (mbschr): New declaration.
70855         * m4/mbschr.m4: New file.
70856         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70857         GNULIB_MBSCHR.
70858         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
70859         * MODULES.html.sh (Internationalization functions): Add mbschr.
70860
70861 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70862
70863         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
70864
70865         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
70866
70867 2007-02-04  Bruno Haible  <bruno@clisp.org>
70868
70869         New module description section 'configure.ac-early'.
70870         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
70871         (func_get_autoconf_early_snippet): New function.
70872         (func_import, func_create_testdir): Use it. Remove special cases for
70873         modules 'extensions' and 'lock'.
70874         * modules/extensions (configure.ac-early): Require
70875         gl_USE_SYSTEM_EXTENSIONS.
70876         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
70877
70878 2007-02-04  Bruno Haible  <bruno@clisp.org>
70879
70880         Make use of gcj-4.3's -fsource and -ftarget option.
70881         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
70882         and if so try the options -fsource and -ftarget.
70883         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
70884         source_version, ftarget_option, target_version arguments.
70885         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
70886         (is_envjavac_oldgcj_14_14_usable): Renamed from
70887         is_envjavac_gcj_14_14_usable.
70888         (is_envjavac_oldgcj_14_13_usable): Renamed from
70889         is_envjavac_gcj_14_13_usable.
70890         (is_gcj_present): Update.
70891         (is_gcj_43, is_gcj43_usable): New functions.
70892         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
70893         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
70894         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
70895         try the options -fsource and -ftarget.
70896
70897 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70898
70899         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
70900         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
70901         larger value.
70902
70903 2007-02-03  Jim Meyering  <jim@meyering.net>
70904
70905         Give tools a better chance to allocate space for very large buffers.
70906         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
70907
70908         Make pwd and readlink work also when run with an unreadable parent dir
70909         on systems with openat support.
70910         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
70911         provided getcwd function, even when we have openat support.
70912         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
70913
70914 2007-02-02  Bruno Haible  <bruno@clisp.org>
70915
70916         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
70917         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
70918         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
70919         portability problems if one of these functions is only used on specific
70920         platforms.
70921         Reported by Paul Eggert.
70922
70923 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
70924
70925         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
70926         is causing more trouble than it's curing.
70927         * lib/regex_internal.h (__mempcpy): Remove.
70928         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
70929         (and make the code a tad smaller to boot).
70930         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
70931
70932 2007-02-02  Jim Meyering  <jim@meyering.net>
70933
70934         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
70935         section, not in the Makefile.am: one.
70936
70937 2007-02-02  Eric Blake  <ebb9@byu.net>
70938
70939         * lib/strchrnul.c: Always include config.h first.
70940
70941         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
70942         gnulib strstr is not necessary here.
70943
70944 2007-02-02  Simon Josefsson  <simon@josefsson.org>
70945
70946         * m4/socklen.m4: Fix typo.
70947
70948 2007-02-02  Eric Blake  <ebb9@byu.net>
70949
70950         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
70951         * modules/netinet_in (Makefile.am): Likewise.
70952
70953 2007-02-01  Bruno Haible  <bruno@clisp.org>
70954
70955         * lib/string_.h (GL_LINK_WARNING): New macro.
70956         (strcasecmp, strstr, strcasestr): If provided by the system,
70957         conditionally define as a macro that leads to a warning instead of to
70958         an error.
70959         (strncasecmp): Conditionally define as a macro that leads to a warning.
70960
70961 2007-02-01  Karl Berry  <karl@gnu.org>
70962
70963         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
70964
70965 2007-02-01  Bruno Haible  <bruno@clisp.org>
70966
70967         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
70968         renamings.
70969
70970 2007-02-01  Eric Blake  <ebb9@byu.net>
70971
70972         * modules/regex (Depends-on): Revert dependence on mempcpy.
70973         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
70974         module's definition of mempcpy.
70975         Reported by Paul Eggert.
70976
70977 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
70978
70979         * lib/string_.h: If the gnulib module XYZ is not present, undefine
70980         the symbol XYZ before redefining it.  This fixes a problem with
70981         programs that don't use XYZ, when compiled on systems that define
70982         XYZ to something else.
70983
70984 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
70985
70986         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
70987         occurs when "mkdir -m foo" creates a setgid directory that is (1)
70988         writeable to group or other and (2) is intended to have a special
70989         mode bit that is set or cleared.  In such a case, the directory
70990         should be neither group- nor other-writeable until the special
70991         mode bits are right.
70992
70993 2007-01-31  Eric Blake  <ebb9@byu.net>
70994
70995         * modules/mountlist (Depends-on): Add strstr.
70996
70997         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
70998         bug.
70999         * modules/string (Makefile.am): Remove redundant replacement.
71000         * modules/regex (Depends-on): Add mempcpy.
71001
71002 2007-01-31  Bruno Haible  <bruno@clisp.org>
71003
71004         New module description field 'Link'.
71005         * gnulib-tool (func_usage): Document --extract-link-directive.
71006         (sed_extract_prog): Recognize 'Link' directive.
71007         (func_get_link_directive): New function.
71008         (func_import): Show summary of link directives.
71009         Handle --extract-link-directive option.
71010         * modules/acl (Link): New section.
71011         * modules/clock-time (Link): New section.
71012         * modules/euidaccess (Link): New section.
71013         * modules/gettext (Link): New section.
71014         * modules/iconv (Link): New section.
71015         * modules/lock (Link): New section.
71016         * modules/nanosleep (Link): New section.
71017         * modules/readline (Link): New section.
71018
71019 2007-01-27  Bruno Haible  <bruno@clisp.org>
71020
71021         Enforce the use of gnulib modules for unportable <string.h> functions.
71022         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
71023         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
71024         (gl_HEADER_STRING_H_BODY): Require it.
71025         * lib/string_.h: If the gnulib module XYZ is not present, redefine
71026         the symbol XYZ to one that gives a link error.
71027         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
71028         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
71029         * modules/mempcpy (configure.ac): Likewise.
71030         * modules/memrchr (configure.ac): Likewise.
71031         * modules/stpcpy (configure.ac): Likewise.
71032         * modules/stpncpy (configure.ac): Likewise.
71033         * modules/strcase (configure.ac): Likewise.
71034         * modules/strcasestr (configure.ac): Likewise.
71035         * modules/strchrnul (configure.ac): Likewise.
71036         * modules/strdup (configure.ac): Likewise.
71037         * modules/strndup (configure.ac): Likewise.
71038         * modules/strnlen (configure.ac): Likewise.
71039         * modules/strpbrk (configure.ac): Likewise.
71040         * modules/strsep (configure.ac): Likewise.
71041         * modules/strstr (configure.ac): Likewise.
71042         * modules/strtok_r (configure.ac): Likewise.
71043
71044 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
71045
71046         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
71047
71048 2007-01-30  Jim Meyering  <jim@meyering.net>
71049
71050         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
71051
71052 2007-01-29  Bruno Haible  <bruno@clisp.org>
71053
71054         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
71055         * lib/execute.c: Likewise.
71056         * lib/pipe.c: Likewise.
71057         * lib/printf-args.h: Likewise.
71058         * lib/printf-args.c: Likewise.
71059         * lib/printf-parse.c: Likewise.
71060         * lib/vasnprintf.c: Likewise.
71061
71062 2007-01-29  Eric Blake  <ebb9@byu.net>
71063
71064         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
71065         declaration.
71066
71067 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
71068
71069         * lib/strptime.h (strptime): Use 'restrict' for args where
71070         POSIX requires this.
71071         * lib/strptime.c (strptime): Likewise.
71072         Change license notice from LGPL to GPL, since gnulib-tool will
71073         change this as needed.
71074         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
71075         defined.
71076         Include "strptime.h" first, to check interface.
71077         Do not #undef _LIBC and _NL_CURRENT.
71078         Do not include <stdlib.h>; no longer needed.
71079         Include "time_r.h" and declare ptime_locale_status
71080         only if _LIBC is not defined.
71081         (__P): Remove unused macro.
71082         (match_string): Bring back glibc version, but use it only if _LIBC
71083         is defined.
71084         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
71085         Remove unnecessary assertion and abort() call.
71086         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
71087         * m4/strptime.m4: Fix serial number comment.
71088         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
71089         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
71090         (Depends-on): Add time_r.
71091
71092 2007-01-29  Bruno Haible  <bruno@clisp.org>
71093
71094         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71095         strptime.
71096         * modules/strptime (Depends-on): Add stdbool.
71097         * lib/strptime.h: Include <time.h> always. Add comments.
71098
71099 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71100
71101         * modules/strptime: New file.
71102         * lib/strptime.h: New file.
71103         * lib/strptime.c: New file.
71104         * m4/strptime.m4: New file.
71105
71106 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
71107
71108         * MODULES.html.sh: New module mpsort.
71109         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
71110
71111         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
71112         a circularity problem with HP-UX ia64 reported by Bob Proulx in
71113         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
71114         All uses changed.
71115         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
71116         All uses changed.
71117         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
71118         to _Restrict_.
71119         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
71120         the parameter matches the prototype.
71121
71122 2007-01-28  Jim Meyering  <jim@meyering.net>
71123
71124         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
71125         sys/time.h here, reverting that part of the previous patch:
71126         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
71127
71128 2007-01-28  Bruno Haible  <bruno@clisp.org>
71129
71130         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
71131         value of $(SYS_TIME_H).
71132         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
71133         remove it conditionally, too. [added by Jim Meyering]
71134         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
71135         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
71136         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
71137         GETTIMEOFDAY_REPLACEMENT to 1.
71138
71139 2007-01-28  Bruno Haible  <bruno@clisp.org>
71140
71141         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
71142         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
71143         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
71144         Set UNISTD_H instead of UNISTD_H2.
71145         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
71146
71147 2007-01-28  Bruno Haible  <bruno@clisp.org>
71148
71149         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
71150         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
71151
71152 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71153
71154         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
71155         (func_create_testdir): Ensure C locale for `grep' and `tr'
71156         character ranges.
71157         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
71158         ACLOCAL_AMFLAGS parsing state machine.
71159
71160 2007-01-27  Bruno Haible  <bruno@clisp.org>
71161
71162         * modules/unistr/base: Update.
71163
71164 2007-01-27  Bruno Haible  <bruno@clisp.org>
71165
71166         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
71167         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
71168         * modules/unistr/u32-mbtouc-unsafe: Renamed from
71169         modules/unistr/u32-mbtouc.
71170         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
71171         * lib/unistr.h: Update.
71172         * lib/linebreak.c: Update.
71173         * modules/unistr/u32-mbtouc: Renamed from
71174         modules/unistr/u32-mbtouc-safe.
71175         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
71176         * lib/unistr.h: Update.
71177         * lib/unistr/u32-to-u8.c: Update.
71178         * lib/unistr/u32-to-u16.c: Update.
71179
71180 2007-01-27  Bruno Haible  <bruno@clisp.org>
71181
71182         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
71183         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
71184         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
71185         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
71186         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
71187         * modules/unistr/u16-mbtouc-unsafe: Renamed from
71188         modules/unistr/u16-mbtouc.
71189         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
71190         * lib/unistr.h: Update.
71191         * lib/linebreak.c: Update.
71192         * modules/linebreak: Update.
71193         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
71194         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
71195         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
71196         * modules/unistr/u16-mbtouc: Renamed from
71197         modules/unistr/u16-mbtouc-safe.
71198         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
71199         * lib/unistr.h: Update.
71200         * lib/unistr/u16-to-u8.c: Update.
71201         * modules/unistr/u16-to-u8: Update.
71202         * lib/unistr/u16-to-u32.c: Update.
71203         * modules/unistr/u16-to-u32: Update.
71204
71205 2007-01-27  Bruno Haible  <bruno@clisp.org>
71206
71207         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
71208         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
71209         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
71210         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
71211         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
71212         * modules/unistr/u8-mbtouc-unsafe: Renamed from
71213         modules/unistr/u8-mbtouc.
71214         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
71215         * lib/unistr.h: Update.
71216         * lib/striconveh.c: Update.
71217         * modules/striconveh: Update.
71218         * lib/linebreak.c: Update.
71219         * modules/linebreak: Update.
71220         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
71221         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
71222         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
71223         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
71224         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
71225         * lib/unistr.h: Update.
71226         * lib/striconveh.c: Update.
71227         * modules/striconveh: Update.
71228         * lib/unistr/u8-to-u16.c: Update.
71229         * modules/unistr/u8-to-u16: Update.
71230         * lib/unistr/u8-to-u32.c: Update.
71231         * modules/unistr/u8-to-u32: Update.
71232
71233 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71234
71235         Sync from Libtool.
71236         * lib/argz.c: Do not include strings.h nor memory.h, include
71237         string.h unconditionally.  Patch by Simon Josefsson.
71238
71239 2007-01-27  Bruno Haible  <bruno@clisp.org>
71240
71241         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
71242         from gl_HEADER_STRING_H_BODY.
71243         (gl_HEADER_STRING_H_BODY): Require it.
71244         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
71245         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
71246         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
71247         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
71248         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
71249         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
71250         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
71251         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
71252         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
71253         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
71254         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
71255         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
71256         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
71257         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
71258         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
71259
71260 2007-01-27  Bruno Haible  <bruno@clisp.org>
71261
71262         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
71263         check_PROGRAMS into noinst_PROGRAMS.
71264         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
71265         check_PROGRAMS in this case.
71266         (func_import): Set for_test to false.
71267         (func_create_testdir): Set for_test to true.
71268
71269 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71270             Bruno Haible  <bruno@clisp.org>
71271
71272         * modules/strcasestr (Files): Remove lib/strcasestr.h.
71273         (Depends-on): Add string.
71274         (Includes): Use <string.h> instead of strcasestr.h.
71275         * modules/string (Makefile.am): Also substitute the value of
71276         REPLACE_STRCASESTR.
71277         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
71278         assume strcasestr is declared in <string.h> not <strings.h>. Also
71279         set REPLACE_STRCASESTR.
71280         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
71281         REPLACE_STRCASESTR.
71282         * lib/strcasestr.h: Remove file.
71283         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
71284         * lib/string_.h (strcasestr): New declaration.
71285
71286 2007-01-27  Bruno Haible  <bruno@clisp.org>
71287
71288         * lib/string_.h: Use 'extern'.
71289
71290 2007-01-27  Jim Meyering  <jim@meyering.net>
71291
71292         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
71293         of set-but-not-used local, "q".
71294
71295         * lib/mempcpy.c: Include <config.h> before <string.h>.
71296         This fixes a compilation error on HP-UX, due to the system's
71297         "restrict"-using mempcpy prototype.
71298
71299 2007-01-26  Bruno Haible  <bruno@clisp.org>
71300
71301         Small optimization.
71302         * lib/javacomp.c: Include c-strstr.h.
71303          (is_envjavac_gcj): Use c_strstr instead of strstr.
71304         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
71305
71306 2007-01-26  Bruno Haible  <bruno@clisp.org>
71307
71308         * MODULES.html.sh (Unicode string functions): Add the new modules.
71309
71310         * modules/uniconv/u32-strconv-to-locale: New file.
71311         * lib/uniconv/u32-strconv-to-locale.c: New file.
71312
71313         * modules/uniconv/u16-strconv-to-locale: New file.
71314         * lib/uniconv/u16-strconv-to-locale.c: New file.
71315
71316         * modules/uniconv/u8-strconv-to-locale: New file.
71317         * lib/uniconv/u8-strconv-to-locale.c: New file.
71318
71319         * modules/uniconv/u32-strconv-from-locale: New file.
71320         * lib/uniconv/u32-strconv-from-locale.c: New file.
71321
71322         * modules/uniconv/u16-strconv-from-locale: New file.
71323         * lib/uniconv/u16-strconv-from-locale.c: New file.
71324
71325         * modules/uniconv/u8-strconv-from-locale: New file.
71326         * lib/uniconv/u8-strconv-from-locale.c: New file.
71327
71328         * modules/uniconv/u32-strconv-to-enc: New file.
71329         * lib/uniconv/u32-strconv-to-enc.c: New file.
71330         * modules/uniconv/u32-strconv-to-enc-tests: New file.
71331         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
71332
71333         * modules/uniconv/u16-strconv-to-enc: New file.
71334         * lib/uniconv/u16-strconv-to-enc.c: New file.
71335         * lib/uniconv/u-strconv-to-enc.h: New file.
71336         * modules/uniconv/u16-strconv-to-enc-tests: New file.
71337         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
71338
71339         * modules/uniconv/u8-strconv-to-enc: New file.
71340         * lib/uniconv/u8-strconv-to-enc.c: New file.
71341         * modules/uniconv/u8-strconv-to-enc-tests: New file.
71342         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
71343
71344         * modules/uniconv/u32-strconv-from-enc: New file.
71345         * lib/uniconv/u32-strconv-from-enc.c: New file.
71346         * modules/uniconv/u32-strconv-from-enc-tests: New file.
71347         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
71348
71349         * modules/uniconv/u16-strconv-from-enc: New file.
71350         * lib/uniconv/u16-strconv-from-enc.c: New file.
71351         * modules/uniconv/u16-strconv-from-enc-tests: New file.
71352         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
71353
71354         * modules/uniconv/u8-strconv-from-enc: New file.
71355         * lib/uniconv/u8-strconv-from-enc.c: New file.
71356         * lib/uniconv/u-strconv-from-enc.h: New file.
71357         * modules/uniconv/u8-strconv-from-enc-tests: New file.
71358         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
71359
71360         * modules/uniconv/u32-conv-from-enc: New file.
71361         * lib/uniconv/u32-conv-from-enc.c: New file.
71362         * modules/uniconv/u32-conv-from-enc-tests: New file.
71363         * tests/uniconv/test-u32-conv-from-enc.c: New file.
71364
71365         * modules/uniconv/u16-conv-from-enc: New file.
71366         * lib/uniconv/u16-conv-from-enc.c: New file.
71367         * lib/uniconv/u-conv-from-enc.h: New file.
71368         * modules/uniconv/u16-conv-from-enc-tests: New file.
71369         * tests/uniconv/test-u16-conv-from-enc.c: New file.
71370
71371         * modules/uniconv/u8-conv-from-enc: New file.
71372         * lib/uniconv/u8-conv-from-enc.c: New file.
71373         * modules/uniconv/u8-conv-from-enc-tests: New file.
71374         * tests/uniconv/test-u8-conv-from-enc.c: New file.
71375
71376         * modules/uniconv/base: New file.
71377         * lib/uniconv.h: New file.
71378
71379 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
71380
71381         * doc/gnulib-tool.texi (Initial import): Update to match current
71382         behavior with strdup module.
71383         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
71384         * lib/memmem.h: Remove; all uses removed.  This is now done
71385         by <string.h>.
71386         * lib/mempcpy.h: Likewise.
71387         * lib/memrchr.h: Likewise.
71388         * lib/stpcpy.h: Likewise.
71389         * lib/stpncpy.h: Likewise.
71390         * lib/strcase.h: Likewise.
71391         * lib/strchrnul.h: Likewise.
71392         * lib/strdup.h: Likewise.
71393         * lib/strndup.h: Likewise.
71394         * lib/strnlen.h: Likewise.
71395         * lib/strpbrk.h: Likewise.
71396         * lib/strsep.h: Likewise.
71397         * lib/strstr.h: Likewise.
71398         * lib/strtok_r.h: Likewise.
71399         * lib/string_.h: New file.
71400         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
71401         Rely on <string.h> instead.
71402         * lib/canon-host.c: Likewise.
71403         * lib/chdir-long.c: Likewise.
71404         * lib/concatpath.c: Likewise.
71405         * lib/exclude.c: Likewise.
71406         * lib/fchdir.c: Likewise.
71407         * lib/getaddrinfo.c: Likewise.
71408         * lib/getcwd.c: Likewise.
71409         * lib/getsubopt.c: Likewise.
71410         * lib/glob.c: Likewise.
71411         * lib/hard-locale.c: Likewise.
71412         * lib/iconvme.c: Likewise.
71413         * lib/javacomp.c: Likewise.
71414         * lib/mempcpy.c: Likewise.
71415         * lib/memrchr.c: Likewise.
71416         * lib/regex_internal.h: Likewise.
71417         * lib/stpncpy.c: Likewise.
71418         * lib/strcasecmp.c: Likewise.
71419         * lib/strchrnul.c: Likewise.
71420         * lib/strdup.c: Likewise.
71421         * lib/striconv.c: Likewise.
71422         * lib/striconveh.c: Likewise.
71423         * lib/striconveha.c: Likewise.
71424         * lib/strncasecmp.c: Likewise.
71425         * lib/strndup.c: Likewise.
71426         * lib/strnlen.c: Likewise.
71427         * lib/strsep.c: Likewise.
71428         * lib/strstr.c: Likewise.
71429         * lib/strtok_r.c: Likewise.
71430         * lib/userspec.c: Likewise.
71431         * lib/w32spawn.h: Likewise.
71432         * lib/xstrndup.c: Likewise.
71433         * lib/mountlist.c (strstr): Remove decl.
71434         * m4/string_h.m4: New file.
71435         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
71436         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
71437         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
71438         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
71439         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
71440         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
71441         Set REPLACE_STRCASECMP if necessary.
71442         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
71443         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
71444         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
71445         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
71446         HAVE_DECL_STRDUP if necessary.
71447         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
71448         since gl_FUNC_STRNDUP does that now.
71449         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
71450         Check for decl here...
71451         (gl_PREREQ_STRNLEN): ... not here.
71452         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
71453         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
71454         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
71455         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
71456         necessary.
71457         * modules/string: New file.
71458         * modules/memmem (Files): Remove special-purpose include file.
71459         (Depends-on): Add string.
71460         (Include): Include <string.h>, not the removed file.
71461         * modules/mempcpy: Likewise.
71462         * modules/memrchr: Likewise.
71463         * modules/stpcpy: Likewise.
71464         * modules/stpncpy: Likewise.
71465         * modules/strcase: Likewise.
71466         * modules/strchrnul: Likewise.
71467         * modules/strdup: Likewise.
71468         * modules/strndup: Likewise.
71469         * modules/strnlen: Likewise.
71470         * modules/strpbrk: Likewise.
71471         * modules/strsep: Likewise.
71472         * modules/strstr: Likewise.
71473         * modules/strtok_r: Likewise.
71474         * tests/test-dirname.c: Don't include "strdup.h", since
71475         <string.h> now suffices.
71476         * tests/test-memmem.c: Don't include "memmem.h", since
71477         <string.h> now suffices.
71478
71479 2007-01-25  Bruno Haible  <bruno@clisp.org>
71480
71481         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
71482         *resultp is 0.
71483
71484         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
71485         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
71486         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
71487         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
71488
71489         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
71490         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
71491         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
71492         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
71493         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
71494         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
71495
71496 2007-01-24  Bruno Haible  <bruno@clisp.org>
71497
71498         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
71499         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
71500         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
71501         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
71502         gl_FUNC_FTS_CORE.
71503         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
71504         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
71505         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71506         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
71507         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
71508         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
71509         gl_FUNC_FCHOWNAT.
71510         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
71511         gl_FUNC_STRFTIME.
71512         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
71513         Reported by Ralf Wildenhues.
71514
71515 2007-01-24  Bruno Haible  <bruno@clisp.org>
71516
71517         Drop AC_REQUIRE calls that are redundant with the module dependencies.
71518         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
71519         gl_GETADDRINFO.
71520         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
71521         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
71522         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
71523
71524 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
71525
71526         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
71527         Don't use 'exit'; just return from 'main'.
71528         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
71529
71530         * lib/fnmatch_.h: Readjust white space and comments to match
71531         glibc, to avoid spurious diffs.
71532
71533 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71534
71535         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
71536         2004-12-01 change by Jakub Jelinek, since this code won't compile
71537         if !LIBC.  Problem reported by Bob Proulx.
71538
71539 2007-01-23  Bruno Haible  <bruno@clisp.org>
71540
71541         * lib/striconveh.c: Include c-strcaseeq.h.
71542         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
71543         * modules/striconveh (Depends-on): Add c-strcaseeq.
71544
71545 2007-01-23  Bruno Haible  <bruno@clisp.org>
71546
71547         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
71548
71549         * modules/c-strcaseeq: New file.
71550         * lib/c-strcaseeq.h: New file.
71551
71552         * modules/streq: New file.
71553         * lib/streq.h: New file.
71554
71555 2007-01-23  Bruno Haible  <bruno@clisp.org>
71556
71557         * modules/striconveha-tests: New file.
71558         * tests/test-striconveha.c: New file.
71559
71560         * lib/striconveha.h: Include <stdbool.h>.
71561         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
71562         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
71563         (mem_iconveha_notranslit): Renamed from mem_iconveha.
71564         (mem_iconveha): New function.
71565         (str_iconveha_notranslit): Renamed from str_iconveha.
71566         (str_iconveha): New function.
71567         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
71568         c-strcase.
71569
71570 2007-01-23  Bruno Haible  <bruno@clisp.org>
71571
71572         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
71573         encodings without forgiving before trying any encoding with handler.
71574         (str_iconveha): Try all encodings without forgiving before trying any
71575         encoding with handler.
71576
71577 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71578
71579         Import the following changes from libc.
71580
71581         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71582
71583         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
71584
71585         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
71586
71587         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
71588         normal_bracket label.
71589
71590         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
71591
71592         [BZ #361]
71593         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
71594         to normal_bracket after fetching the next character.
71595
71596 2007-01-22  Bruno Haible  <bruno@clisp.org>
71597
71598         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
71599         argument.
71600         * lib/striconveh.c (iconv_carefully_1): New function.
71601         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
71602         argument.
71603         (str_cd_iconveh): Update.
71604         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
71605         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
71606         * tests/test-striconveh.c (MAGIC): New macro.
71607         (new_offsets): New function.
71608         (main): Test call with and without offsets.
71609
71610 2007-01-22  Bruno Haible  <bruno@clisp.org>
71611
71612         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
71613         * modules/sys_select (Makefile.am): Likewise.
71614         * modules/sys_socket (Makefile.am): Likewise.
71615         * modules/sys_time (Makefile.am): Likewise.
71616
71617 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
71618
71619         * modules/gettimeofday (License): Change from GPL to LGPL, since
71620         gettimeofday is a library function.
71621
71622 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71623
71624         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
71625
71626 2007-01-21  Bruno Haible  <bruno@clisp.org>
71627
71628         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
71629
71630 2007-01-21  Bruno Haible  <bruno@clisp.org>
71631
71632         * modules/striconveha: New file.
71633         * lib/striconveha.h: New file.
71634         * lib/striconveha.c: New file.
71635         * MODULES.html.sh (Internationalization functions): Add striconveha.
71636         * lib/striconv.c (str_iconv): Optimize the case of an empty input
71637         string.
71638         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
71639
71640 2007-01-21  Bruno Haible  <bruno@clisp.org>
71641
71642         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
71643         * lib/striconveh.c (str_iconveh): Likewise.
71644
71645 2007-01-21  Bruno Haible  <bruno@clisp.org>
71646
71647         * lib/striconveh.h (mem_iconveh): New declaration.
71648         * lib/striconveh.c (mem_iconveh): New function.
71649         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
71650
71651 2007-01-21  Bruno Haible  <bruno@clisp.org>
71652
71653         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
71654
71655         * lib/striconveh.h (mem_cd_iconveh): Change specification.
71656         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
71657         original result buffer.
71658         (str_cd_iconveh): Update.
71659         * tests/test-striconveh.c (main): Update.
71660
71661         * lib/striconv.h (mem_cd_iconv): Change specification.
71662         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
71663         result buffer.
71664         (str_cd_iconv): Update.
71665         * tests/test-striconv.c (main): Update.
71666
71667 2007-01-21  Bruno Haible  <bruno@clisp.org>
71668
71669         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
71670
71671 2007-01-20  Jim Meyering  <jim@meyering.net>
71672
71673         * lib/userspec.c (parse_with_separator): If a user or group string
71674         starts with "+", skip the corresponding name-to-ID look-up, since
71675         such a look-up must fail: user and group names may not include "+".
71676
71677 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
71678
71679         * lib/poll.c: Include sys/time.h and time.h unconditionally,
71680         since we now assume the sys_time module.
71681         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
71682         check for sys/time.h; no longer needed.
71683         * modules/poll (Depends-on): Depend on sys_time.
71684
71685 2007-01-18  Bruno Haible  <bruno@clisp.org>
71686
71687         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
71688         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71689
71690         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
71691         gettimeofday.
71692
71693         * tests/test-gettimeofday.c: Include <time.h>.
71694         (dummy): Remove variable.
71695
71696         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
71697         gl_HEADER_SYS_TIME_H.
71698         (gl_HEADER_SYS_TIME_H): New macro.
71699
71700         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
71701         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71702         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
71703         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
71704         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71705         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
71706         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
71707         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71708         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
71709         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
71710         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71711
71712         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
71713         last change; it caused a compilation error when cross-compiling to
71714         Cygwin.
71715
71716 2007-01-18  Jim Meyering  <jim@meyering.net>
71717
71718         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
71719         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
71720         than the race-prone "test -d sys || mkdir sys".
71721         (configure.ac): Use AC_PROG_MKDIR_P.
71722         * modules/sys_select: Likewise.
71723         * modules/sys_socket: Likewise.
71724         * modules/sys_time: Likewise.
71725
71726 2007-01-18  Eric Blake  <ebb9@byu.net>
71727
71728         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
71729         replace gettimeofday.
71730         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
71731         name, to avoid infinite recursion.
71732
71733 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
71734
71735         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
71736         module sys_time.
71737         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
71738         assume timespec.h defines struct timeval.
71739         * lib/settime.c: Likewise.
71740         * lib/utimens.c: Likewise.
71741         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
71742         since we now assume the gettimeofday module.
71743         * lib/tempname.c (__gen_tempname): Likewise.
71744         * lib/gettimeofday.h: Remove.
71745         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
71746         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
71747         Include <time.h>, for 'time()'.
71748         (localtime_buffer_addr): Also use this workaround if
71749         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
71750         to simplify the uses.  All uses changed.
71751         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
71752         that #undef is inside {}, and 'const' follows type name consistently.
71753         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
71754         (gettimeofday): Do not use the maximum possible value for
71755         tv->tv_usec, since that might break usages other than ls.c.
71756         Instead, we'll leave ls.c alone.  This undoes today's patch
71757         by Bruno.  Add a compile-time warning for 1s-clock resolution;
71758         we've never observed the problem but might as well keep the
71759         canary.
71760         * lib/nanosleep.c: Include timespec.h first, for interface check.
71761         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
71762         now assume the sys_time module.
71763         * lib/tempname.c: Likewise.
71764         * lib/timespec.h: Likewise.
71765         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
71766         needed.
71767         * lib/strftime.c: Likewise.
71768         * lib/timespec.h: Likewise.
71769         * lib/posixtm.c: Include posixtm.h first, for interface check.
71770         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
71771         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
71772         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
71773         * lib/sys_time_.h: New file.
71774         * lib/timespec.h (struct timespec): Use long int, not long.
71775         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
71776         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
71777         Remove obsolescent call to AC_HEADER_TIME.
71778         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
71779         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71780         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71781         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
71782         Likewise.
71783         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
71784         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
71785         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
71786         into the sys_time module.  Check for gettimeofday just once.
71787         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
71788         for gettimeofday signature to just check the signature.  Merely
71789         compile it, since linking doesn't test signature.  Improve test for
71790         whether gettimeofday.o is actually needed.
71791         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
71792         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
71793         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
71794         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71795         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
71796         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
71797         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
71798         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
71799         than worrying about sys/time.h.
71800         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71801         Don't bother worrying about TIME_WITH_SYS_TIME.
71802         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
71803         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
71804         * m4/sys_time_h.m4: New file.
71805         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
71806         Don't include sys/time.h.  Return from main rather than exiting.
71807         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
71808         all uses changed.
71809         * modules/gethrxtime (Depends-on): Add sys_time.
71810         * modules/gettime (Depends-on): Likewise.
71811         * modules/gettimeofday (Depends-on): Likewise.
71812         * modules/nanosleep (Depends-on): Likewise.
71813         * modules/settime (Depends-on): Likewise.
71814         * modules/tempname (Depends-on): Likewise.
71815         * modules/utimens (Depends-on): Likewise.
71816         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
71817         (Include): Change back to <sys/time.h>.
71818         (Maintainer): Add self.
71819         * modules/sys_time: New file.
71820         * modules/tempname (Depends-on): Add gettimeofday.
71821         * tests/test-gettimeofday.c: Include <sys/time.h>
71822         rather than gettimeofday.h.
71823
71824 2007-01-17  Bruno Haible  <bruno@clisp.org>
71825
71826         * gnulib-tool (func_get_license): Revert last patch. Instead, let
71827         the license default to GPL.
71828         (func_create_testdir): Don't complain if a module is LGPL and its
71829         tests module depends on GPLed modules.
71830
71831 2007-01-17  Bruno Haible  <bruno@clisp.org>
71832
71833         * lib/gettimeofday.c (gettimeofday): Add code for the case
71834         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
71835         maximum possible value for tv->tv_usec, rather than the minimum one.
71836
71837 2005-10-08  Martin Lambers  <marlam@marlam.de>
71838 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
71839 2007-01-16  Bruno Haible  <bruno@clisp.org>
71840
71841         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
71842         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
71843         gl_FUNC_GETTIMEOFDAY.
71844         (Include): Add gettimeofday.h.
71845         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
71846         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
71847         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
71848         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
71849         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
71850         * lib/gettimeofday.h: New file.
71851         * lib/gettimeofday.c: Include <sys/timeb.h>.
71852         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
71853         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71854         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
71855         fall back on time().
71856
71857         * tests/test-gettimeofday.c: New file.
71858         * modules/gettimeofday-tests: New file.
71859
71860 2007-01-16  Eric Blake  <ebb9@byu.net>
71861
71862         * modules/fnmatch (Depends-on): Depend on wchar.
71863         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
71864         * m4/fnmatch.m4: Likewise.
71865         * modules/mbchar (Makefile.am): Assume <wchar.h>.
71866         * m4/mbchar.m4: Likewise.
71867         * modules/mbswidth (Depends-on): Depend on wchar.
71868         * lib/mbswidth.c: Assume <wchar.h>.
71869         * m4/mbswidth.m4: Likewise.
71870         * modules/quotearg (Depends-on): Depend on wchar.
71871         * lib/quotearg.c: Assume <wchar.h>.
71872         * m4/quotearg.m4: Likewise.
71873         * modules/regex (Depends-on): Depend on wchar.
71874         * lib/regex_internal.h: Assume <wchar.h>.
71875         * m4/regex.m4: Likewise.
71876         * modules/stdint (Depends-on): Depend on wchar.
71877         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
71878         * m4/stdint.m4: Likewise.
71879         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
71880         * modules/strftime (Depends-on): Depend on wchar.
71881         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
71882         * modules/strtol (Depends-on): Depend on wchar.
71883         * lib/strtol.c: Assume <wchar.h>.
71884         * modules/wcwidth (Depends-on): Depend on wchar.
71885         * lib/wcwidth.h: Assume <wchar.h>.
71886         * m4/wcwidth.m4: Likewise.
71887
71888 2007-01-16  Bruno Haible  <bruno@clisp.org>
71889
71890         * modules/csharpexec-script: New, created from...
71891         * modules/csharpexec: ... this.
71892
71893 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
71894
71895         * modules/javaexec-script: New, created from...
71896         * modules/javaexec: ... this.
71897
71898 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71899
71900         * modules/poll (Dependencies): Add sys_select.
71901
71902 2007-01-15  Jim Meyering  <jim@meyering.net>
71903
71904         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
71905         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
71906         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
71907         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
71908
71909 2007-01-15  Bruno Haible  <bruno@clisp.org>
71910
71911         * modules/striconveh: New file.
71912         * lib/striconveh.h: New file.
71913         * lib/striconveh.c: New file.
71914         * MODULES.html.sh (Internationalization functions): Add striconveh.
71915
71916         * modules/striconveh-tests: New file.
71917         * tests/test-striconveh.c: New file.
71918
71919 2007-01-15  Bruno Haible  <bruno@clisp.org>
71920
71921         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
71922         not from GNU libiconv or GNU libc.
71923
71924 2007-01-15  Bruno Haible  <bruno@clisp.org>
71925
71926         * doc/gnulib-intro.texi (Copyright): Explain the different license
71927         terms for module descriptions, autoconf macros, tests, documentation.
71928
71929 2007-01-14  Bruno Haible  <bruno@clisp.org>
71930
71931         * modules/striconv-tests: New file.
71932         * tests/test-striconv.c: New file.
71933
71934 2007-01-14  Bruno Haible  <bruno@clisp.org>
71935
71936         * modules/iconv-tests: New file.
71937         * tests/test-iconv.c: New file.
71938
71939 2007-01-14  Bruno Haible  <bruno@clisp.org>
71940
71941         * gnulib-tool (func_get_license): For test modules, use the license of
71942         the main module.
71943
71944 2007-01-14  Bruno Haible  <bruno@clisp.org>
71945
71946         * modules/iconv (Include): Clarify that <iconv.h> can only be included
71947         if iconv is found to exist.
71948
71949 2007-01-14  Bruno Haible  <bruno@clisp.org>
71950
71951         * modules/c-ctype-tests: New file.
71952         * tests/test-c-ctype.c: New file.
71953
71954 2007-01-14  Bruno Haible  <bruno@clisp.org>
71955
71956         * modules/binary-io-tests: New file.
71957         * tests/test-binary-io.sh: New file.
71958         * tests/test-binary-io.c: New file.
71959
71960 2007-01-14  Bruno Haible  <bruno@clisp.org>
71961
71962         * modules/array-oset-tests: New file.
71963         * tests/test-array_oset.c: New file.
71964
71965 2007-01-14  Bruno Haible  <bruno@clisp.org>
71966
71967         * modules/array-list-tests: New file.
71968         * tests/test-array_list.c: New file.
71969
71970 2007-01-14  Bruno Haible  <bruno@clisp.org>
71971
71972         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
71973         and make.
71974         Reported by Simon Josefsson in
71975         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
71976
71977 2007-01-14  Bruno Haible  <bruno@clisp.org>
71978
71979         * modules/allocsa-tests: New file.
71980         * tests/test-allocsa.c: New file.
71981
71982 2007-01-14  Bruno Haible  <bruno@clisp.org>
71983
71984         * modules/fchdir (Depends-on): Add absolute-header.
71985         * modules/unistd (Depends-on): Likewise.
71986
71987 2006-12-30  Bruno Haible  <bruno@clisp.org>
71988
71989         * modules/fchdir: New file.
71990         * modules/unistd (Files): Add lib/unistd_.h.
71991         (Makefile.am): Generate unistd.h from unistd_.h.
71992         * lib/fchdir.c: New file.
71993         * lib/dirent_.h: New file.
71994         * lib/unistd_.h: New file.
71995         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
71996         * m4/fchdir.m4: New file.
71997         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
71998         (gl_HEADER_UNISTD): Invoke it.
71999         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
72000         function.
72001         * lib/backupfile.c (opendir, closedir): Undefine.
72002         * lib/chown.c (open, close): Undefine.
72003         * lib/clean-temp.c (open, close): Undefine.
72004         * lib/copy-file.c (open, close): Undefine.
72005         * lib/execute.c (open, close): Undefine.
72006         * lib/fsusage.c (open, close): Undefine.
72007         * lib/gc-gnulib.c (open, close): Undefine.
72008         * lib/getcwd.c (opendir, closedir): Undefine.
72009         * lib/glob.c (opendir, closedir): Undefine.
72010         * lib/javacomp.c (open, close): Undefine.
72011         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
72012         * lib/openat-proc.c (open, close): Undefine.
72013         * lib/pagealign_alloc.c (open, close): Undefine.
72014         * lib/pipe.c (open, close): Undefine.
72015         * lib/progreloc.c (open, close): Undefine.
72016         * lib/savedir.c (opendir, closedir): Undefine.
72017         * lib/utime.c (open, close): Undefine.
72018         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
72019
72020 2007-01-10  Bruno Haible  <bruno@clisp.org>
72021
72022         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
72023
72024 2007-01-12  Eric Blake  <ebb9@byu.net>
72025
72026         Provide a robust <wchar.h>.  Further simplifications are now
72027         possible in other modules, but not included here.
72028         * modules/wchar: New module.
72029         * m4/wchar.m4: New file.
72030         * lib/wchar_.h: Likewise.
72031         * modules/mbchar (Depends-on): Depend on wchar, as the first use
72032         of the new module.
72033         * MODULES.html.sh (Extended multibyte and wide character utilities):
72034         New section.
72035
72036 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
72037
72038         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
72039         to a reasonable default for memory allocation.
72040         (xreadlink): Don't allocate a huge buffer, to work around a buggy
72041         file system that reports garbage st_size values for symlinks.
72042         Problem reported by Liyang Hu.
72043
72044 2007-01-11  Simon Josefsson  <simon@josefsson.org>
72045
72046         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
72047         Emacs .#* auto-save files).
72048
72049 2007-01-11  Bruno Haible  <bruno@clisp.org>
72050
72051         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
72052         directory.
72053
72054 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72055
72056         Use @...@ consistently in lib/wctype_.h.
72057         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
72058         on it being set to 1 or 0.
72059         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
72060         go back to AC_SUBSTing it.
72061         * modules/wctype (Makefile.am): Undo previous change.
72062
72063 2007-01-10  Eric Blake  <ebb9@byu.net>
72064
72065         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
72066         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
72067         * modules/wctype (Makefile.am): Likewise.
72068         Reported by Chris McGuire.
72069
72070 2007-01-10  Jim Meyering  <jim@meyering.net>
72071
72072         fts.c: a small readability/maintainability improvement
72073         * lib/fts.c (fts_read): Make this code slightly more readable and
72074         maintainable by hoisting the "sp->fts_cur = p" assignments to
72075         immediately follow the statements that set P.  Derived from
72076         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
72077
72078 2007-01-10  Eric Blake  <ebb9@byu.net>
72079
72080         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
72081         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
72082         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
72083         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
72084         Reported by Chris McGuire.
72085
72086 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72087
72088         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
72089         in sed script.
72090
72091 2007-01-09  Bruno Haible  <bruno@clisp.org>
72092
72093         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
72094         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
72095         variables.
72096         (func_module): Use them.
72097
72098 2007-01-09  Bruno Haible  <bruno@clisp.org>
72099
72100         * modules/unistr/base: New file.
72101         * lib/unistr.h: New file.
72102
72103         * modules/unistr/u8-to-u16: New file.
72104         * lib/unistr/u8-to-u16.c: New file.
72105
72106         * modules/unistr/u8-to-u32: New file.
72107         * lib/unistr/u8-to-u32.c: New file.
72108
72109         * modules/unistr/u16-to-u8: New file.
72110         * lib/unistr/u16-to-u8.c: New file.
72111
72112         * modules/unistr/u16-to-u32: New file.
72113         * lib/unistr/u16-to-u32.c: New file.
72114
72115         * modules/unistr/u32-to-u8: New file.
72116         * lib/unistr/u32-to-u8.c: New file.
72117
72118         * modules/unistr/u32-to-u16: New file.
72119         * lib/unistr/u32-to-u16.c: New file.
72120
72121         * modules/unistr/u8-check: New file.
72122         * modules/unistr/u16-check: New file.
72123         * modules/unistr/u32-check: New file.
72124         * lib/unistr/u8-check.c: New file.
72125         * lib/unistr/u16-check.c: New file.
72126         * lib/unistr/u32-check.c: New file.
72127
72128         * modules/unistr/u8-chr: New file.
72129         * modules/unistr/u16-chr: New file.
72130         * modules/unistr/u32-chr: New file.
72131         * lib/unistr/u8-chr.c: New file.
72132         * lib/unistr/u16-chr.c: New file.
72133         * lib/unistr/u32-chr.c: New file.
72134
72135         * modules/unistr/u8-cmp: New file.
72136         * modules/unistr/u16-cmp: New file.
72137         * modules/unistr/u32-cmp: New file.
72138         * lib/unistr/u8-cmp.c: New file.
72139         * lib/unistr/u16-cmp.c: New file.
72140         * lib/unistr/u32-cmp.c: New file.
72141
72142         * modules/unistr/u8-cpy: New file.
72143         * modules/unistr/u16-cpy: New file.
72144         * modules/unistr/u32-cpy: New file.
72145         * lib/unistr/u8-cpy.c: New file.
72146         * lib/unistr/u16-cpy.c: New file.
72147         * lib/unistr/u32-cpy.c: New file.
72148         * lib/unistr/u-cpy.h: New file.
72149
72150         * modules/unistr/u8-cpy-alloc: New file.
72151         * modules/unistr/u16-cpy-alloc: New file.
72152         * modules/unistr/u32-cpy-alloc: New file.
72153         * lib/unistr/u8-cpy-alloc.c: New file.
72154         * lib/unistr/u16-cpy-alloc.c: New file.
72155         * lib/unistr/u32-cpy-alloc.c: New file.
72156         * lib/unistr/u-cpy-alloc.h: New file.
72157
72158         * modules/unistr/u8-endswith: New file.
72159         * modules/unistr/u16-endswith: New file.
72160         * modules/unistr/u32-endswith: New file.
72161         * lib/unistr/u8-endswith.c: New file.
72162         * lib/unistr/u16-endswith.c: New file.
72163         * lib/unistr/u32-endswith.c: New file.
72164         * lib/unistr/u-endswith.h: New file.
72165
72166         * modules/unistr/u8-mblen: New file.
72167         * modules/unistr/u16-mblen: New file.
72168         * modules/unistr/u32-mblen: New file.
72169         * lib/unistr/u8-mblen.c: New file.
72170         * lib/unistr/u16-mblen.c: New file.
72171         * lib/unistr/u32-mblen.c: New file.
72172
72173         * modules/unistr/u8-mbtouc: New file.
72174         * modules/unistr/u16-mbtouc: New file.
72175         * modules/unistr/u32-mbtouc: New file.
72176         * lib/unistr/u8-mbtouc.c: New file.
72177         * lib/unistr/u16-mbtouc.c: New file.
72178         * lib/unistr/u32-mbtouc.c: New file.
72179
72180         * modules/unistr/u8-mbtouc-safe: New file.
72181         * modules/unistr/u16-mbtouc-safe: New file.
72182         * modules/unistr/u32-mbtouc-safe: New file.
72183         * lib/unistr/u8-mbtouc-safe.c: New file.
72184         * lib/unistr/u16-mbtouc-safe.c: New file.
72185         * lib/unistr/u32-mbtouc-safe.c: New file.
72186
72187         * modules/unistr/u8-move: New file.
72188         * modules/unistr/u16-move: New file.
72189         * modules/unistr/u32-move: New file.
72190         * lib/unistr/u8-move.c: New file.
72191         * lib/unistr/u16-move.c: New file.
72192         * lib/unistr/u32-move.c: New file.
72193         * lib/unistr/u-move.h: New file.
72194
72195         * modules/unistr/u8-next: New file.
72196         * modules/unistr/u16-next: New file.
72197         * modules/unistr/u32-next: New file.
72198         * lib/unistr/u8-next.c: New file.
72199         * lib/unistr/u16-next.c: New file.
72200         * lib/unistr/u32-next.c: New file.
72201
72202         * modules/unistr/u8-prev: New file.
72203         * modules/unistr/u16-prev: New file.
72204         * modules/unistr/u32-prev: New file.
72205         * lib/unistr/u8-prev.c: New file.
72206         * lib/unistr/u16-prev.c: New file.
72207         * lib/unistr/u32-prev.c: New file.
72208
72209         * modules/unistr/u8-set: New file.
72210         * modules/unistr/u16-set: New file.
72211         * modules/unistr/u32-set: New file.
72212         * lib/unistr/u8-set.c: New file.
72213         * lib/unistr/u16-set.c: New file.
72214         * lib/unistr/u32-set.c: New file.
72215         * lib/unistr/u-set.h: New file.
72216
72217         * modules/unistr/u8-startswith: New file.
72218         * modules/unistr/u16-startswith: New file.
72219         * modules/unistr/u32-startswith: New file.
72220         * lib/unistr/u8-startswith.c: New file.
72221         * lib/unistr/u16-startswith.c: New file.
72222         * lib/unistr/u32-startswith.c: New file.
72223         * lib/unistr/u-startswith.h: New file.
72224
72225         * modules/unistr/u8-stpcpy: New file.
72226         * modules/unistr/u16-stpcpy: New file.
72227         * modules/unistr/u32-stpcpy: New file.
72228         * lib/unistr/u8-stpcpy.c: New file.
72229         * lib/unistr/u16-stpcpy.c: New file.
72230         * lib/unistr/u32-stpcpy.c: New file.
72231         * lib/unistr/u-stpcpy.h: New file.
72232
72233         * modules/unistr/u8-stpncpy: New file.
72234         * modules/unistr/u16-stpncpy: New file.
72235         * modules/unistr/u32-stpncpy: New file.
72236         * lib/unistr/u8-stpncpy.c: New file.
72237         * lib/unistr/u16-stpncpy.c: New file.
72238         * lib/unistr/u32-stpncpy.c: New file.
72239         * lib/unistr/u-stpncpy.h: New file.
72240
72241         * modules/unistr/u8-strcat: New file.
72242         * modules/unistr/u16-strcat: New file.
72243         * modules/unistr/u32-strcat: New file.
72244         * lib/unistr/u8-strcat.c: New file.
72245         * lib/unistr/u16-strcat.c: New file.
72246         * lib/unistr/u32-strcat.c: New file.
72247         * lib/unistr/u-strcat.h: New file.
72248
72249         * modules/unistr/u8-strchr: New file.
72250         * modules/unistr/u16-strchr: New file.
72251         * modules/unistr/u32-strchr: New file.
72252         * lib/unistr/u8-strchr.c: New file.
72253         * lib/unistr/u16-strchr.c: New file.
72254         * lib/unistr/u32-strchr.c: New file.
72255
72256         * modules/unistr/u8-strcmp: New file.
72257         * modules/unistr/u16-strcmp: New file.
72258         * modules/unistr/u32-strcmp: New file.
72259         * lib/unistr/u8-strcmp.c: New file.
72260         * lib/unistr/u16-strcmp.c: New file.
72261         * lib/unistr/u32-strcmp.c: New file.
72262
72263         * modules/unistr/u8-strcpy: New file.
72264         * modules/unistr/u16-strcpy: New file.
72265         * modules/unistr/u32-strcpy: New file.
72266         * lib/unistr/u8-strcpy.c: New file.
72267         * lib/unistr/u16-strcpy.c: New file.
72268         * lib/unistr/u32-strcpy.c: New file.
72269         * lib/unistr/u-strcpy.h: New file.
72270
72271         * modules/unistr/u8-strcspn: New file.
72272         * modules/unistr/u16-strcspn: New file.
72273         * modules/unistr/u32-strcspn: New file.
72274         * lib/unistr/u8-strcspn.c: New file.
72275         * lib/unistr/u16-strcspn.c: New file.
72276         * lib/unistr/u32-strcspn.c: New file.
72277         * lib/unistr/u-strcspn.h: New file.
72278
72279         * modules/unistr/u8-strdup: New file.
72280         * modules/unistr/u16-strdup: New file.
72281         * modules/unistr/u32-strdup: New file.
72282         * lib/unistr/u8-strdup.c: New file.
72283         * lib/unistr/u16-strdup.c: New file.
72284         * lib/unistr/u32-strdup.c: New file.
72285         * lib/unistr/u-strdup.h: New file.
72286
72287         * modules/unistr/u8-strlen: New file.
72288         * modules/unistr/u16-strlen: New file.
72289         * modules/unistr/u32-strlen: New file.
72290         * lib/unistr/u8-strlen.c: New file.
72291         * lib/unistr/u16-strlen.c: New file.
72292         * lib/unistr/u32-strlen.c: New file.
72293         * lib/unistr/u-strlen.h: New file.
72294
72295         * modules/unistr/u8-strmblen: New file.
72296         * modules/unistr/u16-strmblen: New file.
72297         * modules/unistr/u32-strmblen: New file.
72298         * lib/unistr/u8-strmblen.c: New file.
72299         * lib/unistr/u16-strmblen.c: New file.
72300         * lib/unistr/u32-strmblen.c: New file.
72301
72302         * modules/unistr/u8-strmbtouc: New file.
72303         * modules/unistr/u16-strmbtouc: New file.
72304         * modules/unistr/u32-strmbtouc: New file.
72305         * lib/unistr/u8-strmbtouc.c: New file.
72306         * lib/unistr/u16-strmbtouc.c: New file.
72307         * lib/unistr/u32-strmbtouc.c: New file.
72308
72309         * modules/unistr/u8-strncat: New file.
72310         * modules/unistr/u16-strncat: New file.
72311         * modules/unistr/u32-strncat: New file.
72312         * lib/unistr/u8-strncat.c: New file.
72313         * lib/unistr/u16-strncat.c: New file.
72314         * lib/unistr/u32-strncat.c: New file.
72315         * lib/unistr/u-strncat.h: New file.
72316
72317         * modules/unistr/u8-strncmp: New file.
72318         * modules/unistr/u16-strncmp: New file.
72319         * modules/unistr/u32-strncmp: New file.
72320         * lib/unistr/u8-strncmp.c: New file.
72321         * lib/unistr/u16-strncmp.c: New file.
72322         * lib/unistr/u32-strncmp.c: New file.
72323
72324         * modules/unistr/u8-strncpy: New file.
72325         * modules/unistr/u16-strncpy: New file.
72326         * modules/unistr/u32-strncpy: New file.
72327         * lib/unistr/u8-strncpy.c: New file.
72328         * lib/unistr/u16-strncpy.c: New file.
72329         * lib/unistr/u32-strncpy.c: New file.
72330         * lib/unistr/u-strncpy.h: New file.
72331
72332         * modules/unistr/u8-strnlen: New file.
72333         * modules/unistr/u16-strnlen: New file.
72334         * modules/unistr/u32-strnlen: New file.
72335         * lib/unistr/u8-strnlen.c: New file.
72336         * lib/unistr/u16-strnlen.c: New file.
72337         * lib/unistr/u32-strnlen.c: New file.
72338         * lib/unistr/u-strnlen.h: New file.
72339
72340         * modules/unistr/u8-strpbrk: New file.
72341         * modules/unistr/u16-strpbrk: New file.
72342         * modules/unistr/u32-strpbrk: New file.
72343         * lib/unistr/u8-strpbrk.c: New file.
72344         * lib/unistr/u16-strpbrk.c: New file.
72345         * lib/unistr/u32-strpbrk.c: New file.
72346         * lib/unistr/u-strpbrk.h: New file.
72347
72348         * modules/unistr/u8-strrchr: New file.
72349         * modules/unistr/u16-strrchr: New file.
72350         * modules/unistr/u32-strrchr: New file.
72351         * lib/unistr/u8-strrchr.c: New file.
72352         * lib/unistr/u16-strrchr.c: New file.
72353         * lib/unistr/u32-strrchr.c: New file.
72354
72355         * modules/unistr/u8-strspn: New file.
72356         * modules/unistr/u16-strspn: New file.
72357         * modules/unistr/u32-strspn: New file.
72358         * lib/unistr/u8-strspn.c: New file.
72359         * lib/unistr/u16-strspn.c: New file.
72360         * lib/unistr/u32-strspn.c: New file.
72361         * lib/unistr/u-strspn.h: New file.
72362
72363         * modules/unistr/u8-strstr: New file.
72364         * modules/unistr/u16-strstr: New file.
72365         * modules/unistr/u32-strstr: New file.
72366         * lib/unistr/u8-strstr.c: New file.
72367         * lib/unistr/u16-strstr.c: New file.
72368         * lib/unistr/u32-strstr.c: New file.
72369         * lib/unistr/u-strstr.h: New file.
72370
72371         * modules/unistr/u8-strtok: New file.
72372         * modules/unistr/u16-strtok: New file.
72373         * modules/unistr/u32-strtok: New file.
72374         * lib/unistr/u8-strtok.c: New file.
72375         * lib/unistr/u16-strtok.c: New file.
72376         * lib/unistr/u32-strtok.c: New file.
72377         * lib/unistr/u-strtok.h: New file.
72378
72379         * modules/unistr/u8-uctomb: New file.
72380         * modules/unistr/u16-uctomb: New file.
72381         * modules/unistr/u32-uctomb: New file.
72382         * lib/unistr/u8-uctomb.c: New file.
72383         * lib/unistr/u16-uctomb.c: New file.
72384         * lib/unistr/u32-uctomb.c: New file.
72385
72386         * MODULES.html.sh (Unicode string functions): Add the new modules.
72387
72388 2007-01-08  Bruno Haible  <bruno@clisp.org>
72389
72390         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
72391         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
72392         subdirectories.
72393
72394 2007-01-08  Karl Berry  <karl@gnu.org>
72395
72396         * doc/error.texi: mention that main() fns must set program_name
72397         when progname is used.
72398
72399 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
72400
72401         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
72402         WCTYPE_H is empty, for the benefit of builds from non-distclean
72403         directories.  Problem reported by Eric Blake in
72404         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
72405
72406 2007-01-08  Bruno Haible  <bruno@clisp.org>
72407
72408         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
72409         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
72410         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
72411         PROVIDE_CANONICALIZE_FILENAME_MODE.
72412         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
72413
72414 2007-01-08  Bruno Haible  <bruno@clisp.org>
72415
72416         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
72417         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
72418         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
72419         * lib/fts.c: Likewise.
72420         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
72421
72422 2006-12-25  Bruno Haible  <bruno@clisp.org>
72423
72424         * modules/utf8-ucs4-safe: New file.
72425         * lib/utf8-ucs4-safe.h: New file.
72426         * lib/unistr/utf8-ucs4-safe.c: New file.
72427
72428         * modules/utf16-ucs4-safe: New file.
72429         * lib/utf16-ucs4-safe.h: New file.
72430         * lib/unistr/utf16-ucs4-safe.c: New file.
72431
72432         * MODULES.html.sh (Unicode string functions): Add the new modules.
72433
72434 2007-01-08  Bruno Haible  <bruno@clisp.org>
72435
72436         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
72437         (Depends-on): Add unitypes.
72438         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
72439         (u8_mbtouc_aux): Move out to separate file.
72440         (u8_mbtouc): Use ucs4_t, uint8_t types.
72441         * lib/unistr/utf8-ucs4.c: New file.
72442
72443         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
72444         (Depends-on): Add unitypes.
72445         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
72446         (u16_mbtouc_aux): Move out to separate file.
72447         (u16_mbtouc): Use ucs4_t, uint16_t types.
72448         * lib/unistr/utf16-ucs4.c: New file.
72449
72450         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
72451         (Depends-on): Add unitypes.
72452         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
72453         (u8_uctomb_aux): Move out to separate file.
72454         (u8_uctomb): Use ucs4_t, uint8_t types.
72455         * lib/unistr/ucs4-utf8.c: New file.
72456
72457         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
72458         (Depends-on): Add unitypes.
72459         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
72460         (u16_uctomb_aux): Move out to separate file.
72461         (u16_uctomb): Use ucs4_t, uint16_t types.
72462         * lib/unistr/ucs4-utf16.c: New file.
72463
72464 2006-12-25  Bruno Haible  <bruno@clisp.org>
72465
72466         * modules/unitypes: New file.
72467         * lib/unitypes.h: New file.
72468         * MODULES.html.sh (func_all_modules): New section "Unicode string
72469         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
72470         this section. Add unitypes.
72471
72472 2007-01-08  Bruno Haible  <bruno@clisp.org>
72473
72474         Avoid variable names that conflict with those from libtool.
72475         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
72476         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
72477         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
72478         library_names_spec to acl_library_names_spec, hardcode_* to
72479         acl_hardcode_*.
72480         Reported by Ralf Wildenhues.
72481
72482 2007-01-08  Bruno Haible  <bruno@clisp.org>
72483
72484         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
72485         definition.
72486         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
72487         definition.
72488         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
72489         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
72490         definition.
72491         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
72492         definition.
72493         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
72494         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
72495         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
72496         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
72497         definition.
72498         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
72499         definition.
72500         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
72501         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
72502         GC_USE_<algorithm>.
72503         * lib/gc-libgcrypt.c: Likewise.
72504         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
72505         * modules/gc-arctwo (configure.ac): Likewise.
72506         * modules/gc-des (configure.ac): Likewise.
72507         * modules/gc-hmac-md5 (configure.ac): Likewise.
72508         * modules/gc-hmac-sha1 (configure.ac): Likewise.
72509         * modules/gc-md2 (configure.ac): Likewise.
72510         * modules/gc-md4 (configure.ac): Likewise.
72511         * modules/gc-md5 (configure.ac): Likewise.
72512         * modules/gc-random (configure.ac): Likewise.
72513         * modules/gc-rijndael (configure.ac): Likewise.
72514         * modules/gc-sha1 (configure.ac): Likewise.
72515
72516 2007-01-08  Bruno Haible  <bruno@clisp.org>
72517
72518         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
72519         macro definition.
72520         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
72521         definition.
72522         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
72523         definition.
72524         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
72525         * modules/fcntl-safer (configure.ac): Likewise.
72526         * modules/fopen-safer (configure.ac): Likewise.
72527         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
72528         GNULIB_FWRITEERROR macro definition.
72529
72530 2007-01-08  Bruno Haible  <bruno@clisp.org>
72531
72532         * m4/gnulib-common.m4: New file.
72533         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
72534         (func_get_filelist): Add m4/gnulib-common.m4.
72535
72536 2007-01-08  Bruno Haible  <bruno@clisp.org>
72537
72538         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
72539         command.
72540
72541 2007-01-08  Jim Meyering  <jim@meyering.net>
72542
72543         Use a more robust test for a "can't happen" condition.
72544         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
72545         narrowed the st_size value.  Presuming the "can't happen" condition
72546         is true, that narrowing could conceivably convert an invalid st_size
72547         value into a valid one.  Instead, use a change based on Matthew
72548         Woehlke's original patch.
72549
72550         Slight readability improvement: use an assert-like macro
72551         in place of literal "abort ()" uses.
72552         * lib/fts.c (fts_assert): Define.
72553         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
72554         Use this macro instead of a bare 'abort'.
72555
72556 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
72557
72558         Don't worry about using IRIX 5.3's wctype.h broken definitions;
72559         simply work around them.
72560         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
72561         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
72562         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
72563         declaring.
72564         Don't bother to define as macros, since the standard doesn't require it.
72565         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
72566         longer worry about IRIX 5.3.
72567         (HAVE_WCTYPE_CTMP_BUG): Remove.
72568
72569 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72570
72571         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
72572         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
72573         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
72574         Problems reported by Georg Schwarz for IRIX 5.3.
72575
72576         * gnulib-tool (autoconf_minversion): Take the maximum version number
72577         found, not the minimum.  Problem reported by James Youngman.
72578
72579 2007-01-03  Karl Berry  <karl@gnu.org>
72580
72581         * doc/error.texi: new file, explaining interaction with progname.
72582         * doc/gnulib.texi: include it.  Update copyright.
72583
72584 2007-01-03  Simon Josefsson  <simon@josefsson.org>
72585
72586         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
72587         AC_CANONICAL_HOST, to improve autobuild outputs.
72588
72589 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
72590             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72591
72592         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
72593         sockets, server sockets, and other file descriptors.  Count errors
72594         to compute the return value.  Reorder the code a bit to be easier
72595         to follow.  Don't set event bits that were not requested (except
72596         POLLERR and POLLHUP).
72597
72598 2007-01-01  Bruno Haible  <bruno@clisp.org>
72599
72600         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
72601
72602 2007-01-03  Jim Meyering  <jim@meyering.net>
72603
72604         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
72605
72606 2007-01-02  Bruno Haible  <bruno@clisp.org>
72607
72608         * modules/settime (Include): Require timespec.h.
72609         * modules/nanosleep (Include): Likewise.
72610
72611 2007-01-01  Bruno Haible  <bruno@clisp.org>
72612
72613         * gnulib-tool (func_emit_copyright_notice): Bump year.
72614         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
72615
72616 2007-01-01  Bruno Haible  <bruno@clisp.org>
72617
72618         Improve support for OpenBSD.
72619         * build-aux/config.rpath (libname_spec): Export.
72620         (library_names_spec): New variable. Export.
72621         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
72622         library_names_spec from the config.rpath output. Locate shared library
72623         through the name pattern in library_names_spec.
72624
72625 2007-01-01  Eric Blake  <ebb9@byu.net>
72626
72627         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
72628
72629 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
72630
72631         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
72632         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
72633         assume the C locale, and avoid an "eval" that could cause trouble.
72634         Problem with SORT reported by Bob Proulx.
72635
72636         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
72637         Define.  Trivial patch from Henning Nielsen Lund, originally
72638         sent to bug-grep@gnu.org today.
72639
72640 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
72641
72642         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
72643         struct stat.  Problem reported by Henning Nielsen Lund.
72644         * lib/acl.c: Include acl.h first, to check interface.  Don't
72645         bother to include sys/types.h and sys/stat.h again.
72646
72647 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72648
72649         Import the following change from libc; problem reported by
72650         Sven Verdoolaege.
72651
72652         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
72653
72654         [BZ #1373]
72655         * lib/argp.h: Remove __NTH for __argp_usage inline function.
72656
72657 2006-12-28  Jim Meyering  <jim@meyering.net>
72658
72659         * build-aux/announce-gen: Do not assume that the package
72660         builds any of tar.gz, tar.bz2, and .xdelta files.
72661         Suggestion from Simon Josefsson.
72662
72663 2006-12-28  Simon Josefsson  <simon@josefsson.org>
72664
72665         * modules/announce-gen: New file.
72666
72667 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
72668
72669         * lib/mbchar.h: Just include <wctype.h>; the wctype module
72670         handles its gotchas now.
72671         * lib/mbswidth.c: Likewise.
72672         * lib/wcwidth.h: Likewise.
72673         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
72674         and iswcntrl; the wctype module does this stuff now.
72675         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72676         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
72677         * modules/mbchar (Depends-on): Add wctype.
72678         * modules/mbswidth (Depends-on): Likewise.
72679         * modules/wcwidth (Depends-on): Likewise.
72680
72681 2006-12-27  Eric Blake  <ebb9@byu.net>
72682
72683         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
72684         module uses more than what <wctype.h> is required to provide.
72685
72686 2006-12-26  Eric Blake  <ebb9@byu.net>
72687
72688         * gnulib-tool (sed_extract_prog): Avoid space-tab.
72689
72690 2006-12-26  Eric Blake  <ebb9@byu.net>
72691
72692         * modules/absolute-header: New module.
72693         * modules/fcntl (Depends-on): Depend on it.
72694         * modules/inttypes (Depends-on): Likewise.
72695         * modules/stdint (Depends-on): Likewise.
72696         * modules/sys_stat (Depends-on): Likewise.
72697         * modules/wctype (Depends-on): Likewise.
72698         * MODULES.html.sh (Support for building libraries and
72699         executables): Document it.
72700
72701 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
72702
72703         * gnulib-tool (SED): Remove, undoing previous change.
72704         The problem was that it broke coreutils on Solaris, because
72705         "sed --posix" leaked into a makefile.
72706         (sed): New alias, if 'alias' and GNU sed.
72707
72708 2006-12-24  Jim Meyering  <jim@meyering.net>
72709
72710         Work around an fchownat bug in glibc-2.4:
72711         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
72712         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
72713         in spite of the -P option.
72714         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
72715         New macros.
72716         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
72717         * modules/openat (Files): Add lib/fchownat.c.
72718         * lib/openat.c (fchownat): Don't define here.  Move to...
72719         * lib/fchownat.c: ...this new file.
72720
72721 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72722
72723         Fix bug reported by Bruno Haible in
72724         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
72725         where quotearg.c didn't compile on Mac OS X 10.2 because it
72726         lacks <wchar.h> and wint_t.
72727         * lib/wctype_.h (__wctype_wint_t): New type.
72728         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
72729         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
72730         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
72731         Arg is now of type __wctype_wint_t, not wint_t.
72732         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
72733         substitute HAVE_WINT_T.
72734         * modules/wctype (Files): Add m4/wint_t.m4.
72735         (wctype.h): Substitute HAVE_WINT_T.
72736
72737 2006-12-23  Bruno Haible  <bruno@clisp.org>
72738
72739         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
72740
72741 2006-12-23  Bruno Haible  <bruno@clisp.org>
72742
72743         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
72744         S_ISLNK.
72745         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
72746         mingw.
72747
72748 2006-12-22  Bruno Haible  <bruno@clisp.org>
72749
72750         * lib/copy-file.c: Include acl.h.
72751         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
72752         Close the file descriptors only after being done with copy_acl.
72753         * modules/copy-file (Depends-on): Add acl.
72754
72755 2006-12-22  Bruno Haible  <bruno@clisp.org>
72756
72757         * gnulib-tool (SED): New variable.
72758         Use $SED instead of sed everywhere.
72759
72760 2006-12-22  Bruno Haible  <bruno@clisp.org>
72761
72762         * modules/no-c++: New file.
72763         * m4/no-c++.m4: New file.
72764         * MODULES.html.sh (Support for building libraries and executables):
72765         Add no-c++.
72766
72767 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
72768
72769         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
72770         Include <limits.h>, and use its INT_MAX to rewrite the
72771         j loop so that it does not overflow 'int'.  Problem reported by
72772         Ralf Wildenhues in
72773         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
72774         Play it safe by shifting left by 1 rather than multiplying by 2,
72775         as GCC is less likely to optimize this away when the value
72776         is signed (when it assumes overflow leads to undefined behavior).
72777         Also, don't assume time_t uses two's complement.
72778
72779 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
72780
72781         * MODULES.html.sh: New module wctype.
72782         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
72783         * lib/fnmatch.c: Don't bother to include <wchar.h> before
72784         <wctype.h>, since the new wctype module should fix this.
72785         * lib/quotearg.c: Include <wctype.h> unconditionally, since
72786         the wctype module should arrange for it.
72787         * lib/regex_internal.h: Likewise.
72788         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
72789         since the wctype module should handle this now.
72790         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
72791         * modules/fnmatch (Depends-on): Add wctype.
72792         * modules/quotearg (Depends-on): Likewise.
72793         * modules/regex (Depends-on): Likewise.
72794
72795 2006-12-19  Bruno Haible  <bruno@clisp.org>
72796
72797         * lib/strdup.h [C++]: Wrap definitions in extern "C".
72798         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
72799
72800 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72801
72802         * modules/savewd (Depends-on): Fix dependency on fcntl.
72803
72804 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72805
72806         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
72807         conforms to C99, rather than relying on the user's environment
72808         setting of STDINT_H.
72809
72810 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72811         and Eric Blake  <ebb9@byu.net>
72812
72813         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
72814         This is more consistent with the other defines here.
72815         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
72816         Port to z/OS.  Problem reported by Paul Gilmartin.
72817         Change local vars to use gl_ prefix rather than ac_.
72818         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
72819         with other defines.
72820         * modules/double-slash-root: New module.
72821         * modules/dirname (Files): Remove m4/double-slash-root.m4.
72822         (Depends-on): Add double-slash-root.
72823         * MODULES.html.sh (File system functions): Mention new module.
72824
72825 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
72826
72827         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
72828         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
72829         This is for the benefit of gzip, which doesn't do i18n.
72830
72831 2006-12-12  Jim Meyering  <jim@meyering.net>
72832
72833         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
72834         Reported by Andreas Schwab <schwab@suse.de>.
72835
72836 2006-12-12  Bruno Haible  <bruno@clisp.org>
72837
72838         Merge these changes.
72839         2006-09-05  Bruno Haible  <bruno@clisp.org>
72840         * lib/iconvme.c (iconv_string): No need to save and restore errno when
72841         iconv_alloc succeeded.
72842         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
72843         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
72844         test for " && dest " at the end - dest is always != NULL there. Call
72845         iconv with 4xNULL arguments initially, to reset the state. Call iconv
72846         with 2xNULL arguments, also to flush the state storage. Handle the
72847         IRIX iconv behaviour. Realloc the final result, to throw away unused
72848         memory.
72849
72850 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
72851
72852         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
72853         and fchmodat unconditionally, since glibc 2.4 has them.
72854         Problem reported by Arkadiusz Miskiewicz.
72855
72856 2006-12-10  Bruno Haible  <bruno@clisp.org>
72857
72858         * gnulib-tool (func_import): Show the include files only for those
72859         modules that are copied and specified.
72860         Reported by Karl Berry.
72861
72862 2006-12-08  Jim Meyering  <jim@meyering.net>
72863
72864         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
72865         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
72866
72867         * build-aux/announce-gen: Add two new options, both optional:
72868         --bootstrap-tools=TOOL_LIST
72869               a comma-separated list of tools, e.g.,
72870               autoconf,automake,bison,gnulib
72871         --gnulib-snapshot-date=DATE
72872               if gnulib is in the bootstrap tool list,
72873               then report this as the snapshot date.
72874               If not specified, use the current date/time.
72875               If you specify a date here, be sure it's UTC.
72876
72877 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72878
72879         * tests/test-argp-2.sh: Fix test to match actual output.
72880         (func_compare): Fix sed script to be portable.
72881
72882 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
72883
72884         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
72885         workaround for this case.  It is not autoconfigured now; offhand
72886         it's hard to see how to autoconfigure it.
72887
72888 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
72889
72890         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
72891         a directory that is about to be chowned.  Such a directory's
72892         initial file permissions should permit the owner only and this
72893         should not be changed until after the chown, since the group and
72894         other bits would be incorrect if they granted permission before
72895         the chown.
72896
72897         Fix porting problem for iswctype reported by Georg Schwarz in:
72898         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
72899         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
72900         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
72901         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
72902         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
72903
72904 2006-12-03  Jim Meyering  <jim@meyering.net>
72905
72906         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
72907         p->fts_statp may not yet be defined.
72908         (fts_read): Instead, set it in the caller, once p->fts_statp is
72909         sure to be defined, and corresponds to a top-level directory.
72910         This bug made du -x fail.  Here's the coreutils test case:
72911         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
72912         Reported by Mike Frysinger.
72913
72914 2006-12-01  Jim Meyering  <jim@meyering.net>
72915
72916         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
72917         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
72918         Reported by Simon Josefsson.
72919
72920 2006-11-30  Jim Meyering  <jim@meyering.net>
72921
72922         * m4/warning.m4: Use the all-permissive copyright notice
72923         recommended by RMS (rather than LGPL).
72924         * m4/vararrays.m4: Likewise.
72925         * m4/flexmember.m4: Likewise.
72926
72927 2006-11-29  Bruno Haible  <bruno@clisp.org>
72928
72929         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72930         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
72931         using +=.
72932         Reported by Simon Josefsson <simon@josefsson.org>.
72933
72934 2006-11-28  James Youngman <jay@gnu.org>
72935
72936         * README: Advise users that they might find the bug-gnulib@gnu.org
72937         and autotools-announce@gnu.org mailing lists useful.
72938
72939 2006-11-28  Bruno Haible  <bruno@clisp.org>
72940
72941         * m4/ptrdiff_max.m4: Remove file.
72942
72943 2006-11-21  Bruno Haible  <bruno@clisp.org>
72944
72945         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
72946         _AC_COMPUTE_INT.
72947         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72948         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
72949         _AC_COMPUTE_INT.
72950         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72951         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
72952         _AC_COMPUTE_INT.
72953         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72954
72955 2006-11-28  Jim Meyering  <jim@meyering.net>
72956
72957         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
72958         warning from "gcc -Wshadow" about shadowing the builtin.
72959
72960 2006-11-27  Bruno Haible  <bruno@clisp.org>
72961
72962         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
72963         _AC_COMPUTE_INT.
72964         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72965
72966 2006-11-27  Bruno Haible  <bruno@clisp.org>
72967             Paul Eggert  <eggert@cs.ucla.edu>
72968
72969         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
72970
72971 2006-11-26  Bruno Haible  <bruno@clisp.org>
72972
72973         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72974         noinst_LTLIBRARIES.
72975
72976 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
72977             Bruno Haible  <bruno@clisp.org>
72978
72979         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
72980         if compiling with "gcc -ansi".
72981
72982 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
72983
72984         Fix some incompatibilities with gcc -ansi -pedantic.
72985         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
72986         if compiling pedantically with GCC, unless it's C99 or later.
72987         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
72988         it mishandles gcc -ansi -pedantic as well.
72989         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
72990         if gcc -pedantic.
72991         * lib/regexec.c (check_node_accept_bytes): Don't use auto
72992         initializers for struct if -pedantic, unless it's C99 or later.
72993
72994 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
72995
72996         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
72997         Don't close an fd more than once. Identical atimes indicate
72998         success, not failure.
72999
73000 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
73001
73002         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
73003
73004 2006-11-23  Jim Meyering  <jim@meyering.net>
73005
73006         * build-aux/announce-gen: New file.  From coreutils.
73007
73008 2006-11-22  Jim Meyering  <jim@meyering.net>
73009
73010         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
73011         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
73012         (fts_read): Use a temporary to narrow the overused st_size member
73013         before using it in a switch statement.  Reported by Matthew Woehlke.
73014
73015         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
73016         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
73017
73018 2006-11-20  Bruno Haible  <bruno@clisp.org>
73019
73020         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
73021         changequote instead of pairs of brackets.
73022         Reported by Andreas Schwab <schwab@suse.de>.
73023
73024 2006-11-21  Jim Meyering  <jim@meyering.net>
73025
73026         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
73027         so as to remain compatible with older compilers.
73028         Patch from Michael Deutschmann.
73029
73030 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73031
73032         * MODULES.html.sh (File system functions): Add openat.
73033
73034         * lib/openat.h (rpl_fstatat): New macro, if
73035         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
73036         (fstatat): Define to rpl_fstatat under the same conditions,
73037         unless COMPILING_FSTATAT.
73038         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
73039         seems to have the bug.
73040         * lib/fstatat.c: New file.
73041         * modules/openat (Files): Add it.
73042
73043 2006-11-20  Bruno Haible  <bruno@clisp.org>
73044
73045         * Makefile: New file.
73046
73047 2006-11-20  Jim Meyering  <jim@meyering.net>
73048
73049         The beginnings of syntax-related checks for gnulib.
73050         * lib/Makefile: New file.
73051         * lib/t-idcache: New script.  Ensure that the two halves of
73052         idcache.c stay in sync.
73053
73054         * lib/idcache.c: Adjust comments in user- and group- portions to
73055         be more accurate, and to be consistent with one another.
73056
73057 2006-11-20  Jim Meyering  <jim@meyering.net>
73058
73059         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
73060         continue using the flexible array member (thus, this module performs
73061         half as many malloc calls), with the addition that...
73062         (getgroup, getuser): Consistently record a non-match via an empty
73063         "name" string, and map an empty string match to a NULL return value.
73064         * modules/idcache (Depends-on): Re-add flexmember.
73065
73066         * lib/idcache.c (getuser): Remove all uses of the register keyword.
73067         (getuidbyname, getgroup, getgidbyname): Likewise.
73068
73069         Use cleaner syntax: NULL rather than 0.
73070         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
73071
73072 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73073
73074         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
73075         It mishandled the case where the group was missing.
73076         Problem reported by Greg Schafer.
73077         * modules/idcache: Likewise.
73078
73079 2006-11-18  Jim Meyering  <jim@meyering.net>
73080
73081         * check-module (%exempt_header): Add exception for some
73082         conditionally-included headers.
73083
73084         * modules/i-ring (Depends-on): Add verify.
73085         (License): Change to LGPL.
73086
73087 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73088
73089         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
73090         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
73091         and inttostr.h.  Use snprintf rather than uinttostr, so that
73092         LGPLed code doesn't depend on GPLed.
73093
73094 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73095
73096         * modules/inline (License): Change from GPL to LGPL.
73097
73098 2006-11-17  Jim Meyering  <jim@meyering.net>
73099
73100         * modules/d-type (License): Switch to LGPL.
73101
73102 2006-11-15  Bruno Haible  <bruno@clisp.org>
73103
73104         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
73105
73106 2006-11-15  Eric Blake  <ebb9@byu.net>
73107
73108         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
73109         the module dependency.
73110
73111 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73112             Bruno Haible  <bruno@clisp.org>
73113
73114         * gnulib-tool (func_create_testdir): Add license consistency check.
73115
73116 2006-11-15  Eric Blake  <ebb9@byu.net>
73117
73118         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
73119         random "(cached)" in configure output.
73120
73121 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73122
73123         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
73124         test for conforming inttypes.h is both announced and cached.
73125
73126         * MODULES.html.sh (seen_modules, seen_files): New variables.
73127         (func_module): Rewrite to use a few less gnulib-tool and sed
73128         invocations.  Avoid a couple of quadratic algorithms for ...
73129         (missed_modules, missed_files): ... these, with ...
73130         (func_append, func_tmpdir): ... these new functions, from
73131         gnulib-tool.  Analogously, install traps for cleanup.
73132
73133         * tests/test-gc.c (main): Remove unused variables.
73134         * tests/test-read-file.c: Include stdlib.h, for 'free'.
73135
73136 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
73137
73138         * modules/inttostr (License): Change to LGPL.
73139
73140 2006-11-14  Eric Blake  <ebb9@byu.net>
73141
73142         * modules/tempname (License): Change to LGPL.
73143
73144 2006-11-14  Eric Blake  <ebb9@byu.net>
73145
73146         * doc/functions.texi (Function Portability): *printf functions on
73147         Cygwin now understand all POSIX size specifiers.
73148
73149 2006-11-14  Bruno Haible  <bruno@clisp.org>
73150
73151         * modules/c-ctype (License): Change to LGPL.
73152
73153 2006-11-12  Bruno Haible  <bruno@clisp.org>
73154
73155         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
73156         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
73157         for GNOME libraries, for which the include files are installed in
73158         subdirectories of $prefix/include.
73159
73160 2006-11-12  Bruno Haible  <bruno@clisp.org>
73161
73162         * m4/lib-link.m4: Require at least autoconf-2.54.
73163         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
73164         name to underscores for the --with option.
73165
73166 2006-11-13  Bruno Haible  <bruno@clisp.org>
73167
73168         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
73169         the tests directory.
73170         Reported by Ralf Wildenhues.
73171
73172 2006-11-13  Bruno Haible  <bruno@clisp.org>
73173
73174         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
73175         (func_emit_initmacro_end): Undo the override here.
73176         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
73177         Works around the famous automake error in coreutils.
73178
73179 2006-11-13  Eric Blake  <ebb9@byu.net>
73180
73181         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
73182         element, not its node.
73183
73184 2006-11-12  Bruno Haible  <bruno@clisp.org>
73185
73186         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
73187         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
73188
73189 2006-11-12  Bruno Haible  <bruno@clisp.org>
73190
73191         * gnulib-tool: New option --local-symlink.
73192         (func_usage): Document it.
73193         (lsymbolic): New variable.
73194         (func_import, func_create_testdir): If --symlink was not specified,
73195         test whether --local-symlink was specified and the file comes from
73196         the local_gnulib_dir.
73197
73198 2006-11-12  Bruno Haible  <bruno@clisp.org>
73199
73200         * gnulib-tool (func_ln): New function.
73201         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
73202
73203 2006-11-12  Bruno Haible  <bruno@clisp.org>
73204
73205         Finish support for source files in subdirectories.
73206         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
73207         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
73208         AUTOMAKE_OPTIONS.
73209         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
73210
73211 2006-11-12  Bruno Haible  <bruno@clisp.org>
73212
73213         * gnulib-tool (func_get_automake_snippet): Synthesize also an
73214         EXTRA_lib_SOURCES augmentation.
73215         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
73216
73217 2006-11-12  Jim Meyering  <jim@meyering.net>
73218
73219         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
73220         file descriptors.  This also averts a failure on systems with
73221         native openat support when a traversed directory lacks "x" access.
73222         * lib/fts_.h: Include "i-ring.h"
73223         (struct FTS) [fts_fd_ring]: New member.
73224         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
73225         (FCHDIR): Add parentheses.
73226         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
73227         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
73228         When descending, rather than simply closing the previous
73229         fts_cwd_fd value, push that file descriptor onto the ring.
73230         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
73231         (fts_open): Initialize the new fd_ring member.
73232         (fts_close): Clear the ring.
73233         (fts_safe_changedir): When possible, use our new fd_ring to skip
73234         the diropen and fstat and dev/ino comparison that would normally
73235         accompany a virtual `chdir ("..")'.
73236
73237         * modules/fts (Depends-on): Add i-ring.
73238         * modules/i-ring: New module.
73239         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
73240         * m4/i-ring.m4: New file.
73241
73242 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73243
73244         * gnulib-tool (func_create_testdir): Fix replacement of
73245         `build-aux' in configure.ac.  Run autotools in gltests
73246         subdirectory.
73247         (func_create_testdir, func_create_megatestdir, test): There is
73248         no need for '--force' in most autotool invocations in a new
73249         tree.  Actually fail the whole test if any of the tools, or the
73250         configure or make stages fail.
73251
73252         Sync from Automake.
73253         * build-aux/gnupload: Revert last change.  Add pointer to upload
73254         instructions of the GNU Maintenance Instructions.
73255         Suggestion by Karl Berry.
73256
73257 2006-11-10  Jim Meyering  <jim@meyering.net>
73258
73259         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
73260
73261 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73262
73263         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
73264         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
73265         (bind_textdomain_codeset) [! ENABLE_NLS]:
73266         Evaluate all the arguments.  That way, callers get compatible behavior
73267         if the arguments have side effects.  Also, it avoids some GCC
73268         diagnostics in some cases; Joel E. Denny reported problems when Bison
73269         was configured with --enable-gcc-warnigs.
73270
73271 2006-11-10  Jim Meyering  <jim@meyering.net>
73272
73273         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
73274         relevant options in CFLAGS (like -O, -fno-inline) are taken into
73275         account.
73276
73277 2006-11-10  Jim Meyering  <jim@meyering.net>
73278
73279         * modules/inline: New file/module.
73280         * modules/xalloc (Files): Remove m4/inline.m4.
73281         (Depends-on): Add inline, instead.
73282         * modules/oset: Likewise.
73283         * modules/list: Likewise.
73284
73285 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73286
73287         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
73288         Problem reported by Matthew Woehlke.
73289
73290 2006-11-09  Bruno Haible  <bruno@clisp.org>
73291
73292         * lib/tempname.c (gen_tempname): Remove variant that invokes
73293         __gen_tempname.
73294         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
73295         __gen_tempname.
73296
73297 2006-11-08  Bruno Haible  <bruno@clisp.org>
73298
73299         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
73300         to 'yes' instead of 'cross-compiling'.
73301
73302 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
73303
73304         * lib/quotearg.h (quotearg_free): New decl.
73305         * lib/quotearg.c (quotearg_free): New function.
73306         (slot0, nslots, slotvec0, slotvec):
73307         Now file-scope so that quotearg_free can get at them.
73308
73309 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73310
73311         Sync from Automake.
73312         * build-aux/gnupload: Add missing 'gnu' to example URL.
73313         Report by Karl Berry.
73314
73315 2006-11-08  Bruno Haible  <bruno@clisp.org>
73316
73317         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
73318         Suggested by Paul Eggert.
73319
73320 2006-11-08  Jim Meyering  <jim@meyering.net>
73321
73322         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
73323         It's already included if !_LIBC.
73324         (fts_safe_changedir): Add a comment.
73325
73326 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
73327
73328         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
73329         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
73330         Matthew Woehlke.
73331
73332         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
73333         definitions up, to avoid colliding with change below.
73334         (static_inline) [HAVE_INLINE]: New macro.
73335         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
73336         Provide extern decls when !HAVE_INLINE.  Do not define unless
73337         static_inline is defined, either by us or by xmalloc.c.  Use
73338         static_inline rather than static inline.
73339         (XCALLOC): Optimize sizeof(T) = 1 case.
73340         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
73341
73342 2006-11-07  Bruno Haible  <bruno@clisp.org>
73343
73344         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
73345         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
73346         AC_C_INLINE.
73347         * modules/xalloc (Files): Add m4/inline.m4.
73348
73349 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73350
73351         * README: Fix typo.
73352         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
73353         (Miscellanous Notes): ...from this.
73354
73355 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
73356
73357         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
73358         Mention that offsetof should be used instead of sizeof.
73359         From Bruno Haible.
73360
73361 2006-11-07  Bruno Haible  <bruno@clisp.org>
73362
73363         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
73364
73365 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
73366
73367         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
73368         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
73369         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
73370         (gl_tree_add_before, gl_tree_add_after):
73371         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
73372         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
73373         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
73374         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
73375         (gl_linked_add_after, gl_linked_add_at): Likewise.
73376         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
73377         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
73378         (gl_tree_add_before, gl_tree_add_after): Likewise.
73379         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
73380         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
73381         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
73382
73383 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73384
73385         * lib/gl_oset.h: Use C comment style, not C++ comment style.
73386
73387 2006-11-06  Bruno Haible  <bruno@clisp.org>
73388
73389         * m4/inline.m4: New file.
73390         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
73391         * modules/list (Files): Add m4/inline.m4.
73392         * modules/oset (Files): Likewise.
73393
73394 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
73395
73396         * lib/idcache.c: Include <stddef.h>, for offsetof.
73397         (struct userid.name): Change from char * to a flexible array member.
73398         All uses changed.
73399         * modules/idcache (Depends-on): Add flexmember.
73400
73401         * MODULES.html.sh (Core language properties): New module flexmember.
73402         * modules/flexmember, m4/flexmember.m4: New files.
73403
73404         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
73405         inline functions that are identical with the old xnmalloc_inline,
73406         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
73407         that we can avoid some unnecessary integer multiplications and
73408         divisions in the common case where the element size is known at
73409         compile time.
73410         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
73411         needed.
73412         (xnboundedmalloc): Remove.
73413         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
73414         arguments, for consistency with rest of this header.
73415         (xcharalloc): Rewrite using XNMALLOC.
73416         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
73417         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
73418         versions have been moved to lib/xalloc.h and renamed to be the
73419         non-*_inline versions.
73420         (xmalloc, xrealloc): Implement without reference to the xnmalloc
73421         and xnrealloc functions, since those functions are now inline and
73422         now call us.
73423         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
73424         renaming described above.
73425         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
73426         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
73427         captures the dependency in AC_C_INLINE.
73428
73429         New module canonicalize-lgpl, proposed by Charles Wilson in
73430         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
73431         with a few small changes afterwards.
73432         * MODULES.html.sh (File system functions): New module
73433         canonicalize-lgpl.
73434         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
73435         and canonicalize_file_name.
73436         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
73437         * modules/canonicalize-lgpl: New files.
73438
73439 2006-11-05  Bruno Haible  <bruno@clisp.org>
73440
73441         * gnulib-tool (func_import, func_create_testdir): Create directories
73442         also for files in subdirectories of lib/.
73443
73444 2006-11-05  Bruno Haible  <bruno@clisp.org>
73445
73446         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
73447         ANSI C compliant.
73448
73449 2006-11-03  Bruno Haible  <bruno@clisp.org>
73450
73451         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
73452         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
73453         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
73454         (xnboundedmalloc): New inline function.
73455         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
73456         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
73457         xmalloc.
73458         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
73459         xmalloc.
73460         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
73461         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
73462         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
73463         xmalloc.
73464         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
73465         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
73466         xmalloc.
73467         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
73468         gl_tree_add_after): Use XMALLOC instead of xmalloc.
73469         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
73470         xmalloc.
73471         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
73472         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
73473         gl_tree_add_after): Use XMALLOC instead of xmalloc.
73474         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
73475         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
73476         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
73477         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
73478
73479 2006-11-03  Bruno Haible  <bruno@clisp.org>
73480
73481         * lib/c-ctype.h [C++]: Define functions without name mangling.
73482         * lib/fwriteerror.h [C++]: Likewise.
73483         * lib/gcd.h [C++]: Likewise.
73484         * lib/linebreak.h [C++]: Likewise.
73485
73486 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73487
73488         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
73489         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
73490         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
73491         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
73492         Check for functions and headers just once.
73493         Check for declaration of canonicalize_file_name.
73494         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
73495
73496 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73497
73498         * gnulib-tool (func_import): Fix typo in actioncmd.
73499
73500 2006-11-02  Bruno Haible  <bruno@clisp.org>
73501
73502         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
73503         newline sequence in the Makefile.am snippet as a space, like "make"
73504         does.
73505         Reported by Roger Persson <perrog@gmail.com>.
73506
73507 2006-11-01  Bruno Haible  <bruno@clisp.org>
73508
73509         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
73510         already declared in <string.h>.
73511         * lib/strcase.h (strncasecmp): Don't declare it if yes.
73512
73513 2006-11-01  Bruno Haible  <bruno@clisp.org>
73514
73515         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
73516         * lib/strcase.h: Include <string.h>.
73517         (strcasecmp): Define to rpl_strcasecmp here.
73518
73519 2006-11-01  Bruno Haible  <bruno@clisp.org>
73520
73521         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
73522
73523 2006-11-01  Eric Blake  <ebb9@byu.net>
73524
73525         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
73526
73527         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
73528
73529 2006-10-29  Bruno Haible  <bruno@clisp.org>
73530
73531         Make it compile in C++ mode.
73532         * lib/full-write.c (full_rw): Add a cast.
73533
73534 2006-11-01  Bruno Haible  <bruno@clisp.org>
73535
73536         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
73537         be POSIX compliant.
73538         Reported by Roger Persson <perrog@gmail.com>.
73539
73540 2006-11-01  Eric Blake  <ebb9@byu.net>
73541
73542         * lib/getopt_.h: Fix comments.
73543
73544 2006-10-31  Eric Blake  <ebb9@byu.net>
73545
73546         * modules/tmpdir (Depends-on): Add sys_stat.
73547         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
73548         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
73549         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
73550         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
73551         tempname.
73552
73553 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
73554
73555         Avoid some C++ diagnostics reported by Bruno Haible.
73556         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
73557         xmalloc.
73558         (quotearg_alloc): Use xcharalloc rather than xmalloc.
73559         (struct slotvec): Move to top level.
73560         (quotearg_n_options): Rewrite to avoid xmalloc.
73561         * lib/xalloc.h (xcharalloc): New function.
73562         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
73563         [defined __cplusplus]: Add function template that provides result
73564         type propagation.  This part of the change is from Bruno Haible.
73565
73566 2006-10-29  Bruno Haible  <bruno@clisp.org>
73567
73568         Make it compile in C++ mode.
73569         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
73570         * lib/strnlen1.c (strnlen1): Cast memchr result.
73571         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
73572         * lib/clean-temp.c (string_equals, string_hash): Add casts.
73573         (create_temp_dir): Rename local variable 'template'.
73574         (compile_csharp_using_sscli): Add cast.
73575         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
73576         * lib/findprog.c (find_in_path): Likewise.
73577         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
73578         * lib/wait-process.c (register_slave_subprocess): Likewise.
73579
73580 2006-10-22  Bruno Haible  <bruno@clisp.org>
73581
73582         * modules/tsearch: New file.
73583         * lib/tsearch.h: New file.
73584         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
73585         * m4/tsearch.m4: New file.
73586         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
73587
73588 2006-10-29  Eric Blake  <ebb9@byu.net>
73589
73590         * lib/arcfour.c: Assume config.h.
73591         * lib/arctwo.c: Likewise.
73592         * lib/base64.c: Likewise.
73593         * lib/check-version.c: Likewise.
73594         * lib/crc.c: Likewise.
73595         * lib/des.c: Likewise.
73596         * lib/gc-gnulib.c: Likewise.
73597         * lib/gc-libgcrypt.c: Likewise.
73598         * lib/gc-pbkdf2-sha1.c: Likewise.
73599         * lib/getaddrinfo.c: Likewise.
73600         * lib/getdelim.c: Likewise.
73601         * lib/getline.c: Likewise.
73602         * lib/hmac-md5.c: Likewise.
73603         * lib/hmac-sha1.c: Likewise.
73604         * lib/iconvme.c: Likewise.
73605         * lib/md2.c: Likewise.
73606         * lib/md4.c: Likewise.
73607         * lib/memxor.c: Likewise.
73608         * lib/read-file.c: Likewise.
73609         * lib/readline.c: Likewise.
73610         * lib/rijndael-alg-fst.c: Likewise.
73611         * lib/rijndael-api-fst.c: Likewise.
73612         * lib/xgetdomainname.c: Likewise.
73613
73614 2006-10-28  Eric Blake  <ebb9@byu.net>
73615
73616         * lib/xstrndup.c: Assume config.h.
73617
73618 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73619
73620         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
73621         stat-macros.h is now for our own macros, whereas stat_h is for
73622         macros in the <sys/stat.h> name space.
73623         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
73624         (STAT_MACROS_H): Remove.
73625         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
73626         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
73627         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
73628         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
73629         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
73630         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
73631         Move these macros to ...
73632         * lib/stat_.h: here.  Don't include stat-macros.h.
73633         * lib/canonicalize.c: Don't include stat-macros.h.
73634         * lib/chown.c: Likewise.
73635         * lib/euidaccess.c: Likewise.
73636         * lib/file-type.c: Likewise.
73637         * lib/filemode.c: Likewise.
73638         * lib/glob.c: Likewise.
73639         * lib/isapipe.c: Likewise.
73640         * lib/lchown.c: Likewise.
73641         * lib/lstat.c: Likewise.
73642         * lib/mkdir-p.c: Likewise.
73643         * lib/rmdir.c: Likewise.
73644         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
73645         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
73646         unless mkdir isn't declared, to speed up 'configure'.
73647         Always create sys/stat.h, since it's unlikely any real sys/stat.h
73648         would define all the S_* symbols.
73649         * modules/canonicalize (Depends-on):
73650         Depend on sys_stat, not stat-macros.
73651         * modules/chown: Likewise.
73652         * modules/euidaccess: Likewise.
73653         * modules/filemode: Likewise.
73654         * modules/file-type: Likewise.
73655         * modules/glob: Likewise.
73656         * modules/isapipe: Likewise.
73657         * modules/lchown: Likewise.
73658         * modules/lstat: Likewise.
73659         * modules/mkancesdirs: Likewise.
73660         * modules/rmdir: Likewise.
73661         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
73662         * modules/modechange: Likewise.
73663         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
73664         (configure.ac): Remove gl_STAT_MACROS.
73665         * modules/sys_stat (Depends-on): Remove stat-macros.
73666
73667 2006-10-27  Bruno Haible  <bruno@clisp.org>
73668
73669         * m4/signed.m4: Remove file.
73670         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
73671         invocation.
73672         * modules/vasnprintf (Files): Remove m4/signed.m4.
73673
73674 2006-10-27  Bruno Haible  <bruno@clisp.org>
73675
73676         Update to GNU gettext 0.16.
73677         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
73678         m4/inttypes-h.m4, m4/signed.m4.
73679         * m4/gettext.m4: Update to GNU gettext 0.16.
73680         * m4/intl.m4: New file, from GNU gettext.
73681         * m4/intldir.m4: New file, from GNU gettext.
73682         * config/srclist.txt: Update
73683
73684 2006-10-27  Eric Blake  <ebb9@byu.net>
73685
73686         * MODULES.html.sh: Document tempname.
73687         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
73688         dependencies.
73689         (Files): Move lib/tempname.c...
73690         * modules/tempname: ...to this new module.
73691         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
73692         (gl_PREREQ_TEMPNAME): Move...
73693         * m4/tempname.m4: ...to this new file.
73694         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
73695         * modules/sys_stat (Depends-on): Add stat-macros.
73696         * lib/stat_.h (includes): Pick up stat macros.
73697         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
73698         if stat macros are broken.
73699         * lib/tempname.c (includes): No need to include "stat-macros.h".
73700         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
73701         (direxists, __path_search) [!_LIBC]: Don't compile these in
73702         gnulib; the tmpdir module covers that.
73703         * lib/tempname.h: New file.
73704
73705 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
73706
73707         * COPYING: Explain how gnulib-tool converts licence headers.
73708         Almost all wording by Eric Blake.
73709
73710 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
73711
73712         * lib/mbchar.h (is_basic_table): Make read-only.
73713         * lib/mbchar.c (is_basic_table): Likewise.
73714         Reported by John Darrington.
73715
73716 2006-10-25  Bruno Haible  <bruno@clisp.org>
73717
73718         * lib/progname.h (set_program_name): Undefine before defining.
73719
73720 2006-10-25  Bruno Haible  <bruno@clisp.org>
73721
73722         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
73723         false for non-gcc C++ compilers.
73724         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
73725
73726 2006-10-24  Bruno Haible  <bruno@clisp.org>
73727
73728         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
73729         iconv implementations like Irix iconv.
73730
73731 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73732
73733         * modules/vararrays: New file.
73734         * m4/vararrays.m4: New file, taken from diffutils.
73735         * MODULES.html.sh: New module vararrays.
73736
73737 2006-10-24  Karl Berry  <karl@gnu.org>
73738
73739         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
73740         Don't call GNU Unix.
73741
73742 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73743
73744         * users.txt: Add Libtool.
73745
73746         Sync from Libtool:
73747
73748         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73749
73750         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
73751         to gnulib's policy of including config.h unconditionally.
73752
73753 2006-10-24  Bruno Haible  <bruno@clisp.org>
73754
73755         * modules/wcwidth (Files): Add m4/wint_t.m4.
73756         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
73757         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
73758
73759 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73760
73761         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
73762         to pacify GCC with some -W flags enabled.  Problem reported by
73763         Bruno Haible.
73764
73765 2006-10-24  Jim Meyering  <jim@meyering.net>
73766
73767         * MODULES.html.sh: Remove uinttostr.  It's not a module.
73768         Reported by Karl Berry.
73769
73770 2006-10-23  Bruno Haible  <bruno@clisp.org>
73771
73772         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
73773
73774 2006-10-24  Bruno Haible  <bruno@clisp.org>
73775
73776         * lib/gl_list.h: Use C comment style, not C++ comment style.
73777
73778 2006-10-23  Eric Blake  <ebb9@byu.net>
73779
73780         * lib/getaddrinfo.c (includes): Add missing include.
73781
73782 2006-10-23  Bruno Haible  <bruno@clisp.org>
73783             Paul Eggert  <eggert@cs.ucla.edu>
73784
73785         Ability to rename obstack_free.
73786         * lib/obstack.h (__obstack_free): New macro. Declare instead of
73787         obstack_free.
73788         (obstack_free): Invoke the __obstack_free macro.
73789         * lib/obstack.c (obstack_free): Use __obstack_free macro.
73790
73791 2006-10-23  Bruno Haible  <bruno@clisp.org>
73792             Paul Eggert  <eggert@cs.ucla.edu>
73793
73794         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
73795         __argc, __argv from the declaration. (They are defined as macros on
73796         mingw.)
73797
73798 2006-10-22  Bruno Haible  <bruno@clisp.org>
73799
73800         * doc/gnulib-intro.texi: New file.
73801         * doc/gnulib.texi: Include it.
73802
73803 2006-10-21  Bruno Haible  <bruno@clisp.org>
73804
73805         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
73806         "Introduction", "Miscellanous Notes", "Particular Modules".
73807
73808 2006-10-21  Bruno Haible  <bruno@clisp.org>
73809
73810         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73811         Change mostlyclean-local rule to avoid sh syntax error from bash
73812         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
73813
73814 2006-10-23  Jim Meyering  <jim@meyering.net>
73815
73816         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
73817         in place of snprintf.
73818
73819         * modules/inttostr (Files): Add lib/uinttostr.c.
73820         * lib/uinttostr.c (inttostr): New file/function.
73821         * lib/inttostr.h (uinttostr): Declare.
73822         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
73823         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73824         Add uinttostr.
73825         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
73826
73827 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73828
73829         * lib/canonicalize.c (ELOOP): Define if not already defined.
73830         Problem reported by Bruno Haible in
73831         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
73832
73833 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73834
73835         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
73836         Problem reported by Perry Smith and Ville Laurikari.
73837
73838         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
73839         uses.
73840
73841 2006-10-19  Bruno Haible  <bruno@clisp.org>
73842
73843         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
73844         for mingw.
73845
73846 2006-10-19  Bruno Haible  <bruno@clisp.org>
73847
73848         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
73849         Needed for mingw.
73850
73851 2006-10-19  Bruno Haible  <bruno@clisp.org>
73852
73853         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
73854
73855 2006-10-19  Bruno Haible  <bruno@clisp.org>
73856
73857         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
73858         it.
73859
73860 2006-10-19  Bruno Haible  <bruno@clisp.org>
73861
73862         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
73863         invocation.
73864
73865 2006-10-19  Bruno Haible  <bruno@clisp.org>
73866
73867         * gnulib-tool (func_create_testdir): Don't include ftruncate and
73868         mountlist by default.
73869
73870 2006-10-16  Bruno Haible  <bruno@clisp.org>
73871
73872         * lib/c-strstr.c: Include c-strstr.h.
73873
73874 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73875
73876         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
73877         in a slash.
73878
73879 2006-10-18  Bruno Haible  <bruno@clisp.org>
73880
73881         * lib/lock.h [C++]: Wrap definitions in extern "C".
73882
73883 2006-10-18  Bruno Haible  <bruno@clisp.org>
73884
73885         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
73886         gl_LIBOBJS list.
73887
73888 2006-10-18  Bruno Haible  <bruno@clisp.org>
73889
73890         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
73891
73892 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
73893
73894         * lib/xstrtol.h: Include gettext.h.
73895         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
73896         Problem reported by Eric Blake.
73897         * modules/xstrtol (Depends-on): Add gettext-h.
73898
73899 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
73900
73901         * lib/strftime.c (advance): New macro.
73902         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
73903         incomplete type, so you can't add 0 to it.  Problem and patch
73904         reported by Eelco Dolstra for dietlibc.
73905
73906 2006-10-18  Jim Meyering  <jim@meyering.net>
73907
73908         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
73909         type for a local, and rename it: s/up/user_proc/.
73910
73911 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
73912
73913         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
73914         READ_UTMP_USER_PROCESS.
73915         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
73916
73917 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73918
73919         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
73920         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
73921
73922 2006-10-17  Eric Blake  <ebb9@byu.net>
73923
73924         * lib/sigprocmask.c (sigprocmask): Fix typo.
73925
73926         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
73927
73928         * modules/clean-temp (Makefile.am): Don't add to make output...
73929         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
73930         config.h.
73931
73932 2006-10-17  Bruno Haible  <bruno@clisp.org>
73933
73934         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
73935         differently if DEFAULT_TEXT_DOMAIN is set.
73936
73937 2006-10-16  Bruno Haible  <bruno@clisp.org>
73938
73939         * lib/clean-temp.c: Include fwriteerror.h.
73940
73941 2006-10-16  Bruno Haible  <bruno@clisp.org>
73942
73943         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
73944
73945 2006-10-16  Bruno Haible  <bruno@clisp.org>
73946
73947         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
73948         * lib/sigprocmask.h: Include <sys/types.h>.
73949         (sigset_t): Use the system's definition if present.
73950
73951 2006-10-17  Eric Blake  <ebb9@byu.net>
73952
73953         * lib/xvasprintf.c (includes): Assume config.h.
73954         * lib/xasprintf.c (includes): Likewise.
73955
73956 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
73957
73958         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
73959         at least as wide as intmax_t.
73960
73961 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
73962
73963         (Imported from Automake.)
73964         * build-aux/gnupload: Update to version 1.1 of directive file.
73965
73966 2006-10-16  Eric Blake  <ebb9@byu.net>
73967
73968         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
73969         match Automake 1.10a.
73970
73971 2006-10-14  Bruno Haible  <bruno@clisp.org>
73972
73973         * modules/sigprocmask: New file.
73974         * lib/sigprocmask.h: New file.
73975         * lib/sigprocmask.c: New file.
73976         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
73977         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
73978         request sigprocmask.o.
73979         (gl_PREREQ_SIGPROCMASK): New macro.
73980         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
73981         (Depends-on): Add sigprocmask.
73982         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
73983         gt_SIGNALBLOCKING. Test for 'raise' only once.
73984         * lib/fatal-signal.c: Include sigprocmask.h.
73985         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
73986         unblock_fatal_signals): Define always.
73987         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73988         sigprocmask.
73989
73990 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73991
73992         Sync from Automake.
73993         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
73994         which incorrectly sets the mode of an existing destination
73995         directory.  In some cases the unpatched install-sh could do the
73996         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
73997         system.  We hope this is rare in practice, but it's clearly worth
73998         fixing.  Problem reported by Alex Unleashed in
73999         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
74000         Also, don't bother to check for -m bugs unless we're using -m;
74001         suggested by Stepan Kasal.
74002
74003 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74004
74005         Sync from Automake.
74006         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
74007         `-c' flag, so they appear at the same position as in %FASTDEP%
74008         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
74009         which ignores unknown options only after the first non-option.
74010         Bug report against M4 by Nelson H. F. Beebe.
74011
74012 2006-10-13  Jim Meyering  <jim@meyering.net>
74013
74014         Fix a bug in yesterday's change.
74015         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
74016         p->fts_statp->st_dev would be used uninitialized.
74017         Ensures that we always call fts_stat on the very first entry.
74018         Miklos Szeredi reported that find -xdev stopped working.
74019
74020 2006-10-12  Bruno Haible  <bruno@clisp.org>
74021
74022         * gnulib-tool (func_get_automake_snippet): Append an automatically
74023         computed EXTRA_DIST augmentation.
74024         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
74025         * modules/alloca-opt (Makefile.am): Likewise.
74026         * modules/allocsa (Makefile.am): Likewise.
74027         * modules/arcfour (Makefile.am): Likewise.
74028         * modules/arctwo (Makefile.am): Likewise.
74029         * modules/argmatch (Makefile.am): Likewise.
74030         * modules/argz (Makefile.am): Likewise.
74031         * modules/atexit (Makefile.am): Likewise.
74032         * modules/backupfile (Makefile.am): Likewise.
74033         * modules/byteswap (Makefile.am): Likewise.
74034         * modules/c-strtod (Makefile.am): Likewise.
74035         * modules/c-strtold (Makefile.am): Likewise.
74036         * modules/calloc (Makefile.am): Likewise.
74037         * modules/canon-host (Makefile.am): Likewise.
74038         * modules/canonicalize (Makefile.am): Likewise.
74039         * modules/chdir-long (Makefile.am): Likewise.
74040         * modules/chdir-safer (Makefile.am): Likewise.
74041         * modules/check-version (Makefile.am): Likewise.
74042         * modules/chown (Makefile.am): Likewise.
74043         * modules/cloexec (Makefile.am): Likewise.
74044         * modules/close-stream (Makefile.am): Likewise.
74045         * modules/closeout (Makefile.am): Likewise.
74046         * modules/crc (Makefile.am): Likewise.
74047         * modules/csharpexec (Makefile.am): Likewise.
74048         * modules/cycle-check (Makefile.am): Likewise.
74049         * modules/des (Makefile.am): Likewise.
74050         * modules/dev-ino (Makefile.am): Likewise.
74051         * modules/dirfd (Makefile.am): Likewise.
74052         * modules/dirname (Makefile.am): Likewise.
74053         * modules/dup2 (Makefile.am): Likewise.
74054         * modules/eealloc (Makefile.am): Likewise.
74055         * modules/error (Makefile.am): Likewise.
74056         * modules/euidaccess (Makefile.am): Likewise.
74057         * modules/exclude (Makefile.am): Likewise.
74058         * modules/exitfail (Makefile.am): Likewise.
74059         * modules/fcntl-safer (Makefile.am): Likewise.
74060         * modules/fcntl (Makefile.am): Likewise.
74061         * modules/file-type (Makefile.am): Likewise.
74062         * modules/fileblocks (Makefile.am): Likewise.
74063         * modules/filemode (Makefile.am): Likewise.
74064         * modules/filenamecat (Makefile.am): Likewise.
74065         * modules/fnmatch (Makefile.am): Likewise.
74066         * modules/fopen-safer (Makefile.am): Likewise.
74067         * modules/fpending (Makefile.am): Likewise.
74068         * modules/fprintftime (Makefile.am): Likewise.
74069         * modules/free (Makefile.am): Likewise.
74070         * modules/fsusage (Makefile.am): Likewise.
74071         * modules/ftruncate (Makefile.am): Likewise.
74072         * modules/fts (Makefile.am): Likewise.
74073         * modules/gc-arcfour (Makefile.am): Likewise.
74074         * modules/gc-des (Makefile.am): Likewise.
74075         * modules/gc-hmac-md5 (Makefile.am): Likewise.
74076         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
74077         * modules/gc-md4 (Makefile.am): Likewise.
74078         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
74079         * modules/gc-sha1 (Makefile.am): Likewise.
74080         * modules/gc (Makefile.am): Likewise.
74081         * modules/getaddrinfo (Makefile.am): Likewise.
74082         * modules/getcwd (Makefile.am): Likewise.
74083         * modules/getdelim (Makefile.am): Likewise.
74084         * modules/getdomainname (Makefile.am): Likewise.
74085         * modules/getgroups (Makefile.am): Likewise.
74086         * modules/gethostname (Makefile.am): Likewise.
74087         * modules/gethrxtime (Makefile.am): Likewise.
74088         * modules/getline (Makefile.am): Likewise.
74089         * modules/getloadavg (Makefile.am): Likewise.
74090         * modules/getlogin_r (Makefile.am): Likewise.
74091         * modules/getndelim2 (Makefile.am): Likewise.
74092         * modules/getopt (Makefile.am): Likewise.
74093         * modules/getpagesize (Makefile.am): Likewise.
74094         * modules/getpass-gnu (Makefile.am): Likewise.
74095         * modules/getpass (Makefile.am): Likewise.
74096         * modules/getsubopt (Makefile.am): Likewise.
74097         * modules/gettime (Makefile.am): Likewise.
74098         * modules/gettimeofday (Makefile.am): Likewise.
74099         * modules/getugroups (Makefile.am): Likewise.
74100         * modules/getusershell (Makefile.am): Likewise.
74101         * modules/glob (Makefile.am): Likewise.
74102         * modules/group-member (Makefile.am): Likewise.
74103         * modules/hard-locale (Makefile.am): Likewise.
74104         * modules/hash (Makefile.am): Likewise.
74105         * modules/hmac-md5 (Makefile.am): Likewise.
74106         * modules/hmac-sha1 (Makefile.am): Likewise.
74107         * modules/human (Makefile.am): Likewise.
74108         * modules/idcache (Makefile.am): Likewise.
74109         * modules/imaxabs (Makefile.am): Likewise.
74110         * modules/imaxdiv (Makefile.am): Likewise.
74111         * modules/inet_ntop (Makefile.am): Likewise.
74112         * modules/inet_pton (Makefile.am): Likewise.
74113         * modules/intprops (Makefile.am): Likewise.
74114         * modules/inttostr (Makefile.am): Likewise.
74115         * modules/inttypes (Makefile.am): Likewise.
74116         * modules/isapipe (Makefile.am): Likewise.
74117         * modules/javaversion (Makefile.am): Likewise.
74118         * modules/lchmod (Makefile.am): Likewise.
74119         * modules/lchown (Makefile.am): Likewise.
74120         * modules/localcharset (Makefile.am): Likewise.
74121         * modules/long-options (Makefile.am): Likewise.
74122         * modules/lstat (Makefile.am): Likewise.
74123         * modules/malloc (Makefile.am): Likewise.
74124         * modules/mathl (Makefile.am): Likewise.
74125         * modules/mbchar (Makefile.am): Likewise.
74126         * modules/md2 (Makefile.am): Likewise.
74127         * modules/md4 (Makefile.am): Likewise.
74128         * modules/md5 (Makefile.am): Likewise.
74129         * modules/memcasecmp (Makefile.am): Likewise.
74130         * modules/memchr (Makefile.am): Likewise.
74131         * modules/memcmp (Makefile.am): Likewise.
74132         * modules/memcoll (Makefile.am): Likewise.
74133         * modules/memcpy (Makefile.am): Likewise.
74134         * modules/memmem (Makefile.am): Likewise.
74135         * modules/memmove (Makefile.am): Likewise.
74136         * modules/mempcpy (Makefile.am): Likewise.
74137         * modules/memrchr (Makefile.am): Likewise.
74138         * modules/memset (Makefile.am): Likewise.
74139         * modules/memxor (Makefile.am): Likewise.
74140         * modules/mkancesdirs (Makefile.am): Likewise.
74141         * modules/mkdir-p (Makefile.am): Likewise.
74142         * modules/mkdir (Makefile.am): Likewise.
74143         * modules/mkdtemp (Makefile.am): Likewise.
74144         * modules/mkstemp (Makefile.am): Likewise.
74145         * modules/mktime (Makefile.am): Likewise.
74146         * modules/modechange (Makefile.am): Likewise.
74147         * modules/mountlist (Makefile.am): Likewise.
74148         * modules/nanosleep (Makefile.am): Likewise.
74149         * modules/obstack (Makefile.am): Likewise.
74150         * modules/openat (Makefile.am): Likewise.
74151         * modules/pagealign_alloc (Makefile.am): Likewise.
74152         * modules/pathmax (Makefile.am): Likewise.
74153         * modules/physmem (Makefile.am): Likewise.
74154         * modules/poll (Makefile.am): Likewise.
74155         * modules/posixtm (Makefile.am): Likewise.
74156         * modules/posixver (Makefile.am): Likewise.
74157         * modules/putenv (Makefile.am): Likewise.
74158         * modules/quote (Makefile.am): Likewise.
74159         * modules/quotearg (Makefile.am): Likewise.
74160         * modules/raise (Makefile.am): Likewise.
74161         * modules/read-file (Makefile.am): Likewise.
74162         * modules/readline (Makefile.am): Likewise.
74163         * modules/readlink (Makefile.am): Likewise.
74164         * modules/readtokens (Makefile.am): Likewise.
74165         * modules/readutmp (Makefile.am): Likewise.
74166         * modules/realloc (Makefile.am): Likewise.
74167         * modules/regex (Makefile.am): Likewise.
74168         * modules/rename-dest-slash (Makefile.am): Likewise.
74169         * modules/rename (Makefile.am): Likewise.
74170         * modules/rijndael (Makefile.am): Likewise.
74171         * modules/rmdir (Makefile.am): Likewise.
74172         * modules/rpmatch (Makefile.am): Likewise.
74173         * modules/safe-read (Makefile.am): Likewise.
74174         * modules/safe-write (Makefile.am): Likewise.
74175         * modules/same-inode (Makefile.am): Likewise.
74176         * modules/same (Makefile.am): Likewise.
74177         * modules/save-cwd (Makefile.am): Likewise.
74178         * modules/savedir (Makefile.am): Likewise.
74179         * modules/setenv (Makefile.am): Likewise.
74180         * modules/settime (Makefile.am): Likewise.
74181         * modules/sha1 (Makefile.am): Likewise.
74182         * modules/sig2str (Makefile.am): Likewise.
74183         * modules/snprintf (Makefile.am): Likewise.
74184         * modules/stat-macros (Makefile.am): Likewise.
74185         * modules/stat-time (Makefile.am): Likewise.
74186         * modules/stdbool (Makefile.am): Likewise.
74187         * modules/stdint (Makefile.am): Likewise.
74188         * modules/stdlib-safer (Makefile.am): Likewise.
74189         * modules/stpcpy (Makefile.am): Likewise.
74190         * modules/stpncpy (Makefile.am): Likewise.
74191         * modules/strcase (Makefile.am): Likewise.
74192         * modules/strcasestr (Makefile.am): Likewise.
74193         * modules/strchrnul (Makefile.am): Likewise.
74194         * modules/strcspn (Makefile.am): Likewise.
74195         * modules/strdup (Makefile.am): Likewise.
74196         * modules/strerror (Makefile.am): Likewise.
74197         * modules/strftime (Makefile.am): Likewise.
74198         * modules/strndup (Makefile.am): Likewise.
74199         * modules/strnlen (Makefile.am): Likewise.
74200         * modules/strpbrk (Makefile.am): Likewise.
74201         * modules/strsep (Makefile.am): Likewise.
74202         * modules/strstr (Makefile.am): Likewise.
74203         * modules/strtod (Makefile.am): Likewise.
74204         * modules/strtoimax (Makefile.am): Likewise.
74205         * modules/strtok_r (Makefile.am): Likewise.
74206         * modules/strtol (Makefile.am): Likewise.
74207         * modules/strtoll (Makefile.am): Likewise.
74208         * modules/strtoul (Makefile.am): Likewise.
74209         * modules/strtoull (Makefile.am): Likewise.
74210         * modules/strtoumax (Makefile.am): Likewise.
74211         * modules/strverscmp (Makefile.am): Likewise.
74212         * modules/sys_socket (Makefile.am): Likewise.
74213         * modules/sys_stat (Makefile.am): Likewise.
74214         * modules/sysexits (Makefile.am): Likewise.
74215         * modules/time_r (Makefile.am): Likewise.
74216         * modules/timegm (Makefile.am): Likewise.
74217         * modules/timespec (Makefile.am): Likewise.
74218         * modules/tmpfile-safer (Makefile.am): Likewise.
74219         * modules/trim (Makefile.am): Likewise.
74220         * modules/unistd-safer (Makefile.am): Likewise.
74221         * modules/unlinkdir (Makefile.am): Likewise.
74222         * modules/unlocked-io (Makefile.am): Likewise.
74223         * modules/userspec (Makefile.am): Likewise.
74224         * modules/utime (Makefile.am): Likewise.
74225         * modules/utimecmp (Makefile.am): Likewise.
74226         * modules/utimens (Makefile.am): Likewise.
74227         * modules/vasnprintf (Makefile.am): Likewise.
74228         * modules/vasprintf (Makefile.am): Likewise.
74229         * modules/vsnprintf (Makefile.am): Likewise.
74230         * modules/xalloc (Makefile.am): Likewise.
74231         * modules/xgetcwd (Makefile.am): Likewise.
74232         * modules/xnanosleep (Makefile.am): Likewise.
74233         * modules/xreadlink (Makefile.am): Likewise.
74234         * modules/xstrtod (Makefile.am): Likewise.
74235         * modules/xstrtol (Makefile.am): Likewise.
74236         * modules/xstrtold (Makefile.am): Likewise.
74237         * modules/yesno (Makefile.am): Likewise.
74238         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
74239
74240 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
74241
74242         * modules/error (Makefile.am): Distribute files through
74243         EXTRA_DIST, not lib_SOURCES.
74244
74245 2006-10-12  Eric Blake  <ebb9@byu.net>
74246
74247         * modules/error (Makefile.am): Distribute files in /lib.
74248         * modules/obstack (Makefile.am): Likewise.
74249
74250 2006-10-12  Bruno Haible  <bruno@clisp.org>
74251
74252         * modules/acl (Makefile.am): Distribute all files in lib/ through
74253         EXTRA_DIST.
74254         * modules/arcfour (Makefile.am): Likewise.
74255         * modules/arctwo (Makefile.am): Likewise.
74256         * modules/argmatch (Makefile.am): Likewise.
74257         * modules/argz (Makefile.am): Likewise.
74258         * modules/atexit (Makefile.am): Likewise.
74259         * modules/backupfile (Makefile.am): Likewise.
74260         * modules/c-strtod (Makefile.am): Likewise.
74261         * modules/c-strtold (Makefile.am): Likewise.
74262         * modules/calloc (Makefile.am): Likewise.
74263         * modules/canon-host (Makefile.am): Likewise.
74264         * modules/canonicalize (Makefile.am): Likewise.
74265         * modules/chdir-long (Makefile.am): Likewise.
74266         * modules/chdir-safer (Makefile.am): Likewise.
74267         * modules/check-version (Makefile.am): Likewise.
74268         * modules/chown (Makefile.am): Likewise.
74269         * modules/cloexec (Makefile.am): Likewise.
74270         * modules/close-stream (Makefile.am): Likewise.
74271         * modules/closeout (Makefile.am): Likewise.
74272         * modules/crc (Makefile.am): Likewise.
74273         * modules/cycle-check (Makefile.am): Likewise.
74274         * modules/des (Makefile.am): Likewise.
74275         * modules/dirfd (Makefile.am): Likewise.
74276         * modules/dirname (Makefile.am): Likewise.
74277         * modules/dup2 (Makefile.am): Likewise.
74278         * modules/euidaccess (Makefile.am): Likewise.
74279         * modules/exclude (Makefile.am): Likewise.
74280         * modules/exitfail (Makefile.am): Likewise.
74281         * modules/fcntl-safer (Makefile.am): Likewise.
74282         * modules/file-type (Makefile.am): Likewise.
74283         * modules/fileblocks (Makefile.am): Likewise.
74284         * modules/filemode (Makefile.am): Likewise.
74285         * modules/filenamecat (Makefile.am): Likewise.
74286         * modules/fnmatch (Makefile.am): Likewise.
74287         * modules/fopen-safer (Makefile.am): Likewise.
74288         * modules/fpending (Makefile.am): Likewise.
74289         * modules/fprintftime (Makefile.am): Likewise.
74290         * modules/free (Makefile.am): Likewise.
74291         * modules/fsusage (Makefile.am): Likewise.
74292         * modules/ftruncate (Makefile.am): Likewise.
74293         * modules/fts (Makefile.am): Likewise.
74294         * modules/gc (Makefile.am): Likewise.
74295         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
74296         * modules/getaddrinfo (Makefile.am): Likewise.
74297         * modules/getcwd (Makefile.am): Likewise.
74298         * modules/getdelim (Makefile.am): Likewise.
74299         * modules/getdomainname (Makefile.am): Likewise.
74300         * modules/getgroups (Makefile.am): Likewise.
74301         * modules/gethostname (Makefile.am): Likewise.
74302         * modules/gethrxtime (Makefile.am): Likewise.
74303         * modules/getline (Makefile.am): Likewise.
74304         * modules/getloadavg (Makefile.am): Likewise.
74305         * modules/getlogin_r (Makefile.am): Likewise.
74306         * modules/getopt (Makefile.am): Likewise.
74307         * modules/getpass (Makefile.am): Likewise.
74308         * modules/getpass-gnu (Makefile.am): Likewise.
74309         * modules/getsubopt (Makefile.am): Likewise.
74310         * modules/gettime (Makefile.am): Likewise.
74311         * modules/gettimeofday (Makefile.am): Likewise.
74312         * modules/getugroups (Makefile.am): Likewise.
74313         * modules/getusershell (Makefile.am): Likewise.
74314         * modules/glob (Makefile.am): Likewise.
74315         * modules/group-member (Makefile.am): Likewise.
74316         * modules/hard-locale (Makefile.am): Likewise.
74317         * modules/hash (Makefile.am): Likewise.
74318         * modules/hmac-md5 (Makefile.am): Likewise.
74319         * modules/hmac-sha1 (Makefile.am): Likewise.
74320         * modules/human (Makefile.am): Likewise.
74321         * modules/idcache (Makefile.am): Likewise.
74322         * modules/imaxabs (Makefile.am): Likewise.
74323         * modules/imaxdiv (Makefile.am): Likewise.
74324         * modules/inet_ntop (Makefile.am): Likewise.
74325         * modules/inet_pton (Makefile.am): Likewise.
74326         * modules/inttostr (Makefile.am): Likewise.
74327         * modules/isapipe (Makefile.am): Likewise.
74328         * modules/lchown (Makefile.am): Likewise.
74329         * modules/long-options (Makefile.am): Likewise.
74330         * modules/lstat (Makefile.am): Likewise.
74331         * modules/malloc (Makefile.am): Likewise.
74332         * modules/mathl (Makefile.am): Likewise.
74333         * modules/mbchar (Makefile.am): Likewise.
74334         * modules/md2 (Makefile.am): Likewise.
74335         * modules/md4 (Makefile.am): Likewise.
74336         * modules/md5 (Makefile.am): Likewise.
74337         * modules/memcasecmp (Makefile.am): Likewise.
74338         * modules/memchr (Makefile.am): Likewise.
74339         * modules/memcmp (Makefile.am): Likewise.
74340         * modules/memcoll (Makefile.am): Likewise.
74341         * modules/memcpy (Makefile.am): Likewise.
74342         * modules/memmem (Makefile.am): Likewise.
74343         * modules/memmove (Makefile.am): Likewise.
74344         * modules/mempcpy (Makefile.am): Likewise.
74345         * modules/memrchr (Makefile.am): Likewise.
74346         * modules/memset (Makefile.am): Likewise.
74347         * modules/memxor (Makefile.am): Likewise.
74348         * modules/mkancesdirs (Makefile.am): Likewise.
74349         * modules/mkdir (Makefile.am): Likewise.
74350         * modules/mkdir-p (Makefile.am): Likewise.
74351         * modules/mkdtemp (Makefile.am): Likewise.
74352         * modules/mkstemp (Makefile.am): Likewise.
74353         * modules/mktime (Makefile.am): Likewise.
74354         * modules/modechange (Makefile.am): Likewise.
74355         * modules/mountlist (Makefile.am): Likewise.
74356         * modules/nanosleep (Makefile.am): Likewise.
74357         * modules/openat (Makefile.am): Likewise.
74358         * modules/pagealign_alloc (Makefile.am): Likewise.
74359         * modules/physmem (Makefile.am): Likewise.
74360         * modules/poll (Makefile.am): Likewise.
74361         * modules/posixtm (Makefile.am): Likewise.
74362         * modules/posixver (Makefile.am): Likewise.
74363         * modules/putenv (Makefile.am): Likewise.
74364         * modules/quote (Makefile.am): Likewise.
74365         * modules/quotearg (Makefile.am): Likewise.
74366         * modules/raise (Makefile.am): Likewise.
74367         * modules/read-file (Makefile.am): Likewise.
74368         * modules/readline (Makefile.am): Likewise.
74369         * modules/readlink (Makefile.am): Likewise.
74370         * modules/readtokens (Makefile.am): Likewise.
74371         * modules/readutmp (Makefile.am): Likewise.
74372         * modules/realloc (Makefile.am): Likewise.
74373         * modules/regex (Makefile.am): Likewise.
74374         * modules/rename (Makefile.am): Likewise.
74375         * modules/rename-dest-slash (Makefile.am): Likewise.
74376         * modules/rijndael (Makefile.am): Likewise.
74377         * modules/rmdir (Makefile.am): Likewise.
74378         * modules/rpmatch (Makefile.am): Likewise.
74379         * modules/safe-read (Makefile.am): Likewise.
74380         * modules/safe-write (Makefile.am): Likewise.
74381         * modules/same (Makefile.am): Likewise.
74382         * modules/save-cwd (Makefile.am): Likewise.
74383         * modules/savedir (Makefile.am): Likewise.
74384         * modules/setenv (Makefile.am): Likewise.
74385         * modules/settime (Makefile.am): Likewise.
74386         * modules/sha1 (Makefile.am): Likewise.
74387         * modules/sig2str (Makefile.am): Likewise.
74388         * modules/snprintf (Makefile.am): Likewise.
74389         * modules/stdlib-safer (Makefile.am): Likewise.
74390         * modules/stpcpy (Makefile.am): Likewise.
74391         * modules/stpncpy (Makefile.am): Likewise.
74392         * modules/strcase (Makefile.am): Likewise.
74393         * modules/strcasestr (Makefile.am): Likewise.
74394         * modules/strchrnul (Makefile.am): Likewise.
74395         * modules/strcspn (Makefile.am): Likewise.
74396         * modules/strdup (Makefile.am): Likewise.
74397         * modules/strerror (Makefile.am): Likewise.
74398         * modules/strftime (Makefile.am): Likewise.
74399         * modules/strndup (Makefile.am): Likewise.
74400         * modules/strnlen (Makefile.am): Likewise.
74401         * modules/strpbrk (Makefile.am): Likewise.
74402         * modules/strsep (Makefile.am): Likewise.
74403         * modules/strstr (Makefile.am): Likewise.
74404         * modules/strtod (Makefile.am): Likewise.
74405         * modules/strtoimax (Makefile.am): Likewise.
74406         * modules/strtok_r (Makefile.am): Likewise.
74407         * modules/strtol (Makefile.am): Likewise.
74408         * modules/strtoll (Makefile.am): Likewise.
74409         * modules/strtoul (Makefile.am): Likewise.
74410         * modules/strtoull (Makefile.am): Likewise.
74411         * modules/strtoumax (Makefile.am): Likewise.
74412         * modules/strverscmp (Makefile.am): Likewise.
74413         * modules/time_r (Makefile.am): Likewise.
74414         * modules/timegm (Makefile.am): Likewise.
74415         * modules/tmpfile-safer (Makefile.am): Likewise.
74416         * modules/unistd-safer (Makefile.am): Likewise.
74417         * modules/unlinkdir (Makefile.am): Likewise.
74418         * modules/userspec (Makefile.am): Likewise.
74419         * modules/utime (Makefile.am): Likewise.
74420         * modules/utimecmp (Makefile.am): Likewise.
74421         * modules/utimens (Makefile.am): Likewise.
74422         * modules/vasnprintf (Makefile.am): Likewise.
74423         * modules/vasprintf (Makefile.am): Likewise.
74424         * modules/vsnprintf (Makefile.am): Likewise.
74425         * modules/xalloc (Makefile.am): Likewise.
74426         * modules/xgetcwd (Makefile.am): Likewise.
74427         * modules/xnanosleep (Makefile.am): Likewise.
74428         * modules/xreadlink (Makefile.am): Likewise.
74429         * modules/xstrtod (Makefile.am): Likewise.
74430         * modules/xstrtol (Makefile.am): Likewise.
74431         * modules/xstrtold (Makefile.am): Likewise.
74432         * modules/yesno (Makefile.am): Likewise.
74433
74434 2006-10-12  Jim Meyering  <jim@meyering.net>
74435
74436         * m4/getloadavg.m4: Revert the change below.
74437
74438         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
74439         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
74440         fail with a symlink, which is what coreutils' ./bootstrap now
74441         creates by default.
74442
74443 2006-10-12  Bruno Haible  <bruno@clisp.org>
74444
74445         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
74446         mingw.
74447         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
74448         MSVC and mingw explicitly.
74449
74450 2006-10-11  Simon Josefsson  <jas@extundo.com>
74451             Bruno Haible  <bruno@clisp.org>
74452
74453         Add support for multiple gnulib-tool invocations in the scope of a
74454         single configure.ac file.
74455         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
74456         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
74457         with the same contents as the _LIBADD variable.
74458         (func_emit_initmacro_start, func_emit_initmacro_end,
74459         func_emit_initmacro_done): New functions.
74460         (func_import, func_create_testdir): Invoke them. Allow the identifiers
74461         gl_LIBOBJS and gl_LTLIBOBJS.
74462
74463 2006-10-11  Bruno Haible  <bruno@clisp.org>
74464
74465         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
74466         (func_create_testdir): Don't create po/Makefile.am, don't invoke
74467         autoreconf. Instead, invoke autopoint explicitly but move back the
74468         *.m4 files from gnulib.
74469
74470 2006-10-11  Bruno Haible  <bruno@clisp.org>
74471
74472         * gnulib-tool (func_usage): Make module names after --create-testdir
74473         optional.
74474         (func_create_testdir): If no module was specified, use nearly all
74475         modules.
74476
74477 2006-10-12  Jim Meyering  <jim@meyering.net>
74478
74479         Big performance improvement for fts-based tools that use FTS_NOSTAT.
74480         Avoid spurious inode-mismatch problems on non-POSIX file systems.
74481         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
74482         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
74483         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
74484         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
74485         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
74486         (fts_set_stat_required): New function.
74487         (fts_open): Defer the calls to fts_stat, if possible or requested.
74488         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
74489         into fts_stat itself.
74490         (fts_read): Perform any required (deferred) fts_stat call.
74491         (fts_build): Likewise, for the directory we're about to open and read.
74492         In the readdir loop, carefully decide whether each entry will require
74493         an eventual call to fts_stat, using dirent.d_type info if available.
74494         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
74495         a command line argument into this function.  Update all callers.
74496         Map a return value of FTS_DOT to FTS_D for a command line argument.
74497         * modules/fts (Depends-on): Add d-type.  Alphabetize.
74498         Thanks to Miklos Szeredi for his tenacity and for the initial
74499         bug report about "find" failing on a FUSE-based file system.
74500
74501         * lib/fts.c (fts_open): Use consistent indentation.
74502
74503 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
74504
74505         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
74506         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
74507         reported by Jim Meyering.  All uses of cache variables renamed
74508         to match Autoconf's.
74509         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
74510         the other one.
74511
74512         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
74513         Fix misspelling in diagnostic.
74514
74515 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
74516
74517         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
74518         defined.  Problem reported by Matthew Woehlke.
74519
74520         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
74521         Add support for Tandem NonStop R series.
74522         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
74523         Use new macro.
74524
74525         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
74526         (has_trailing_slash): Omit size arg; all callers changed.
74527         Omit 'inline', since it doesn't help performance and we'd
74528         need to configure it.
74529         Don't count //, ///, etc. as having a trailing slash.
74530         As a side effect, this removes a C99ism reported by Matthew Woehlke.
74531         (rpl_rename_dest_slash): On failure, use rename's errno rather
74532         than (in some cases) an incorrect or junk errno.
74533         Simplify code by removing need to compute length; this does
74534         cause it to make two passes instead of one over the file name,
74535         but it's worth it.
74536
74537         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
74538         change, since Autoconf's version may no longer be appropriate now
74539         that we are using CVS Autoconf's version.  Add support for Tandem.
74540
74541 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
74542             Bruno Haible  <bruno@clisp.org>
74543
74544         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
74545         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
74546         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
74547         gl_AC_TYPE_LONG_LONG.
74548
74549         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
74550         instead of HAVE_LONG_LONG.
74551         * lib/printf-args.c (printf_fetchargs): Likewise.
74552         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
74553         * lib/vasnprintf.c (VASNPRINTF): Likewise.
74554         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
74555         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
74556         gl_AC_TYPE_LONG_LONG.
74557
74558 2006-10-11  Bruno Haible  <bruno@clisp.org>
74559
74560         * m4/longlong.m4: Add comments.
74561         * m4/ulonglong.m4: Likewise.
74562
74563 2006-10-10  Bruno Haible  <bruno@clisp.org>
74564
74565         Make it possible to #define stpcpy, strdup to aliases.
74566         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
74567         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
74568
74569 2006-10-10  Bruno Haible  <bruno@clisp.org>
74570
74571         Make it possible to #define gcd to an alias.
74572         * lib/gcd.c: Include config.h.
74573
74574 2006-10-10  Bruno Haible  <bruno@clisp.org>
74575
74576         Make it possible to #define c_isascii to an alias.
74577         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
74578         defined. Undefine the macros before defining them, to avoid gcc
74579         warnings.
74580         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
74581         define NO_C_CTYPE_MACROS early.
74582
74583 2006-10-10  Bruno Haible  <bruno@clisp.org>
74584
74585         Make it possible to #define set_program_name to an alias.
74586         * lib/progname.c: Don't undefine set_program_name; instead, undefine
74587         ENABLE_RELOCATABLE early.
74588
74589 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74590
74591         Port to Tandem NSK OSS, which has 64-bit signed int but at most
74592         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
74593         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
74594         More generally, don't assume that 64-bit signed int is available
74595         if unsigned int is, and vice versa.
74596         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
74597         unsigned symbols, not on their signed counterparts.
74598         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
74599         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
74600         (UINT64_C, UINTMAX_C):
74601         Likewise.
74602         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
74603         unsigned counterparts.
74604         (Have_long_long, Unsigned): New macros.
74605         (Int): Renamed from INT.
74606         (strtoimax): Use the new macros.
74607         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
74608         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
74609         * modules/inttypes (inttypes.h): Substitute
74610         HAVE_UNSIGNED_LONG_LONG_INT.
74611         * modules/stdint (stdint.h): Likewise.
74612         (Files): Add m4/ulonglong.m4.
74613
74614 2006-10-10  Bruno Haible  <bruno@clisp.org>
74615
74616         Fix a gcc -Wshadow warning.
74617         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
74618         to 'bucket'.
74619         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
74620         gl_linked_indexof_from_to): Likewise.
74621         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
74622         Likewise.
74623         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
74624         Likewise.
74625         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
74626         Reported by Eric Blake.
74627
74628 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
74629
74630         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
74631         for NetBSD.  Problem reported by Bruno Haible.
74632
74633 2006-10-09  Jim Meyering  <jim@meyering.net>
74634
74635         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
74636         Patch from Bruno Haible.
74637
74638 2006-10-09  Jim Meyering  <jim@meyering.net>
74639
74640         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
74641         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
74642         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
74643
74644 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74645
74646         Don't include <config.h> twice; this doesn't work in some cases,
74647         e.g., when config.h has "#define intmax_t long long int" and
74648         we include <config.h>, <inttypes.h>, <config.h> in that order.
74649         Problem reported by Matthew Woehlke in:
74650         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
74651         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
74652         * lib/fts-cycle.c: Don't include config.h.
74653         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
74654         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
74655         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
74656         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
74657         inttypes.h.
74658         * lib/xstrtoumax.c: Likewise.
74659         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
74660         __strtol and the like, so that this module is more like its siblings.
74661         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
74662         Remove; no longer needed now that we assume gnulib inttypes.h.
74663
74664 2006-10-08  Bruno Haible  <bruno@clisp.org>
74665
74666         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
74667         option.
74668
74669 2006-10-07  Jim Meyering  <jim@meyering.net>
74670
74671         * modules/inttypes (inttypes.h): Revert what seems to have been
74672         an inadvertent part of today's change: use "|", not "/" in the
74673         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
74674
74675 2006-10-07  Bruno Haible  <bruno@clisp.org>
74676
74677         * modules/sublist: New file.
74678
74679 2006-10-07  Bruno Haible  <bruno@clisp.org>
74680
74681         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
74682         * modules/argz (argz.h): Likewise.
74683         * modules/arpa_inet (arpa/inet.h): Likewise.
74684         * modules/byteswap (byteswap.h): Likewise.
74685         * modules/configmake (configmake.h): Likewise.
74686         * modules/fcntl (fcntl.h): Likewise.
74687         * modules/fnmatch (fnmatch.h): Likewise.
74688         * modules/getopt (getopt.h): Likewise.
74689         * modules/glob (glob.h): Likewise.
74690         * modules/inttypes (inttypes.h): Likewise.
74691         * modules/netinet_in (netinet/in.h): Likewise.
74692         * modules/poll (poll.h): Likewise.
74693         * modules/stdbool (stdbool.h): Likewise.
74694         * modules/stdint (stdint.h): Likewise.
74695         * modules/sys_select (sys/select.h): Likewise.
74696         * modules/sys_socket (sys/socket.h): Likewise.
74697         * modules/sys_stat (sys/stat.h): Likewise.
74698         * modules/sysexits (sysexits.h): Likewise.
74699         * modules/unistd (unistd.h): Likewise.
74700         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74701         Add a "DO NOT EDIT" comment to the generated file.
74702         (func_import): Likewise for gnulib-comp.m4.
74703
74704 2006-10-07  Bruno Haible  <bruno@clisp.org>
74705
74706         * lib/gl_sublist.h: New file.
74707         * lib/gl_sublist.c: New file.
74708
74709 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74710
74711         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
74712         name (relative to the original working directory) and the file
74713         name component (relative to the temporary working directory).  All
74714         callers changed.
74715         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
74716         * lib/mkdir-p.c (make_dir_parents): Likewise.
74717         * lib/mkdir-p.h (make_dir_parents): Likewise.
74718
74719 2006-10-06  Eric Blake  <ebb9@byu.net>
74720
74721         Define several macros for use by the clean-temp module.
74722         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
74723         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
74724         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
74725
74726         * lib/clean-temp.h (close_stream_temp): New declaration.
74727         * lib/clean-temp.c (includes): Pull in headers according to what
74728         other modules are in use.
74729         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
74730
74731 2006-10-06  Bruno Haible  <bruno@clisp.org>
74732
74733         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
74734         instead of fopen, fwriteerror.
74735
74736 2006-10-06  Bruno Haible  <bruno@clisp.org>
74737
74738         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
74739         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
74740         int.
74741         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
74742         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
74743         Return an error indicator.
74744         Suggested by Eric Blake.
74745
74746 2006-10-06  Bruno Haible  <bruno@clisp.org>
74747
74748         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
74749         Reported by Eric Blake.
74750
74751 2006-10-06  Bruno Haible  <bruno@clisp.org>
74752
74753         * modules/closeout (Description): Mention stderr too.
74754
74755 2006-10-06  Bruno Haible  <bruno@clisp.org>
74756         and Paul Eggert  <eggert@cs.ucla.edu>
74757
74758         * lib/closeout.c (close_stdout): Also close stderr.
74759         * lib/closeout.h: Update comment.
74760
74761 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74762
74763         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
74764         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
74765         * lib/dirchownmod.c: Include lchown.h.
74766         * lib/lchown.c: Don't include files that lchown.h now includes.
74767         Don't declare chown, since lchown.h now does that.
74768         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
74769         (lchown): Define to rpl_chown if lchown is declared but
74770         does not exist.  Declare using a prototype if lchown is not
74771         declared.  Add a copyright notice.
74772         * lib/mkstemp.h: Include <unistd.h>.
74773         * lib/openat.c: Include lchown.h.
74774
74775         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
74776         we now test for that separately.
74777         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
74778         rather than O_NOFOLLOW, when testing whether it's possible to
74779         avoid a race condition reliably.
74780         * lib/savewd.c (savewd_chdir): Likewise.
74781
74782         Remove macros that are no longer needed now that stdint.h is
74783         reliable.
74784         * lib/fsusage.c (UINTMAX_MAX): Remove.
74785         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
74786         * lib/utimecmp.c (SIZE_MAX): Remove.
74787
74788         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
74789
74790         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
74791         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
74792         O_NOATIME works.
74793
74794 2006-10-05  Bruno Haible  <bruno@clisp.org>
74795
74796         * lib/gl_list.h (gl_sortedlist_search_from_to,
74797         gl_sortedlist_indexof_from_to): New declarations.
74798         (gl_list_implementation): New fields sortedlist_search_from_to,
74799         sortedlist_indexof_from_to.
74800         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
74801         inline functions.
74802         * lib/gl_list.c (gl_sortedlist_search_from_to,
74803         gl_sortedlist_indexof_from_to): New functions.
74804         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
74805         function.
74806         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
74807         (gl_array_sortedlist_search_from_to): New function.
74808         (gl_array_list_implementation): Update.
74809         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
74810         function.
74811         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
74812         (gl_carray_sortedlist_search_from_to): New function.
74813         (gl_carray_list_implementation): Update.
74814         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
74815         gl_linked_sortedlist_indexof_from_to): New functions.
74816         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74817         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74818         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
74819         gl_tree_sortedlist_indexof_from_to): New functions.
74820         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74821         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74822         Update.
74823         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74824         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
74825         Update.
74826
74827 2006-10-05  Bruno Haible  <bruno@clisp.org>
74828
74829         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
74830         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
74831         (struct gl_list_implementation): Add fields search_from_to,
74832         indexof_from_to. Remove fields search, indexof.
74833         (gl_list_search): Use the search_from_to method.
74834         (gl_list_search_from, gl_list_search_from_to): New functions.
74835         (gl_list_indexof): Use the indexof_from_to method.
74836         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74837         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
74838         (gl_list_search_from, gl_list_search_from_to): New functions.
74839         (gl_list_indexof): Use the indexof_from_to method.
74840         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74841         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
74842         gl_array_indexof. Add start_index, end_index arguments.
74843         (gl_array_search_from_to): Renamed from gl_array_search. Add
74844         start_index, end_index arguments.
74845         (gl_array_remove, gl_array_list_implementation): Update.
74846         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
74847         gl_carray_indexof. Add start_index, end_index arguments.
74848         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
74849         start_index, end_index arguments.
74850         (gl_carray_remove, gl_carray_list_implementation): Update.
74851         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
74852         gl_linked_search. Add start_index, end_index arguments.
74853         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
74854         start_index, end_index arguments.
74855         (gl_linked_remove): Update.
74856         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74857         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74858         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
74859         field to 'size_t'.
74860         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
74861         gl_tree_search. Add start_index, end_index arguments.
74862         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74863         start_index, end_index arguments.
74864         (gl_tree_remove): Update.
74865         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74866         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74867         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
74868         function.
74869         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
74870         gl_tree_search. Add start_index, end_index arguments.
74871         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74872         start_index, end_index arguments.
74873         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74874         Update.
74875         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
74876
74877 2006-10-05  Bruno Haible  <bruno@clisp.org>
74878
74879         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
74880
74881         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
74882         fwriteerror_temp): New declarations.
74883         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
74884         (descriptors): New variable.
74885         (cleanup): First, close the descriptors.
74886         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
74887         fclose_temp, fwriteerror_temp): New functions.
74888
74889 2006-10-04  Jim Meyering  <jim@meyering.net>
74890
74891         * lib/fts.c (fts_open): Tiny comment change.
74892
74893 2006-10-04  Bruno Haible  <bruno@clisp.org>
74894
74895         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
74896         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
74897         gl_LOCK_BODY.
74898         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
74899         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
74900         gl_LOCK_EARLY_BODY.
74901         (gl_LOCK): Require gl_LOCK_BODY.
74902
74903 2006-10-04  Bruno Haible  <bruno@clisp.org>
74904
74905         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
74906         (gl_oset_search_atleast): New declaration.
74907         (struct gl_oset_implementation): Add field 'search_atleast'.
74908         (gl_oset_search_atleast): New inline function.
74909         * lib/gl_oset.c (gl_oset_search_atleast): New function.
74910         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
74911         (gl_array_oset_implementation): Update.
74912         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
74913         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
74914         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
74915
74916 2006-10-04  Bruno Haible  <bruno@clisp.org>
74917
74918         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
74919
74920 2006-10-03  Bruno Haible  <bruno@clisp.org>
74921
74922         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
74923         from gl_avltreehash_list_implementation.
74924
74925 2006-10-03  Bruno Haible  <bruno@clisp.org>
74926
74927         * lib/gl_oset.c (gl_oset_add): Fix return type.
74928
74929 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
74930
74931         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
74932
74933 2006-10-02  Eric Blake  <ebb9@byu.net>
74934
74935         * modules/strnlen (Depends-on): Add extensions.
74936
74937 2006-10-02  Eric Blake  <ebb9@byu.net>
74938
74939         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
74940         definition in 2.60+.
74941
74942 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
74943
74944         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
74945         checks.
74946
74947 2006-10-02  Bruno Haible  <bruno@clisp.org>
74948
74949         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
74950         to the AUTOMAKE_OPTIONS.
74951         Reported by Jim Meyering.
74952
74953 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74954
74955         Work around bug in Solaris 10 /proc file system:
74956         /proc/self/fd/NNN/.. isn't the parent directory of
74957         the directory whose file descriptor is NNN.  This needs to
74958         be worked around at run time, not compile time, since a
74959         program might be built on Solaris 8, where things work, and
74960         run on Solaris 10.
74961         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
74962         to use the following interface instead:
74963         (OPENAT_BUFFER_SIZE): New macro.
74964         (openat_proc_name): New function.
74965         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
74966         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
74967         Likewise.
74968         * lib/openat-proc.c: New file.
74969         * modules/openat (Files): Add lib/openat-proc.c.
74970         (Depends-on): Add same-inode, stdbool.
74971         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
74972
74973 2006-09-29  Bruno Haible  <bruno@clisp.org>
74974
74975         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
74976         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
74977         argument. Set stdout_closed before testing for ferror, not after.
74978         (fwriteerror, fwriteerror_no_ebadf): New functions.
74979
74980 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74981
74982         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
74983
74984 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
74985
74986         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
74987         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
74988
74989 2006-09-28  Jim Meyering  <jim@meyering.net>
74990
74991         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
74992         Include <unistd.h>.
74993
74994 2006-09-28  Bruno Haible  <bruno@clisp.org>
74995
74996         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
74997         * modules/linkedhash-list (Depends-on): Likewise.
74998         * modules/rbtreehash-list (Depends-on): Likewise.
74999
75000 2006-09-28  Bruno Haible  <bruno@clisp.org>
75001
75002         * lib/strndup.h: Simplify the redefinition of strndup.
75003         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
75004         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
75005
75006 2006-09-28  Bruno Haible  <bruno@clisp.org>
75007
75008         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
75009         * lib/gl_linkedhash_list.c: Likewise.
75010         * lib/gl_rbtreehash_list.c: Likewise.
75011
75012 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
75013
75014         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
75015         getaddrinfo.
75016
75017         * lib/__fpending.h: Don't include <stdio_ext.h> unless
75018         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
75019         it causes <stdio_ext.h> to cause a compile-time error.
75020         Problem reported by Nelson H. F. Beebe.
75021         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
75022         of HAVE_DECL___PENDING.
75023
75024         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
75025         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
75026         declaration.
75027
75028 2006-09-27  Jim Meyering  <jim@meyering.net>
75029
75030         This file could end up with a definition for a function
75031         named __strndup, rather than rpl_strndup on a system with
75032         incomplete weak_alias support.
75033         * lib/strndup.c (strndup): Rename from __strndup.
75034         Remove #defines that used to map __strndup to strndup.
75035         Don't use K&R prototypes.
75036         Remove LIBC-related code, since this file is not sync'd with glibc.
75037         * lib/strndup.h: Revamp, accordingly.
75038         * m4/strndup.m4: Modernize.
75039
75040 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
75041
75042         * modules/savewd (Depends-on): Add 'raise'.
75043         * lib/savewd.c: Include <signal.h>, for 'raise'.
75044
75045 2006-09-26  Jim Meyering  <jim@meyering.net>
75046
75047         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
75048         when we detect Darwin 8.7.0's acl_get_file bug.
75049         Rearrange to perform the new (below) run-test while $LIBS
75050         contains any acl-related library.  Set USE_ACL at the end.
75051         (gl_ACL_GET_FILE): New function.
75052
75053 2006-09-26  Eric Blake  <ebb9@byu.net>
75054
75055         * lib/verror.c: Include <config.h> unconditionally.
75056
75057 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
75058
75059         * modules/clock-time (Maintainer): Add self.
75060         * modules/getlogin_r (Depends-on): Add extensions.
75061
75062 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75063
75064         * modules/clock-time: New module.
75065         * modules/nanosleep (Depends-on): Add clock-time.
75066         * modules/gethrxtime (Depends-on): Likewise.
75067         * modules/gettime (Depends-on): Likewise.
75068         * modules/settime (Depends-on): Likewise.
75069
75070         * modules/fts-lgpl: Depend on openat.
75071         * modules/mkancesdirs: Depend on savewd.
75072         * modules/mkdir-p: Likewise.
75073
75074 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75075
75076         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
75077
75078         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
75079         `gl_have_arbitrary_file_name_length_limit' to
75080         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
75081         actually works between configure runs.
75082
75083 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75084             Bruno Haible  <bruno@clisp.org>
75085
75086         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
75087
75088 2006-09-25  Jim Meyering  <jim@meyering.net>
75089
75090         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
75091         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
75092
75093 2006-09-25  Eric Blake  <ebb9@byu.net>
75094
75095         * gnulib-tool (func_import, func_create_testdir): Fix typos in
75096         exec's in 2006-09-18 patch when shuffling fds.
75097
75098 2006-09-25  Bruno Haible  <bruno@clisp.org>
75099
75100         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
75101         Reported by Jim Meyering.
75102
75103 2006-09-24  Jim Meyering  <jim@meyering.net>
75104
75105         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
75106         compare a pointer against a literal "0".  That caused failures with
75107         at least HP-UX's hpcc.
75108
75109 2006-09-22  Simon Josefsson  <jas@extundo.com>
75110
75111         * modules/gc-sha1:
75112         * modules/gc-md4:
75113         * modules/gc-hmac-sha1:
75114         * modules/gc-hmac-md5:
75115         * modules/gc-des:
75116         * modules/gc-arcfour: Distribute more files.
75117
75118 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75119
75120         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
75121         (gl_linked_iterator_from_to): Initialize struct completely.
75122         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
75123         (gl_tree_iterator_from_to): Likewise
75124         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
75125         * lib/gl_array_list.c [lint] (gl_array_iterator)
75126         (gl_array_iterator_from_to): Likewise.
75127         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
75128         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
75129         (gl_carray_iterator_from_to): Likewise.
75130
75131         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
75132         * lib/md4.c (md4_process_block): Remove unused variable.
75133         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
75134         parentheses for clarity.
75135
75136 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75137
75138         * modules/bison-i18n (Depends-on): Add gettext.
75139
75140 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75141
75142         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
75143         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
75144         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
75145         also add missing comma that caused broken test.
75146         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
75147         stdlib.h, for `abort'.
75148         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
75149         variables.
75150         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
75151         include unistd.h if present, for `rmdir'.
75152         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
75153         variables.
75154         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
75155         in the process include standard headers for prototypes.
75156         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
75157         gets declared on GNU/Linux.
75158         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
75159         unistd.h, for `rmdir'.
75160         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
75161
75162         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
75163         always true.
75164         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
75165
75166         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
75167
75168 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75169
75170         * gnulib-tool (func_version): Create output all at once.  This
75171         may help avoid triggering unnecessary SIGPIPEs, and at any
75172         rate it doesn't hurt.
75173
75174 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75175             Bruno Haible  <bruno@clisp.org>
75176
75177         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
75178         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
75179         * m4/signed.m4 (bh_C_SIGNED): Likewise.
75180
75181         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
75182         (gl_FUNC_VASPRINTF): Invoke it.
75183
75184 2006-09-22  Bruno Haible  <bruno@clisp.org>
75185
75186         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
75187         getloadavg.c as first argument.
75188
75189 2006-09-22  Bruno Haible  <bruno@clisp.org>
75190
75191         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
75192         at the beginning of the gl_INIT macro.
75193         * modules/getloadavg (configure.ac): Pass $gl_source_base to
75194         gl_GETLOADAVG.
75195
75196 2006-09-22  Bruno Haible  <bruno@clisp.org>
75197
75198         * gnulib-tool (func_create_megatestdir): Don't include the config-h
75199         module.
75200         Suggested by Ralf Wildenhues.
75201
75202 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75203
75204         Import this patch from libc:
75205
75206         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
75207
75208         * lib/regex_internal.c (re_string_reconstruct): Handle
75209         offset < pstr->valid_raw_len && pstr->offsets_needed case.
75210         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
75211         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
75212         re_string_context_at.
75213
75214         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
75215         now requires it.
75216         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
75217         gl_REGEX now does it for us.
75218         (gl_REGEX): Add test taken from
75219         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
75220
75221         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
75222         Check that large offsets work.  Modernize Autoconf usages.
75223         Prefer "yes" to mean a good thing rather than a bad.
75224         Don't put "#define mkstemp" in config.h, as this might interfere
75225         with standard system headers that "#define mkstemp mkstemp64".
75226
75227         * modules/mkstemp (Depends-on): Add extensions, so that
75228         mkstemp is visible on some platforms.
75229         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
75230         (Include): Change to "mkstemp.h" from <stdlib.h>.
75231         (Files): Add mkstemp.h.
75232
75233         * lib/mkstemp.h: New file, since some standard headers
75234         #define mkstemp.
75235         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
75236         Include "mkstemp.h".
75237         Make the _LIBC code resemble glibc original more,
75238         e.g., use K&R style.
75239         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
75240         (mkstemp): Remove, since mkstemp.h does this for us.
75241         * lib/stdlib--.h: Include mkstemp.h.
75242
75243         Import this patch from libc:
75244
75245         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
75246
75247         * lib/tempname.c (__gen_tempname): Change attempts_min
75248         into a macro.  Use preprocessor to decide how to initialize
75249         attempts [Coverity CID 67].
75250
75251 2006-09-20  Bruno Haible  <bruno@clisp.org>
75252
75253         * lib/mkdtemp.c: Import from libc.
75254         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
75255                 * sysdeps/posix/tempname.c (__gen_tempname): Change
75256                 attempts_min into a macro.  Use preprocessor to decide how to
75257                 initialize attempts [Coverity CID 67].
75258         2001-11-27  Paul Eggert  <eggert@twinsun.com>
75259                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
75260                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
75261
75262 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75263
75264         * gnulib-tool (func_exit): New function, to allow to pass the
75265         exit status portably through the trap.  Use everywhere.
75266         (--help, --version): Signal a write error.
75267         (trap): catch SIGPIPE, for write errors.
75268         Exit at the end of the trap, with the correct exit status.
75269
75270 2006-09-19  Karl Berry  <karl@gnu.org>
75271
75272         * doc/gnulib.texi: note about the license texinfo files.
75273
75274 2006-09-19  Eric Blake  <ebb9@byu.net>
75275
75276         * gnulib-tool: Avoid space-tab.
75277
75278 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
75279
75280         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
75281         that prevented coreutils 6.1 from building.  Problem reported
75282         by Petter Reinholdtsen.
75283
75284 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
75285
75286         * gnulib-tool (avoidlist): Fix typo that broke options like
75287         --avoid=lock that are used by coreutils bootstrap.
75288
75289 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
75290
75291         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
75292         more systematically.
75293
75294 2006-09-18  Jim Meyering  <jim@meyering.net>
75295
75296         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
75297
75298 2006-09-18  Bruno Haible  <bruno@clisp.org>
75299
75300         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
75301
75302 2006-09-18  Bruno Haible  <bruno@clisp.org>
75303
75304         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
75305         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
75306         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
75307         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
75308         * m4/gettext.m4: Require autoconf >= 2.52.
75309         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
75310         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
75311         of gl_cv_header_inttypes_h.
75312
75313 2006-09-18  Bruno Haible  <bruno@clisp.org>
75314
75315         * lib/javaversion.c: Include configmake.h.
75316
75317 2006-09-18  Bruno Haible  <bruno@clisp.org>
75318
75319         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
75320         avoid that the while loops be executed in a subshell.
75321
75322 2006-09-18  Bruno Haible  <bruno@clisp.org>
75323
75324         * MODULES.html.sh (func_module): Break long lines.
75325         Suggested by Bruce Korb <bkorb@gnu.org>.
75326
75327 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75328
75329         Speed up by a factor of 1.12.
75330         * gnulib-tool (nl): New variable.
75331         (func_import): Rewrite include directive extraction to only read each
75332         directive once.
75333
75334 2006-09-17  Bruno Haible  <bruno@clisp.org>
75335
75336         * modules/javaversion (Makefile.am): Remove DEFS setting.
75337         (Depends-on): Add configmake, for PKGDATADIR definition.
75338
75339 2006-09-17  Bruno Haible  <bruno@clisp.org>
75340
75341         * gnulib-tool (func_create_testdir): Rewrite all files at once.
75342
75343 2006-09-17  Bruno Haible  <bruno@clisp.org>
75344
75345         * gnulib-tool (func_append): New function, stolen from libtool.m4.
75346         (func_modules_transitive_closure, func_modules_add_dummy,
75347         func_modules_to_filelist, func_import, func_create_testdir,
75348         func_create_megatestdir, ...): Use it wherever possible.
75349         Suggested by Ralf Wildenhues.
75350
75351 2006-09-16  Karl Berry  <karl@gnu.org>
75352
75353         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
75354         to avoid sectioning errors.
75355         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
75356         [ifinfo]: blank line after @center-ed titles.
75357         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
75358         Spell FSF address consistently with others.
75359         (These changes approved by rms.)
75360
75361 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75362
75363         Speed up by a factor of 1.61.
75364         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
75365         already checked module names again.
75366
75367 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75368
75369         Speed up by a factor of 1.13.
75370         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
75371         for new_files, and the input to func_add_or_update.
75372
75373 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75374
75375         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
75376         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
75377
75378 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75379
75380         * modules/mkancesdirs (Depends-on): Add fcntl.
75381         * modules/savewd: New file.
75382         * MODULES.html.sh (File system functions): Add savewd.
75383
75384         * modules/configmake (Makefile.am): Add support for the
75385         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
75386
75387 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75388
75389         * m4/savewd.m4: New file.
75390
75391 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75392
75393         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
75394         (dirchownmod): New arg FD.  All callers changed.
75395         Use FD rather than opening the directory ourself, as opening is
75396         now the caller's responsibility.
75397         * lib/dirchownmod.h: Likewise.
75398         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
75399         hosts that require <sys/types.h> before <sys/stat.h>.  Include
75400         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
75401         (test_dir): Remove.
75402         (mkancesdirs): Return length of prefix of FILE that has already
75403         been made, or -2 if there is a child doing the work.  Redo
75404         algorithm so that it is O(N) rather than O(N**2).  Optimize away
75405         ".", and treat ".." specially since it might stray back into
75406         already-created areas.  Use a subprocess if necessary.  New arg
75407         WD; all users changed.  MAKE_DIR function should now return 1
75408         if it creates a directory that is not readable.  Return -2 if
75409         a child process is spun off.
75410         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
75411         Adjust signature to match code.
75412         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
75413         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
75414         all users changed.
75415         * lib/savewd.c, lib/savewd.h: New files.
75416
75417 2006-09-15  Jim Meyering  <jim@meyering.net>
75418
75419         * modules/rename-dest-slash: New module.
75420         * MODULES.html.sh (posix_compat): Add it here.
75421
75422         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
75423
75424 2006-09-15  Jim Meyering  <jim@meyering.net>
75425
75426         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
75427         file.
75428
75429         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
75430
75431 2006-09-15  Jim Meyering  <jim@meyering.net>
75432
75433         * lib/rename-dest-slash.c (has_trailing_slash): Use
75434         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
75435         (rpl_rename_dest_slash): Perform the cheaper trailing slash
75436         test before testing whether SRC is a directory.
75437         Suggestions from Bruno Haible.
75438
75439         Avoid a warning about an unused variable.
75440         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
75441         into the #ifdef block where it's used.
75442
75443         * lib/rename-dest-slash.c: New file.
75444
75445 2006-09-14  Bruno Haible  <bruno@clisp.org>
75446
75447         * lib/allocsa.c: Include <config.h> unconditionally.
75448         * lib/asnprintf.c: Likewise.
75449         * lib/asprintf.c: Likewise.
75450         * lib/c-strcasecmp.c: Likewise.
75451         * lib/c-strcasestr.c: Likewise.
75452         * lib/c-strncasecmp.c: Likewise.
75453         * lib/c-strstr.c: Likewise.
75454         * lib/classpath.c: Likewise.
75455         * lib/clean-temp.c: Likewise.
75456         * lib/concatpath.c: Likewise.
75457         * lib/copy-file.c: Likewise.
75458         * lib/csharpcomp.c: Likewise.
75459         * lib/csharpexec.c: Likewise.
75460         * lib/execute.c: Likewise.
75461         * lib/fatal-signal.c: Likewise.
75462         * lib/findprog.c: Likewise.
75463         * lib/fwriteerror.c: Likewise.
75464         * lib/gl_array_list.c: Likewise.
75465         * lib/gl_array_oset.c: Likewise.
75466         * lib/gl_avltree_list.c: Likewise.
75467         * lib/gl_avltree_oset.c: Likewise.
75468         * lib/gl_avltreehash_list.c: Likewise.
75469         * lib/gl_carray_list.c: Likewise.
75470         * lib/gl_linked_list.c: Likewise.
75471         * lib/gl_linkedhash_list.c: Likewise.
75472         * lib/gl_list.c: Likewise.
75473         * lib/gl_oset.c: Likewise.
75474         * lib/gl_rbtree_list.c: Likewise.
75475         * lib/gl_rbtree_oset.c: Likewise.
75476         * lib/gl_rbtreehash_list.c: Likewise.
75477         * lib/imaxabs.c: Likewise.
75478         * lib/imaxdiv.c: Likewise.
75479         * lib/javacomp.c: Likewise.
75480         * lib/javaexec.c: Likewise.
75481         * lib/javaversion.c: Likewise.
75482         * lib/linebreak.c: Likewise.
75483         * lib/localcharset.c: Likewise.
75484         * lib/lock.c: Likewise.
75485         * lib/mbchar.c: Likewise.
75486         * lib/mbswidth.c: Likewise.
75487         * lib/mkdtemp.c: Likewise.
75488         * lib/pipe.c: Likewise.
75489         * lib/printf-args.c: Likewise.
75490         * lib/printf-parse.c: Likewise.
75491         * lib/progname.c: Likewise.
75492         * lib/progreloc.c: Likewise.
75493         * lib/readlink.c: Likewise.
75494         * lib/sh-quote.c: Likewise.
75495         * lib/stpcpy.c: Likewise.
75496         * lib/stpncpy.c: Likewise.
75497         * lib/strcasecmp.c: Likewise.
75498         * lib/strcasestr.c: Likewise.
75499         * lib/strcspn.c: Likewise.
75500         * lib/striconv.c: Likewise.
75501         * lib/strncasecmp.c: Likewise.
75502         * lib/strnlen1.c: Likewise.
75503         * lib/strstr.c: Likewise.
75504         * lib/strtok_r.c: Likewise.
75505         * lib/tls.c: Likewise.
75506         * lib/tmpdir.c: Likewise.
75507         * lib/unicodeio.c: Likewise.
75508         * lib/unsetenv.c: Likewise.
75509         * lib/vasnprintf.c: Likewise.
75510         * lib/vasprintf.c: Likewise.
75511         * lib/wait-process.c: Likewise.
75512         * lib/xallocsa.c: Likewise.
75513         * lib/xsetenv.c: Likewise.
75514         * lib/xstriconv.c: Likewise.
75515
75516 2006-09-13  Simon Josefsson  <jas@extundo.com>
75517
75518         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
75519         that internally, suggested by Ralf Wildenhues
75520         <Ralf.Wildenhues@gmx.de>.
75521
75522 2006-09-13  Simon Josefsson  <jas@extundo.com>
75523
75524         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
75525         @LIBOBJS@.
75526         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75527
75528 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75529
75530         * lib/_fpending.c: Include <config.h> unconditionally, since we no
75531         longer worry about uses that don't define HAVE_CONFIG_H.
75532         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
75533         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
75534         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
75535         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
75536         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
75537         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
75538         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
75539         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
75540         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
75541         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
75542         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
75543         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
75544         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
75545         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
75546         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
75547         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
75548         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
75549         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
75550         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
75551         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
75552         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
75553         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
75554         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
75555         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
75556         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
75557         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
75558         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
75559         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
75560         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
75561         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
75562         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
75563         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
75564         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
75565         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
75566         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
75567         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
75568         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
75569         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
75570         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
75571         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
75572         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
75573         Likewise.
75574
75575 2006-09-13  Eric Blake  <ebb9@byu.net>
75576
75577         * lib/getopt.c: Fix typo in last commit.
75578
75579 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
75580
75581         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
75582         dgettext.
75583
75584 2006-09-12  Jim Meyering  <jim@meyering.net>
75585
75586         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
75587         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
75588         Reported by Nelson H. F. Beebe.
75589
75590 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75591
75592         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
75593         program_invocation_name and program_invocation_short_name are
75594         initialized.
75595         * lib/argp-namefrob.h: Move declarations of program_invocation_name
75596         and program_invocation_short_name to argp.h, so they are visible
75597         to user programs.
75598         * lib/argp.h: Likewise
75599
75600 2006-09-10  Bruno Haible  <bruno@clisp.org>
75601
75602         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75603         m4/inttypes_h.m4, m4/uintmax_t.m4.
75604
75605 2006-09-10  Bruno Haible  <bruno@clisp.org>
75606
75607         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
75608         gl_AC_TYPE_UINTMAX_T.
75609
75610 2006-09-10  Bruno Haible  <bruno@clisp.org>
75611
75612         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
75613
75614 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75615
75616         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
75617         convention.  Text proposed by Bruno Haible.
75618         (struct argp_option): Document the use of N_() wrappers.
75619
75620         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
75621         '\v', and translate the two parts separately, instead of feeding
75622         the whole string to gettext.  This allows to exclude
75623         '\v' from the strings visible to the translator by writing doc
75624         strings as N_("..") "\v" N_("..").
75625
75626 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
75627
75628         * config/srclist.txt: Undo latest change; the bug was fixed.
75629
75630 2006-09-09  Bruno Haible  <bruno@clisp.org>
75631
75632         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
75633         assignments if building a library without libtool.
75634         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
75635         in func_emit_lib_Makefile_am.
75636         (func_import): When building a static library libfoo.a, arrange to
75637         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
75638         (func_create_testdir): Likewise.
75639         * modules/gc (configure.ac, Makefile.am): If building statically,
75640         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
75641         * modules/iconvme (configure.ac, Makefile.am): Likewise.
75642         * modules/striconv (configure.ac, Makefile.am): Likewise.
75643         Based on a suggestion by Ralf Wildenhues.
75644
75645 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75646
75647         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75648         Check for unistd.h too, since Autoconf doesn't assume POSIX.
75649         Also:
75650
75651         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75652         Add year_2050_test to catch glibc bug 2821
75653         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75654
75655         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75656         Prefer #ifdef to #if.
75657
75658         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
75659         Return from 'main' instead of calling 'exit'.
75660
75661 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75662
75663         * lib/mktime.c (guess_time_tm): Fix bug where mktime
75664         returned the maximum time_t value rather than (time_t) -1.
75665         Problem originally reported by William Bardwell
75666         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75667
75668         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75669         Moved to here ...
75670         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75671         ... from here.
75672
75673 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75674
75675         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
75676         2821 is fixed.
75677
75678 2006-09-08  Jim Meyering  <jim@meyering.net>
75679
75680         Don't make generated files read-only.  That would bother too many
75681         people.  However, do retain the ability to work when targets are
75682         read-only: remove the destination and temporary files before writing
75683         them (when generated via sed or echo), or by using the -f option for
75684         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
75685         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75686         * modules/byteswap, modules/configmake, modules/fcntl:
75687         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75688         * modules/localcharset, modules/netinet_in, modules/poll:
75689         * modules/stdbool, modules/stdint, modules/sys_select:
75690         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75691
75692 2006-09-08  Jim Meyering  <jim@meyering.net>
75693
75694         Avoid new build failure on FreeBSD 6.0.
75695         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
75696         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
75697         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
75698
75699 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75700
75701         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
75702
75703 2006-09-07  Jim Meyering  <jim@meyering.net>
75704
75705         Fix global typo in last change: use chmod u-w, not chmod u-x.
75706         Spotted by Paul Eggert and Bruce Korb.
75707         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75708         * modules/byteswap, modules/configmake, modules/fcntl:
75709         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75710         * modules/localcharset, modules/netinet_in, modules/poll:
75711         * modules/stdbool, modules/stdint, modules/sys_select:
75712         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75713
75714 2006-09-06  Jim Meyering  <jim@meyering.net>
75715
75716         Make generated files be read-only.
75717         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
75718         Ensure that each generated file is now read-only.
75719         * modules/argz: Likewise.
75720         * modules/arpa_inet: Likewise.
75721         * modules/byteswap: Likewise.
75722         * modules/configmake: Likewise.
75723         * modules/fcntl: Likewise.
75724         * modules/fnmatch: Likewise.
75725         * modules/getopt: Likewise.
75726         * modules/glob: Likewise.
75727         * modules/inttypes: Likewise.
75728         * modules/netinet_in: Likewise.
75729         * modules/poll: Likewise.
75730         * modules/stdbool: Likewise.
75731         * modules/stdint: Likewise.
75732         * modules/sys_select: Likewise.
75733         * modules/sys_socket: Likewise.
75734         * modules/sys_stat: Likewise.
75735         * modules/sysexits: Likewise.
75736         * modules/localcharset: Same as above, but continue using temporary
75737         file named "t-$@" (why different?) rather than the "$@-t" used
75738         everywhere else.
75739
75740         * modules/sysexits (Makefile.am): Replace literal occurrences
75741         of "sysexit.h" more readable, and more consistent, "$@".
75742
75743 2006-09-06  Bruno Haible  <bruno@clisp.org>
75744
75745         * modules/striconv: New file.
75746         * modules/xstriconv: New file.
75747         * MODULES.html.sh (Internationalization functions): Add striconv,
75748         xstriconv.
75749
75750 2006-09-06  Bruno Haible  <bruno@clisp.org>
75751
75752         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
75753         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
75754         not using libtool correctly.
75755
75756 2006-09-06  Bruno Haible  <bruno@clisp.org>
75757
75758         * lib/striconv.h: New file.
75759         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
75760         iconvstring.c.
75761         * lib/xstriconv.h: New file.
75762         * lib/xstriconv.c: New file.
75763
75764 2006-09-06  Bruno Haible  <bruno@clisp.org>
75765
75766         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75767         lib_..._LDFLAGS.
75768
75769 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75770
75771         * lib/argz_.h: Sync from Libtool.
75772
75773         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
75774                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75775
75776         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
75777
75778 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75779
75780         * modules/trim: New file.
75781
75782 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75783
75784         * lib/trim.h: New file.
75785         * lib/trim.c: New file.
75786
75787 2006-09-05  Bruno Haible  <bruno@clisp.org>
75788
75789         * MODULES.html.sh (String handling): Add trim.
75790
75791 2006-09-04  Karl Berry  <karl@gnu.org>
75792
75793         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
75794         until next release.
75795
75796 2006-09-03  Bruno Haible  <bruno@clisp.org>
75797
75798         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
75799         correctly.
75800
75801 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75802
75803         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
75804         not gl_GETLOADAVG.  Omit unneeded semicolons.
75805         Problems reported by Ralf Wildenhues in
75806         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75807         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
75808         at the end, which is the usual gnulib style.
75809
75810         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
75811         of doing all the work ourselves.
75812         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
75813         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
75814
75815 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75816
75817         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
75818         Problem reported by Ralf Wildenhues in
75819         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75820
75821         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
75822         HAVE_STRUCT_STATFS_F_FSTYPENAME.
75823
75824 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75825
75826         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
75827         yesterday's patch by changing test -n to test -z.
75828
75829 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75830
75831         * modules/getloadavg (Files): Add m4/getloadavg.m4.
75832         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
75833         the former is now obsolescent.
75834
75835         * modules/chdir-long (Depends-on): Add fcntl.
75836
75837 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75838
75839         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
75840         obsolescent, and programs should use gnulib instead.
75841         * m4/getloadavg.m4: New file, with contents taken from Autoconf
75842         but with prefixes changed.
75843
75844 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75845
75846         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
75847         or stdbool.h, because they might not exist while configuring.
75848
75849         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
75850         Don't include unistd.h or limits.h; not needed, since chdir-long.h
75851         does that for us.
75852         (O_DIRECTORY): Remove.
75853
75854 2006-08-31  Eric Blake  <ebb9@byu.net>
75855
75856         * gnulib-tool: Don't let emacs change spaces to TAB.
75857
75858 2006-08-31  Bruno Haible  <bruno@clisp.org>
75859
75860         * gnulib-tool: When calling func_import more than once, do it in a
75861         subshell.
75862         Reported by Eric Blake <ebb9@byu.net>.
75863
75864 2006-08-31  Bruno Haible  <bruno@clisp.org>
75865
75866         * gnulib-tool (nl): Remove variable.
75867         (sed_transform_lib_file): Use more robust test for config-h module.
75868         (func_import): Fix typo in 2006-08-25 patch.
75869
75870 2006-08-31  Bruno Haible  <bruno@clisp.org>
75871
75872         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
75873         specified, augment Makefile.am variables instead of assigning them.
75874
75875 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75876
75877         Work around a bug in both the Linux and SunOS 64-bit kernels:
75878         nanosleep mishandles sleeps for longer than 2**31 seconds.
75879         Problem reported by Frank v Waveren in
75880         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75881         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
75882         Check for nanosleep bug.
75883         (LIB_NANOSLEEP): Append clock_gettime library if needed.
75884
75885 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75886
75887         Work around a bug in both the Linux and SunOS 64-bit kernels:
75888         nanosleep mishandles sleeps for longer than 2**31 seconds.
75889         Problem reported by Frank v Waveren in
75890         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75891         * lib/nanosleep.c (BILLION): New constant.
75892         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
75893         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
75894         implementation.
75895
75896 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75897
75898         * modules/nanosleep (Depends-on): Add gettime.
75899
75900 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75901         and Simon Josefsson  <jas@extundo.com>
75902         and Oskar Liljeblad  <oskar@osk.mine.nu>
75903
75904         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
75905         * gnulib-tool (func_import): New license type 'unmodifiable license
75906         text'.
75907         * modules/fdl: Use it.  Longer description.
75908         * module/gpl, module/lgpl: New files.
75909
75910 2006-08-30  Jim Meyering  <jim@meyering.net>
75911
75912         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
75913         shadowing the parameter.
75914
75915 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75916
75917         Sync from Libtool:
75918
75919         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75920
75921         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
75922         sharing with gnulib.  Report by Eric Blake.
75923
75924 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75925
75926         * modules/isapipe: New file.
75927         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
75928
75929 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75930
75931         * modules/configmake (Makefile.am): Add a comment, and omit
75932         the CONFIGMAKE_ prefix from generated macro names.  Suggested
75933         by Bruno Haible.
75934
75935 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75936
75937         * m4/isapipe.m4: New file.
75938
75939 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75940
75941         * lib/isapipe.c, lib/isapipe.h: New files.
75942
75943 2006-08-29  Jim Meyering  <jim@meyering.net>
75944
75945         * modules/configmake (Makefile.am): Make configmake.h depend on
75946         Makefile.  Otherwise, a stale configmake.h could hang around.
75947
75948 2006-08-29  Eric Blake  <ebb9@byu.net>
75949
75950         * lib/error.c (error_at_line, print_errno_message): Match libc, after
75951         resolution of upstream bug 3044.
75952
75953 2006-08-29  Bruno Haible  <bruno@clisp.org>
75954
75955         * modules/localcharset (Depends-on): Add configmake.
75956         (Makefile.am): Remove setting of LIBDIR through DEFS.
75957
75958 2006-08-29  Bruno Haible  <bruno@clisp.org>
75959
75960         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
75961         defined.
75962
75963 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75964
75965         * modules/fcntl: New file.
75966         * modules/chdir-safer (Depends-on): Add fcntl.
75967         * modules/fts: Likewise.
75968         * modules/mkdir-p: Likewise.
75969
75970         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
75971         This undoes the most recent change, since we're now addressing the
75972         problem in a different way.
75973
75974         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
75975         into output, since the output might be called Makefile.am even
75976         if $makefile_name is something different.
75977         (func_import): Use $makefile_am rather than
75978         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
75979         empty.
75980
75981         * modules/inttypes (Files): Add m4/inttypes-h.m4.
75982
75983 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75984
75985         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
75986         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
75987         recent change to stdint.m4, since we're now addressing the problem in a
75988         different way.
75989
75990 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75991
75992         * m4/fcntl_h.m4: New file.
75993
75994 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75995
75996         * lib/fcntl_.h: New file.
75997         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
75998         the fcntl module.
75999         * lib/dirchownmod.c: Likewise.
76000         * lib/fts.c: Likewise.
76001
76002         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
76003         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
76004         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
76005         just before including <inttypes.h>, to avoid circular inclusion.
76006
76007 2006-08-28  Jim Meyering  <jim@meyering.net>
76008
76009         * doc/visibility.texi: Actually read and correct the grammar of the
76010         sentence affected by yesterday's change.
76011
76012 2006-08-28  Eric Blake  <ebb9@byu.net>
76013
76014         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
76015         needs wrapper.
76016
76017 2006-08-28  Eric Blake  <ebb9@byu.net>
76018
76019         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
76020
76021 2006-08-28  Eric Blake  <ebb9@byu.net>
76022
76023         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
76024
76025 2006-08-28  Bruno Haible  <bruno@clisp.org>
76026
76027         * modules/c-strstr: New file, from GNU gettext.
76028         * MODULES.html.sh (String handling): Add c-strstr.
76029
76030 2006-08-28  Bruno Haible  <bruno@clisp.org>
76031
76032         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
76033         macros.
76034         Reported by Eric Blake.
76035
76036 2006-08-28  Bruno Haible  <bruno@clisp.org>
76037
76038         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
76039         (VASNPRINTF): Return a string of length > INT_MAX without failing.
76040         * lib/vasprintf.c: Include errno.h, limits.h.
76041         (EOVERFLOW): New fallback definition.
76042         (vasprintf): Test here whether the string length is > INT_MAX.
76043         * lib/vsnprintf.c: Include errno.h, limits.h.
76044         (EOVERFLOW): New fallback definition.
76045         (vsnprintf): Fix bug when generated string was too long for the buffer.
76046         Test here whether the string length is > INT_MAX.
76047
76048 2006-08-28  Bruno Haible  <bruno@clisp.org>
76049
76050         * lib/inttypes_.h (SCNX*): Remove definitions.
76051         Reported by Eric Blake.
76052
76053 2006-08-28  Bruno Haible  <bruno@clisp.org>
76054
76055         * lib/c-strstr.h: New file, from GNU gettext.
76056         * lib/c-strstr.c: New file, from GNU gettext.
76057
76058 2006-08-28  Bruno Haible  <bruno@clisp.org>
76059
76060         * gnulib-tool: Reorder some statements.
76061
76062 2006-08-28  Bruno Haible  <bruno@clisp.org>
76063
76064         * gnulib-tool: New option --makefile-name.
76065         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
76066         $makefile_name.
76067         (func_import): Write $makefile_name to the cache file, and read it from
76068         there unless explicitly specified. Use $makefile_name as file name
76069         instead of Makefile.am. Adjust the recommendations accordingly.
76070
76071 2006-08-28  Bruno Haible  <bruno@clisp.org>
76072
76073         * gnulib-tool (func_verify_module): Check against misapplying patch.
76074
76075 2006-08-28  Bruno Haible  <bruno@clisp.org>
76076
76077         * gnulib-tool (func_relativize, func_relconcat): New functions.
76078         Give an error if --local-dir is given with --update.
76079         Remove trailing slashes from $local_gnulib_dir.
76080         (func_import): Store the relativized $local_gnulib_dir in
76081         gnulib-cache.m4, and read it from there if not specified explicitly.
76082
76083 2006-08-28  Bruno Haible  <bruno@clisp.org>
76084
76085         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
76086         is the current directory. Respect also $local_gnulib_dir.
76087
76088 2006-08-28  Bruno Haible  <bruno@clisp.org>
76089             Simon Josefsson  <jas@extundo.com>
76090
76091         BeOS portability.
76092         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
76093
76094 2006-08-27  Jim Meyering  <jim@meyering.net>
76095
76096         * doc/visibility.texi: Remove duplicate word: "pointer".
76097
76098 2006-08-26  Bruno Haible  <bruno@clisp.org>
76099
76100         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
76101         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
76102         (Makefile.am): Create inttypes.h from inttypes_.h.
76103         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
76104
76105         * modules/imaxabs: New file.
76106
76107         * modules/imaxdiv: New file.
76108
76109 2006-08-26  Bruno Haible  <bruno@clisp.org>
76110
76111         * m4/inttypes.m4: New file.
76112         * m4/_inttypes_h.m4: Remove file.
76113         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
76114         PRI_MACROS_BROKEN.
76115         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
76116
76117         * m4/imaxabs.m4: New file.
76118
76119         * m4/imaxdiv.m4: New file.
76120
76121 2006-08-26  Bruno Haible  <bruno@clisp.org>
76122
76123         * lib/inttypes_.h: New file.
76124         * lib/inttypes.h: Remove file.
76125         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
76126
76127         * lib/imaxabs.c: New file.
76128
76129         * lib/imaxdiv.c: New file.
76130
76131 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76132
76133         New config-h module, so that "make" output needn't be cluttered
76134         by -DHAVE_CONFIG_H.
76135         * MODULES.html.sh (Support for building libraries and executables):
76136         Add config-h.
76137         * modules/config-h: New file.
76138         * gnulib-tool (nl, sed_transform_lib_file): New vars.
76139         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
76140         the config-h module is used.
76141
76142         New configmake module, so that "make" output needn't be cluttered
76143         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
76144         * MODULES.html.sh (Support for building libraries and executables):
76145         Add configmake.
76146         * modules/configmake: New file.
76147
76148 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76149
76150         * m4/config-h.m4: New file.
76151
76152 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76153
76154         * config/srclist.txt: Add elisp-comp.
76155
76156 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76157
76158         * MODULES.html.sh (Support for building libraries and executables):
76159         Add elisp-comp.
76160         * build-aux/elisp-comp: New file.
76161         * modules/elisp-comp: New file.
76162
76163 2006-08-24  Bruno Haible  <bruno@clisp.org>
76164
76165         * gnulib-tool (func_create_testdir): Use non-default values of
76166         sourcebase and m4base.
76167
76168 2006-08-24  Bruno Haible  <bruno@clisp.org>
76169
76170         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
76171         HTML structure.
76172
76173 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76174
76175         * modules/openat (Depends-on): Add lchown.
76176
76177 2006-08-23  Bruno Haible  <bruno@clisp.org>
76178
76179         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
76180         of gl_LOCK_EARLY instead of gl_LOCK.
76181
76182 2006-08-23  Bruno Haible  <bruno@clisp.org>
76183
76184         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
76185         on OSF/1 to no.
76186         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
76187
76188 2006-08-23  Bruno Haible  <bruno@clisp.org>
76189
76190         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
76191         as unusable.
76192
76193         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
76194         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
76195         (gl_LOCK): New macro.
76196
76197 2006-08-22  Simon Josefsson  <jas@extundo.com>
76198
76199         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
76200         to md5 module.
76201
76202 2006-08-22  Simon Josefsson  <jas@extundo.com>
76203
76204         * MODULES.html.sh: Add "Support for maintaining and release
76205         projects".
76206
76207         * build-aux/gnupload: New file, from coreutils.
76208
76209 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76210
76211         Avoid the need for AC_LIBSOURCES in m4 macros.
76212         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
76213         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
76214         * modules/check-version (EXTRA_DIST): Add check-version.h.
76215         * modules/crc (EXTRA_DIST): Add crc.h.
76216         * modules/des (EXTRA_DIST): Add des.h.
76217         * modules/gc (EXTRA_DIST): Add gc.h.
76218         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
76219         * modules/getline (EXTRA_DIST): Add getline.h.
76220         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
76221         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
76222         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
76223         * modules/md2 (EXTRA_DIST): Add md2.h.
76224         * modules/md4 (EXTRA_DIST): Add md4.h.
76225         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
76226         * modules/read-file (EXTRA_DIST): Add read-file.h.
76227         * modules/readline (EXTRA_DIST): Add readline.h.
76228         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
76229         rijndael-api-fst.h.
76230
76231 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76232
76233         * m4/rijndael.m4 (gl_ARCFOUR):
76234         * m4/arctwo.m4 (gl_ARCTWO):
76235         * m4/check-version.m4 (gl_CHECK_VERSION):
76236         * m4/crc.m4 (gl_CRC):
76237         * m4/des.m4 (gl_DES):
76238         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
76239         * m4/gc.m4 (gl_GC):
76240         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
76241         * m4/getline.m4 (gl_FUNC_GETLINE):
76242         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
76243         * m4/hmac-md5.m4 (gl_HMAC_MD5):
76244         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
76245         * m4/md2.m4 (gl_MD2):
76246         * m4/md4.m4 (gl_MD4):
76247         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
76248         * m4/read-file.m4 (gl_FUNC_READ_FILE):
76249         * m4/readline.m4 (gl_FUNC_READLINE):
76250         * m4/rijndael.m4 (gl_RIJNDAEL):
76251         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
76252         to get the necessary .h files and whatnot.
76253
76254 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76255
76256         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
76257         gnulib rather than the other way around.
76258         * config/srclistvars.sh (COREUTILS): Remove.
76259
76260 2006-08-22  Jim Meyering  <jim@meyering.net>
76261
76262         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
76263
76264         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
76265
76266 2006-08-22  Eric Blake  <ebb9@byu.net>
76267
76268         * modules/regexprops-generic: New file.
76269         * MODULES.html.sh (Support for building documentation): List it.
76270
76271 2006-08-22  Eric Blake  <ebb9@byu.net>
76272
76273         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
76274         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
76275         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
76276         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
76277
76278 2006-08-22  Bruno Haible  <bruno@clisp.org>
76279
76280         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
76281         and lib_LTLIBRARIES like the other lib_* variables.
76282
76283 2006-08-22  Bruno Haible  <bruno@clisp.org>
76284
76285         * build-aux/x-to-1.in: New file, from GNU gettext.
76286
76287 2006-08-22  Bruno Haible  <bruno@clisp.org>
76288
76289         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
76290         <utmpx.h> exists.
76291
76292 2006-08-22  Bruno Haible  <bruno@clisp.org>
76293
76294         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
76295         <utmpx.h> exists.
76296
76297 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76298
76299         BeOS portability.
76300         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
76301         exist.
76302         Problem reported by Bruno Haible.
76303
76304 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76305
76306         Avoid the need for AC_LIBSOURCES in m4 macros.
76307         * modules/acl (EXTRA_DIST): Add acl.h.
76308         * modules/argmatch (Files): Add m4/argmatch.m4.
76309         (configure.ac): Add gl_ARGMATCH.
76310         (EXTRA_DIST): Renamed from lib_SOURCES, for
76311         consistency with the other modules.  Remove argmatch.c.
76312         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
76313         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
76314         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
76315         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
76316         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
76317         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
76318         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
76319         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
76320         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
76321         * modules/closeout (EXTRA_DIST): Add closeout.h.
76322         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
76323         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
76324         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
76325         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
76326         dirname.h; remove basename.c and stripslash.c.
76327         * modules/exclude (EXTRA_DIST): Add exclude.h.
76328         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
76329         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
76330         * modules/file-type (EXTRA_DIST): Add file-type.h.
76331         * modules/filemode (EXTRA_DIST): Add filemode.h.
76332         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
76333         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
76334         * modules/fpending (EXTRA_DIST): Add __fpending.h.
76335         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
76336         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
76337         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
76338         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
76339         * modules/getdate (EXTRA_DIST): Add getdate.c.
76340         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
76341         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
76342         * modules/getpass (EXTRA_DIST): Add getpass.h.
76343         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
76344         * modules/group-member (EXTRA_DIST): Add group-member.h.
76345         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
76346         * modules/hash (EXTRA_DIST): Add hash.h.
76347         * modules/human (EXTRA_DIST): Add human.h.
76348         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
76349         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
76350         * modules/lchown (EXTRA_DIST): Add lchown.h.
76351         * modules/long-options (EXTRA_DIST): Add long-options.h.
76352         * modules/lstat (EXTRA_DIST): Add lstat.h.
76353         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
76354         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
76355         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
76356         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
76357         * modules/memxor (EXTRA_DIST): Add memxor.h.
76358         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
76359         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
76360         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
76361         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
76362         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
76363         * modules/physmem (EXTRA_DIST): Add physmem.h.
76364         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
76365         * modules/posixver (EXTRA_DIST): Add posixver.h.
76366         * modules/quote (EXTRA_DIST): Add quote.h.
76367         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
76368         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
76369         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
76370         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
76371         regex_internal.h regexec.c.
76372         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
76373         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
76374         * modules/same (EXTRA_DIST): Add same.h.
76375         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
76376         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
76377         * modules/savedir (EXTRA_DIST): Add savedir.h.
76378         * modules/sha1 (EXTRA_DIST): Add sha1.h.
76379         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
76380         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
76381         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
76382         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
76383         * modules/strdup (EXTRA_DIST): Add strdup.h.
76384         * modules/strftime (EXTRA_DIST): Add strftime.h.
76385         * modules/strndup (EXTRA_DIST): Add strndup.h.
76386         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
76387         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
76388         * modules/time_r (EXTRA_DIST): Add time_r.h.
76389         * modules/timespec (EXTRA_DIST): Add timespec.h.
76390         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
76391         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
76392         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
76393         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
76394         * modules/userspec (EXTRA_DIST): Add userspec.h.
76395         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
76396         * modules/utimens (EXTRA_DIST): Add utimens.h.
76397         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
76398         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
76399         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
76400         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
76401         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
76402         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
76403         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
76404         * modules/yesno (EXTRA_DIST): Add yesno.h.
76405
76406 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76407
76408         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
76409
76410         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
76411         * m4/dev-ino.m4, same-inode.m4: Remove.
76412
76413         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
76414         * m4/acl.m4 (AC_FUNC_ACL):
76415         * m4/backupfile.m4 (gl_BACKUPFILE):
76416         * m4/c-strtod.m4 (gl_C99_STRTOLD):
76417         * m4/canon-host.m4 (gl_CANON_HOST):
76418         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
76419         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
76420         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
76421         * m4/cloexec.m4 (gl_CLOEXEC):
76422         * m4/close-stream.m4 (gl_CLOSE_STREAM):
76423         * m4/closeout.m4 (gl_CLOSEOUT):
76424         * m4/dirfd.m4 (gl_FUNC_DIRFD):
76425         * m4/dirname.m4 (gl_DIRNAME):
76426         * m4/exclude.m4 (gl_EXCLUDE):
76427         * m4/exitfail.m4 (gl_EXITFAIL):
76428         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
76429         * m4/file-type.m4 (gl_FILE_TYPE):
76430         * m4/filemode.m4 (gl_FILEMODE):
76431         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
76432         * m4/fpending.m4 (gl_FUNC_FPENDING):
76433         * m4/fprintftime.m4 (gl_FPRINTFTIME):
76434         * m4/fts.m4 (gl_FUNC_FTS):
76435         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
76436         * m4/getdate.m4 (gl_GETDATE):
76437         * m4/gethrxtime.m4 (gl_GETHRXTIME):
76438         * m4/getpagesize.m4 (gl_GETPAGESIZE):
76439         * m4/getpass.m4 (gl_FUNC_GETPASS):
76440         * m4/gettime.m4 (gl_GETTIME):
76441         * m4/getugroups.m4 (gl_GETUGROUPS):
76442         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
76443         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
76444         * m4/hard-locale.m4 (gl_HARD_LOCALE):
76445         * m4/hash.m4 (gl_HASH):
76446         * m4/idcache.m4 (gl_IDCACHE):
76447         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
76448         * m4/lchown.m4 (gl_FUNC_LCHOWN):
76449         * m4/long-options.m4 (gl_LONG_OPTIONS):
76450         * m4/lstat.m4 (gl_FUNC_LSTAT):
76451         * m4/md5.m4 (gl_MD5):
76452         * m4/memcasecmp.m4 (gl_MEMCASECMP):
76453         * m4/memcoll.m4 (gl_MEMCOLL):
76454         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
76455         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
76456         * m4/memxor.m4 (gl_MEMXOR):
76457         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
76458         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
76459         * m4/modechange.m4 (gl_MODECHANGE):
76460         * m4/mountlist.m4 (gl_MOUNTLIST):
76461         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
76462         * m4/openat.m4 (gl_FUNC_OPENAT):
76463         * m4/pathmax.m4 (gl_PATHMAX):
76464         * m4/physmem.m4 (gl_PHYSMEM):
76465         * m4/posixtm.m4 (gl_POSIXTM):
76466         * m4/posixver.m4 (gl_POSIXVER):
76467         * m4/quote.m4 (gl_QUOTE):
76468         * m4/quotearg.m4 (gl_QUOTEARG):
76469         * m4/readtokens.m4 (gl_READTOKENS):
76470         * m4/readutmp.m4 (gl_READUTMP):
76471         * m4/regex.m4 (gl_REGEX):
76472         * m4/safe-read.m4 (gl_SAFE_READ):
76473         * m4/safe-write.m4 (gl_SAFE_WRITE):
76474         * m4/same.m4 (gl_SAME):
76475         * m4/save-cwd.m4 (gl_SAVE_CWD):
76476         * m4/savedir.m4 (gl_SAVEDIR):
76477         * m4/settime.m4 (gl_SETTIME):
76478         * m4/sha1.m4 (gl_SHA1):
76479         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
76480         * m4/stat-macros.m4 (gl_STAT_MACROS):
76481         * m4/stat-time.m4 (gl_STAT_TIME):
76482         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
76483         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
76484         * m4/strdup.m4 (gl_FUNC_STRDUP):
76485         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
76486         * m4/strndup.m4 (gl_FUNC_STRNDUP):
76487         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
76488         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
76489         * m4/time_r.m4 (gl_TIME_R):
76490         * m4/timespec.m4 (gl_TIMESPEC):
76491         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
76492         * m4/unlinkdir.m4 (gl_UNLINKDIR):
76493         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
76494         * m4/userspec.m4 (gl_USERSPEC):
76495         * m4/utimecmp.m4 (gl_UTIMECMP):
76496         * m4/utimens.m4 (gl_UTIMENS):
76497         * m4/xalloc.m4 (gl_XALLOC):
76498         * m4/xgetcwd.m4 (gl_XGETCWD):
76499         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
76500         * m4/xreadlink.m4 (gl_XREADLINK):
76501         * m4/xstrtod.m4 (gl_XSTRTOD):
76502         * m4/yesno.m4 (gl_YESNO):
76503         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
76504         to get the necessary .h files and whatnot.
76505
76506 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
76507             Bruno Haible  <bruno@clisp.org>
76508
76509         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
76510         /bin/sh understanding of '!' conditional negation.
76511
76512 2006-08-21  Jim Meyering  <jim@meyering.net>
76513
76514         * modules/openat (Depends-on): Really alphabetize.
76515
76516         * modules/acl (Depends-on): Add error and quote.
76517
76518         * check-module (find_included_lib_files): Add at-func.c to the
76519         ok-to-include-more-than-once white list.
76520
76521         * modules/openat (Depends-on): Add lstat.  Alphabetize.
76522
76523 2006-08-21  Bruno Haible  <bruno@clisp.org>
76524
76525         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76526         Emit a pkgdata_DATA variable only if some snippets add contents to it.
76527         Reported by Martin Lambers <marlam@marlam.de>.
76528
76529 2006-08-21  Bruno Haible  <bruno@clisp.org>
76530
76531         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
76532         specify an installation location, don't emit a noinst_LIBRARIES or
76533         noinst_LTLIBRARIES assignment.
76534
76535 2006-08-21  Bruno Haible  <bruno@clisp.org>
76536
76537         BeOS portability.
76538         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
76539         BeOS has mbrtowc() but no <wctype.h>.
76540
76541 2006-08-21  Bruno Haible  <bruno@clisp.org>
76542
76543         BeOS portability.
76544         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
76545         exist.
76546
76547 2006-08-21  Bruno Haible  <bruno@clisp.org>
76548
76549         BeOS portability.
76550         * lib/mbchar.h: Include <wctype.h> only if it exists.
76551
76552 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76553
76554         Remove files that are no longer needed by their respective modules.
76555         * m4/obstack.m4: Remove.
76556         * m4/strerror_r.m4: Remove.
76557         * m4/uint32_t.m4: Remove.
76558         * m4/uintptr_t.m4: Remove.
76559         * m4/ullong_max.m4: Remove.
76560         * m4/xstrtoimax.m4: Remove.
76561         * m4/xstrtoumax.m4: Remove.
76562
76563         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
76564         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
76565         dependencies now capture this.
76566
76567         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
76568         Do not use AC_LIBSOURCES, since gnulib modules now do this.
76569         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
76570         * m4/human.m4 (gl_HUMAN): Likewise.
76571         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
76572         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
76573
76574         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
76575
76576         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
76577         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
76578         stdint.
76579         * m4/human.m4 (gl_HUMAN): Likewise.
76580         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
76581         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
76582         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
76583         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
76584         * m4/xstrtol (gl_XSTRTOL): Likewise.
76585
76586         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
76587         AC_TYPE_LONG_LONG_INT.
76588         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
76589         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
76590         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
76591         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
76592
76593         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
76594         on stdbool.
76595
76596         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
76597         (gl_PREREQ_XSTRTOUL): Remove.
76598
76599         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
76600
76601         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
76602         mode.
76603
76604 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76605
76606         Add and change modules to make it easier for coreutils to use
76607         gnulib-tool.
76608         * modules/backupfile (Files): Remove m4/d-ino.m4.
76609         (Depends-on): Add d-ino.
76610         * modules/cycle-check (Depends-on): Add stdint.
76611         (lib_SOURCES): Add cycle-check.h.
76612         * modules/d-ino: New module.
76613         * modules/d-type: New module.
76614         * modules/error (Files): Remove m4/strerror_r.m4.
76615         * modules/filemode (Files): Add m4/st_dm_mode.m4.
76616         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
76617         m4/inttypes_h.m4, m4/uintmax_t.m4.
76618         (Depends-on): Add stdint.
76619         (lib_SOURCES): Add fsusage.h.
76620         * modules/getcwd (Files): Remove d-ino.m4.
76621         (Depends-on): Add d-ino.
76622         * modules/getndelim2 (Depends-on): Add stdint.
76623         * modules/glob (Files): Remove m4/d-type.m4.
76624         (Depends-on): Add d-type.
76625         * modules/host-os: New module.
76626         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
76627         m4/inttypes_h.m4, m4/uintmax_t.m4.
76628         * Depends-on: Add stdint.
76629         (lib_SOURCES): Add human.h.
76630         * modules/inttostr (Files): Remove m4/intmax_t.m4,
76631         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
76632         m4/uintmax_t.m4, m4/ulonglong.m4.
76633         (Depends-on): Add stdint.
76634         (EXTRA_DIST): Add inttostr.h.
76635         * modules/lchmod: New module.
76636         * modules/link-follow: New module.
76637         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
76638         (Depends-on): Add lchmod.
76639         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
76640         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
76641         (Depends-on): Add stdint.
76642         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
76643         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
76644         (Depends-on): Add stdint.
76645         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
76646         * modules/perl: New module.
76647         * modules/regex (Depends-on): Add stdint.
76648         * modules/rmdir-errno: New module.
76649         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76650         m4/intmax_t.m4.
76651         (Depends-on): Add stdint.
76652         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76653         m4/uintmax_t.m4.
76654         (Depends-on): Add stdint.
76655         * modules/unlink-busy: New module.
76656         * modules/utimecmp (Depends-on): Add stdint.
76657         * modules/uptime: New module.
76658         * modules/winsz-ioctl: New module.
76659         * modules/winsz-termios: New module.
76660         * modules/xnanosleep (Depends-on): Add nanosleep.
76661         * modules/ullong_max: Remove.
76662         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
76663         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
76664         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
76665         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
76666         (Depends-on): Add inttypes.
76667         (lib_SOURCES): Add xstrtol.h.
76668         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
76669         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
76670         * MODULES.html.sh: Move 'assert' into the assert section.
76671         Move 'dummy' into the linking section.
76672         Remove ullong_max.
76673         Add section for compatibility checks for POSIX:2001 functions,
76674         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
76675         winsz-ioctl, and winsz-termios into it.
76676         Add lchmod.
76677         Add top-level Misc section and put host-os, perl, and uptime
76678         into it.
76679
76680 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76681
76682         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
76683         now assume the stdint module.  Do not include inttypes.h.
76684         * lib/fsusage.h: Likewise.
76685         * lib/getndelim2.c: Likewise.
76686         * lib/human.h: Likewise.
76687         * lib/inttostr.h: Likewise.
76688         * lib/obstack.c: Likewise.
76689         * lib/regex_internal.h: Likewise.
76690         * lib/tempname.c: Likewise.
76691         * lib/utimecmp.c: Likewise.
76692         * lib/xstrtol.h: Likewise.
76693
76694         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
76695
76696         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
76697         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
76698         * lib/xtime.h: Likewise.
76699
76700 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76701
76702         * modules/openat (Files): Add lib/fchmodat.c.
76703         Fixes problem reported by Jay Youngman.
76704
76705 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76706
76707         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
76708         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
76709
76710 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
76711             Bruno Haible  <bruno@clisp.org>
76712
76713         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
76714         and is a script that invokes bison. Tighten the code. Add comments.
76715
76716 2006-08-18  Jim Meyering  <jim@meyering.net>
76717
76718         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
76719         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
76720         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
76721         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
76722
76723 2006-08-18  Bruno Haible  <bruno@clisp.org>
76724
76725         * modules/bison-i18n: New file.
76726         * MODULES.html.sh (Internationalization functions): Add it.
76727
76728 2006-08-18  Bruno Haible  <bruno@clisp.org>
76729
76730         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
76731         sys/statvfs.h. When getmntinfo was found, check its declaration and
76732         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
76733
76734 2006-08-18  Bruno Haible  <bruno@clisp.org>
76735
76736         * m4/bison-i18n.m4: New file, from bison.
76737
76738 2006-08-18  Bruno Haible  <bruno@clisp.org>
76739
76740         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
76741         (ME_DUMMY): Treat "kernfs" as a dummy.
76742         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
76743
76744 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76745
76746         Update from coreutils.
76747
76748         2006-08-15  Jim Meyering  <jim@meyering.net>
76749
76750         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
76751
76752         2006-01-17  Jim Meyering  <jim@meyering.net>
76753
76754         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
76755
76756         2006-01-11  Jim Meyering  <jim@meyering.net>
76757
76758         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
76759         Check for the lchmod function.
76760
76761 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76762
76763         Update from coreutils.
76764
76765         * lib/__fpending.h: Add copyright notice.
76766         * lib/fprintftime.h: Likewise.
76767         * lib/savedir.c: Use (C) in copyright notice.
76768         * lib/savedir.h: Likewise.
76769
76770         2006-08-15  Jim Meyering  <jim@meyering.net>
76771
76772         * lib/at-func.c: New file, with the logic of all emulated at-functions.
76773         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
76774         in support of the EXPECTED_ERRNO macro.
76775         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
76776         definitions.  Instead, define the appropriate symbols and include
76777         "at-func.c".
76778         * lib/mkdirat.c (mkdirat): Likewise.
76779         * lib/fchmodat.c (fchmodat): Likewise.
76780         (ENOSYS): Remove definition.
76781         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
76782         it.  Don't include "unistd--.h" -- it wasn't ever used.
76783
76784         2006-01-17  Jim Meyering  <jim@meyering.net>
76785
76786         Rewrite fts.c not to change the current working directory,
76787         by using openat, fstatat, fdopendir, etc..
76788
76789         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
76790         (HAVE_OPENAT_SUPPORT): Define.
76791         [_LIBC] (fchdir): Don't undef or define; no longer used.
76792         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
76793         Now, this `function' always succeeds, and consumes its file descriptor
76794         parameter -- so callers must not close such FDs.  Update callers.
76795         (diropen_fd, opendirat, cwd_advance_fd): New functions.
76796         (diropen): Add parameter, SP.  Adjust all callers.
76797         Implement using diropen_fd, rather than open.
76798         (fts_open): Initialize new member, fts_cwd_fd.
76799         Remove fts_rft-setting code.
76800         (fts_close): Close fts_cwd_fd, if necessary.
76801         (__opendir2): Define in terms of opendir or opendirat,
76802         depending on whether the FST_NOCHDIR flag is set.
76803         (fts_build): Since fts_safe_changedir consumes its FD, and since
76804         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
76805         and close the dup'd file descriptor upon failure.
76806         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
76807         (fts_safe_changedir): Tweak semantics to reflect that this function
76808         now calls cwd_advance_fd and hence consumes its FD argument.
76809         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
76810         [struct FTS] (fts_rft): Remove now-unused member.
76811         [struct FTS] (fts_cycle.state): Improve comment.
76812
76813         * lib/openat.c (openat_needs_fchdir): New function.
76814         * lib/openat.h (openat_needs_fchdir): Declare it.
76815
76816 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76817
76818         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
76819         Problem and fix reported by Pádraig Brady in
76820         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
76821
76822 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76823
76824         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
76825
76826 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76827
76828         * lib/memcoll.c (memcoll): Optimize for the common case where the
76829         arguments are bytewise equal.
76830
76831 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76832
76833         * doc/regexprops-generic.texi: Add a copyright notice.
76834
76835 2006-08-15  Bruno Haible  <bruno@clisp.org>
76836
76837         * modules/tmpdir (License): Change to LGPL.
76838
76839 2006-08-15  Bruno Haible  <bruno@clisp.org>
76840
76841         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
76842         module.
76843
76844 2006-08-14  Simon Josefsson  <jas@extundo.com>
76845
76846         * config/srclist.txt: Add gnupload.
76847
76848 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76849
76850         Change copyright notice from LGPL 2 to GPL 2, since that's the
76851         standard form used in the gnulib repository.
76852         * tests/test-lock.c: Likewise.
76853         * tests/test-stdint.c: Likewise.
76854         * tests/test-tls.c: Likewise.
76855
76856         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
76857         prelude-manager.  User shorter URLs for GNU projects, without '?'.
76858         Add copyright notice.
76859
76860         * check-module: Add copyright notice.  Output a copyright
76861         notice if "--version" is specified.
76862         * modules/COPYING: New file.
76863         * tests/test-getaddrinfo.c: Add copyright notice.
76864         * tests/test-verify.c: Likewise.
76865
76866 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76867
76868         Change copyright notice from LGPL 2 to GPL 2, since that's the
76869         standard form used in the gnulib repository.
76870         * lib/lock.c: LGPL -> GPL.
76871         * lib/lock.h: Likewise.
76872         * lib/strnlen1.c: Likewise.
76873         * lib/strnlen1.h: Likewise.
76874         * lib/tls.c: Likewise.
76875         * lib/tls.h: Likewise.
76876         * lib/tmpdir.c: Likewise.
76877
76878         * lib/TODO: Remove; this belongs only in coreutils.
76879
76880 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76881
76882         Add copyright notices to long-enough files that lack them, since
76883         otherwise the files aren't clearly free.  Use the same notice that
76884         getdate.texi already uses.
76885         * doc/alloca-opt.texi: Add copyright notice.
76886         * doc/alloca.texi: Likewise.
76887         * doc/ctime.texi: Likewise.
76888         * doc/functions.texi: Likewise.
76889         * doc/gcd.texi: Likewise.
76890         * doc/gnulib-tool.texi: Likewise.
76891         * doc/inet_ntoa.texi: Likewise.
76892         * doc/visibility.texi: Likewise.
76893
76894         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
76895         * doc/quote.texi: Add copyright notice.
76896
76897         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
76898         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
76899         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
76900         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
76901         is now obsolete, and give a pointer to the Sun list.
76902         Add copyright notice.
76903
76904 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76905
76906         * config/srclistvars.sh: Add copyright notice.
76907
76908 2006-08-14  Eric Blake  <ebb9@byu.net>
76909
76910         Import the following change from libc:
76911
76912         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
76913
76914         Upstream bug 2997.
76915         * lib/misc/error.c: Add space between program name and message if file
76916         name is missing.
76917
76918 2006-08-12  Karl Berry  <karl@gnu.org>
76919
76920         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
76921         remove, these originate in gnulib now.
76922
76923 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76924
76925         * doc/Makefile (standards.info standards.html standards.dvi):
76926         Also depend on make-stds.texi.
76927
76928 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76929
76930         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
76931         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
76932
76933         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
76934         in wchar_t.  Problem reported by Eric Blake.
76935
76936         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
76937         LEN is smaller than SIZE.  Suggested by Bruno Haible.
76938         Also, help the compiler to keep LEN in a register.
76939
76940 2006-08-11  Eric Blake  <ebb9@byu.net>
76941
76942         * users.txt: Sort.  Add tar.
76943
76944 2006-08-11  Bruno Haible  <bruno@clisp.org>
76945
76946         * users.txt: New file.
76947
76948 2006-08-11  Bruno Haible  <bruno@clisp.org>
76949
76950         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
76951         before <wchar.h>. Needed for OSF/1 and BSD/OS.
76952
76953 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
76954
76955         * modules/snprintf (Depends-on): Remove minmax.
76956         (Maintainer): Add self and Bruno.
76957
76958 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
76959
76960         * lib/.cppi-disable: Add snprintf.h, socket_.h.
76961         * lib/snprintf.c: Include <errno.h> and <limits.h>.
76962         (EOVERFLOW): Define if the system does not.
76963         Do not include "minmax.h"; it wasn't used.
76964         (snprintf): Don't assume size_t promotes to an unsigned type.
76965         Fix bug when generated string was too long for the buffer: the
76966         buffer's contents are supposed to be the initial prefix of the
76967         output.  Don't assume vasnprintf returns EOVERFLOW if the size
76968         exceeds INT_MAX; do the check ourselves.
76969
76970         Import the following changes from libc:
76971
76972         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
76973
76974         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
76975         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
76976         set wc to the byte which couldn't be converted.
76977         (re_string_reconstruct): Don't clear valid_raw_len before calling
76978         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
76979         tip_context using re_string_context_at.
76980
76981         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
76982
76983         * lib/posix/regex.h: g++ still cannot handled [restrict].
76984
76985         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
76986
76987         * lib/posix/regex.h: Remove special handling for VMS.
76988
76989 2006-08-10  Jim Meyering  <jim@meyering.net>
76990
76991         * modules/same-inode: New module.
76992         * modules/dev-ino: New module.
76993         * modules/cycle-check: Depend on these modules, rather than simply
76994         including their .h files.
76995         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
76996         required via m4/cycle-check.m4.
76997         * modules/same: Depend on new same-inode module, rather than
76998         including same-inode.h.
76999         * modules/chdir-safer: New file.
77000
77001         * modules/chown (Depends-on): Add stat-macros.
77002
77003 2006-08-10  Jim Meyering  <jim@meyering.net>
77004
77005         * m4/cycle-check.m4: New file.
77006         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
77007         * m4/dev-ino.m4, m4/same-inode.m4: New files.
77008
77009 2006-08-10  Eric Blake  <ebb9@byu.net>
77010
77011         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
77012         in from original proposal.
77013
77014 2006-08-10  Eric Blake  <ebb9@byu.net>
77015         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
77016
77017         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
77018         namespace.
77019
77020 2006-08-10  Bruno Haible  <bruno@clisp.org>
77021
77022         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
77023         as well.
77024
77025 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77026
77027         Sync from coreutils.
77028
77029         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
77030
77031         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
77032         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
77033
77034 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77035
77036         * modules/restrict: Remove; no longer needed now that we assume
77037         Autoconf 2.59 or later.
77038         * MODULES.html.sh: Remove 'restrict'.
77039         * modules/argp (Depends-on): Remove 'restrict'.
77040         * modules/base64 (Depends-on): Likewise.
77041         * modules/gc (Depends-on): Likewise.
77042         * modules/getaddrinfo (Depends-on): Likewise.
77043         * modules/glob (Depends-on): Likewise.
77044         * modules/inet_ntop (Depends-on): Likewise.
77045         * modules/inet_pton (Depends-on): Likewise.
77046         * modules/memxor (Depends-on): Likewise.
77047         * modules/regex (Depends-on): Likewise.
77048         * modules/strtok_r (Depends-on): Likewise.
77049         * modules/time_r (Depends-on): Likewise.
77050
77051 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77052
77053         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
77054         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
77055         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
77056         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
77057         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
77058         * m4/memxor.m4 (gl_MEMXOR): Likewise.
77059         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
77060         gl_C_RESTRICT replaced by AC_C_RESTRICT.
77061
77062         Merge from coreutils.
77063         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
77064         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
77065         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
77066         * m4/time_r.m4 (gl_TIME_R): Likewise.
77067
77068 2006-08-09  Karl Berry  <karl@gnu.org>
77069
77070         * config/srclist.txt: no more gettext-tools, per Bruno.
77071
77072 2006-08-08  Eric Blake  <ebb9@byu.net>
77073
77074         * modules/verror: New module.
77075         * MODULES.html.sh: Document it.
77076
77077 2006-08-08  Eric Blake  <ebb9@byu.net>
77078
77079         * lib/verror.h, lib/verror.c: New files.
77080
77081 2006-08-08  Eric Blake  <ebb9@byu.net>
77082
77083         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
77084         verror_at_line output complies with GNU Coding Standards even when
77085         file is NULL.
77086
77087 2006-08-07  Bruno Haible  <bruno@clisp.org>
77088
77089         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
77090         versions of AIX.
77091         Reported by Ralf Wildenhues.
77092
77093 2006-08-07  Bruno Haible  <bruno@clisp.org>
77094
77095         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
77096         in an AC_DEFUN. Needed so that the autoconf snippets can use
77097         AC_REQUIRE.
77098
77099 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77100
77101         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77102         Initialize pkgdata_DATA.
77103         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
77104         overriding it.
77105
77106 2006-08-06  Eric Blake  <ebb9@byu.net>
77107
77108         * lib/error.h: Fold in some upstream changes from glibc.
77109         * lib/error.c: Likewise.
77110
77111 2006-08-04  Bruno Haible  <bruno@clisp.org>
77112
77113         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77114         Make the mostlyclean-local rule depend on mostlyclean-generic.
77115         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
77116
77117 2006-07-31  Bruno Haible  <bruno@clisp.org>
77118
77119         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
77120         <stdlib.h>, <string.h>.
77121
77122 2006-07-30  Bruno Haible  <bruno@clisp.org>
77123
77124         * modules/readlink (License): Change to LGPL.
77125
77126 2006-07-30  Bruno Haible  <bruno@clisp.org>
77127
77128         * modules/javaversion (Makefile.am): Distribute javaversion.java and
77129         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
77130         set PKGDATADIR to point to it.
77131
77132 2006-07-30  Bruno Haible  <bruno@clisp.org>
77133
77134         * modules/csharpexec (configure.ac): Comment out macro invocation.
77135         * modules/javaexec (configure.ac): Likewise.
77136         * modules/javacomp-script (configure.ac): Likewise.
77137
77138         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
77139
77140 2006-07-30  Bruno Haible  <bruno@clisp.org>
77141
77142         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
77143         linked-list.
77144
77145 2006-07-30  Bruno Haible  <bruno@clisp.org>
77146
77147         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
77148
77149 2006-07-30  Bruno Haible  <bruno@clisp.org>
77150
77151         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77152         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
77153         get removed.
77154
77155 2006-07-29  Bruno Haible  <bruno@clisp.org>
77156
77157         Make it possible for gnulib-tool to work with locally modified or
77158         augmented gnulib repositories.
77159         * gnulib-tool (func_usage): Document --local-dir option.
77160         (local_gnulib_dir): New variable.
77161         Handle --local-dir option.
77162         (func_lookup_file): New function.
77163         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
77164         (func_get_description, func_get_filelist, func_get_description,
77165         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
77166         func_get_automake_snippet, func_get_include_directive,
77167         func_get_license, func_get_maintainer): Use func_lookup_file.
77168         (func_import, func_create_testdir): Use func_lookup_file.
77169
77170 2006-07-29  Bruno Haible  <bruno@clisp.org>
77171
77172         * modules/setenv (Depends-on): Add unistd.
77173
77174 2006-07-29  Bruno Haible  <bruno@clisp.org>
77175
77176         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
77177
77178 2006-07-29  Bruno Haible  <bruno@clisp.org>
77179
77180         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
77181
77182 2006-07-29  Bruno Haible  <bruno@clisp.org>
77183
77184         * gnulib-tool (import, update): If there is no Makefile.am, look at
77185         aclocal.m4, instead of bailing out.
77186
77187 2006-07-29  Bruno Haible  <bruno@clisp.org>
77188
77189         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
77190         Categorize the options by when they are useful.
77191
77192 2006-07-29  Bruno Haible  <bruno@clisp.org>
77193
77194         * gnulib-tool (func_usage): Document option --no-libtool.
77195         Handle option --no-libtool.
77196         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
77197         for changed semantics of $libtool variable.
77198         (func_import): Likewise. If libtool is not used, show this through
77199         an option --no-libtool.
77200         (func_create_testdir): Update.
77201
77202 2006-07-29  Bruno Haible  <bruno@clisp.org>
77203
77204         * gnulib-tool (func_import): Extend error message about missing
77205         --doc-base.
77206
77207 2006-07-29  Bruno Haible  <bruno@clisp.org>
77208
77209         * gnulib-tool (func_import): Don't create the $docbase directory if
77210         there is no file to store there.
77211
77212 2006-07-29  Bruno Haible  <bruno@clisp.org>
77213
77214         * gnulib-tool (autoconf_minversion): If a --dir option is given and
77215         relevant, look for configure.ac there, not in the current directory.
77216         Also use a simple search for AC_PREREQ, not "autoconf --trace".
77217
77218 2006-07-29  Bruno Haible  <bruno@clisp.org>
77219
77220         * gnulib-tool (SORT): New variable.
77221         (func_usage): Undocument --assume-autoconf option.
77222         Remove --assume-autoconf option handling.
77223         (autoconf_minversion): Determine from the contents of configure.ac.
77224         (func_import): Remove autoconf_minversion handling.
77225         Suggested by Eric Blake.
77226
77227 2006-07-29  Bruno Haible  <bruno@clisp.org>
77228
77229         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
77230
77231 2006-07-29  Bruno Haible  <bruno@clisp.org>
77232
77233         * config/srclist.txt (*setenv.[ch]): Remove rules.
77234
77235 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77236
77237         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
77238
77239 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77240
77241         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
77242         arpa/inet.h.
77243
77244 2006-07-28  Simon Josefsson  <jas@extundo.com>
77245
77246         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
77247         * modules/inet_pton (Depends-on): Likewise.
77248
77249 2006-07-28  Simon Josefsson  <jas@extundo.com>
77250
77251         * m4/netinet_in_h.m4: New file.
77252
77253 2006-07-28  Simon Josefsson  <jas@extundo.com>
77254
77255         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
77256         #include's.
77257
77258 2006-07-28  Simon Josefsson  <jas@extundo.com>
77259
77260         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
77261         #include's.
77262
77263 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
77264
77265         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
77266         setgid on directories only if they set these bits.
77267         * lib/modechange.h: Remove obsolete comment about masks.
77268
77269 2006-07-28  Eric Blake  <ebb9@byu.net>
77270
77271         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
77272         macro expansion.
77273
77274 2006-07-28  Bruno Haible  <bruno@clisp.org>
77275
77276         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
77277
77278 2006-07-28  Bruno Haible  <bruno@clisp.org>
77279
77280         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
77281
77282 2006-07-28  Bruno Haible  <bruno@clisp.org>
77283
77284         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
77285         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
77286         Define fallbacks.
77287         Avoids link error on FreeBSD 4.x.
77288         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77289
77290         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
77291         encoding.
77292         * lib/mbswidth.c (iswcntrl): Likewise.
77293
77294 2006-07-27  Bruno Haible  <bruno@clisp.org>
77295
77296         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
77297         test.
77298
77299 2006-07-27  Bruno Haible  <bruno@clisp.org>
77300
77301         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
77302         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
77303         defined.
77304
77305 2006-07-26  Eric Blake  <ebb9@byu.net>
77306
77307         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
77308
77309 2006-07-26  Eric Blake  <ebb9@byu.net>
77310
77311         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
77312         like mingw that lack mkstemp.
77313         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
77314         avoid compilation warning on mingw.
77315
77316 2006-07-26  Bruno Haible  <bruno@clisp.org>
77317
77318         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
77319         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
77320         INT_FAST*_MIN, INTPTR_MIN.
77321
77322 2006-07-25  Bruno Haible  <bruno@clisp.org>
77323
77324         * modules/version-etc (Depends-on): Add stdarg.
77325
77326 2006-07-25  Bruno Haible  <bruno@clisp.org>
77327
77328         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
77329         complex commands.
77330
77331 2006-07-25  Bruno Haible  <bruno@clisp.org>
77332
77333         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
77334         defined in <stdarg.h> or config.h.
77335
77336 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
77337
77338         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
77339         (gl_STDIO_SAFER): Remove.
77340
77341 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
77342
77343         * MODULES.html.sh (File stream based Input/Output):
77344         Add fopen-safer, tmpfile-safer; remove stdio-safer.
77345         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
77346         * modules/fopen-safer, modules/tmpfile-safer: New files.
77347         * modules/stdio-safer: Remove.
77348
77349 2006-07-24  Bruno Haible  <bruno@clisp.org>
77350
77351         * modules/tmpdir: New file.
77352         * MODULES.html.sh (File system functions): Add it.
77353
77354 2006-07-24  Bruno Haible  <bruno@clisp.org>
77355
77356         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
77357         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
77358
77359 2006-07-24  Bruno Haible  <bruno@clisp.org>
77360
77361         * modules/clean-temp: New file.
77362
77363 2006-07-24  Bruno Haible  <bruno@clisp.org>
77364
77365         * m4/tmpdir.m4: New file, from GNU gettext.
77366
77367 2006-07-24  Bruno Haible  <bruno@clisp.org>
77368
77369         * lib/tmpdir.h: New file, from GNU gettext.
77370         * lib/tmpdir.c: New file, from GNU gettext.
77371
77372 2006-07-24  Bruno Haible  <bruno@clisp.org>
77373
77374         * lib/clean-temp.h: New file, from GNU gettext.
77375         * lib/clean-temp.c: New file, from GNU gettext.
77376
77377 2006-07-23  Eric Blake  <ebb9@byu.net>
77378
77379         * modules/stdio-safer (Files): Add tmpfile-safer.c.
77380         (Depends-on): Add binary-io.
77381
77382 2006-07-23  Eric Blake  <ebb9@byu.net>
77383
77384         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
77385
77386 2006-07-23  Eric Blake  <ebb9@byu.net>
77387
77388         * lib/tmpfile-safer.c: New file.
77389         * lib/stdio-safer.h (fopen_safer): Add prototype.
77390         * lib/stdio--.h (tmpfile): Make safer.
77391
77392 2006-07-23  Bruno Haible  <bruno@clisp.org>
77393
77394         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
77395         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
77396         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
77397         gl_linked_remove_at): Use it.
77398
77399 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77400         and Simon Josefsson <jas@extundo.com>
77401
77402         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
77403
77404         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
77405
77406 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77407
77408         * modules/close-stream: New file.
77409         * modules/closeout (Description): Make it clear that it exits
77410         with a diagnostic on error.
77411         (Depends-on): Add close-stream.  Remove fpending, stdbool.
77412         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
77413
77414 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77415
77416         * m4/close-stream.m4: New file.
77417
77418 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77419
77420         * lib/close-stream.c, lib/close-stream.h: New files.
77421
77422 2006-07-22  Bruno Haible  <bruno@clisp.org>
77423
77424         Merge from GNU gettext 0.15.
77425
77426         2006-05-01  Bruno Haible  <bruno@clisp.org>
77427
77428                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
77429
77430         2006-07-22  Bruno Haible  <bruno@clisp.org>
77431
77432                 * modules/javaversion: New file.
77433                 * MODULES.html.sh (Java): Add javaversion.
77434
77435         2006-03-12  Bruno Haible  <bruno@clisp.org>
77436
77437                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
77438
77439         2005-12-04  Bruno Haible  <bruno@clisp.org>
77440
77441                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
77442                 (untested).
77443
77444         2006-06-21  Bruno Haible  <bruno@clisp.org>
77445
77446                 Avoid warnings from recent versions of mcs.
77447                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
77448                 -o, -L, -r any more. Use options documented since mcs-1.0
77449                 instead. Similarly for -g.
77450
77451         2005-12-04  Bruno Haible  <bruno@clisp.org>
77452
77453                 * build-aux/csharpcomp.sh.in: Suffix for resources is
77454                 .resources, not .resource.
77455
77456         2005-07-09  Bruno Haible  <bruno@clisp.org>
77457
77458                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
77459                 add a .dll suffix.
77460                 Reported by Mark Junker <mjscod@gmx.de>.
77461
77462         2006-07-22  Bruno Haible  <bruno@clisp.org>
77463
77464                 * modules/gettext: Upgrade to gettext-0.15.
77465                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
77466                 m4/visibility.m4.
77467                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
77468
77469 2006-07-22  Bruno Haible  <bruno@clisp.org>
77470
77471         Merge from GNU gettext 0.15.
77472
77473         2006-03-25  Bruno Haible  <bruno@clisp.org>
77474
77475                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
77476
77477         2006-07-21  Bruno Haible  <bruno@clisp.org>
77478
77479                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
77480                 "1.1".
77481
77482         2006-05-09  Bruno Haible  <bruno@clisp.org>
77483
77484                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
77485                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
77486                 for the conftestver execution.
77487
77488         2006-05-01  Bruno Haible  <bruno@clisp.org>
77489
77490                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
77491                 optional target-version argument. Verify that the compiler
77492                 groks source of the specified source-version, or add -source
77493                 option as necessary. Verify that the compiler produces
77494                 bytecode in the specified target-version, or add -target and
77495                 -source options as necessary. Make the result of the test
77496                 available as variable CONF_JAVAC. Also log error output in
77497                 config.log.
77498
77499         2006-03-11  Bruno Haible  <bruno@clisp.org>
77500
77501                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
77502
77503         2006-05-09  Bruno Haible  <bruno@clisp.org>
77504
77505                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
77506                 CLASSPATH_SEPARATOR to a semicolon.
77507
77508         2006-03-12  Bruno Haible  <bruno@clisp.org>
77509
77510                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
77511                 available as variable CONF_JAVA, for subsequent autoconf
77512                 tests. Also log error output in config.log.
77513
77514         2006-07-19  Bruno Haible  <bruno@clisp.org>
77515
77516                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
77517                 that getline works on glibc2 systems. Needed to avoid trouble
77518                 in relocatable.c.
77519                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
77520
77521         2005-12-04  Bruno Haible  <bruno@clisp.org>
77522
77523                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
77524                 launcher (untested).
77525
77526         2005-12-04  Bruno Haible  <bruno@clisp.org>
77527
77528                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
77529
77530         2006-07-22  Bruno Haible  <bruno@clisp.org>
77531
77532                 * gettext.m4: Update from GNU gettext-0.15.
77533                 * nls.m4: Likewise.
77534                 * po.m4: Likewise.
77535                 * inttypes-pri.m4: Likewise.
77536                 * inttypes-h.m4: Renamed from inttypes.m4.
77537                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
77538
77539 2006-07-22  Bruno Haible  <bruno@clisp.org>
77540
77541         Merge from GNU gettext 0.15.
77542
77543         2005-07-05  Bruno Haible  <bruno@clisp.org>
77544
77545                 * printf-args.c (printf_fetchargs): Work around broken
77546                 definition of wint_t on mingw.
77547
77548         2005-02-12  Bruno Haible  <bruno@clisp.org>
77549
77550                 * xallocsa.h: Add extern "C" for C++.
77551
77552         2006-05-17  Bruno Haible  <bruno@clisp.org>
77553
77554                 Cygwin portability.
77555                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
77556
77557         2006-04-30  Bruno Haible  <bruno@clisp.org>
77558
77559                 * progreloc.c: Include <mach-o/dyld.h> if available.
77560                 (find_executable): Use _NSGetExecutablePath when possible.
77561
77562         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77563
77564                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
77565                 function.
77566
77567         2005-12-29  Bruno Haible  <bruno@clisp.org>
77568
77569                 * progreloc.c (set_program_name_and_installdir): Fix
77570                 compilation error.
77571
77572         2005-12-04  Bruno Haible  <bruno@clisp.org>
77573
77574                 Cygwin portability.
77575                 * progreloc.c: Include <windows.h> also on Cygwin.
77576                 (find_executable): Add support for Cygwin.
77577                 (set_program_name_and_installdir): Handle also platforms with
77578                 nonempty EXEEXT.
77579
77580         2006-07-11  Bruno Haible  <bruno@clisp.org>
77581
77582                 * javacomp.c: Fix a comment.
77583                 Reported by Jim Meyering.
77584
77585         2006-04-30  Bruno Haible  <bruno@clisp.org>
77586
77587                 * javacomp.h (compile_java_class): Add source_version,
77588                 target_version arguments.
77589                 * javacomp.c: Rewritten to choose only a compiler that
77590                 respects the specified source_version and target_version.
77591
77592         2006-06-27  Bruno Haible  <bruno@clisp.org>
77593
77594                 Assume correct S_ISDIR macro.
77595                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
77596
77597         2006-07-22  Bruno Haible  <bruno@clisp.org>
77598
77599                 * javaversion.h: New file, from GNU gettext.
77600                 * javaversion.c: New file, from GNU gettext.
77601                 * javaversion.java: New file, from GNU gettext.
77602                 * javaversion.class: New file, from GNU gettext.
77603
77604         2006-05-17  Bruno Haible  <bruno@clisp.org>
77605
77606                 Cygwin portability.
77607                 * javaexec.c (execute_java_class): Test for jview program
77608                 also on Cygwin.
77609
77610         2006-04-09  Bruno Haible  <bruno@clisp.org>
77611
77612                 * fatal-signal.c: Don't include string.h.
77613                 (at_fatal_signal): Use a copying loop instead of memcpy.
77614
77615         2005-12-04  Bruno Haible  <bruno@clisp.org>
77616
77617                 * csharpexec.c: Add support for 'clix' launcher (untested).
77618                 (execute_csharp_using_sscli): New function.
77619                 (execute_csharp_program): Call it.
77620
77621         2006-06-21  Bruno Haible  <bruno@clisp.org>
77622
77623                 Avoid warnings from recent versions of mcs.
77624                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
77625                 -o, -L, -r any more. Use options documented since mcs-1.0
77626                 instead. Similarly for -g.
77627
77628         2005-07-09  Bruno Haible  <bruno@clisp.org>
77629
77630                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
77631                 add a .dll suffix.
77632                 Reported by Mark Junker <mjscod@gmx.de>.
77633
77634         2006-06-17  Bruno Haible  <bruno@clisp.org>
77635
77636                 * config.charset: Update for NetBSD 3.0.
77637
77638         2006-05-17  Bruno Haible  <bruno@clisp.org>
77639
77640                 Cygwin portability.
77641                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
77642
77643         2006-05-16  Bruno Haible  <bruno@clisp.org>
77644
77645                 * localcharset.c [CYGWIN]: Include <windows.h>.
77646                 (get_charset_aliases): For Cygwin, return the same CPxxx
77647                 aliases list as under WIN32.
77648                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
77649                 the environment variables. Fall back to GetACP().
77650
77651         2006-04-05  Bruno Haible  <bruno@clisp.org>
77652
77653                 * config.charset: Update Juan Manuel Guerrero's address.
77654
77655         2005-02-12  Bruno Haible  <bruno@clisp.org>
77656
77657                 * allocsa.h: Add extern "C" for C++.
77658
77659         2005-02-10  Bruno Haible  <bruno@clisp.org>
77660
77661                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
77662                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
77663
77664         2006-07-22  Bruno Haible  <bruno@clisp.org>
77665
77666                 * gettext.h: Update to GNU gettext-0.15.
77667
77668 2006-07-22  Bruno Haible  <bruno@clisp.org>
77669
77670         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
77671         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
77672         lib-prefix.m4, longdouble.m4, ssize_t.m4.
77673
77674 2006-07-21  Eric Blake  <ebb9@byu.net>
77675
77676         * modules/stdlib-safer: New file.
77677         * MODULES.html.sh (File stream based Input/Output): Add
77678         stdlib-safer.
77679
77680 2006-07-21  Eric Blake  <ebb9@byu.net>
77681
77682         * lib/stdlib-safer.h: New file from coreutils, required by
77683         stdlib--.h.
77684
77685 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
77686
77687         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
77688
77689 2006-07-20  Bruno Haible  <bruno@clisp.org>
77690
77691         * gnulib-tool: Recognize new option --assume-autoconf.
77692         (autoconf_minversion): New variable.
77693         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
77694
77695 2006-07-20  Bruno Haible  <bruno@clisp.org>
77696
77697         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
77698
77699 2006-07-19  Derek R. Price  <derek@ximbiot.com>
77700
77701         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
77702         Reindent and repaginate.
77703
77704 2006-07-19  Derek Price  <derek@ximbiot.com>
77705
77706         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
77707         Correct grammar.
77708
77709 2006-07-17  Bruno Haible  <bruno@clisp.org>
77710
77711         * modules/list: New file.
77712         * modules/array-list: New file.
77713         * modules/carray-list, modules/carray-list-tests: New files.
77714         * modules/linked-list, modules/linked-list-tests: New files.
77715         * modules/avltree-list, modules/avltree-list-tests: New files.
77716         * modules/rbtree-list, modules/rbtree-list-tests: New files.
77717         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
77718         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
77719         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
77720         * modules/oset: New file.
77721         * modules/array-oset: New file.
77722         * modules/avltree-oset, modules/avltree-oset-tests: New files.
77723         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
77724         * tests/test-carray_list.c: New file.
77725         * tests/test-linked_list.c: New file.
77726         * tests/test-avltree_list.c: New file.
77727         * tests/test-rbtree_list.c: New file.
77728         * tests/test-linkedhash_list.c: New file.
77729         * tests/test-avltreehash_list.c: New file.
77730         * tests/test-rbtreehash_list.c: New file.
77731         * tests/test-avltree_oset.c: New file.
77732         * tests/test-rbtree_oset.c: New file.
77733         * MODULES.html.sh (Container data structures): New section.
77734
77735 2006-07-17  Bruno Haible  <bruno@clisp.org>
77736
77737         * m4/gl_list.m4: New file.
77738
77739 2006-07-17  Bruno Haible  <bruno@clisp.org>
77740
77741         * lib/gl_list.h: New file.
77742         * lib/gl_list.c: New file.
77743         * lib/gl_array_list.h: New file.
77744         * lib/gl_array_list.c: New file.
77745         * lib/gl_carray_list.h: New file.
77746         * lib/gl_carray_list.c: New file.
77747         * lib/gl_linked_list.h: New file.
77748         * lib/gl_linked_list.c: New file.
77749         * lib/gl_anylinked_list1.h: New file.
77750         * lib/gl_anylinked_list2.h: New file.
77751         * lib/gl_avltree_list.h: New file.
77752         * lib/gl_avltree_list.c: New file.
77753         * lib/gl_anyavltree_list1.h: New file.
77754         * lib/gl_anyavltree_list2.h: New file.
77755         * lib/gl_rbtree_list.h: New file.
77756         * lib/gl_rbtree_list.c: New file.
77757         * lib/gl_anyrbtree_list1.h: New file.
77758         * lib/gl_anyrbtree_list2.h: New file.
77759         * lib/gl_anytree_list1.h: New file.
77760         * lib/gl_anytree_list2.h: New file.
77761         * lib/gl_linkedhash_list.h: New file.
77762         * lib/gl_linkedhash_list.c: New file.
77763         * lib/gl_anyhash_list1.h: New file.
77764         * lib/gl_anyhash_list2.h: New file.
77765         * lib/gl_avltreehash_list.h: New file.
77766         * lib/gl_avltreehash_list.c: New file.
77767         * lib/gl_rbtreehash_list.h: New file.
77768         * lib/gl_rbtreehash_list.c: New file.
77769         * lib/gl_anytreehash_list1.h: New file.
77770         * lib/gl_anytreehash_list2.h: New file.
77771
77772         * lib/gl_oset.h: New file.
77773         * lib/gl_oset.c: New file.
77774         * lib/gl_array_oset.h: New file.
77775         * lib/gl_array_oset.c: New file.
77776         * lib/gl_avltree_oset.h: New file.
77777         * lib/gl_avltree_oset.c: New file.
77778         * lib/gl_rbtree_oset.h: New file.
77779         * lib/gl_rbtree_oset.c: New file.
77780         * lib/gl_anytree_oset.h: New file.
77781
77782 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77783
77784         * m4/mkancesdirs.m4: New file.
77785         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
77786         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
77787         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
77788         it.
77789
77790 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77791
77792         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
77793         * lib/mkancesdirs.h: New files.
77794         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
77795         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
77796         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
77797         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
77798         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
77799         callers changed.  Revamp internals significantly, by not
77800         attempting to create directories that are temporarily more
77801         permissive than the final results.  Do not attempt to use
77802         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
77803         This removes some race conditions, fixes some bugs, and simplifies
77804         things.  Use new dirchownmod function to do owner and mode changes.
77805         * lib/mkdir-p.h: Likewise.
77806         * lib/modechange.c (octal_to_mode): New function.
77807         (struct mode_change): New member mentioned.
77808         (make_node_op_equals): New arg mentioned.  All callers changed.
77809         (mode_compile): Keep track of which mode bits the user has explicitly
77810         mentioned.
77811         (mode_adjust): New arg DIR, so that we implement the X op correctly.
77812         New arg PMODE_BITS, to keep track of which mode bits the user
77813         mentioned; it treats S_ISUID and S_ISGID speciall.
77814         All callers changed.
77815         * lib/modechange.h: Likewise.
77816
77817 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77818
77819         * MODULES.html.sh: Add mkancestors.
77820         * modules/mkancesdirs: New module.
77821         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
77822         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
77823         The chdir-safer and afs files are now orphans; I'll remove them
77824         unless someone speaks up.
77825         Add lib/dirchownmod.c, lib/dirchownmod.h.
77826         (Depends-on): Remove alloca, chown, save-cwd, dirname.
77827         Add lchown, mkancesdirs.
77828         (Maintainer): Add self.
77829
77830 2006-07-15  Karl Berry  <karl@gnu.org>
77831
77832         * gnulib-tool: help message wording/arrangement.
77833
77834 2006-07-14  Simon Josefsson  <jas@extundo.com>
77835
77836         * doc/gnulib.texi (Libtool and Windows): New section.
77837
77838 2006-07-12  Simon Josefsson  <jas@extundo.com>
77839
77840         * modules/gendocs (License): Fix license, approved by Karl.
77841
77842 2006-07-12  Eric Blake  <ebb9@byu.net>
77843
77844         * MODULES.html.sh: Add gendocs.
77845
77846 2006-07-11  Eric Blake  <ebb9@byu.net>
77847
77848         * modules/fdl: New module, to install doc/fdl.texi.
77849         * MODULES.html.sh: Add new section for documentation modules.
77850         * gnulib-tool: Avoid space-tab.
77851         (--doc-base): New option, to manage files from doc.
77852
77853 2006-07-11  Eric Blake  <ebb9@byu.net>
77854
77855         * m4/absolute-header.m4: Fix comments to match recent change.
77856
77857 2006-07-11  Eric Blake  <ebb9@byu.net>
77858
77859         * gnulib-tool: List --doc-base before --tests-base.
77860
77861 2006-07-11  Derek R. Price  <derek@ximbiot.com>
77862
77863         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
77864
77865 2006-07-11  Bruno Haible  <bruno@clisp.org>
77866
77867         * README: Mention where to put documentation.
77868
77869 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77870
77871         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
77872
77873 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77874
77875         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
77876         to stdint.m4.
77877
77878 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77879
77880         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
77881         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
77882         "no/such/file/stdint.h" when there is no such file, so that
77883         the resulting C code can be parsed by dodgy compilers.
77884         Problems reported by Bob Proulx.
77885
77886 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77887
77888         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
77889         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77890         macros into the GNU _D_EXACT_NAMLEN.
77891         * lib/savedir.c:  Likewise.
77892         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
77893
77894 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77895         and Paul Eggert  <eggert@cs.ucla.edu>
77896
77897         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
77898         * m4/savedir.m4:
77899         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77900         macros into the GNU _D_EXACT_NAMLEN.
77901
77902 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77903
77904         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
77905         around the absolute name, to work around a problem with the HP-UX
77906         11.23 native C compiler, reported by Bob Proulx.
77907
77908 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77909
77910         * doc/maintain.texi, make-stds.texi: Sync from
77911         <http://savannah.gnu.org/projects/gnustandards>.
77912
77913 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77914
77915         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
77916
77917 2006-07-09  Jim Meyering  <jim@meyering.net>
77918
77919         * m4/glob.m4: Remove a doubled word in a comment.
77920
77921 2006-07-09  Jim Meyering  <jim@meyering.net>
77922
77923         * lib/argp-pv.c: Remove a doubled word in a comment.
77924         * lib/check-version.c (check_version): Likewise.
77925         * lib/javacomp.c (compile_java_class): Likewise.
77926
77927 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77928
77929         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
77930         for the benefit of people using Autoconf 2.60.  If you want to
77931         support older Autoconf versions you can copy m4/onceonly_2_57.m4
77932         (or m4/onceonly.m4, if pre-2.57) manually.
77933
77934 2006-07-08  Jim Meyering  <jim@meyering.net>
77935
77936         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
77937         comment.
77938         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
77939         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
77940         comment.
77941
77942 2006-07-08  Jim Meyering  <jim@meyering.net>
77943
77944         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
77945
77946 2006-07-07  Simon Josefsson  <jas@extundo.com>
77947
77948         * tests/test-crc.c: Change expected crc value, the test vector
77949         were probably computed using the old broken crc.c?
77950
77951 2006-07-06  Simon Josefsson  <jas@extundo.com>
77952
77953         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
77954         now the canonical place for the M4 file).
77955
77956         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
77957         from the sys_socket dependency now.
77958
77959         * modules/inet_pton (Files): Ditto.
77960
77961         * modules/inet_ntop (Files): Ditto.
77962
77963 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77964
77965         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
77966         not gl_PREREQ_GETUSERSHELL.
77967
77968 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77969
77970         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
77971         with only one argument, for Autoconf 2.60.
77972         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
77973         expand to nothing, so add a shell command to avoid syntax error.
77974         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77975
77976 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77977
77978         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
77979
77980 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77981
77982         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
77983         no longer needed.  Check for isblank decl.
77984         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
77985         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
77986         of existence.
77987
77988 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77989
77990         * lib/getloadavg.c: Use __VMS, not VMS.
77991         * lib/getopt.c: Likewise.
77992         * lib/getpagesize.h: Likewise.
77993         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
77994         and probably does not work.
77995
77996 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77997
77998         * lib/.cppi-disable: Add wcwidth.
77999         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
78000         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
78001         (ISGRAPH): Remove.  All uses changed to isgraph.
78002         (FOLD) [!defined _LIBC]: Remove special case.
78003         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
78004         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
78005         HAVE_ISBLANK.
78006         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
78007         case.
78008
78009 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
78010
78011         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
78012         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
78013         brackets.  Other minor changes to suppress some compiler
78014         warnings.
78015
78016 2006-07-06  Derek R. Price  <derek@ximbiot.com>
78017         and Paul Eggert  <eggert@cs.ucla.edu>
78018
78019         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
78020         of invoking obsolescent AC_HEADER_DIRENT macro.
78021         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
78022         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
78023         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
78024         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
78025         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
78026         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
78027         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
78028         * m4/readdir.m4: Remove; no longer needed.
78029
78030 2006-07-06  Derek R. Price  <derek@ximbiot.com>
78031         and Paul Eggert  <eggert@cs.ucla.edu>
78032
78033         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
78034         Don't worry about this obsolete case any more.
78035         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
78036         directories.
78037         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
78038         worry about this obsolete case any more.
78039         * lib/fts.c: Likewise.
78040         * lib/getcwd.c: Likewise.
78041         * lib/glob.h: Likewise.
78042         * lib/savedir.c: Likewise.
78043
78044 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78045
78046         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
78047         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
78048         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
78049         needed.
78050         All uses removed.
78051         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
78052         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
78053         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
78054         needed.
78055         * m4/getdate.m4 (gl_GETDATE): Likewise.
78056         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
78057         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
78058         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
78059         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
78060         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
78061         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78062         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
78063         needed.
78064
78065 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78066
78067         * lib/memcasecmp.c: Include <limits.h>.
78068         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
78069         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
78070         Don't assume isdigit succeeds only on '0' through '9'.
78071
78072 2006-07-05  Eric Blake  <ebb9@byu.net>
78073
78074         * modules/getaddrinfo (Depends-on): Add snprintf.
78075
78076 2006-07-05  Eric Blake  <ebb9@byu.net>
78077
78078         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
78079         to avoid 'header present but could not be compiled' on cygwin.
78080
78081 2006-07-05  Eric Blake  <ebb9@byu.net>
78082
78083         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
78084         missing from netdb.h.
78085         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
78086
78087 2006-07-05  Derek R. Price  <derek@ximbiot.com>
78088
78089         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
78090         no longer needed.
78091         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
78092         * m4/getdate.m4 (gl_GETDATE): Likewise.
78093         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
78094         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
78095         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
78096         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
78097         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78098
78099 2006-07-05  Derek R. Price  <derek@ximbiot.com>
78100
78101         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
78102         All uses of is_space replaced by isspace.
78103         * lib/exit.h: Don't talk about STDC_HEADERS.
78104         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
78105         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
78106         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
78107         replaced by isprint etc.
78108         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
78109         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
78110         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
78111         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
78112         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
78113         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
78114
78115 2006-07-05  Bruno Haible  <bruno@clisp.org>
78116
78117         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
78118         the function exists, before testing against AIX.
78119         Reported by Martin Lambers <marlam@marlam.de>.
78120
78121 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
78122
78123         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
78124         From Mark D. Baushke.
78125
78126 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
78127
78128         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
78129         to the absolute name, not just one, to bypass Sun C 5.8's
78130         "warning: #include of /usr/include/... may be non-portable".
78131
78132 2006-07-04  Eric Blake  <ebb9@byu.net>
78133
78134         * modules/dirname-tests: New test module.
78135         * tests/test-dirname.c: New file, replacing dirname.c
78136         TEST_DIRNAME section that was recently deleted.
78137
78138 2006-07-04  Bruno Haible  <bruno@clisp.org>
78139
78140         Assume ANSI C header files and <ctype.h> functions.
78141         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
78142         (mbsnwidth): Use isprint, iscntrl instead.
78143
78144 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78145
78146         Merge from coreutils.
78147         * MODULES.html.sh: Add xstrtold.
78148         * modules/xstrtold: New file.
78149         * modules/cycle-check (Files): Add lib/same-inode.h.
78150         * modules/dirname (Files): Add m4/double-slash-root.m4.
78151         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
78152         * modules/mkdir-p (Files): Add lib/same-inode.h.
78153         * modules/same (Files): Add lib/same-inode.h.
78154
78155 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78156
78157         * m4/absolute-header.m4: Renamed from full-header-path.m4.
78158         This is to keep the terminology clean; POSIX talks about
78159         "absolute pathnames", not "full pathnames", but the GNU
78160         Coding Standards say to use "path" for something else;
78161         so use "absolute" to keep both sides happy.
78162         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
78163         Set gl_absolute_header, not gl_full_header_path.
78164         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
78165         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
78166         All uses changed.
78167
78168         Merge from coreutils.
78169
78170         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
78171
78172         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
78173         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
78174         want to require the building of c-strtod.o.
78175         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
78176         needs -lm directly.
78177         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
78178
78179         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
78180
78181         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
78182         --as-needed option if available.  Problem reported by Albert Chin in
78183         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
78184         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
78185         cc merely issues a bunch of annoying warnings for --as-needed
78186         (this problem was reported by Bob Proulx).  Also, try linking with
78187         -lm to detect a bug in binutils 2.16 (this problem was reported
78188         by Ralf Wildenhues).
78189
78190         2006-06-18  Jim Meyering  <jim@meyering.net>
78191
78192         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
78193         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
78194         macro.
78195         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
78196         also check for glibc-2.4's abort-inducing bug.
78197
78198         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
78199         Low-probability clean-up should be to use rmdir to get rid of
78200         the just-created directory, not unlink.
78201
78202         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
78203         configure fail, and request a bug report to inform us about it.
78204         Add a comment that, barring reports to the contrary, in 2007 we'll
78205         assume ftruncate is universally available.
78206
78207         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
78208
78209         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
78210
78211         2006-03-12  Jim Meyering  <jim@meyering.net>
78212
78213         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
78214         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
78215         * m4/same.m4 (gl_SAME): Likewise.
78216         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
78217
78218         2006-03-11  Eric Blake  <ebb9@byu.net>
78219
78220         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
78221         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
78222         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
78223         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
78224
78225 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78226
78227         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
78228         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
78229         reported by Mark D. Baushke, one in
78230         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
78231
78232         Merge from coreutils.
78233
78234         * lib/.cppi-disable: Add stdint_.h.
78235         * lib/.cvsignore: Add stdint.h.
78236
78237         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
78238
78239         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
78240         both double and long double versions.
78241         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
78242         * lib/xstrtold.c: New file.
78243         * lib/xstrtod.h (xstrtold): New decl.
78244
78245         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
78246
78247         * lib/filemode.c (setst): Remove.
78248         (strmode): Rewrite to avoid setst.  This makes the code shorter,
78249         (arguably) clearer, and the generated code is a bit smaller on my
78250         Debian GNU/Linux stable x86 host.
78251
78252         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
78253
78254         * lib/filemode.c: Include "filemode.h" first, to test the interface.
78255         Assume that filemode.h includes sys/types.h and sys/stat.h.
78256         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
78257         (ftypelet): Reorder to put common cases first, for efficiency.
78258         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
78259         to do 'M'.
78260         (strmode): Renamed from mode_string, and now stores 12 bytes instead
78261         of 10, for compatibility with FreeBSD.  All callers changed.
78262         (filemodestring): Now stores 12 bytes instead of 10, and sets file
78263         types that can't be deduced solely from st_mode.  First arg is now a
78264         const pointer.
78265         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
78266         (strmode): Renamed from mode_string.
78267         (filemodestring): New decl.
78268         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
78269         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
78270         needed.
78271         (S_ISPORT, S_ISWHT): New macros, if not already defined.
78272
78273         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
78274
78275         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
78276         fsusage.h now does that.  Include fsusage.h first, to test interface.
78277         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
78278         at most one method (the old code could have generated decls that
78279         didn't conform to C89, not that this was ever exercised).
78280         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
78281
78282         2006-03-19  Jim Meyering  <jim@meyering.net>
78283
78284         Work even in a chroot where d_ino values for entries in "/"
78285         don't match the stat.st_ino values for the same names.
78286         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
78287         number, iterate through all entries again, using lstat instead.
78288         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
78289         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
78290
78291         * lib/getcwd.c (__getcwd): Clarify a comment.
78292         Use memcpy in place of a call to strcpy.
78293
78294         2006-03-12  Jim Meyering  <jim@meyering.net>
78295
78296         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
78297         matches that of the current directory (which we're about to chdir ".."
78298         out of), then save the dev-ino of the parent, instead.
78299
78300         * lib/same-inode.h (SAME_INODE): New file/macro.
78301         * lib/chdir-safer.c (SAME_INODE): Remove definition.
78302         Include "same-inode.h", instead.
78303         * lib/same.c: Likewise.
78304         * lib/cycle-check.h: Include "same-inode.h".
78305         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
78306         * lib/cycle-check.c (SAME_INODE): Remove definition.
78307         * lib/root-dev-ino.h: Include "same-inode.h".
78308
78309         2006-03-11  Eric Blake  <ebb9@byu.net>
78310
78311         * lib/same.c (same_name): s/base_name/last_component/
78312         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
78313         * lib/filenamecat.c (file_name_concat): Likewise.
78314
78315         2006-03-11  Eric Blake  <ebb9@byu.net>,
78316                     Paul Eggert  <eggert@cs.ucla.edu>
78317
78318         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
78319         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
78320         drive prefix.
78321         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
78322         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
78323         (last_component): New method.
78324         * lib/dirname.c (dir_len): Determine when drive letters need a
78325         subsequent slash.  Preserve // when it is special.
78326         (dir_name): Don't append dot when drive letter is absolute.
78327         [TEST_DIRNAME]: Move into a full-blown gnulib test.
78328         * lib/basename.c (base_name): New semantics - malloc the result.
78329         Preserve // when it is special.  Preserve relative files that look
78330         like drive letters.
78331         (base_len): Preserve // when it is special.
78332         (last_component): New method, similar to old base_name semantics.
78333         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
78334         base_name.  Strip redundant slashes from ///.
78335
78336 2006-07-03  Jim Meyering  <jim@meyering.net>
78337
78338         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
78339         macro is used before the first cycle_check call.
78340
78341 2006-07-03  Eric Blake  <ebb9@byu.net>
78342
78343         * modules/dirname (Depends-on): Add xstrndup.
78344
78345 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
78346
78347         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
78348         test cases, so that config.log is a bit easier to follow.
78349
78350 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
78351
78352         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
78353         both are 64 bits, since this seems to be the tradition, and this
78354         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
78355         we ever run into a host that prefers long long to long in this
78356         case, we'll need another configure-time test.  Problem reported by
78357         Jim Meyering.
78358
78359 2006-07-02  Eric Blake  <ebb9@byu.net>
78360
78361         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
78362
78363 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78364
78365         * modules/inttypes (Depends-on): No longer depends on stdint.
78366         * modules/stdint (Description): Say more about assumptions.
78367         Say that the fast types might differ.  Say macros are used.
78368         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
78369         (Makefile.am): Revise list of substituted symbols to match
78370         new stdint.m4.
78371         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
78372         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
78373         * tests/test-stdint.c (verify_same_types)
78374         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
78375         the code conforms to C99/C89.
78376         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
78377         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
78378
78379 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78380
78381         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
78382         but fix a bug, by requiring at least 64 bits.
78383         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
78384         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
78385         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
78386         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
78387
78388         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
78389         changes.  Make 2.59 a prerequisite.  Check and substitute for
78390         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
78391         inttypes.h.  Do not use special include files; just use the
78392         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
78393         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
78394         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
78395         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
78396         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
78397         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
78398         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
78399         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
78400         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
78401         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
78402         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
78403         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
78404         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
78405         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
78406         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
78407         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
78408         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
78409         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
78410         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
78411         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
78412         WINT_MAX.  Check for C99 conformance more strictly, by detecting
78413         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
78414         not check for things that C99 does not require, e.g., int8_t.  If
78415         a test isn't needed unless <stdint.h> isn't working, and is
78416         unlikely to be needed for any other reason, then don't do it
78417         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
78418         size_t, since we assume C89 freestanding at least.  Do not check
78419         for sig_atomic_t, wchar_t, or wint_t, since the code now does
78420         the right thing even if the types are not defined.  Instead use:
78421         (gl_STDINT_TYPE_PROPERTIES): New macro.
78422         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
78423         testing whether <sys/types.h> clashes, as Autoconf does this for
78424         us now.  All uses removed.
78425         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
78426         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
78427         (gl_CHECK_TYPE_SAME):
78428         Remove; no longer needed.
78429         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
78430         exists, since we'll return 0 anyway in that case.
78431         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
78432
78433 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78434
78435         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
78436         possible collision with system files.
78437         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
78438         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
78439         WCHAR_MIN and WCHAR_MAX in this case.
78440         (<stddef.h>): Do not include; no longer needed.
78441         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
78442         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
78443         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
78444         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
78445         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
78446         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
78447         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
78448         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
78449         !defined(__c99))]: Include in this case too, since it's harmless
78450         now.
78451         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
78452         dangerous to do so.
78453         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
78454         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
78455         (_STDINT_MIN, _STDINT_MAX): New macros.
78456         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
78457         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
78458         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
78459         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
78460         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
78461         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
78462         macros, not typedefs; this simplifies things quite a bit.
78463         Use long int for all types narrower than int64_t.
78464         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
78465         Define in terms of long long int or int64_t or long int,
78466         not int64_t or int32_t.  This saves some compile-time testing.
78467         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
78468         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
78469         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
78470         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
78471         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
78472         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
78473         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
78474         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
78475         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
78476         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
78477         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
78478         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
78479         undef any previous version and define our own version, for
78480         simplicity and consistency with the new macros for types.
78481         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
78482         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
78483         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
78484         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
78485         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
78486         @WINT_T_SUFFIX@ to keep things simple here.
78487         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
78488         Simplify by assuming typical 8/16/32/64 host, since we're
78489         already doing that elsewhere anyway.
78490         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
78491         and assume long long int is 64 bits if available.  This
78492         speeds up 'configure'.
78493
78494 2006-07-01  Eric Blake  <ebb9@byu.net>
78495
78496         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
78497         Reported by Andreas Buening.
78498
78499 2006-07-01  Eric Blake  <ebb9@byu.net>
78500
78501         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
78502
78503 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
78504
78505         * lib/getaddrinfo.c: fixed typo
78506
78507 2006-06-29  Jim Meyering  <jim@meyering.net>
78508
78509         * modules/strftime (Maintainer): Add my name, since with the
78510         FPRINTFTIME changes strftime.c has forked from glibc.
78511
78512 2006-06-29  Eric Blake  <ebb9@byu.net>
78513
78514         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
78515
78516 2006-06-29  Eric Blake  <ebb9@byu.net>
78517
78518         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
78519
78520 2006-06-29  Eric Blake  <ebb9@byu.net>
78521
78522         * lib/stat_.h: New file.
78523
78524 2006-06-29  Eric Blake  <ebb9@byu.net>
78525
78526         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
78527         unused static function.
78528
78529 2006-06-29  Eric Blake  <ebb9@byu.net>
78530
78531         * doc/functions.texi (Function Portability): Document missing lstat
78532         on mingw.
78533
78534 2006-06-29  Eric Blake  <ebb9@byu.net>
78535
78536         * MODULES.html.sh: Add sys_stat.
78537         * modules/sys_stat: New module.
78538         * modules/mkstemp (Depends-on): Add sys_stat.
78539
78540 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78541
78542         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
78543
78544 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78545
78546         * m4/c-bs-a.m4: Removed.
78547
78548 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78549
78550         * lib/strftime.c: Assume strftime() exists.
78551
78552 2006-06-29  Derek Price  <derek@ximbiot.com>
78553
78554         * modules/c-bs-a: Removed - \a is C89.
78555         * MODULES.html.sh: Remove c-bs-a.
78556
78557 2006-06-29  Bruno Haible  <bruno@clisp.org>
78558
78559         * modules/wcwidth (License): Change to LGPL.
78560
78561 2006-06-28  Simon Josefsson  <jas@extundo.com>
78562
78563         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
78564         on _WIN32.
78565
78566         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
78567         getnameinfo.
78568
78569 2006-06-28  Simon Josefsson  <jas@extundo.com>
78570
78571         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
78572
78573 2006-06-28  Simon Josefsson  <jas@extundo.com>
78574
78575         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
78576         functions there.  It will succeed on Windows XP, but on Windows
78577         2000 and (presumably) earlier, it will fail, and use the internal
78578         re-implementation.
78579         (use_win32_p): New function.
78580         (getaddrinfo): Use strtoul on servname, to support numeric ports.
78581         Support AI_NUMERICSERV to disable getservbyname.
78582         (getnameinfo): New function, only supports
78583         NI_NUMERICHOST|NI_NUMERICSERV for now.
78584
78585         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
78586         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
78587         getnameinfo.
78588
78589 2006-06-28  Eric Blake  <ebb9@byu.net>
78590
78591         * modules/wcwidth: New file.
78592         * modules/mbchar (Depends-on): Add wcwidth.
78593         * modules/mbswidth (Depends-on): Add wcwidth.
78594         * MODULES.html.sh: Add wcwidth.
78595
78596 2006-06-28  Eric Blake  <ebb9@byu.net>
78597
78598         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
78599         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
78600
78601 2006-06-28  Eric Blake  <ebb9@byu.net>
78602
78603         * lib/xvasprintf.h: Fix comments.
78604
78605 2006-06-28  Eric Blake  <ebb9@byu.net>
78606
78607         * lib/mbchar.h (wcwidth): Include wcwidth.h.
78608         * lib/mbswidth.c (wcwidth): Move from here...
78609         * lib/wcwidth.h: ...to this new file.
78610
78611 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78612
78613         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
78614
78615         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
78616         it's obsolete.
78617         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
78618
78619 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78620
78621         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
78622         Autoconf 2.60 says this stuff was obsolete.
78623
78624 2006-06-28  Bruno Haible  <bruno@clisp.org>
78625
78626         * modules/wcwidth (Files): Add m4/wchar_t.m4.
78627
78628 2006-06-28  Bruno Haible  <bruno@clisp.org>
78629
78630         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
78631         gt_TYPE_WCHAR_T.
78632
78633 2006-06-28  Bruno Haible  <bruno@clisp.org>
78634
78635         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
78636         declaration for wcwidth.
78637         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
78638
78639 2006-06-28  Bruno Haible  <bruno@clisp.org>
78640
78641         * lib/mkdtemp.c [MINGW]: Include <io.h>.
78642         (mkdir): Define using _mkdir.
78643
78644 2006-06-28  Bruno Haible  <bruno@clisp.org>
78645
78646         * lib/getaddrinfo.h: Fix POSIX URL.
78647         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
78648         _WIN32.
78649         (use_win32_p): Make static.
78650         (getaddrinfo): Reject service name if it is empty or does not consist
78651         solely of decimal digits, or if its value is > 65535.
78652         (getnameinfo): Remove useless casts.
78653
78654 2006-06-27  Simon Josefsson  <jas@extundo.com>
78655
78656         * modules/sys_select: New file, suggested by Bruno Haible, Paul
78657         Eggert and Martin Lambers.
78658
78659 2006-06-27  Simon Josefsson  <jas@extundo.com>
78660
78661         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
78662         Eggert and Martin Lambers.
78663
78664 2006-06-27  Bruno Haible  <bruno@clisp.org>
78665
78666         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
78667         result to 0, not to empty.
78668         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
78669
78670 2006-06-27  Bruno Haible  <bruno@clisp.org>
78671
78672         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
78673
78674 2006-06-26  Simon Josefsson  <jas@extundo.com>
78675
78676         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
78677         present.
78678
78679 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
78680
78681         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
78682         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
78683         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
78684
78685 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
78686
78687         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
78688
78689 2006-06-26  Bruno Haible  <bruno@clisp.org>
78690
78691         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
78692
78693 2006-06-26  Bruno Haible  <bruno@clisp.org>
78694
78695         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
78696
78697 2006-06-26  Bruno Haible  <bruno@clisp.org>
78698
78699         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
78700         SGI C compiler in pre-C99 mode.
78701         Suggested by Mark D. Baushke and Larry Jones.
78702
78703 2006-06-26  Bruno Haible  <bruno@clisp.org>
78704
78705         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
78706         WCHAR_MAX.
78707         Reported by Mark D. Baushke and Larry Jones.
78708
78709 2006-06-26  Bruno Haible  <bruno@clisp.org>
78710
78711         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
78712         in pre-C99 mode.
78713         Suggested by Mark D. Baushke and Larry Jones.
78714
78715 2006-06-23  Simon Josefsson  <jas@extundo.com>
78716             Bruno Haible  <bruno@clisp.org>
78717
78718         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
78719         Emit mostlyclean-local rule.
78720         (func_emit_tests_Makefile_am): Likewise.
78721         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
78722
78723 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
78724
78725         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
78726
78727 2006-06-23  Bruno Haible  <bruno@clisp.org>
78728
78729         * tests/test-stdint.c: Update to match ISO C 99 Technical
78730         Corrigendum 1.
78731
78732 2006-06-23  Bruno Haible  <bruno@clisp.org>
78733
78734         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
78735
78736 2006-06-23  Bruno Haible  <bruno@clisp.org>
78737
78738         * lib/stdint_.h: Treat IRIX like OpenBSD.
78739
78740 2006-06-23  Bruno Haible  <bruno@clisp.org>
78741
78742         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
78743         ISO C 99 Technical Corrigendum 1.
78744
78745 2006-06-22  Simon Josefsson  <jas@extundo.com>
78746
78747         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
78748         MinGW.
78749
78750 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78751
78752         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
78753         needed.  Some compiler complained about some of them.  Problem reported
78754         by Larry Jones in
78755         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
78756
78757 2006-06-21  Simon Josefsson  <jas@extundo.com>
78758
78759         * tests/test-getaddrinfo.c: New file.
78760
78761         * modules/getaddrinfo-tests: New file.
78762
78763         * MODULES.html.sh: Add inet_pton.
78764
78765         * modules/inet_pton: New file.
78766
78767 2006-06-21  Simon Josefsson  <jas@extundo.com>
78768
78769         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
78770         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
78771         of using the (limited) gnulib implementation on Windows XP.
78772
78773         * m4/inet_pton.m4: New file.
78774
78775 2006-06-21  Simon Josefsson  <jas@extundo.com>
78776
78777         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
78778         variable.
78779
78780         * lib/socket_.h: Don't define WINVER.
78781
78782         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
78783         slightly modified to work in gnulib.
78784
78785 2006-06-21  Simon Josefsson  <jas@extundo.com>
78786
78787         * doc/gnulib.texi (Windows sockets): Add.
78788
78789 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
78790
78791         * lib/read-file.c (fread_file): Start with buffer allocation of
78792         0 bytes rather than 1 byte; this simplifies the code.
78793         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
78794         code to free buffer and save/restore errno.
78795         (internal_read_file): Remove unused local.
78796
78797 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
78798
78799         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
78800         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
78801         Problem reported by Denis Excoffier in
78802         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
78803
78804 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78805
78806         * modules/sys_socket, modules/socklen: Include sys/types since
78807         FreeBSD 4.x's sys/socket.h needs it.
78808
78809 2006-06-19  Simon Josefsson  <jas@extundo.com>
78810
78811         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
78812
78813 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
78814
78815         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
78816
78817 2006-06-19  Bruno Haible  <bruno@clisp.org>
78818
78819         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
78820         and FULL_PATH_INTTYPES_H in angle brackets.
78821         Reported by Mark D. Baushke <mdb@gnu.org>.
78822
78823 2006-06-17  Eric Blake  <ebb9@byu.net>
78824
78825         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
78826         errno.
78827
78828 2006-06-17  Bruno Haible  <bruno@clisp.org>
78829
78830         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
78831         <sys/inttypes.h>.
78832
78833 2006-06-17  Bruno Haible  <bruno@clisp.org>
78834
78835         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
78836         whether errno is declared. Assume <errno.h> declares errno.
78837
78838 2006-06-17  Bruno Haible  <bruno@clisp.org>
78839
78840         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
78841
78842 2006-06-17  Bruno Haible  <bruno@clisp.org>
78843
78844         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
78845         problem on Solaris 2.5.1.
78846
78847 2006-06-16  Eric Blake  <ebb9@byu.net>
78848
78849         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
78850         * lib/unicodeio.c [!defined errno]: Likewise.
78851         * lib/strtol.c [!defined errno]: Likewise.
78852         * lib/strtod.c [!defined errno]: Likewise.
78853
78854 2006-06-15  Eric Blake  <ebb9@byu.net>
78855
78856         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
78857
78858 2006-06-15  Eric Blake  <ebb9@byu.net>
78859
78860         * config/srclist.txt (ssize_t.m4): Lose sync.
78861
78862 2006-06-15  Bruno Haible  <bruno@clisp.org>
78863
78864         * modules/stdint (Files): Include m4/full-header-path.m4,
78865         m4/size_max.m4, m4/wchar_t.m4.
78866         (Makefile.am): Many more substitutions.
78867         * modules/stdint-tests: New file.
78868         * tests/test-stdint.c: New file.
78869
78870 2006-06-15  Bruno Haible  <bruno@clisp.org>
78871
78872         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
78873         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
78874         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
78875         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
78876         gl_CHECK_TYPE_SAME): New macros.
78877
78878 2006-06-15  Bruno Haible  <bruno@clisp.org>
78879
78880         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
78881
78882 2006-06-15  Bruno Haible  <bruno@clisp.org>
78883
78884         * lib/stdint_.h: Rewritten to be fully auto-configured.
78885         Fixes bug on HP-UX/IA64.
78886
78887 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
78888
78889         * lib/getdate.y (__attribute__): Don't define if already defined.
78890         Problem reported by Larry Jones.
78891         * lib/utimens.c (__attribute__): Likewise.
78892
78893 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
78894
78895         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
78896         reported by Andreas Schwab.
78897
78898 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78899             Bruno Haible  <bruno@clisp.org>
78900
78901         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
78902         check for the declaration of strnlen and a run test that exposes the
78903         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
78904         rpl_strndup.
78905
78906 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78907             Bruno Haible  <bruno@clisp.org>
78908
78909         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
78910
78911 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78912
78913         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
78914         compile test, for Tru64 4.0D.
78915
78916 2006-05-28  Karl Berry  <karl@gnu.org>
78917
78918         * config/srclist.txt (printf-args.c): lose sync.
78919
78920 2006-05-26  Martin Lambers  <marlam@marlam.de>
78921
78922         * lib/getpass.c: Updates the test for the native W32 API, and adds
78923         missing includes, thus fixing compilation warnings.
78924
78925 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78926
78927         * lib/exclude.c (exclude_fnmatch): New function.
78928         (excluded_file_name): Call exclude_fnmatch.
78929         * lib/exclude.h (excluded_file_name): New prototype
78930
78931 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
78932
78933         * lib/tempname.c (small_open, large_open): New macros.
78934         (__open, __open64) [!_LIBC]: Remove.
78935         (__gen_tempname): Use small_open and large_open instead of __open
78936         and __open64.  This fixes a portability bug on HP-UX 11.11i
78937         reported by Simon Wing-Tang in
78938         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
78939
78940 2006-05-24  Bruno Haible  <bruno@clisp.org>
78941
78942         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
78943         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
78944         Reported by Thorsten Maerz <torte@netztorte.de> via
78945         Aaron Stone <aaron@serendipity.cx>.
78946
78947 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78948
78949         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
78950         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
78951         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
78952         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
78953         not really conditional on the cache.
78954         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
78955
78956 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78957
78958         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
78959         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
78960         (my_usleep): Don't mishandle maximum value.
78961
78962 2006-05-19  Jim Meyering  <jim@meyering.net>
78963
78964         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
78965
78966 2006-05-17  Bruno Haible  <bruno@clisp.org>
78967
78968         Cygwin portability.
78969         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
78970
78971 2006-05-17  Bruno Haible  <bruno@clisp.org>
78972
78973         * lib/stdint_.h: Fix recognition of Cygwin.
78974
78975 2006-05-15  Bruno Haible  <bruno@clisp.org>
78976
78977         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
78978         on libtool patch by Ralf Wildenhues.
78979
78980 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78981
78982         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
78983         test for C99 conformance; (bool) 0.5 is an integer constant
78984         expression, but (bool) -0.5 is not.  Problem reported by Fedor
78985         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
78986
78987 2006-05-11  Simon Josefsson  <jas@extundo.com>
78988
78989         * m4/xvasprintf.m4: Fix obvious typo.
78990
78991 2006-05-11  Jim Meyering  <jim@meyering.net>
78992
78993         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
78994         James Lemley.
78995
78996 2006-05-10  Simon Josefsson  <jas@extundo.com>
78997
78998         * lib/md4.c: Typo fix, update copyright years.
78999         (K1, K2): Don't use L because it turn computations into 64-bit on
79000         64-bit platforms.
79001
79002 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
79003
79004         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
79005         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
79006         unwanted sign propagation, e.g., on hosts with 64-bit int.
79007         There still are some problems with reeelly weird theoretical hosts
79008         (e.g., 33-bit int) but it's not worth worrying about now.
79009         * lib/sha1.c (rol): Likewise.
79010         (K1, K2, K3, K4): Remove unnecessary L suffix.
79011
79012 2006-05-10  Bruno Haible  <bruno@clisp.org>
79013
79014         * lib/des.c: Cast to avoid warnings.
79015
79016 2006-05-09  Bruno Haible  <bruno@clisp.org>
79017
79018         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
79019         (Depends-on): Depend also on xsize, stdarg.
79020         (configure.ac): Add gl_XVASPRINTF.
79021
79022 2006-05-09  Bruno Haible  <bruno@clisp.org>
79023
79024         * m4/xvasprintf.m4: New file.
79025
79026 2006-05-09  Bruno Haible  <bruno@clisp.org>
79027
79028         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
79029         (EOVERFLOW): Define fallback value.
79030         (xstrcat): New function.
79031         (xvasprintf): Recognize the special case of a string concatenation.
79032
79033 2006-05-08  Eric Blake  <ebb9@byu.net>
79034
79035         * gnulib-tool (func_version): Base copyright year on CVS date.
79036         (func_emit_copyright_notice): New function.
79037         (func_emit_lib_Makefile_am): Use it.
79038         (func_emit_tests_Makefile_am): Likewise.
79039         (func_import): Likewise.
79040
79041 2006-05-08  Bruno Haible  <bruno@clisp.org>
79042
79043         * modules/stdarg: New file.
79044         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
79045
79046 2006-05-08  Bruno Haible  <bruno@clisp.org>
79047
79048         * m4/stdarg.m4: New file, from GNU gettext.
79049
79050 2006-05-08  Bruno Haible  <bruno@clisp.org>
79051
79052         * config/srclist.txt (build-aux/config.rpath): different from latest
79053         release.
79054
79055 2006-05-08  Bruno Haible  <bruno@clisp.org>
79056
79057         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
79058
79059 2006-05-05  Jim Meyering  <jim@meyering.net>
79060
79061         * m4/warning.m4: New file, derived from bison's file by the same name.
79062
79063 2006-05-03  Bruno Haible  <bruno@clisp.org>
79064
79065         * lib/stdint_.h: Shorter URL.
79066         * lib/inttypes.h: Likewise.
79067
79068 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79069
79070         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
79071
79072 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79073
79074         * lib/verify.h: Document the internals better.  Most of this change
79075         was written by Bruno Haible.
79076
79077 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79078
79079         * doc/verify.texi: New file, partly based on a proposal by
79080         Bruno Haible.
79081
79082 2006-05-02  Bruno Haible  <bruno@clisp.org>
79083
79084         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
79085         test from here...
79086         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
79087
79088 2006-04-29  Bruno Haible  <bruno@clisp.org>
79089
79090         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
79091         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
79092
79093 2006-04-29  Bruno Haible  <bruno@clisp.org>
79094
79095         * gnulib-tool: Make --update option actually work.
79096
79097 2006-04-29  Bruno Haible  <bruno@clisp.org>
79098
79099         * doc/gcd.texi: New file.
79100         * doc/gnulib.texi: Include it.
79101
79102 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
79103
79104         * lib/getdate.y (get_date): When adding relative date, start with the
79105         initial time, not with the result of the first mktime call.
79106
79107 2006-04-25  Bruno Haible  <bruno@clisp.org>
79108
79109         * gnulib-tool (func_import): Output the include directives in three
79110         blocks, sorted separately.
79111         Reported by Ben Pfaff <blp@cs.stanford.edu>.
79112
79113 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
79114
79115         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
79116         to define main with arguments, for C++.  Reported by Eric Blake.
79117         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
79118         Prefer 'int main ()' to 'int main (void)', for C++.
79119         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
79120         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
79121         for 'main', for C99 and C++.
79122
79123 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
79124
79125         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
79126         Don't assume that exit status -1 is valid.
79127         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79128         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
79129         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
79130         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
79131         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
79132         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
79133         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
79134         functions can be used without declaring them, or that you can
79135         exit with status -1.
79136         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
79137
79138 2006-04-24  Karl Berry  <karl@gnu.org>
79139
79140         * config/srclist.txt (longdouble.m4): sync lost.
79141
79142 2006-04-24  Eric Blake  <ebb9@byu.net>
79143
79144         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
79145
79146 2006-04-24  Bruno Haible  <bruno@clisp.org>
79147
79148         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
79149         poll() implementation in AIX.
79150         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79151
79152 2006-04-24  Bruno Haible  <bruno@clisp.org>
79153
79154         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
79155         assigned exactly once.
79156
79157 2006-04-23  Claudio Fontana  <claudio@gnu.org>
79158             Bruno Haible  <bruno@clisp.org>
79159
79160         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
79161         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
79162         for AM_CPPFLAGS.
79163
79164 2006-04-23  Bruno Haible  <bruno@clisp.org>
79165
79166         * modules/copy-file: Depend on unistd.
79167         * modules/execute: Likewise.
79168         * modules/fatal-signal: Likewise.
79169         * modules/findprog: Likewise.
79170         * modules/mkdtemp : Likewise.
79171         * modules/pipe: Likewise.
79172         * modules/wait-process: Likewise.
79173
79174 2006-04-23  Bruno Haible  <bruno@clisp.org>
79175
79176         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
79177         condition was already detected.
79178         Reported by Ben Pfaff <blp@cs.stanford.edu>.
79179
79180 2006-04-23  Bruno Haible  <bruno@clisp.org>
79181
79182         * lib/copy-file.c: Include <unistd.h> unconditionally.
79183         * lib/execute.c: Likewise.
79184         * lib/fatal-signal.c: Likewise.
79185         * lib/findprog.c: Likewise.
79186         * lib/mkdtemp.c: Likewise.
79187         * lib/pipe.h: Likewise.
79188         * lib/pipe.c: Likewise.
79189         * lib/wait-process.h: Likewise.
79190
79191 2006-04-23  Bruno Haible  <bruno@clisp.org>
79192
79193         * gnulib-tool (func_usage): Fix --import description. Document
79194         --update.
79195         (func_import): Create temporary file in a temporary directory, if
79196         --dry-run is specified. Silence errors from 'grep' when there are no
79197         m4 files in $m4dir.
79198         (func_create_testdir): Silence errors from 'grep' when there are no
79199         m4 files in $m4dir.
79200         Reported by Karl Berry <karl@freefriends.org>.
79201
79202 2006-04-20  Bruno Haible  <bruno@clisp.org>
79203
79204         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
79205         one argument, so that the code will be portable to Autoconf 2.60.
79206         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
79207         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
79208         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
79209
79210 2006-04-19  Derek Price  <derek@ximbiot.com>
79211             Eric Blake  <ebb9@byu.net>
79212
79213         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
79214         rather than "/full/path.h".  Update comment to match.  Shorten &
79215         generalize m4_translit call via AS_TR_CPP.
79216
79217 2006-04-19  Derek Price  <derek@ximbiot.com>
79218             Eric Blake  <ebb9@byu.net>
79219
79220         * lib/inttypes.h: Correct grammar in comment.
79221
79222 2006-04-18  Derek Price  <derek@ximbiot.com>
79223             Paul Eggert  <eggert@cs.ucla.edu>
79224
79225         * modules/inttypes: New file.
79226         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
79227
79228 2006-04-18  Derek Price  <derek@ximbiot.com>
79229             Paul Eggert  <eggert@cs.ucla.edu>
79230
79231         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
79232         New files.
79233
79234 2006-04-18  Derek Price  <derek@ximbiot.com>
79235             Paul Eggert  <eggert@cs.ucla.edu>
79236
79237         * lib/inttypes.h: New file.
79238         * lib/strtoimax.c: Assume <inttypes.h>.
79239
79240 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
79241
79242         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
79243         isn't mounted.  Problem reported by Kir Kolyshkin.
79244
79245 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
79246
79247         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
79248         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
79249         Derek R. Price.
79250         * lib/regex.h (RE_DUP_MAX): Update comment to match current
79251         implementation.
79252
79253 2006-04-12  Eric Blake  <ebb9@byu.net>
79254
79255         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
79256         is now done automatically by the corresponding Autoconf macro.
79257
79258 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
79259
79260         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
79261         time_r.h.
79262
79263 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79264
79265         Merge regex changes from libc, removing some of our
79266         POSIX-conformance changes that were rejected and redoing them in a
79267         less-intrusive way.
79268
79269         * lib/regcomp.c (re_compile_internal, init_dfa):
79270         Length arg is now size_t, not Idx.  All uses changed.
79271         (peek_token): Forward decl now says internal_function.
79272         (__re_error_msgid, __re_error_msgid_idx):
79273         Now static rather than extern with attribute_hidden.
79274         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
79275         For some reason libc prefers K&R style defns for external functions.
79276         (regerror) [!defined _LIBC]: Likewise.
79277         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
79278         (seek_collating_symbol_entry, lookup_collation_sequence_value):
79279         (build_range_exp, build_collating_symbol):
79280         Use K&R-style defn.
79281         (re_compile_fastmap): Use '\0' to memset, not 0.
79282         (utf8_sb_map): Make the calculations more obvious.
79283         (init_dfa, parse_bracket_exp, build_charclass_op):
79284         Call calloc and cast result, as glibc does.
79285         (init_word_char, fetch_token, peek_token, peek_token_bracket):
79286         (build_range_exp, build_collating_symbol):
79287         Now internal functions.
79288
79289         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
79290
79291         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
79292         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
79293         Don't depend on VMS; depend on __VMS instead, for POSIX
79294         namespace cleanness.
79295         (regoff_t): Define to ssize_t, not long int.
79296
79297         Remove the REG_ macros named below.  Instead, make the old names
79298         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
79299         __USE_GNU_REGEX.
79300         (REG_BACKSLASH_ESCAPE_IN_LISTS):
79301         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
79302         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
79303         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
79304         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
79305         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
79306         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
79307         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
79308         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
79309         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
79310         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
79311         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
79312         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
79313         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
79314         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
79315         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
79316         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
79317         (REG_NREGS):
79318         Remove.  All uses replaced by the old RE_* names.
79319         (RE_BACKSLASH_ESCAPE_IN_LISTS):
79320         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
79321         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
79322         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
79323         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
79324         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
79325         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
79326         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
79327         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
79328         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
79329         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
79330         Don't bother having these macros be independent of each others'
79331         values, since they no longer exist in the POSIX name space.
79332
79333         Rename the following member names back to their old names,
79334         unless !__USE_GNU_REGEX.  All uses changed back.
79335         (buffer): Renamed from re_buffer.
79336         (allocated): Renamed from re_allocated.
79337         (used): Renamed from re_used.
79338         (syntax): Renamed from re_syntax.
79339         (fastmap): Renamed from re_fastmap.
79340         (translate): Renamed from re_translate.
79341         (can_be_null): Renamed from re_can_be_null.
79342         (regs_allocated): Renamed from re_regs_allocated.
79343         (fastmap_accurate): Renamed from re_fastmap_accurate.
79344         (no_sub): Renamed from re_no_sub.
79345         (not_bol): Renamed from re_not_bol.
79346         (not_eol): Renamed from re_not_eol.
79347         (newline_anchor): Renamed from re_newline_anchor.
79348         (num_regs): Renamed from rm_num_regs.
79349         (start): Renamed from rm_start.
79350         (end): Renamed from rm_end.
79351
79352         (free_state): Move up a bit.
79353
79354         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
79355         #define to be empty.
79356         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
79357         when that is what is intended.
79358         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
79359         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
79360         (MAX): New macro.
79361         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
79362         All uses changed back to re_malloc, etc.  It's now the caller's
79363         responsibility to check for overflow; all callers changed.
79364         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
79365         (re_x2nrealloc): Remove.
79366         (free_state): Remove decl.
79367
79368         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
79369         (re_set_registers, re_exec):
79370         Use K&R-style defn.
79371
79372         2006-01-31  Roland McGrath  <roland@redhat.com>
79373
79374         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
79375         Reported by Mike Frysinger <vapier@gentoo.org>.
79376
79377         2006-01-15  Andreas Jaeger  <aj@suse.de>
79378
79379         [BZ #1950]
79380         * lib/regex_internal.c (re_string_reconstruct): Adjust for
79381         build_wcs_upper_buffer change.
79382         (build_wcs_upper_buffer): Change return type.
79383
79384         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
79385
79386         * lib/regex_internal.h: Include <stdint.h> if available.
79387
79388         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
79389
79390         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
79391
79392         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
79393
79394         * lib/regcomp.c: Adjust for changed secondary hash function.
79395
79396         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
79397
79398         * lib/regex.h: Pretty printing.
79399         Clean up namespace a bit.
79400
79401         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
79402
79403         * lib/regexec.c (update_cur_sifted_state, check_arrival,
79404         check_arrival_add_next_nodes): Avoid using uninitialized variable.
79405
79406         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79407                     Ulrich Drepper  <drepper@redhat.com>
79408
79409         [BZ #1302]
79410         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
79411         changed.
79412         (bitset_word_t): Renamed from bitset_word.  All uses changed.
79413
79414         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
79415
79416         [BZ #281]
79417         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
79418         * lib/regcomp.c: Remove unnecessary uses of
79419         unsigned RE_TRANSLATE_TYPE.
79420         * lib/regex_internal.h: Likewise.
79421         * lib/regex_internal.c: Likewise.
79422         * lib/regexec.c: Likewise.
79423         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
79424
79425         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
79426
79427         * lib/regexec.c (find_recover_state): Remove unnecessary
79428         initialization.
79429         (transit_state_bkref): Make DFA a const pointer.
79430         (get_subexp): Likewise.
79431         (check_arrival): Likewise.
79432         (update_cur_sifted_state): Likewise.
79433         (re_search_internal): Likewise.
79434         (prune_impossible_nodes): Likewise.
79435         (acquire_init_state_context): Likewise.
79436         (proceed_next_node): Likewise.
79437         (set_regs): Likewise.
79438         (free_fail_stack_return): Likewise.
79439         (check_arrival_expand_ecl): Mark DFA parameter as const.
79440         (check_arrival_expand_ecl_sub): Likewise.
79441         (check_subexp_limits): Likewise.
79442         (sub_epsilon_src_nodes):  Likewise.
79443         (add_epsilon_src_nodes):  Likewise.
79444         (merge_state_array): Likewise.
79445         (update_regs): Likewise.
79446         (build_trtable): Likewise.
79447         (sift_states_backward): Mark MCTX parameter as const.
79448         (build_sifted_states): Likewise.
79449         (update_cur_sifted_state): Likewise.
79450         (sift_states_mkref): Likewise.
79451         (check_arrival_expand_ecl): Mark eclosure as const.
79452         (check_dst_limits_calc_pos_1): Likewise.
79453         * lib/regex_internal.h (re_match_context_t): Make dfa a const
79454         pointer.
79455
79456         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
79457
79458         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
79459         (transit_state_sb): Likewise.
79460         (transit_state_mb): Likewise.
79461         (sift_states_iter_mb): Likewise.
79462         (check_arrival_add_next_nodes): Likewise.
79463         (check_node_accept_bytes): Change first parameter to pointer-to-const.
79464         [_LIBC] (re_search_2_stub): Use mempcpy.
79465
79466         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
79467         mbrtowc for very simple UTF-8 case.
79468
79469         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
79470         a pointer-to-const.
79471         (re_acquire_state_context): Likewise.
79472         * lib/regex_internal.h: Adjust prototypes.
79473
79474         * lib/regex.c: Prevent using C++ compilers.
79475
79476         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
79477         (re_acquire_state_context): Likewise.
79478
79479 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79480
79481         * modules/regex (Depends-on): Add ssize_t.
79482
79483 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79484
79485         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
79486         translation table.
79487
79488 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79489
79490         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
79491
79492 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
79493             Bruno Haible  <bruno@clisp.org>
79494
79495         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
79496         <sys/types.h> and <inttypes.h>.
79497
79498 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79499
79500         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
79501         `__error_t_defined', so argp.h will not typedef the former.
79502
79503 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
79504
79505         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
79506         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
79507         glibc names.  Even if glibc is changed to conform to POSIX, the
79508         traditional names will be available anyway, since regex depends on
79509         the extensions module.  Also, fix a longstanding typo in the
79510         implementation of Spencer ERE test #75 from grep 2.3.  Problems
79511         reported by Emanuele Giaquinta.  Also, change sense of cached
79512         variable, so that the message makes sense.
79513
79514 2006-03-24  Simon Josefsson  <jas@extundo.com>
79515
79516         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
79517         including some doc fixes.
79518         (base64_encode_alloc): Fix +1 bug on allocation failures.
79519
79520 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79521
79522         * lib/base64.c (base64_encode): Do not read past end of array with
79523         unsanitized input on systems with CHAR_BIT > 8.
79524
79525 2006-03-24  Eric Blake  <ebb9@byu.net>
79526
79527         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
79528
79529 2006-03-22  Karl Berry  <karl@gnu.org>
79530
79531         * config/srclist.txt (*setenv.[ch]): get from coreutils.
79532         * config/srclistvars.sh (COREUTILS): new var.
79533
79534 2006-03-17  Jim Meyering  <jim@meyering.net>
79535
79536         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
79537         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
79538
79539 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
79540
79541         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
79542         no longer needs it.  Instead, check that regoff_t is as least
79543         as wide as ptrdiff_t.
79544
79545         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
79546         so that our regex.h stays compatible with the installed regex.
79547         This is helpful for installers who configure --without-included-regex.
79548         Problem reported by Emanuele Giaquinta.
79549
79550 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
79551
79552         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
79553         Typedef to long int, not to off_, as POSIX will likely change
79554         in that direction.
79555
79556 2006-03-15  Eric Blake  <ebb9@byu.net>
79557
79558         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
79559
79560 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
79561
79562         * lib/argp-help.c (validate_uparams): Fix typo
79563         * lib/argp-parse.c (argp_default_options): Consistently begin help
79564         messages with a lowercase letter.
79565
79566 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
79567
79568         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
79569         overrun buffers and shouldn't be used (much as gets shouldn't be
79570         used).
79571         * lib/time_r.c (asctime_r, ctime_r): Likewise.
79572
79573 2006-03-08  Simon Josefsson  <jas@extundo.com>
79574
79575         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
79576         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79577
79578 2006-03-08  Simon Josefsson  <jas@extundo.com>
79579
79580         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
79581         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79582
79583 2006-03-08  Simon Josefsson  <jas@extundo.com>
79584
79585         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
79586         signal that configure disabled the device.
79587
79588 2006-03-08  Simon Josefsson  <jas@extundo.com>
79589
79590         * build-aux/maint.mk: Fix refresh-po, to handle no translated
79591         languages.
79592
79593 2006-03-07  Simon Josefsson  <jas@extundo.com>
79594
79595         * modules/getopt (Depends-on): Add unistd.
79596
79597         * modules/unistd: New file.
79598
79599 2006-03-07  Simon Josefsson  <jas@extundo.com>
79600
79601         * modules/gc-random: New file.
79602
79603 2006-03-07  Simon Josefsson  <jas@extundo.com>
79604
79605         * m4/unistd_h.m4: New file.
79606
79607 2006-03-07  Simon Josefsson  <jas@extundo.com>
79608
79609         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
79610         test to be side-effect free by storing the result in the cache
79611         variable gl_cv_lib_readline, and moving the assignment of
79612         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
79613         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79614
79615 2006-03-07  Simon Josefsson  <jas@extundo.com>
79616
79617         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
79618         error on missing devices (the functions will return an error).
79619
79620         * m4/gc.m4: Move random stuff to gc-random.m4
79621
79622 2006-03-07  Simon Josefsson  <jas@extundo.com>
79623
79624         * lib/unistd_.h: New file.
79625
79626 2006-03-07  Simon Josefsson  <jas@extundo.com>
79627
79628         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
79629
79630 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79631
79632         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
79633         Problem reported by Juan Manuel Guerrero.
79634
79635 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79636
79637         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
79638         the unistd module.
79639         * lib/getlogin_r.c: Likewise.
79640         * lib/getlogin_r.h: Likewise.
79641         * lib/glob.c: Likewise.
79642         * lib/pagealign_alloc.c: Likewise.
79643         * lib/unistd_.h: Remove; no longer needed.
79644
79645 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79646
79647         * MODULES.html.sh (Support for systems lacking POSIX:2001):
79648         Add unistd.
79649         * modules/c-stack (Depends-on): Add unistd.
79650         * modules/getlogin_r: Likewise.
79651         * modules/glob: Likewise.
79652         * modules/pagealign_alloc: Likewise.
79653         * modules/unistd (Files): Remove lib/unistd_.h.
79654         (EXTRA_DIST): Remove.
79655         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
79656         need unistd_.h.
79657         (MOSTLYCLEANFILES): Remove unistd.h-t.
79658
79659 2006-03-03  Simon Josefsson  <jas@extundo.com>
79660
79661         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
79662
79663 2006-03-03  Simon Josefsson  <jas@extundo.com>
79664
79665         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
79666         libidn and bison.
79667
79668 2006-03-03  Simon Josefsson  <jas@extundo.com>
79669
79670         * build-aux/maint.mk: Add indent target.
79671
79672 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
79673
79674         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
79675         our replacement poll.h in any case, to avoid a differing
79676         declaration from a system header.  Seen on AIX.
79677
79678 2006-03-01  Simon Josefsson  <jas@extundo.com>
79679
79680         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
79681         <kasal@ucw.cz>.
79682
79683 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79684
79685         * modules/gettime (Depends-on): Add extensions module.
79686         * modules/nanosleep (Depends-on): Likewise.
79687         * modules/settime (Depends-on): Likewise.
79688
79689 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79690
79691         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
79692         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
79693         pedantically.
79694         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79695         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
79696
79697         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
79698         not "==".  Reported by Ralf Wildenhues.
79699
79700 2006-03-01  Karl Berry  <karl@gnu.org>
79701
79702         * doc/Copyright/request-*: new files, synced from gnuorg.
79703
79704 2006-03-01  Karl Berry  <karl@gnu.org>
79705
79706         * config/srclist.txt (Copyright/*): new entries.
79707
79708 2006-02-28  Simon Josefsson  <jas@extundo.com>
79709
79710         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
79711
79712 2006-02-27  Simon Josefsson  <jas@extundo.com>
79713
79714         * lib/base64.h: Indent #define's.  From Jim Meyering
79715         <jim@meyering.net>.
79716
79717 2006-02-27  Jim Meyering  <jim@meyering.net>
79718
79719         Revert the change of 2006-02-24, so these files can continue
79720         to be sync'd from gettext.
79721         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
79722         of `config.h'.
79723
79724 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79725
79726         * modules/intprops: New file.
79727         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
79728         Add intprops.
79729         * modules/getloadavg (Files): Remove lib/intprops.h.
79730         (Depends-on): Add intprops.
79731         * modules/human: Likewise.
79732         * modules/inttostr: Likewise.
79733         * modules/openat: Likewise.
79734         * modules/sig2str: Likewise.
79735         * modules/userspec: Likewise.
79736         * modules/utimecmp: Likewise.
79737         * modules/xnanosleep: Likewise.
79738         * modules/xstrtol: Likewise.
79739
79740 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
79741
79742         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
79743         * modules/lock-tests (TESTS): Use $(EXEEXT).
79744         * modules/tls-tests: Likewise.
79745         * modules/argp-tests: Likewise.
79746         (check_PROGRAMS): New var, replacing...
79747         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
79748
79749 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79750
79751         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
79752         `config.h'.
79753
79754 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
79755
79756         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
79757
79758 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79759
79760         Sync from coreutils.
79761         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
79762         gl_CHDIR_SAFER.
79763
79764 2006-02-22  Jim Meyering  <jim@meyering.net>
79765
79766         Sync from coreutils.
79767         * m4/chdir-safer.m4: New file.
79768
79769 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
79770
79771         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
79772         AT_FDCWD exceeds INT_MAX.
79773         * lib/openat.h (AT_FDCWD): Likewise.
79774
79775 2006-02-17  Eric Blake  <address@hidden>
79776
79777         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
79778
79779 2006-02-16  Simon Josefsson  <jas@extundo.com>
79780
79781         * modules/getaddrinfo (Depends-on): Add sys_socket.
79782
79783 2006-02-15  Simon Josefsson  <jas@extundo.com>
79784
79785         * build-aux/maint.mk: Add dsyntax-check rule.
79786
79787 2006-02-15  Eric Blake  <ebb9@byu.net>
79788
79789         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
79790         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
79791         'present but cannot compile' warnings on cygwin.
79792         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
79793         use ws2tcpip.h if sys/socket.h works.
79794         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
79795         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
79796
79797 2006-02-14  Simon Josefsson  <jas@extundo.com>
79798
79799         * modules/maintainer-makefile (Files): Rename.
79800
79801         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
79802         and (the local) Makefile.cfg to maint-cfg.mk.
79803
79804         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
79805         to the latter.
79806
79807         * modules/maintainer-makefile: New module.
79808
79809         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
79810         severaly stripped to make it possible to build it up from scratch
79811         with reliable tests.
79812
79813         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
79814         fixes to permit overriding the default actions when configure and
79815         makefile are not available.
79816
79817 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
79818
79819         Sync from coreutils.
79820         * modules/lstat (Depends-on): Don't depend on xalloc.
79821         (License): Change from GPL to LGPL, since this is now simply a
79822         replacement for a libc function.
79823
79824 2006-02-14  Jim Meyering  <jim@meyering.net>
79825
79826         Sync from coreutils.
79827
79828         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
79829         failure on deficient systems, and simplify gnulib lgpl dependencies.
79830         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
79831         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
79832
79833         * lib/xalloc-die.c: Remove unused definition of N_.
79834
79835 2006-02-14  Jim Meyering  <jim@meyering.net>
79836
79837         Sync from coreutils.
79838         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
79839         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
79840         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
79841         double-quote uses of that variable, to accommodate the rare case in
79842         which getmntent is available in none of the libraries checked.  This
79843         happens at least on FreeBSD 5.0.
79844
79845 2006-02-13  Simon Josefsson  <jas@extundo.com>
79846
79847         * gnulib-tool (Usage): Fix --import, from
79848         karl@freefriends.org (Karl Berry).
79849
79850 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
79851
79852         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
79853
79854 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
79855
79856         * lib/argp-namefrob.h: Restore changes accidentally lost during the
79857         "autoupdate" on 2005-12-12.
79858
79859 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79860
79861         * modules/closeout (Depends-on): Remove atexit.
79862
79863 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79864
79865         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
79866         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
79867
79868 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
79869
79870         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
79871         __EXTENSIONS__ if this causes compilation to fail.  Problem
79872         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
79873         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
79874
79875 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
79876
79877         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
79878         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
79879         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
79880         All uses changed.
79881
79882 2006-01-26  Simon Josefsson  <jas@extundo.com>
79883
79884         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
79885         prototype is visible on mingw32.
79886
79887         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
79888         for mingw32.
79889
79890         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
79891         mingw32).
79892
79893 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
79894
79895         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
79896         attempt to open for write; this always fails, at least on POSIX
79897         hosts.  This reinstates the 2006-01-09 change, which was
79898         inadvertently removed.
79899
79900 2006-01-26  Bruno Haible  <bruno@clisp.org>
79901
79902         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
79903         Reported by Paul Eggert.
79904
79905 2006-01-26  Bruno Haible  <bruno@clisp.org>
79906             Paul Eggert  <eggert@cs.ucla.edu>
79907
79908         * lib/stdbool_.h (_Bool)
79909         [(! (defined __cplusplus || defined __BEOS__)
79910           && !defined __GNUC__
79911           && !(defined __HP_cc || defined __xlc__
79912                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
79913                || defined __sgi))]:
79914         #define to signed char in these cases too; this simplifies
79915         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
79916         etc., separately) and makes it more conservative.
79917
79918 2006-01-25  Simon Josefsson  <jas@extundo.com>
79919
79920         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
79921         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
79922         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
79923
79924 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79925
79926         * lib/argp-namefrob.h: Bugfix. Remove stray #
79927
79928 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
79929
79930         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
79931         so that we test the test.
79932         Check for yet another HP-UX cc bug involving *bool |= bool.
79933
79934 2006-01-25  Karl Berry  <karl@gnu.org>
79935
79936         * config/srclist.txt (vasnprintf.c): sync lost.
79937
79938 2006-01-25  Jim Meyering  <jim@meyering.net>
79939
79940         Sync from the stable (b5) branch of coreutils:
79941
79942         * lib/fts.c (fts_children): Don't let close() clobber errno from
79943         failed fchdir().
79944
79945         * lib/fts.c (fts_stat): When following a symlink-to-directory,
79946         don't necessarily interpret stat-fails+lstat-succeeds as indicating
79947         a dangling symlink.  That can also happen at least for ELOOP.
79948         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
79949         FYI, this bug predates the inclusion of fts.c in coreutils.
79950
79951         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
79952         in their own block, so pre-c99 compilers don't object.
79953
79954         Avoid the double-free (first in fts_read, second in fts_close) that
79955         would occur when an `active' directory is made inaccessible (e.g.,
79956         via chmod a-x) during a traversal.
79957         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79958         before returning.  Reproduce this failure by
79959         mkdir -p a/b; cd a; chmod a-x . b
79960         Reported by Stavros Passas.
79961
79962 2006-01-25  Jim Meyering  <jim@meyering.net>
79963
79964         * lib/fileblocks.c: Remove more useless parentheses.
79965         * lib/readutmp.h: Likewise.
79966
79967 2006-01-25  Bruno Haible  <bruno@clisp.org>
79968
79969         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
79970         warnings.
79971         Reported by Paul Eggert.
79972
79973 2006-01-25  Bruno Haible  <bruno@clisp.org>
79974
79975         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
79976         rid of a trap command. For Solaris sh.
79977         Reported by Mark D. Baushke <mdb@gnu.org>.
79978
79979 2006-01-24  Simon Josefsson  <jas@extundo.com>
79980
79981         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
79982         Bruno.
79983
79984 2006-01-24  Karl Berry  <karl@gnu.org>
79985
79986         * config/srclist.txt (argp-namefrob.h): sync lost.
79987
79988 2006-01-24  Jim Meyering  <jim@meyering.net>
79989
79990         * modules/openat (Files): Add lib/intprops.h.
79991         From Mark D. Baushke.
79992
79993 2006-01-24  Jim Meyering  <jim@meyering.net>
79994
79995         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
79996         Reported by Mark D. Baushke.
79997
79998 2006-01-24  Jim Meyering  <jim@meyering.net>
79999
80000         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
80001
80002 2006-01-24  Bruno Haible  <bruno@clisp.org>
80003
80004         * modules/strnlen (Maintainer): Change from glibc to all.
80005
80006 2006-01-24  Bruno Haible  <bruno@clisp.org>
80007
80008         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
80009         Patch by Paul Eggert.
80010
80011 2006-01-24  Bruno Haible  <bruno@clisp.org>
80012
80013         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
80014         already has it.
80015         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
80016         2005-11-26.
80017
80018         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
80019         'signed char' to avoid problems with the built-in _Bool type.
80020         Reported by Paul Eggert on 2005-11-26.
80021
80022 2006-01-24  Bruno Haible  <bruno@clisp.org>
80023
80024         * gnulib-tool (func_import): Avoid constructing complicated sed
80025         expressions inside backquote.
80026         Report and solution by Mark D. Baushke <mdb@gnu.org>.
80027
80028 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
80029
80030         These changes imported from libc.
80031         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
80032         test and two separate function calls.
80033         * lib/strndup.c (__strndup): Add libc_hidden_def.
80034
80035 2006-01-23  Simon Josefsson  <jas@extundo.com>
80036
80037         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
80038         Remove the test_*_SOURCES variable: automake infers it by default.
80039         * modules/tls-tests: Likewise.
80040
80041 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80042
80043         Work around porting bugs reported by Dieter in
80044         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
80045         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
80046         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
80047         Include "getopt.h" first, to check interface.
80048         (getenv): Declare only if defined HAVE_DECL_GETENV &&
80049         !HAVE_DECL_GETENV.
80050         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
80051         (__strndup): Revert to K&R-style function dfns, the glibc style.
80052         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
80053         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
80054         Include strnlen.h first, to get prototype properly.
80055         (strnlen): Renamed from __strnlen.
80056         Remove weak alias.
80057
80058 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80059
80060         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
80061
80062 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80063
80064         * config/srclist.txt: Adjust to reflect glibc reorganization.
80065         This affects only comments.
80066
80067 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80068
80069          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
80070          Reported by Bruce Korb <bkorb@gnu.org>.
80071
80072 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
80073
80074         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
80075         to pacify gcc -Wswitch-default.
80076
80077 2006-01-22  Bruno Haible  <bruno@clisp.org>
80078
80079         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
80080         temporary buffer for sprintf, take into account the precision also
80081         for 'd', 'i', 'u', 'o', 'x', 'X'.
80082
80083 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
80084
80085         * modules/argp-tests: New module
80086         * tests/test-argp.c: New file
80087         * tests/test-argp-2.sh: New file
80088
80089 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
80090
80091         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
80092         (__argp_base_name): Removed
80093         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
80094         typo.
80095         (__argp_base_name): Provide macro definition or extern declaration
80096         depending on the configuration
80097
80098 2006-01-20  Simon Josefsson  <jas@extundo.com>
80099
80100         * modules/inet_ntop (Depends-on): Depend on sys_socket.
80101
80102 2006-01-20  Simon Josefsson  <jas@extundo.com>
80103
80104         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
80105
80106 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80107
80108         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
80109         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
80110         Suggested by Bruno Haible.
80111
80112 2006-01-20  Karl Berry  <karl@gnu.org>
80113
80114         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
80115         until changes propagate, I guess.
80116
80117 2006-01-19  Simon Josefsson  <jas@extundo.com>
80118
80119         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
80120
80121 2006-01-19  Simon Josefsson  <jas@extundo.com>
80122
80123         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
80124
80125 2006-01-19  Simon Josefsson  <jas@extundo.com>
80126
80127         * gnulib-tool: Set check_PROGRAMS.
80128
80129         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
80130         modules/des-tests, modules/gc-arcfour-tests,
80131         modules/gc-arctwo-tests, modules/gc-des-tests,
80132         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
80133         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
80134         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
80135         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
80136         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
80137         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
80138         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
80139         test_*_SOURCES.
80140
80141 2006-01-18  Simon Josefsson  <jas@extundo.com>
80142
80143         * modules/socklen (Depends-on): Depend on sys_socket.
80144
80145 2006-01-18  Simon Josefsson  <jas@extundo.com>
80146
80147         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
80148         modules/des-tests, modules/gc-arcfour-tests,
80149         modules/gc-arctwo-tests, modules/gc-des-tests,
80150         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
80151         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
80152         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
80153         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
80154         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
80155         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
80156         $(EXEEXT) to automake TESTS variable, for mingw32.
80157
80158 2006-01-17  Simon Josefsson  <jas@extundo.com>
80159
80160         * modules/socklen (Include): Need sys/socket.h.
80161
80162 2006-01-17  Bruno Haible  <bruno@clisp.org>
80163
80164         * modules/ssize_t (Include): Add <sys/types.h>.
80165
80166 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
80167
80168         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
80169         it's not portable and it doesn't work with cross-compiles.
80170         Problem reported by Bruno Haible.  Fix missing-$ typo in
80171         'test "gl_cv_ignore_unused_libraries" ...' that prevented
80172         -zignore from being used with Sun's C compiler.
80173
80174 2006-01-12  Simon Josefsson  <jas@extundo.com>
80175
80176         * lib/base64.c: Fix warning, reported by Bruno Haible
80177         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
80178
80179 2006-01-12  Bruno Haible  <bruno@clisp.org>
80180
80181         * modules/ldd: New file.
80182         * build-aux/ldd.sh.in: New file.
80183         * MODULES.html.sh (Support for building libraries and executables): Add
80184         ldd.
80185
80186 2006-01-12  Bruno Haible  <bruno@clisp.org>
80187
80188         * m4/ldd.m4: New file.
80189
80190 2006-01-12  Bruno Haible  <bruno@clisp.org>
80191
80192         * gnulib-tool (func_import, func_create_testdir): Don't go into an
80193         endless loop while replacing $auxdir with build-aux.
80194
80195 2006-01-11  Simon Josefsson  <jas@extundo.com>
80196
80197         * lib/stdint_.h (SIZE_MAX): Add missing (.
80198
80199 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
80200
80201         Sync from coreutils.
80202         * lib/md5.c: Fix commentary typos.
80203         (alignof, UNALIGNED_P): No need for a GCC-specific version.
80204         * lib/md5.h (__attribute__): Remove; unused.
80205         * lib/sha1.c: Fix commentary to match md5 better.
80206         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
80207         so that we don't need to worry about alignment.  All uses changed.
80208         This merges the 2005-10-28 md5 change into sha1.
80209
80210 2006-01-11  Jim Meyering  <jim@meyering.net>
80211
80212         Sync from coreutils.
80213         * lib/md5.c (OP): Fix spacing.
80214
80215 2006-01-11  Bruno Haible  <bruno@clisp.org>
80216
80217         Ensure automatic ordering between gl_LOCK and gl_ARGP.
80218         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
80219         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
80220
80221 2006-01-11  Bruno Haible  <bruno@clisp.org>
80222
80223         Ensure automatic ordering between gl_LOCK and gl_ARGP.
80224         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
80225         the "early" section as well.
80226
80227 2006-01-11  Bruno Haible  <bruno@clisp.org>
80228
80229         Avoid "ar: no archive members specified" error on MacOS X.
80230         * gnulib-tool (func_modules_add_dummy): New function.
80231         (func_import, func_create_testdir): Invoke it.
80232
80233 2006-01-11  Bruno Haible  <bruno@clisp.org>
80234
80235         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
80236         with $auxdir in AC_CONFIG_FILES statements.
80237
80238 2006-01-11  Bruno Haible  <bruno@clisp.org>
80239
80240         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80241         Initialize also noinst_HEADERS to empty.
80242
80243 2006-01-11  Bruno Haible  <bruno@clisp.org>
80244
80245         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
80246         variables.
80247         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
80248         autoreconf.
80249
80250 2006-01-11  Bruno Haible  <bruno@clisp.org>
80251
80252         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
80253         overridable by the user.
80254         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80255
80256 2006-01-10  Simon Josefsson  <jas@extundo.com>
80257
80258         * modules/sys_socket: New file.
80259
80260 2006-01-10  Simon Josefsson  <jas@extundo.com>
80261
80262         * m4/sys_socket_h.m4: New file.
80263
80264 2006-01-10  Simon Josefsson  <jas@extundo.com>
80265
80266         * lib/socket_.h: New file.
80267
80268 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80269
80270         * modules/readutmp (Maintainer): Add myself.
80271
80272 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80273
80274         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
80275         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
80276         People who are still concerned with buggy memcmp implementations
80277         can invoke gl_FUNC_MEMCMP themselves.
80278
80279 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80280
80281         * lib/regex_internal.h (BITSET_WORD_BITS):
80282         Work around a bug in 64-bit PGC (before version 6.1-2), where the
80283         preprocessor mishandles large unsigned values as if they were signed.
80284         Problem reported by Claudio Fontana in
80285         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
80286
80287 2006-01-10  Jim Meyering  <jim@meyering.net>
80288
80289         Avoid the double-free (first in fts_read, second in fts_close) that
80290         would occur when an `active' directory is made inaccessible (e.g.,
80291         via chmod a-x) during a traversal.
80292         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
80293         before returning.  Reproduce this failure by
80294         mkdir -p a/b; cd a; chmod a-x . b
80295         Reported by Stavros Passas.
80296
80297         Sync from coreutils.
80298         * lib/sha1.c: Tweak grammar in a comment.
80299
80300 2006-01-10  Jim Meyering  <jim@meyering.net>
80301
80302         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
80303         Patch by Joerg Sonnenberger.
80304
80305 2006-01-10  Bruno Haible  <bruno@clisp.org>
80306
80307         * modules/readutmp: Depend on module free.
80308         * modules/strtok_r: Depend on module restrict.
80309
80310 2006-01-10  Bruno Haible  <bruno@clisp.org>
80311
80312         * modules/gettext (configure.ac): Add an invocation of
80313         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
80314
80315 2006-01-10  Bruno Haible  <bruno@clisp.org>
80316
80317         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
80318         Reported by Werner Lemberg <wl@gnu.org>.
80319
80320 2006-01-10  Bruno Haible  <bruno@clisp.org>
80321
80322         * lib/localcharset.c: Update from GNU gettext.
80323
80324 2006-01-10  Bruno Haible  <bruno@clisp.org>
80325
80326         * lib/argp.h (__const): Remove macro. Use const instead.
80327         * lib/argp-fmtstream.h (__const): Likewise.
80328         * lib/glob_.h (__const): Remove macro.
80329         * lib/glob-libc.h: Use const instead of __const.
80330
80331 2006-01-10  Bruno Haible  <bruno@clisp.org>
80332
80333         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
80334         variable.
80335         Needed to avoid an automake error regarding the 'gettext' module.
80336
80337 2006-01-09  Simon Josefsson  <jas@extundo.com>
80338
80339         * modules/inet_ntop (Depends-on): Add restrict.
80340
80341 2006-01-09  Simon Josefsson  <jas@extundo.com>
80342
80343         * modules/gc-rijndael-tests (License): Put under LGPL.
80344
80345         * modules/gc-des-tests (License): Likewise.
80346
80347         * modules/gc-arcfour-tests (License): Likewise.
80348
80349         * modules/gc-arctwo-tests (License): Likewise.
80350
80351         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
80352
80353         * modules/gc-hmac-sha1-tests (Files): Likewise.
80354
80355         * modules/gc-hmac-md5-tests (License): Likewise.
80356
80357         * modules/gc-sha1-tests (License): Likewise.
80358
80359         * modules/gc-md5-tests (License): Likewise.
80360
80361         * modules/gc-md4-tests (License): Likewise.
80362
80363         * modules/gc-md2-tests (License): Likewise.
80364
80365         * modules/gc-tests (License): Likewise.
80366
80367         * modules/des-tests (License): Likewise.
80368
80369         * modules/md4-tests (License): Likewise.
80370
80371         * modules/md2-tests (License): Likewise.
80372
80373 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80374
80375         Sync from coreutils:
80376
80377         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
80378         * modules/lib-ignore: New file.
80379         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
80380         chdir-safer.m4, lchmod.m4.
80381         * modules/openat: Add mkdirat.c, openat-priv.h.
80382
80383 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80384
80385         Sync from coreutils.
80386         * m4/lib-ignore.m4: New file.
80387         * m4/lchmod.m4: New file.
80388
80389 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80390
80391         Sync from coreutils.
80392         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
80393         for write access: POSIX says that must fail.
80394         * lib/fts.c (diropen): Likewise.
80395         * lib/save-cwd.c (save_cwd): Likewise.
80396         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
80397         well, for minor improvements on hosts that lack O_DIRECTORY.
80398         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
80399         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
80400         Fall back on chown if open failed with EACCES.
80401
80402         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
80403         Report an error at compile-time if only a 1-second nominal clock
80404         resolution is found.
80405
80406         * lib/lchmod.h: New file.
80407         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
80408         (make_dir_parents): Use lchown rather than chown, and
80409         lchmod rather than chmod.
80410
80411         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
80412         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
80413         "proc" reported by n0dalus.
80414
80415         * lib/mountlist.c: Include <limits.h>.
80416         (dev_from_mount_options)
80417         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
80418         New function.  It no longer assumes "dev=" has the System V meaning
80419         on Linux (since it doesn't).  It also parses "dev=" more carefully.
80420         (read_file_system_list)
80421         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
80422         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
80423         dev= in that case.
80424
80425         * lib/posixtm.h (PDS_PRE_2000): New macro.
80426         * lib/posixtm.c (year): Arg is now syntax_bits rather than
80427         allow_century.  All usages changed.  Reject dates outside the range
80428         1969-1999 if PDS_PRE_2000 is used.
80429
80430 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80431
80432         Sync from coreutils.
80433         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
80434         (Time of day items): Mention the possibility of leap seconds.
80435         Problem reported by Dr. David Alan Gilbert.
80436
80437 2006-01-09  Jim Meyering  <jim@meyering.net>
80438
80439         Sync from coreutils.
80440
80441         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
80442
80443         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
80444
80445         * lib/modechange.c (mode_compile): Reject an invalid mode string
80446         that starts with an octal digit.  From Andreas Gruenbacher.
80447
80448         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
80449         and dup to open_safer and dup_safer, respectively.
80450         (openat_permissive): Fix typo in comment.
80451
80452         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
80453         "gettext.h"; either no longer needed or are guaranteed by openat.h.
80454         (_): Remove; no longer needed.
80455         (openat): Renamed from rpl_openat; no need for rpl_openat
80456         since openat.h renames openat for us.
80457         Replace most of the body with a call to openat_permissive,
80458         to avoid duplicate code.
80459         Port to (probably hypothetical) environments were mode_t is
80460         wider than int.
80461         (openat_permissive): Require mode arg, so that we can check
80462         types better.  Put it just after flags.  Change cwd failure
80463         indicator from pointer-to-bool to pointer-to-errno-value.
80464         All callers changed.
80465         Invoke openat_save_fail and/or openat_restore_fail if
80466         cwd_errno is null, so that openat can call us.
80467         (openat_permissive, fdopendir, fstatat, unlinkat):
80468         Simplify errno handling to avoid some duplicate code,
80469         as it's OK to set errno on success.
80470         * lib/openat.h: Revamp code so that function macros depend on
80471         __OPENAT_PREFIX only, not also on AT_FDCWD.
80472         (openat_ro): Remove.  Caller changed to use openat_permissive.
80473         (openat_permissive): Now a macro, if not a function.
80474         (openat_restore_fail, openat_save_fail): Now always functions,
80475         since mkdirat needs them even if __OPENAT_PREFIX is defined.
80476
80477         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
80478         and openat.c.
80479         * lib/mkdirat.c: Include openat-priv.h.
80480         Remove definitions of macros defined therein.
80481         * lib/openat.c: Likewise.
80482
80483         * lib/mkdirat.c (mkdirat): New file and function.
80484         * lib/openat.h (mkdirat): Declare.
80485
80486         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
80487
80488         * lib/openat.h (openat_permissive): Declare.
80489         (openat_ro): Define.
80490
80491         * lib/openat.c (EXPECTED_ERRNO): New macro.
80492         (openat_permissive): New function -- used in remove.c rewrite.
80493         (all functions): Set errno just before returning, only if there
80494         was an actual failure.
80495         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
80496
80497         Emulate openat-family functions using Linux's procfs, if possible.
80498         Idea and some code based on Ulrich Drepper's glibc changes.
80499
80500         * lib/openat.c: (BUILD_PROC_NAME): New macro.
80501         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
80502         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
80503         before falling back on save_cwd and restore_cwd.
80504         (fdopendir, fstatat, unlinkat): Likewise.
80505
80506         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
80507         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
80508
80509         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
80510         as second argument to va_arg.  Otherwise, some versions of gcc
80511         warn that `if this code is reached, the program will abort'.
80512
80513 2006-01-09  Jim Meyering  <jim@meyering.net>
80514
80515         Sync from coreutils.
80516         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
80517         Require openat-priv.h.
80518
80519 2006-01-09  Bruno Haible  <bruno@clisp.org>
80520
80521         * modules/strnlen (Include): Use strnlen.h.
80522
80523 2006-01-09  Bruno Haible  <bruno@clisp.org>
80524
80525         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
80526
80527 2006-01-09  Bruno Haible  <bruno@clisp.org>
80528
80529         * lib/sysexit_.h (EX_OK): New macro.
80530         Suggested by Martin Lambers <marlam@marlam.de>.
80531
80532 2006-01-09  Bruno Haible  <bruno@clisp.org>
80533
80534         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
80535         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
80536
80537 2006-01-09  Bruno Haible  <bruno@clisp.org>
80538
80539         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
80540         numbers.
80541
80542 2006-01-09  Bruno Haible  <bruno@clisp.org>
80543
80544         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
80545         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
80546         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
80547         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
80548
80549 2006-01-09  Bruno Haible  <bruno@clisp.org>
80550
80551         * build-aux/javacomp.sh.in: New file, moved from lib/.
80552         * modules/javacomp-script (Files): Update.
80553         (configure.ac): Add AC_CONFIG_FILES invocation.
80554         (EXTRA_DIST): Remove variable.
80555
80556         * build-aux/javaexec.sh.in: New file, moved from lib/.
80557         * modules/javaexec (Files): Update.
80558         (configure.ac): Add AC_CONFIG_FILES invocation.
80559         (EXTRA_DIST): Remove javaexec.sh.in.
80560
80561         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
80562         * modules/csharpcomp-script (Files): Update.
80563         (configure.ac): Add AC_CONFIG_FILES invocation.
80564         (EXTRA_DIST): Remove variable.
80565
80566         * build-aux/csharpexec.sh.in: New file, moved from lib/.
80567         * modules/csharpexec (Files): Update.
80568         (configure.ac): Add AC_CONFIG_FILES invocation.
80569         (EXTRA_DIST): Remove csharpexec.sh.in.
80570
80571 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
80572
80573         Sync from coreutils.
80574
80575         Add POSIX ACL support
80576         * lib/acl.h (copy_acl, set_acl): Add declarations.
80577         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
80578         systems other than Linux.
80579         (chmod_or_fchmod): New function: use fchmod when possible,
80580         and chmod otherwise.
80581         (file_has_acl): Add a POSIX ACL implementation, with a
80582         Linux-specific subcase.
80583         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
80584         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
80585         acls are unsupported.
80586         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
80587         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
80588         are unsupported.
80589
80590 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
80591
80592         Sync from coreutils.
80593         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
80594
80595 2006-01-07  Bruno Haible  <bruno@clisp.org>
80596
80597         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
80598         gl_EARLY.
80599
80600 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80601
80602         * lib/strftime.c (tzname): Don't declare if it is already #defined.
80603         Problem reported for Mingw by Mark Junker.
80604
80605 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80606
80607         * README: Gnulib normally doesn't generate a tarball.
80608
80609 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
80610
80611         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
80612         long int, not int, for nanosecond counts, so that people who are
80613         used to POSIX struct timespec won't be surprised.  Reported by Jim
80614         Meyering.
80615
80616 2005-12-28  Bruno Haible  <bruno@clisp.org>
80617
80618         * build-aux/config.rpath: Update from GNU gettext.
80619
80620 2005-12-16  Jim Meyering  <jim@meyering.net>
80621
80622         * modules/fprintftime: New module.
80623         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
80624
80625 2005-12-16  Jim Meyering  <jim@meyering.net>
80626
80627         * m4/fprintftime.m4: New file.
80628
80629 2005-12-16  Jim Meyering  <jim@meyering.net>
80630
80631         * lib/fprintftime.c, lib/fprintftime.h: New files.
80632
80633 2005-12-15  Simon Josefsson  <jas@extundo.com>
80634
80635         * modules/socklen (configure.ac): Fix M4 macro name, to align with
80636         new m4/socklen.m4.
80637
80638 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80639
80640         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
80641         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
80642
80643 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80644
80645         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
80646         * lib/argp-help.c (fill_in_uparams): Check if the constructed
80647         struct uparams is valid. Fall back to the default values if it is
80648         not.
80649
80650 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80651
80652         * modules/argp (Files): Add argp-pin.c
80653         (Depends-on): dirname
80654         (lib_SOURCES): Add argp-pin.c
80655
80656 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80657
80658         * m4/argp.m4:  Check if program_invocation_name and
80659         program_invocation_short_name are declared and define appropriate
80660         macros if they are not.
80661
80662 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80663
80664         * lib/argp-help.c (__argp_base_name): New function
80665         (__argp_short_program_name): Rewrite using __argp_base_name
80666         * lib/argp-namefrob.h: Define program_invocation_name and
80667         program_invocation_short_name if requested
80668         (__argp_base_name): Add prototype
80669         * lib/argp-parse.c (argp_def): Use gettext wrappers
80670         (argp_default_parser): Use __argp_base_name
80671         * lib/argp-pin.c: New file. Defines program_invocation_name and
80672         program_invocation_short_name on systems that lack them.
80673
80674 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80675
80676         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
80677         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80678         porting problem reported by Georg Schwarz in
80679         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80680
80681 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80682
80683         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
80684         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80685         porting problem reported by Georg Schwarz in
80686         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80687
80688 2005-12-05  Bruno Haible  <bruno@clisp.org>
80689
80690         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
80691         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
80692         Reported by Mark Junker <mjscod@gmx.de>.
80693
80694 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
80695
80696         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
80697         Use implementation from Albert Chin, with some
80698         comments/corrections by Stepan Kasal and myself.
80699
80700 2005-12-02  Bruno Haible  <bruno@clisp.org>
80701
80702         * gnulib-tool (func_import): Accept GPLed build tool modules when
80703         --lgpl is given.
80704         * modules/csharpcomp-script: New file.
80705         * modules/csharpcomp: Depend on it.
80706         * modules/javacomp-script: New file.
80707         * modules/javacomp: Depend on it.
80708         Suggested by Simon Josefsson.
80709
80710 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
80711
80712         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
80713         statement, to work around an HP-UX 10.20 compiler bug reported by
80714         Peter O'Gorman.
80715
80716 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80717
80718         * modules/savedir (Depends-on): Add openat.
80719
80720 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80721
80722         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
80723         (uintmax_t) [defined uintmax_t]: Do not declare.
80724         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
80725         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
80726         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
80727         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
80728         sake of portability to weird hosts that C allows (though we don't
80729         know of any practical examples).
80730
80731         * lib/savedir.h (fdsavedir): New decl.
80732         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
80733         contains most of the former guts of savedir.
80734         (savedir): Use savedirstream.
80735         Include "openat.h".
80736
80737 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80738
80739         * modules/obstack (Files): Add m4/ulonglong.m4.
80740         Problem reported by Davide Angelocola.
80741
80742 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
80743
80744         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
80745         coreutils no longer futzes with rounding modes.
80746
80747 2005-11-14  Jim Meyering  <jim@meyering.net>
80748
80749         * lib/mkstemp-safer.c: Include <config.h>, required for possible
80750         replacement of mkstemp.
80751
80752 2005-11-10  Simon Josefsson  <jas@extundo.com>
80753
80754         * lib/readline.c: Remove EOL.
80755
80756 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80757
80758         * modules/gethrxtime (Depends-on): Add gettime.
80759
80760 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80761
80762         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
80763         or gettimeofday; no longer needed.
80764
80765 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80766
80767         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
80768         time business.
80769         (gethrxtime) [! (HAVE_NANOUPTIME
80770         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
80771         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
80772         our own approximation.
80773
80774 2005-11-08  Eric Blake  <ebb9@byu.net>
80775
80776         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80777
80778 2005-11-08  Eric Blake  <ebb9@byu.net>
80779
80780         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80781
80782 2005-11-04  Bruno Haible  <bruno@clisp.org>
80783
80784         * gnulib-tool: Implement --update mode.
80785
80786 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80787
80788         Fix porting problem reported by Theodoros V. Kalamatianos.
80789         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
80790         Don't assume that futimes failing means we must fail.
80791
80792 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80793
80794         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
80795         variables to suggest the intended function of the PATH_MAX check.
80796
80797 2005-10-30  Kean Johnston  <jkj@sco.com>
80798
80799         Trivial changes to support SCO systems.
80800         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
80801         as PATH_MAX.
80802         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
80803         where __ptr is null when no I/O is pending.
80804
80805 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80806
80807         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
80808         leave errno alone.  Problem reported by Dmitry V. Levin.
80809
80810 2005-10-28  Simon Josefsson  <jas@extundo.com>
80811
80812         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
80813         Test more.
80814
80815         * tests/test-gc-md2.c, tests/test-md2.c: New files.
80816
80817         * modules/md2, modules/md2-tests: New files.
80818
80819 2005-10-28  Simon Josefsson  <jas@extundo.com>
80820
80821         * m4/inet_ntop.m4: More tests.
80822
80823         * m4/gc-md2.m4, md2.m4: New file.
80824
80825 2005-10-28  Simon Josefsson  <jas@extundo.com>
80826
80827         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
80828         "restrict" keywords, as per POSIX.  Protect the function
80829         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
80830         Don't use K&R prototypes.  Check the sprintf return values.
80831         Re-define EAFNOSUPPORT if not present.  Indent.
80832
80833         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
80834         suggested by Bruno Haible <bruno@clisp.org>.
80835
80836         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
80837
80838         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
80839
80840         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
80841         libgcrypt).
80842
80843         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
80844
80845         * lib/md2.h, lib/md2.c: New files.
80846
80847 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
80848
80849         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
80850         errno alone.  Problem reported by Frederic Jolliton.
80851
80852 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
80853
80854         * modules/verify (License): Change from GPL to LGPL.  This is a
80855         tiny module and there are apparently near-equivalents that are
80856         under the BSD license.
80857
80858 2005-10-24  Simon Josefsson  <jas@extundo.com>
80859
80860         * modules/sha1: Relicense to LGPL.
80861
80862 2005-10-24  Simon Josefsson  <jas@extundo.com>
80863
80864         * lib/md4.h: Shrink buffer size, now that we changed the type.
80865
80866 2005-10-23  Simon Josefsson  <jas@extundo.com>
80867
80868         * gnulib-tool (func_import): Fix --tests-base.
80869
80870 2005-10-22  Simon Josefsson  <jas@extundo.com>
80871
80872         * modules/arcfour (Depends-on): Need stdint.
80873
80874 2005-10-22  Simon Josefsson  <jas@extundo.com>
80875
80876         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
80877         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
80878
80879 2005-10-22  Simon Josefsson  <jas@extundo.com>
80880
80881         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
80882         suggested by Bruno Haible <bruno@clisp.org>.
80883
80884 2005-10-22  Simon Josefsson  <jas@extundo.com>
80885
80886         * lib/crc.h: Include stddef.h, for size_t.
80887
80888 2005-10-22  Simon Josefsson  <jas@extundo.com>
80889
80890         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
80891         arcfour_context struct (simplify test vector testing in GNU
80892         Shishi).
80893
80894 2005-10-21  Simon Josefsson  <jas@extundo.com>
80895
80896         * modules/des, modules/des-tests: New files.
80897
80898         * modules/gc-des, modules/gc-des-tests: New files.
80899
80900         * tests/test-des.c, tests/test-gc-des.c: New file.
80901
80902 2005-10-21  Simon Josefsson  <jas@extundo.com>
80903
80904         * modules/arctwo, modules/arctwo-tests: New files.
80905
80906         * tests/test-arctwo.c: New file.
80907
80908         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
80909
80910         * tests/test-gc-arctwo.c: New file.
80911
80912 2005-10-21  Simon Josefsson  <jas@extundo.com>
80913
80914         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
80915         Bruno Haible <bruno@clisp.org>.
80916
80917         * m4/gc-des.m4: New file.
80918
80919 2005-10-21  Simon Josefsson  <jas@extundo.com>
80920
80921         * m4/arctwo.m4: New file.
80922
80923         * m4/gc-arctwo.m4: New file.
80924
80925 2005-10-21  Simon Josefsson  <jas@extundo.com>
80926
80927         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
80928         block.
80929
80930 2005-10-21  Simon Josefsson  <jas@extundo.com>
80931
80932         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
80933         <bruno@clisp.org>.
80934
80935         * lib/hmac-sha1.c (hmac_sha1): Likewise.
80936
80937         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
80938         Bruno Haible <bruno@clisp.org>.
80939
80940         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
80941         <bruno@clisp.org>.
80942
80943 2005-10-21  Simon Josefsson  <jas@extundo.com>
80944
80945         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
80946
80947 2005-10-21  Simon Josefsson  <jas@extundo.com>
80948
80949         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
80950
80951 2005-10-21  Simon Josefsson  <jas@extundo.com>
80952
80953         * lib/des.h, lib/des.c: New files.
80954
80955         * lib/gc-gnulib.c: Support DES.c
80956
80957 2005-10-21  Simon Josefsson  <jas@extundo.com>
80958
80959         * lib/arctwo.h, lib/arctwo.c: New files.
80960
80961         * lib/gc-gnulib.c: Support ARCTWO.
80962
80963 2005-10-21  Simon Josefsson  <jas@extundo.com>
80964
80965         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
80966         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80967
80968 2005-10-21  Simon Josefsson  <jas@extundo.com>
80969
80970         * gnulib-tool (func_import, func_create_testdir): Define automake
80971         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
80972         Makefile.am snippet),
80973         suggested by Bruno Haible <bruno@clisp.org>.
80974
80975         * modules/gc (Makefile.am): Use it.
80976
80977 2005-10-21  Bruno Haible  <bruno@clisp.org>
80978
80979         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
80980         patch.
80981
80982 2005-10-19  Simon Josefsson  <jas@extundo.com>
80983
80984         * tests/test-gc-rijndael.c: New file.
80985
80986         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
80987
80988 2005-10-19  Simon Josefsson  <jas@extundo.com>
80989
80990         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
80991         interface too.
80992
80993 2005-10-19  Simon Josefsson  <jas@extundo.com>
80994
80995         * tests/test-gc-arcfour.c: New file.
80996
80997         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
80998
80999 2005-10-19  Simon Josefsson  <jas@extundo.com>
81000
81001         * modules/gc-md4, modules/gc-md4-tests: New file.
81002
81003         * tests/test-gc-md4.c: New file.
81004
81005 2005-10-19  Simon Josefsson  <jas@extundo.com>
81006
81007         * m4/gc-md4.m4: New file.
81008
81009 2005-10-19  Simon Josefsson  <jas@extundo.com>
81010
81011         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
81012         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
81013         <kasal@ucw.cz>.
81014
81015 2005-10-19  Simon Josefsson  <jas@extundo.com>
81016
81017         * m4/gc-arcfour.m4: New file.
81018
81019         * m4/gc-rijndael.m4: New file.
81020
81021 2005-10-19  Simon Josefsson  <jas@extundo.com>
81022
81023         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
81024
81025 2005-10-19  Simon Josefsson  <jas@extundo.com>
81026
81027         * lib/gc-gnulib.c: Support ARCFOUR.
81028
81029 2005-10-19  Simon Josefsson  <jas@extundo.com>
81030
81031         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
81032         support.
81033
81034         * lib/gc.h: Add ECB enum type.
81035
81036         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
81037
81038 2005-10-18  Simon Josefsson  <jas@extundo.com>
81039
81040         * tests/test-md5.c: New file.
81041
81042         * modules/md5-tests: New file.
81043
81044 2005-10-18  Simon Josefsson  <jas@extundo.com>
81045
81046         * tests/test-md4.c: New file.
81047
81048         * modules/md4, modules/md4-tests: New files.
81049
81050 2005-10-18  Simon Josefsson  <jas@extundo.com>
81051
81052         * m4/md4.m4: New file.
81053
81054 2005-10-18  Simon Josefsson  <jas@extundo.com>
81055
81056         * lib/md4.h, lib/md4.c: New files, based on md5.?.
81057
81058 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
81059
81060         * gnulib-tool (func_create_testdir): Omit the second check whether
81061         BUILT_SOURCES in nonempty.
81062
81063 2005-10-17  Simon Josefsson  <jas@extundo.com>
81064
81065         * tests/test-rijndael.c: New file.
81066
81067 2005-10-17  Simon Josefsson  <jas@extundo.com>
81068
81069         * modules/sha1: Depend on stdint instead of md5.
81070
81071         * modules/md5: Depend on stdint, remove uint32_t.
81072
81073 2005-10-17  Simon Josefsson  <jas@extundo.com>
81074
81075         * modules/gc-sha1-tests: New file.
81076
81077         * tests/test-gc-sha1.c: New file.
81078
81079 2005-10-17  Simon Josefsson  <jas@extundo.com>
81080
81081         * m4/md5.m4: Remove call to uint32_t.m4.
81082
81083 2005-10-17  Simon Josefsson  <jas@extundo.com>
81084
81085         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
81086
81087         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
81088         md5.h.
81089
81090         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
81091
81092         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
81093
81094 2005-10-17  Simon Josefsson  <jas@extundo.com>
81095
81096         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
81097
81098 2005-10-17  Simon Josefsson  <jas@extundo.com>
81099
81100         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
81101
81102 2005-10-17  Simon Josefsson  <jas@extundo.com>
81103
81104         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
81105
81106         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
81107
81108 2005-10-17  Bruno Haible  <bruno@clisp.org>
81109
81110         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
81111         that it can also be used in a test.
81112
81113 2005-10-16  Bruno Haible  <bruno@clisp.org>
81114
81115         * gnulib-tool (func_emit_tests_Makefile_am): Also define
81116         TESTS_ENVIRONMENT, so that individual tests can augment it.
81117
81118         * gnulib-tool (func_create_testdir): Use an intermediate target for
81119         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
81120         macros, like $(ALLOCA_H), which cannot be passed through the command
81121         line.
81122
81123 2005-10-15  Simon Josefsson  <jas@extundo.com>
81124
81125         * modules/rijndael-tests: New file.
81126
81127         * modules/rijndael: New file.
81128
81129 2005-10-15  Simon Josefsson  <jas@extundo.com>
81130
81131         * m4/rijndael.m4: New file.
81132
81133 2005-10-15  Simon Josefsson  <jas@extundo.com>
81134
81135         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
81136
81137         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
81138
81139 2005-10-14  Simon Josefsson  <jas@extundo.com>
81140
81141         * tests/test-arcfour.c: New file.
81142
81143         * modules/arcfour, modules/arcfour-tests: New files.
81144
81145 2005-10-14  Simon Josefsson  <jas@extundo.com>
81146
81147         * m4/arcfour.m4: New file.
81148
81149 2005-10-14  Simon Josefsson  <jas@extundo.com>
81150
81151         * lib/arcfour.h, lib/arcfour.c: New files.
81152
81153 2005-10-14  Roland McGrath  <roland@redhat.com>
81154
81155         Import from libc.  [BZ #1331]
81156         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
81157         macro argument.
81158         Reported by Matej Vela <vela@debian.org>.
81159
81160 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
81161
81162         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
81163         include <wchar.h>; no longer needed.
81164
81165 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
81166
81167         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
81168
81169 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
81170         and  Ulrich Drepper  <drepper@redhat.com>
81171
81172         Import from libc.
81173         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
81174         instead of inline stream orientation test and two separate
81175         function calls.  Pay no attention to USE_IN_LIBIO.
81176
81177 2005-10-13  Simon Josefsson  <jas@extundo.com>
81178
81179         * modules/gc-hmac-md5-tests: New file.
81180
81181         * tests/test-gc-hmac-sha1.c: New file.
81182
81183         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
81184
81185         * modules/gc-hmac-md5-tests: New file.
81186
81187         * tests/test-gc-md5.c: New file.
81188
81189         * modules/gc-md5-tests: New file.
81190
81191 2005-10-13  Simon Josefsson  <jas@extundo.com>
81192
81193         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
81194         Move memory allocation outside of loop.
81195
81196 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
81197
81198         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
81199         intermediate directory is in a read-only file system.  Problem
81200         reported by Eric Blake.
81201
81202 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
81203
81204         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
81205
81206 2005-10-12  Simon Josefsson  <jas@extundo.com>
81207
81208         * tests/test-hmac-sha1.c: New file.
81209
81210         * modules/hmac-sha1-tests: New file.
81211
81212         * modules/hmac-sha1: New file.
81213
81214 2005-10-12  Simon Josefsson  <jas@extundo.com>
81215
81216         * modules/gc-sha1: New file.
81217
81218 2005-10-12  Simon Josefsson  <jas@extundo.com>
81219
81220         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
81221
81222         * tests/test-gc-pbkdf2-sha1.c: New file.
81223
81224 2005-10-12  Simon Josefsson  <jas@extundo.com>
81225
81226         * modules/gc-md5, modules/gc-hmac-md5: New files.
81227
81228         * modules/gc (Files): Remove md5, memxor and hmac files.
81229
81230 2005-10-12  Simon Josefsson  <jas@extundo.com>
81231
81232         * m4/gc-pbkdf2-sha1.m4: New file.
81233
81234         * m4/gc-hmac-sha1.m4: New file.
81235
81236         * m4/gc-sha1: New file.
81237
81238         * m4/hmac-sha1.m4: New file.
81239
81240 2005-10-12  Simon Josefsson  <jas@extundo.com>
81241
81242         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
81243
81244         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
81245
81246 2005-10-12  Simon Josefsson  <jas@extundo.com>
81247
81248         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
81249         suggested by Bruno Haible <bruno@clisp.org>.
81250
81251 2005-10-12  Simon Josefsson  <jas@extundo.com>
81252
81253         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
81254
81255 2005-10-12  Simon Josefsson  <jas@extundo.com>
81256
81257         * lib/gc-pbkdf2-sha1.c: New file.
81258
81259         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
81260
81261 2005-10-12  Simon Josefsson  <jas@extundo.com>
81262
81263         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
81264
81265         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
81266
81267 2005-10-12  Simon Josefsson  <jas@extundo.com>
81268
81269         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
81270         GC_USE_HMAC_MD5, respectively.
81271
81272         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
81273         (gc_md5): Fix typo.
81274
81275         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
81276
81277         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
81278
81279         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
81280
81281 2005-10-12  Bruno Haible  <bruno@clisp.org>
81282
81283         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
81284         Reported by Stepan Kasal <kasal@ucw.cz>.
81285
81286 2005-10-11  Simon Josefsson  <jas@extundo.com>
81287
81288         * tests/test-crc.c: New file.
81289
81290         * modules/crc, modules/crc-tests: New files.
81291
81292 2005-10-11  Simon Josefsson  <jas@extundo.com>
81293
81294         * m4/crc.m4: New file.
81295
81296 2005-10-11  Simon Josefsson  <jas@extundo.com>
81297
81298         * lib/gc.h: Add gc_hash and gc_hash_buffer.
81299
81300         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
81301
81302         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
81303
81304 2005-10-11  Simon Josefsson  <jas@extundo.com>
81305
81306         * lib/crc.h, lib/crc.c: New files.
81307
81308         * lib/gc.h (gc_hash_buffer): Add doc.
81309
81310 2005-10-11  Bruno Haible  <bruno@clisp.org>
81311
81312         * modules/c-strcasestr: New file.
81313         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
81314
81315 2005-10-11  Bruno Haible  <bruno@clisp.org>
81316
81317         * modules/c-strcase: New file.
81318         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
81319
81320 2005-10-11  Bruno Haible  <bruno@clisp.org>
81321
81322         * lib/strcasecmp.c: Include limits.h.
81323         (strcasecmp): Avoid integer overflow on exotic platforms.
81324         * lib/strncasecmp.c: Include limits.h.
81325         (strncasecmp): Avoid integer overflow on exotic platforms.
81326         Reported by Paul Eggert.
81327
81328 2005-10-11  Bruno Haible  <bruno@clisp.org>
81329
81330         * lib/c-strcasestr.h: New file, from GNU gettext.
81331         * lib/c-strcasestr.c: New file, from GNU gettext.
81332
81333 2005-10-11  Bruno Haible  <bruno@clisp.org>
81334
81335         * lib/c-strcase.h: New file, from GNU gettext.
81336         * lib/c-strcasecmp.c: New file, from GNU gettext.
81337         * lib/c-strncasecmp.c: New file, from GNU gettext.
81338
81339 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
81340
81341         * modules/mempcpy (License): GPL -> LGPL.
81342         * modules/strchrnul (License): Likewise.
81343         * modules/sysexits (License): Likewise.
81344
81345 2005-10-08  Simon Josefsson  <jas@extundo.com>
81346
81347         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
81348
81349 2005-10-07  Simon Josefsson  <jas@extundo.com>
81350
81351         * m4/memxor.m4: Remove gl_C_RESTRICT call.
81352
81353 2005-10-06  Simon Josefsson  <jas@extundo.com>
81354
81355         * tests/test-hmac-md5.c: New file.
81356
81357         * modules/hmac-md5-tests: New file.
81358
81359         * modules/hmac-md5: New file.
81360
81361 2005-10-06  Simon Josefsson  <jas@extundo.com>
81362
81363         * m4/hmac-md5.m4: New file.
81364
81365         * m4/memxor.m4: Require gl_C_RESTRICT.
81366
81367 2005-10-06  Simon Josefsson  <jas@extundo.com>
81368
81369         * lib/memxor.c (memxor): Avoid casts and warnings.
81370
81371 2005-10-06  Simon Josefsson  <jas@extundo.com>
81372
81373         * lib/hmac-md5.c: New file.
81374
81375         * lib/hmac.h: New file.
81376
81377 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
81378
81379         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
81380         promotes to int, not unsigned int, to catch the AIX 5.3
81381         compiler bug.
81382
81383 2005-10-05  Simon Josefsson  <jas@extundo.com>
81384
81385         * modules/memxor: New file.
81386
81387         * modules/iconv (Files): Move config.rpath to havelib, it is used
81388         there.
81389
81390         * modules/havelib (Files): Add config.rpath.
81391
81392 2005-10-05  Simon Josefsson  <jas@extundo.com>
81393
81394         * m4/memxor.m4: New file.
81395
81396 2005-10-05  Simon Josefsson  <jas@extundo.com>
81397
81398         * lib/memxor.c (memxor): Fix compiler error.
81399
81400         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
81401         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
81402
81403         * lib/memxor.h, lib/memxor.c: New files.
81404
81405         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
81406         we assume all systems have it, suggested by Jim Meyering
81407         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
81408         any systems lack sys/socket.h; mingw32 is known to lack it, but we
81409         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
81410         same reasons.
81411
81412 2005-10-05  Simon Josefsson  <jas@extundo.com>
81413
81414         * config/srclist.txt: Add glibc bug 1423 for md5.h.
81415
81416 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
81417
81418         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
81419         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
81420         needed, since the source code now assumes these .h files.
81421
81422 2005-10-05  Derek Price  <derek@ximbiot.com>
81423
81424         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
81425
81426 2005-10-05  Bruno Haible  <bruno@clisp.org>
81427
81428         * modules/stdint (License): Change to LGPL.
81429
81430 2005-10-04  Simon Josefsson  <jas@extundo.com>
81431
81432         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
81433         D. Baushke" <mdb@gnu.org>.
81434
81435 2005-10-04  Bruno Haible  <bruno@clisp.org>
81436
81437         * lib/verify.h (verify_true): Provide alternative definition for C++.
81438
81439 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
81440
81441         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
81442         (SSIZE_MAX): New macro, if not already defined.
81443         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
81444         than 2 GiB.
81445
81446 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81447
81448         Sync from coreutils.
81449         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
81450         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
81451         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
81452         ULLONG_MAX doesn't work with 2.7.2.1.
81453
81454 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81455
81456         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
81457         From Ben Pfaff.
81458
81459         * modules/exclude (Depends-on): Depend on verify.
81460         * modules/strtoimax (Depends-on): Likewise.
81461         * modules/utimecmp (Depends-on): Likewise.
81462
81463 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81464
81465         * lib/exclude.c: Include verify.h.
81466         (verify): Remove.  All callers changed to use verify.h's version.
81467         * lib/strtoimax.c: Likewise.
81468         * lib/utimecmp.c: Likewis.e
81469
81470         Sync from coreutils.
81471         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
81472         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
81473         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
81474         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
81475         bother returning ENOSYS if settimeofday or stime fails; just let
81476         them return whatever errno they want to return.
81477         * lib/utimens.c: Include unistd.h, for dup2.
81478         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
81479         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
81480
81481 2005-10-02  Jim Meyering  <jim@meyering.net>
81482
81483         Sync from coreutils.
81484         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
81485         from glibc-2.2.5 that fails for read-only files.
81486
81487 2005-10-02  Jim Meyering  <jim@meyering.net>
81488
81489         Sync from coreutils.
81490         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
81491         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
81492         `#if HAVE_CONFIG_H'.
81493         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
81494         Remove AT_FDCWD test.
81495         Do not consume the fd unless successful.
81496         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
81497         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
81498         block, so that we don't even try to compile it if settimeofday is
81499         available.  This works around a compilation failure on OSF1 V5.1,
81500         due to stime requiring a `long int*' while tv_sec is `int'.
81501
81502 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
81503
81504         Sync from coreutils.
81505         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
81506         against `yes', rather than just testing for nonempty.
81507
81508 2005-10-01  Simon Josefsson  <jas@extundo.com>
81509
81510         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
81511         and Darwin.
81512
81513         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
81514         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
81515         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
81516         freeaddrinfo and gai_strerror are declared by the POSIX headers.
81517         Check if struct addrinfo is declared.
81518
81519 2005-10-01  Simon Josefsson  <jas@extundo.com>
81520
81521         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
81522         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
81523         AI_* and EAI_* definitions.  Protect function declarations.
81524
81525 2005-10-01  Jim Meyering  <jim@meyering.net>
81526
81527         Sync from coreutils.
81528
81529         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
81530         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
81531         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
81532         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
81533         in the inet and nsl libraries.  Required on Solaris 5.7.
81534
81535 2005-10-01  Jim Meyering  <jim@meyering.net>
81536
81537         Sync from coreutils.
81538         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
81539         in the inet and nsl libraries.  Required on Solaris 5.7.
81540
81541 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
81542
81543         * lib/getdelim.c (getdelim): Remove unused variables.
81544
81545 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
81546
81547         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
81548         so that the code works even with ancient cpp.  Portability problem
81549         with GCC 2.7.2.1 reported by Thomas M.Ott.
81550
81551 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
81552
81553         * modules/regex (Depends-on): Add strcase.
81554
81555         * modules/gethostname (Licence): Change from GPL to LGPL, since
81556         gethostname.c is a trivial implementation of a standard library
81557         function.
81558         * modules/poll (License): Change from GPL to LGPL, since it's
81559         derived from LGPL code.
81560
81561 2005-09-27  Jim Meyering  <jim@meyering.net>
81562
81563         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
81564         HAVE_CONFIG_H.
81565
81566         * lib/intprops.h (signed_type_or_expr__): Define.
81567         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
81568         for unsigned types.
81569
81570 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
81571
81572         * lib/verify.h (verify_expr): Remove, replacing with:
81573         (verify_true): New macro that returns true instead of void.
81574         (verify_type__): Remove.
81575         (verify): Use verify_true rather than verify_type__.
81576
81577 2005-09-26  Bruno Haible  <bruno@clisp.org>
81578
81579         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
81580         is necessary.
81581         (lib_SOURCES): Remove mbchar.c.
81582         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
81583         (Files): Add m4/mbrtowc.m4.
81584         * modules/mbiter: Likewise.
81585         * modules/mbuiter: Likewise.
81586
81587 2005-09-26  Bruno Haible  <bruno@clisp.org>
81588
81589         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
81590         compile mbchar.c if they are not both present.
81591         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
81592         * m4/mbiter.m4 (gl_MBITER): Likewise.
81593         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
81594         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
81595         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
81596
81597 2005-09-25  Jim Meyering  <jim@meyering.net>
81598
81599         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
81600         also uses socklen_t.
81601
81602 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
81603
81604         * lib/utimens.c (ENOSYS): Define if not already defined.
81605         (futimens): Support having a null PATH if the file descriptor
81606         is nonnegative.
81607
81608         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
81609         Remove.
81610         (__attribute): Define to empty unless GCC 3.1 or later.
81611         This works around a core dump on OpenBSD 3.4, which has GCC
81612         2.95.3, which dumps core when given __attribute__(()).  It also
81613         simplifies other tests, since we really don't want to bother with
81614         worrying about which ancient version of GCC supported what.
81615         Original problem reported by Yoann Vandoorselaere, with part of
81616         the fix suggested by Derek Price.
81617
81618 2005-09-24  Jim Meyering  <jim@meyering.net>
81619
81620         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
81621         so we can once again use a positive bitfield width of 1 -- now we
81622         don't have to explain why we were using a bitfield width of 2.
81623
81624 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81625
81626         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
81627         and similarly for the other external symbols.  Problem reported
81628         by James Gallager.
81629
81630         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
81631         bug reported by Jim Meyering.
81632
81633         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
81634         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
81635         not needed, since socklen is a prerequisite module.
81636
81637 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81638
81639         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
81640         Problem reported by Eric Blake.
81641         (getaddrinfo): Initialize se so that it's not garbage.
81642         Redo internal storage allocation so that it doesn't make unportable
81643         assumptions about alignment.
81644         Fix a memory leak.
81645
81646         * lib/utimens.c (futimens): Use futimesat if available.
81647         Prefer it to futimes since it doesn't have the futimes bug.
81648
81649         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
81650         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
81651         Instead, declare a function that returns a pointer to an array,
81652         and use verify_type__ to declare the size of the array.
81653         Problem and germ of a solution reported by Bruno Haible.
81654         (verify_type__): Use 2, not 1, for bitfield size, to avoid
81655         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
81656
81657 2005-09-23  Jim Meyering  <jim@meyering.net>
81658
81659         Sync from coreutils.
81660         Correct build failure (socklen_t not defined) on at least
81661         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
81662         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
81663
81664 2005-09-23  Jim Meyering  <jim@meyering.net>
81665
81666         * modules/getaddrinfo (Depends-on): Add socklen.
81667
81668 2005-09-23  Bruno Haible  <bruno@clisp.org>
81669
81670         * tests/test-verify.c: New file.
81671
81672 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81673
81674         Sync from coreutils.
81675
81676         * modules/argmatch (Depends-on): Add verify.
81677         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
81678         unistd-safer.
81679         * modules/save-cwd (Depends-on): Likewise.
81680
81681         * modules/openat (Files): Add lib/openat-die.c.
81682         (Depends-on): Remove error, exitfail.
81683         Add dirname.
81684
81685         * modules/verify: New file.
81686         * MODULES.html.sh (Diagnostics <assert.h>): New section,
81687         with "verify" module.
81688
81689 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81690
81691         Sync from coreutils.
81692
81693         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
81694         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
81695         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
81696         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
81697         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
81698         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
81699         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
81700         Don't bother checking for string.h, stdlib.h, unistd.h.
81701         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
81702         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
81703         module's job.
81704         * m4/jm-macros.m4 (gl_MACROS): Likewise.
81705         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
81706
81707         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
81708         (gl_GETDATE): Use it.
81709
81710         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
81711
81712 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81713
81714         Sync from coreutils.
81715
81716         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
81717         stat-time.h.
81718         * lib/argmatch.h: Include verify.h
81719         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
81720         (ARGMATCH_ASSERT): Remove; unused.
81721         * lib/canonicalize.c: Assume STDC_HEADERS.
81722         * lib/exclude.c: Include "strcase.h".
81723         * lib/regex_internal.h [!defined _LIBC]: Likewise.
81724         * lib/getusershell.c: Include stdio--.h rather than stdio.h
81725         and stdio-safer.h.
81726         (getusershell): Call fopen, not fopen_safer.
81727         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
81728         Do not include unistd-safer.h.
81729         (save_cwd): Don't call fd_safer; no longer needed
81730         now that we include fcntl--.h.
81731
81732         * lib/getdate.y (relative_time): New type.
81733         (RELATIVE_TIME_0): New constant.
81734         (parser_control): Use relative_time instead of doing it ourselves.
81735         (%union): Add new relative_time rel member.
81736         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
81737         Now typeless.
81738         (relunit, relunit_snumber): Now of type rel.
81739         (zone, rel, relunit, get_date): Adjust to above changes.
81740
81741         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
81742         Do not include unistd-safer.h.
81743         (getloadavg): Don't call fd_safer; no longer needed
81744         now that we include fcntl--.h.
81745
81746         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
81747         (make_dir_parents): Treat ENOSYS like EEXIST.
81748
81749         Improve quality of diagnostics on restore_cwd failure.
81750         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
81751         (make_dir_parents): Last arg is now int * (for errno), not bool *.
81752         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
81753         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
81754         each time through the loop.  Do not diagnose restore_cwd failure;
81755         that is the caller's job (and perhaps the caller does not care).
81756
81757         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
81758         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
81759         If the file already exists but is not a directory, don't bother
81760         to try to make its parents.
81761         Close potential file descriptor leak if we can't chdir("/") (!).
81762         Don't always return true if chdir($PWD) fails; return true only
81763         if the requested action was done successfully (except for the
81764         chdir($PWD)).
81765         Don't log final directory unless we actually made it.
81766         Refactor to avoid duplicate code to fix up permissions.
81767         Don't attempt to fix up parent permissions if chdir($PWD) fails.
81768
81769         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
81770         to make it a bit faster and (I hope) clearer.
81771         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
81772         Fix bug in formats like %2N.
81773
81774         * lib/verify.h: New file.
81775
81776 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81777
81778         Sync from coreutils.
81779         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
81780
81781 2005-09-22  Jim Meyering  <jim@meyering.net>
81782
81783         Sync from coreutils.
81784
81785         * m4/lstat.m4 (gl_FUNC_LSTAT):
81786         Use AC_LIBSOURCES to require lstat.c and lstat.h.
81787         Remove obsolete comment.
81788         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
81789         * m4/xstrtod.m4: Likewise.
81790
81791         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
81792
81793 2005-09-22  Jim Meyering  <jim@meyering.net>
81794
81795         Sync from coreutils.
81796
81797         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
81798
81799         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
81800         the .tm_year member, since otherwise gcc-4.0 would now warn about
81801         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
81802
81803         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
81804         order to avoid an unsuppressible warning from gcc on 64-bit systems.
81805
81806         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
81807         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
81808         when run in a time zone for which daylight savings time is in effect
81809         for the starting date.
81810
81811         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
81812         stop us from restricting permissions of just-created absolute-named
81813         directories.
81814         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
81815         to restore initial working directory.
81816         * lib/mkdir-p.c (make_dir_parents): New parameter:
81817         different_working_dir, to tell caller if/when we change the working
81818         directory and are unable to return to the initial one.
81819         * lib/mkdir-p.h (make_dir_parents): Update prototype.
81820         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
81821         `return false'.  This fixes a bug introduced on 2004-07-30.
81822
81823         * lib/openat.c (fdopendir): Be sure to close the supplied
81824         file descriptor before returning.  This makes our replacement
81825         implementation a little closer to Solaris's, where fdopendir
81826         ties the file descriptor to the returned DIR* pointer.
81827         * lib/openat.c (unlinkat): New function.
81828         * lib/openat.h (unlinkat): Add prototype.
81829         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
81830         (openat_restore_fail): Rename from openat_restore_die.
81831         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
81832
81833         Provide an alternative to exiting immediately upon save_cwd or
81834         restore_cwd failure.  Now, an application can arrange e.g.,
81835         to perform a longjump in that case.
81836         * lib/openat.c: Include dirname.h.
81837         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
81838         (rpl_openat, fdopendir, fstatat): Call openat_save_die
81839         and openat_restore_die rather than calling error directly.
81840         Don't include "error.h" or "exitfail.h"; they're no longer needed.
81841
81842         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
81843         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
81844         define.
81845
81846         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
81847         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
81848                             int utc, int nanoseconds);
81849         Background:
81850         date should not have to allocate a megabyte of virtual memory to
81851         handle a format argument like +%1048575T.  When implemented with
81852         strftime, it must allocate such a buffer, use strftime to fill it
81853         in, print it, then free it.
81854         With fprintftime, it simply prints everything and exits.
81855         With no need for memory allocation, that's one fewer way to fail.
81856         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
81857         optional field width, not before, so we accept %9:z, not %:9z.
81858         (my_strftime): Be sure to use L_('x') for literals.
81859
81860         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
81861         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
81862         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
81863         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
81864         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
81865         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
81866         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
81867         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
81868         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
81869         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
81870         * lib/xgethostname.c, lib/xreadlink.c:
81871         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
81872
81873         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
81874         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
81875         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
81876         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81877         and don't include <sys/file.h>).
81878
81879 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
81880
81881         Sync from coreutils.
81882
81883         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
81884         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
81885         [!LDAV_DONE]: Avoid unused variable warning.
81886
81887 2005-09-21  Bruno Haible  <bruno@clisp.org>
81888
81889         * lib/unicodeio.h (unicode_to_mb): New declaration.
81890
81891 2005-09-20  Derek Price  <derek@ximbiot.com>
81892
81893         * lib/getaddrinfo.c: Don't include <netdb.h> included from
81894         getaddrinfo.h.
81895
81896 2005-09-20  Bruno Haible  <bruno@clisp.org>
81897
81898         * gnulib-tool: Remove trailing slashes from the values specified for
81899         --source-base, --m4-base, --tests-base, --aux-dir.
81900         Suggested by Simon Josefsson <jas@extundo.com>.
81901
81902 2005-09-20  Bruno Haible  <bruno@clisp.org>
81903
81904         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
81905         func_modules_to_filelist, func_import, func_create_testdir): Make all
81906         sorting results locale-independent, so that gnulib-cache.m4 doesn't
81907         change when gnulib-tool is invoked in a different locale.
81908
81909 2005-09-19  Simon Josefsson  <jas@extundo.com>
81910
81911         * m4/socklen.m4: Fix typo.
81912
81913 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81914
81915         Use a consistent style for including <config.h>.
81916         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
81917         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
81918         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
81919         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
81920         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
81921         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
81922         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
81923         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
81924         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
81925         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
81926         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
81927         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
81928         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
81929         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
81930         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
81931         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
81932         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
81933         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
81934         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
81935         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
81936         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
81937         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
81938         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
81939         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
81940         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
81941         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
81942         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
81943         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
81944         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
81945         lib/xstrtoumax.c, lib/yesno.c:
81946         Standardize inclusion of config.h.
81947         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
81948         lib/inttostr.h:  Removed inclusion of config.h from header files.
81949         * lib/inttostr.c:  Adjusted in-tree users.
81950         * lib/timespec.h: Remove superfluous warning to include config.h.
81951         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
81952         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
81953         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
81954         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
81955         config.h with HAVE_CONFIG_H.
81956
81957 2005-09-19  Jim Meyering  <jim@meyering.net>
81958
81959         * modules/pathmax (License): Change to LGPL.
81960
81961 2005-09-19  Derek Price  <derek@ximbiot.com>
81962
81963         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
81964
81965 2005-09-19  Bruno Haible  <bruno@clisp.org>
81966
81967         * gnulib-tool (import): Provide default for --tests-base.
81968
81969 2005-09-19  Bruno Haible  <bruno@clisp.org>
81970
81971         * doc/quote.texi: New file, extracted from gnulib.texi.
81972         * doc/ctime.texi: New file, extracted from gnulib.texi.
81973         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
81974         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
81975         * doc/gnulib.texi: Include them.
81976
81977 2005-09-18  Bruno Haible  <bruno@clisp.org>
81978
81979         Portability fix.
81980         * gnulib-tool (func_readlink): New function.
81981         (func_ln_if_changed): Use it.
81982
81983 2005-09-18  Bruno Haible  <bruno@clisp.org>
81984
81985         * gnulib-tool: Support --with-tests also with --import.
81986         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
81987         (func_import): Use variables $testsbase and $inctests. Emit a
81988         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
81989         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
81990         SUBDIRS += $testsdir.
81991         (func_create_testdir): Update.
81992
81993 2005-09-18  Bruno Haible  <bruno@clisp.org>
81994
81995         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
81996         instead of $dry_run.
81997         (func_cp_if_changed, func_mv_if_changed): Remove functions.
81998         (func_ln_if_changed): Don't handle dry-run here.
81999         (func_import): In dry-run mode, detect more precisely which actions
82000         would be performed, and don't use "...ing" verbs.
82001
82002 2005-09-18  Bruno Haible  <bruno@clisp.org>
82003
82004         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
82005         (func_import): Use join on two temporary files instead of three nested
82006         loops, in order to determine which files are new or old.
82007
82008 2005-09-18  Bruno Haible  <bruno@clisp.org>
82009
82010         * gnulib-tool (func_import): Comment out code that spits out the
82011         new files with --dry-run.
82012
82013 2005-09-18  Bruno Haible  <bruno@clisp.org>
82014
82015         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
82016
82017 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
82018
82019         * lib/stat-time.h: New file.
82020         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
82021         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
82022         in a different way.
82023         (timespec_cmp): New function.
82024         * lib/utimecmp.c: Include stat-time.h.
82025         (SYSCALL_RESOLUTION): Depend on whether various struct stat
82026         members exist, not on the obsolescent ST_MTIM_NSEC.
82027         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
82028
82029 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
82030
82031         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
82032
82033 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
82034
82035         * MODULES.html.sh (File system functions): Add stat-time.
82036         * modules/stat-time: New file.
82037         * modules/timespec (Files): Remove m4/st_mtim.m4; this
82038         is now done in a different way, by the stat-time module.
82039         * modules/utimecmp (Depends-on): Add stat-time.
82040
82041 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
82042
82043         * m4/st_mtim.m4: Remove.  Superseded by...
82044         * m4/stat-time.m4: New file.
82045         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
82046         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
82047
82048 2005-09-15  Derek Price  <derek@ximbiot.com>
82049
82050         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
82051
82052 2005-09-15  Derek Price  <derek@ximbiot.com>
82053
82054         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
82055         * lib/regex_internal.c: Ditto, using this...
82056         (__GNUC_PREREQ): ...new macro.
82057         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
82058         using...
82059         (__GNUC_PREREQ): ...this new macro.
82060
82061         * lib/strstr.h: Include string.h. Define strstr as a macro here.
82062
82063 2005-09-15  Derek Price  <derek@ximbiot.com>
82064             Paul Eggert  <eggert@cs.ucla.edu>
82065
82066         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
82067         changes, consolidating in...
82068         * lib/regex_internal.h: ...this file.
82069
82070 2005-09-13  Jim Meyering  <jim@meyering.net>
82071
82072         * lib/canon-host.c: Filter through gnu indent and reword comments
82073         slightly.
82074         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
82075
82076 2005-09-13  Derek Price  <derek@ximbiot.com>
82077
82078         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
82079         failure.
82080         Reported by Jim Meyering  <jim@meyering.net>.
82081
82082 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82083
82084         * lib/base64.c: Typo.
82085         (base64_encode): Put b64str in initialized data section.
82086
82087 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
82088
82089         Merge glibc and coreutils changes into gnulib, plus a few
82090         extra fixes.
82091         * lib/md5.c: Use #error rather than a string.
82092         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
82093         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
82094         (__attribute__): Define to empty for non recent-GCC.
82095         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
82096         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
82097         Renamed from their non-__ counterparts, with new macros replacing
82098         them if not _LIBC.  Add __THROW attribute.
82099         (rol): Remove.
82100         (struct md5_ctx): Align buffer if using GCC.
82101         * lib/sha1.h (struct sha1_ctx): Likewise.
82102         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
82103         The old name was backwards.
82104         (NOTSWAP): Remove; not used.
82105         (rol): New macro, moved here from md5.h.
82106         (sha1_process_block): Remove a FIXME that doesn't make sense.
82107
82108 2005-09-12  Derek Price  <derek@ximbiot.com>
82109
82110         Return usable errors from canon-host.
82111         * lib/canon-host.h: New file.
82112         * lib/canon-host.c (canon_host): Wrap...
82113         (canon_host_r): ...this new function, which now relies exclusively on
82114         getaddrinfo.
82115         (ch_strerror): New function.
82116         (last_cherror): New global.
82117         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
82118         interface.
82119         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
82120         void *.
82121         (freeaddrinfo): Free ai->ai_canonname when set.
82122
82123 2005-09-12  Derek Price  <derek@ximbiot.com>
82124
82125         Make canon-host require getaddrinfo.
82126         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
82127         AC_LIBSOURCE canon-host.h.  Call...
82128         (gl_PREREQ_CANON_HOST): ...this new function, which requires
82129         gl_GETADDRINFO.
82130         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
82131
82132 2005-09-12  Derek Price  <derek@ximbiot.com>
82133
82134         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
82135         LGPL.
82136         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
82137
82138 2005-09-12  Derek Price  <derek@ximbiot.com>
82139
82140         * lib/gai_strerror.c: Include config.h when available.  Include
82141         getaddrinfo.h before other headers to test interface.
82142         Reported by Larry Jones <lawrence.jones@ugs.com>.
82143
82144 2005-09-12  Derek Price  <derek@ximbiot.com>
82145             Paul Eggert  <eggert@cs.ucla.edu>
82146
82147         * modules/glob (Files): Add glob-libc.h.
82148
82149 2005-09-12  Derek Price  <derek@ximbiot.com>
82150             Paul Eggert  <eggert@cs.ucla.edu>
82151
82152         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
82153         glob_.h, glob-libc.h.
82154         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
82155
82156 2005-09-12  Derek Price  <derek@ximbiot.com>
82157             Paul Eggert  <eggert@cs.ucla.edu>
82158
82159         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
82160         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
82161         protecting things that should be done only in gnulib contexts.
82162         * lib/glob_.h: New file, containing only the glob things needed for
82163         gnulib.
82164         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
82165         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
82166         (glob, globfree, glob_pattern_p): Now defined simply in terms of
82167         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
82168         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
82169         and to respect the namespace rules better.
82170
82171 2005-09-08  Simon Josefsson  <jas@extundo.com>
82172
82173         * modules/socklen: New file.
82174
82175 2005-09-08  Simon Josefsson  <jas@extundo.com>
82176
82177         * m4/socklen.m4: New file.
82178
82179 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82180
82181         * modules/utimens (Files): Add m4/utimbuf.m4, since
82182         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
82183         Reported by Sergey Poznyakoff.
82184
82185 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82186
82187         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
82188         definitions, since that's the preferred style in glibc.
82189         Fix a minor spacing issue, and update copyright notice to match
82190         glibc's.
82191
82192 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82193
82194         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
82195
82196 2005-09-06  Simon Josefsson  <jas@extundo.com>
82197
82198         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
82199         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
82200
82201 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82202
82203         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
82204         warning.
82205
82206 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82207
82208         * config/srclist.txt: Add glibc bug 1302.
82209
82210 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
82211
82212         Change bitset word type from unsigned int to unsigned long int,
82213         as this has better performance on typical 64-bit hosts.
82214         Port bitset code to hosts with unusual word sizes.
82215         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
82216         (build_collating_symbol):
82217         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
82218         argument is a bitset.  This is merely a style issue, but it makes
82219         it clearer that an entire array is expected.
82220         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
82221         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
82222         Port to the case where bitset_word is not the same as unsigned int.
82223         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
82224         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
82225         Likewise.
82226         * lib/regexec.c (check_dst_limits_calc_pos_1,
82227         check_subexp_matching_top):
82228         (build_trtable, group_nodes_into_DFAstates):
82229         Likewise.
82230         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
82231         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
82232         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
82233         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
82234         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
82235         * lib/regcomp.c (optimize_subexps, lower_subexp):
82236         Work even if bitset_word has holes in its bitwise representation.
82237         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
82238         * lib/regexec.c (check_dst_limits_calc_pos_1,
82239         check_subexp_matching_top):
82240         Likewise.
82241         * lib/regex_internal.c (re_string_reconstruct):
82242         Don't assume UCHAR_MAX == 255.
82243         * lib/regex_internal.h (bitset_set_all): Likewise.
82244         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
82245         All uses changed.
82246         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
82247         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
82248         All uses changed.
82249         (BITSET_WORD_MAX): New macro.
82250         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
82251         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
82252         (bitset_empty, bitset_copy):
82253         Prefer sizeof (bitset) to multiplying it out ourselves.
82254         (bitset_not_merge): Remove; unused.
82255         (bitset_contain): Return bool, not unsigned int with one bit on.
82256         All callers changed.
82257         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
82258         alignment than re_node_set; do this by defining a new internal
82259         type struct dests_alloc and using it to allocate memory.
82260
82261 2005-09-05  Bruno Haible  <bruno@clisp.org>
82262
82263         * gnulib-tool (func_import): Fix comparison in handling of symbolic
82264         links.
82265
82266 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
82267
82268         * modules/size_max (Makefile.am): Add size_max.h
82269
82270 2005-09-04  Derek Price  <derek@ximbiot.com>
82271
82272         * gnulib-tool (func_import): Fix reversed $symbolic logic.
82273
82274 2005-09-03  Simon Josefsson  <jas@extundo.com>
82275
82276         * gnulib-tool: Fix typo.
82277
82278 2005-09-03  Simon Josefsson  <jas@extundo.com>
82279
82280         * config/srclist.txt: Add glibc bug 1293.
82281
82282 2005-09-03  Derek Price  <derek@ximbiot.com>
82283
82284         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
82285         From Larry Jones <lawrence.jones@ugs.com>.
82286
82287 2005-09-02  Simon Josefsson  <jas@extundo.com>
82288
82289         * modules/socklen: New file.
82290
82291 2005-09-02  Simon Josefsson  <jas@extundo.com>
82292
82293         * modules/havelib: New module.
82294
82295         * modules/gettext, modules/iconv, modules/lock, modules/readline:
82296         Use havelib.
82297
82298 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
82299
82300         Check for arithmetic overflow when calculating sizes, to prevent
82301         some buffer-overflow issues.  These patches are conservative, in the
82302         sense that when I couldn't determine whether an overflow was possible,
82303         I inserted a run-time check.
82304         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
82305         macros.
82306         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
82307         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
82308         (re_xnrealloc, re_x2nrealloc): New inline functions.
82309         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
82310         parse_bracket_exp):
82311         (build_equiv_class, build_charclass): Check for arithmetic overflow
82312         in size expression calculations.
82313         * lib/regex_internal.c (re_string_realloc_buffers):
82314         (build_wcs_upper_buffer, re_node_set_add_intersect):
82315         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
82316         (re_dfa_add_node, register_state): Likewise.
82317         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
82318         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
82319         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
82320         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
82321
82322 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
82323
82324         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
82325         m4/ulonglong.m4.  Problem reported by Martin Lambers.
82326
82327 2005-09-02  Bruno Haible  <bruno@clisp.org>
82328
82329         Support for lib vs. lib64 distinction on biarch platforms.
82330         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
82331         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
82332         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
82333
82334 2005-09-02  Bruno Haible  <bruno@clisp.org>
82335
82336         * gnulib-tool (import): In the other first-use case, provide defaults
82337         as well.
82338
82339 2005-09-02  Bruno Haible  <bruno@clisp.org>
82340
82341         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
82342         patches not yet found in the latest gettext release.
82343
82344 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
82345
82346         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
82347         to avoid a collision with bits/local_lim.h in glibc.
82348         All uses changed.  Problem reported by Dmitry V. Levin in
82349         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
82350
82351         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
82352         bugs in int versus size_t comparisons.
82353         (re_string_context_at): Fix bug where the code assumed that
82354         Idx is signed.
82355
82356         Use bool where appropriate.
82357         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
82358         All callers changed.
82359         (calc_eclosure_iter): Likewise, for ROOT arg.
82360         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
82361         (build_charclass_op): Likewise, for NON_MATCH arg.
82362         * lib/regex_internal.c (re_string_allocate, re_string_construct):
82363         (re_string_construct_common): Likewise, for ICASE arg.
82364         * lib/regexec.c (re_search_2_stub, re_search_stub):
82365         Likewise, for RET_LEN arg.
82366         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
82367         (set_regs): Likewise, for FL_BACKTRACK arg.
82368         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
82369         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
82370         (calc_eclosure_iter, parse_bracket_exp):
82371         Use bool for internal variables that are booleans.
82372         * lib/regexec.c (re_search_internal, check_matching,
82373         proceed_next_node):
82374         (set_regs, build_sifted_states, sift_states_bkref):
82375         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
82376         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82377         (find_collation_sequence_value):
82378         Likewise.
82379         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
82380         (re_node_set_compare):
82381         Return bool, not int. All callers changed.
82382         * lib/regexec.c (check_halt_node_context, check_dst_limits):
82383         (build_trtable, check_node_accept): Likewise.
82384         * lib/regex_internal.h: Include stdbool.h.
82385
82386         Fix bugs uncovered when converting to bool.
82387         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
82388         failure instead of charging ahead blindly.
82389         * lib/regex_internal.c (register_state): Likewise.
82390         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
82391         for freeing internal storage.
82392         (group_nodes_into_DFA_states): Use unsigned int, not int, for
82393         bitset pieces used as boolean, to avoid undefined behavior
82394         on hosts that do int overflow checking.
82395
82396 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
82397
82398         * config/srclist.txt: Add glibc bugs 1285-1287.
82399
82400 2005-09-01  Jim Meyering  <jim@meyering.net>
82401
82402         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
82403         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
82404         Require gl_STAT_MACROS, too.
82405
82406 2005-09-01  Bruno Haible  <bruno@clisp.org>
82407
82408         * gnulib-tool (import): In the first-use case, provide defaults.
82409
82410 2005-09-01  Bruno Haible  <bruno@clisp.org>
82411
82412         * gnulib-tool (func_import): Remove the .tmp files.
82413
82414 2005-09-01  Bruno Haible  <bruno@clisp.org>
82415
82416         * gnulib-tool (func_import): Fix handling of symbolic links.
82417
82418 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82419
82420         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
82421         old glibc regex code mishandles strings longer than 2**31 bytes.
82422         This patch fixes this when the regex code is used in gnulib
82423         (i.e., outside glibc).
82424
82425         This patch should not affect the use of the regex code inside
82426         glibc.  No doubt this problem also needs to be handled for glibc
82427         as well, but the result will be an incompatible change to the
82428         glibc ABI, and the old ABI will have to be supported too.  That
82429         can be the the subject for another patch.
82430
82431         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
82432         governing whether the rest of this patch is active.  By default,
82433         the macro is disabled and the patch has no effect.
82434         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
82435         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
82436         (struct re_pattern_buffer, re_search, re_search_2, re_match):
82437         (re_match_2, re_set_registers): Use the new types.
82438         * lib/regex_internal.h (Idx, re_hashval_t): New types.
82439         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
82440         New macros.
82441         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
82442         (re_string_context_at, bin_tree_t, re_dfastate_t):
82443         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
82444         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
82445         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
82446         (re_string_char_size_at, re_string_wchar_at):
82447         (re_string_elem_size_at):
82448         Use the new types and macros to port to 64-bit hosts.
82449         Use unsigned types for internal values, so that the code
82450         mostly works even for arrays larger than SSIZE_MAX.
82451         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
82452         (search_duplicated_node, calc_eclosure_iter, fetch_number):
82453         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
82454         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
82455         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
82456         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
82457         (calc_inveclosure, parse_dup_op, build_range_exp):
82458         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
82459         (fetch_number, create_token_tree, mark_opt_subexp):
82460         Likewise.
82461         * lib/regex_internal.c (re_string_construct_common,
82462         create_ci_newstate):
82463         (create_cd_newstate, re_string_allocate, re_string_construct):
82464         (re_string_realloc_buffers, build_wcs_upper_buffer):
82465         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82466         (re_string_reconstruct, re_string_peek_byte_case):
82467         (re_string_fetch_byte_case, re_string_context_at):
82468         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82469         (re_node_set_init_copy, re_node_set_add_intersect):
82470         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82471         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82472         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82473         (re_acquire_state, re_acquire_state_context, register_state):
82474         Likewise.
82475         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
82476         search_cur_bkref_entry):
82477         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
82478         (re_search_internal, re_search_2_stub, re_search_stub)
82479         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
82480         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
82481         (update_cur_sifted_state, check_dst_limits):
82482         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
82483         (check_subexp_limits, sift_states_bkref, merge_state_array):
82484         (check_subexp_matching_top, get_subexp, get_subexp_sub):
82485         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
82486         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82487         (expand_bkref_cache, check_node_accept_bytes):
82488         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
82489         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
82490         (acquire_init_state_context, check_halt_node_context):
82491         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
82492         (sift_states_backward, clean_state_log_if_needed):
82493         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
82494         (find_recover_state, transit_state_sb, transit_state_mb):
82495         (transit_state_bkref, build_trtable, match_ctx_clean):
82496         Likewise.
82497         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
82498         to work around an assumption that REG_MISSING is negative.
82499
82500         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
82501         (seek_collating_symbol_entry) [defined _LIBC]:
82502         (lookup_collation_sequence_value) [defined _LIBC]:
82503         (build_range_exp, build_collating_symbol) [defined _LIBC]:
82504         Use prototypes rather than old-style function definitions.
82505         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
82506         (transit_state_sb) [0]:
82507         (find_collation_sequence_value) [defined _LIBC]: Likewise.
82508
82509         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
82510         rm_eo.
82511
82512         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
82513         (optimize_subexps, lower_subexp):
82514         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
82515         since the signed shift might overflow.  Use 1u<<31 instead.
82516         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
82517         Likewise.
82518         * lib/regexec.c (check_dst_limits_calc_pos_1,
82519         check_subexp_matching_top): Likewise.
82520
82521         * lib/regcomp.c (optimize_subexps, lower_subexp):
82522         Use CHAR_BIT rather than 8, for clarity.
82523         * lib/regexec.c (check_dst_limits_calc_pos_1):
82524         (check_subexp_matching_top): Likewise.
82525         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
82526         have to worry about portability issues when shifting it left.
82527         Remove no-longer-needed test for table_size > 0.
82528         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
82529         in a word, as the resulting behavior is undefined.
82530         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
82531         in one case, a <= should have been an <, and in another case the
82532         whole test was missing.
82533         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
82534         the standard name CHAR_BIT.
82535         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
82536         this is not true on one's complement and signed-magnitude hosts.
82537
82538         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
82539         next_last_offset.
82540         (struct re_dfa_t): Remove unused member states_alloc.
82541         * lib/regcomp.c (init_dfa): Don't initialize unused members.
82542
82543 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82544
82545         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
82546         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
82547         and large-file glibc and in 32-bit large-file Solaris.
82548
82549 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82550
82551         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
82552         lengths fit in regoff_t; this isn't true if regoff_t is the same
82553         width as size_t.
82554         * lib/regex.c (re_search_internal): 5th arg is LAST_START
82555         (= START + RANGE) instead of RANGE.  This avoids overflow
82556         problems when regoff_t is the same width as size_t.
82557         All callers changed.
82558         (re_search_2_stub): Check for overflow when adding the
82559         sizes of the two strings.
82560         (re_search_stub): Check for overflow when adding START
82561         to RANGE; if it occurs, substitute the extreme value.
82562
82563 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82564
82565         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
82566
82567 2005-08-31  Jim Meyering  <jim@meyering.net>
82568
82569         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
82570         a pointer-to-const.
82571         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
82572         (register_state): Likewise.
82573         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
82574         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
82575         (group_nodes_into_DFAstates): Likewise.
82576
82577 2005-08-31  Jim Meyering  <jim@meyering.net>
82578
82579         * check-module: Add a FIXME comment.
82580
82581 2005-08-31  Eric Blake  <ebb9@byu.net>
82582
82583         * modules/unistd-safer (Files): Add unistd--.h.
82584         * modules/stdio-safer (Files): Add stdio--.h.
82585
82586 2005-08-31  Derek Price  <derek@ximbiot.com>
82587
82588         * lib/getdelim.c (getdelim): Return EOF on EOF.
82589         Reported by Larry Jones <lawrence.jones@ugs.com>.
82590
82591 2005-08-31  Bruno Haible  <bruno@clisp.org>
82592
82593         Avoid unnecessary diffs in the generated lib/Makefile.am.
82594         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
82595         the generated files.
82596         (func_import): Don't set cmd.
82597
82598 2005-08-31  Bruno Haible  <bruno@clisp.org>
82599
82600         * lib/strstr.c: Include <stddef.h>, for NULL.
82601         * lib/strcasestr.c: Likewise.
82602         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82603
82604 2005-08-31  Bruno Haible  <bruno@clisp.org>
82605
82606         * gnulib-tool: New option --macro-prefix.
82607         (func_import): Use macro_prefix.
82608         (import): Handle option --macro-prefix.
82609
82610 2005-08-31  Bruno Haible  <bruno@clisp.org>
82611
82612         * gnulib-tool (import): Rename most ac_* variables to cached_*.
82613         Also use new variables cached_lgpl, cached_libtool.
82614
82615 2005-08-31  Bruno Haible  <bruno@clisp.org>
82616
82617         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
82618         always instantiating them.
82619
82620 2005-08-31  Bruno Haible  <bruno@clisp.org>
82621
82622         * gnulib-tool (func_import): Read the previous cached settings
82623         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
82624         earlier added by gnulib but are now dropped. Warn when a gnulib file
82625         overwrites a non-gnulib file.
82626
82627 2005-08-31  Bruno Haible  <bruno@clisp.org>
82628
82629         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
82630         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
82631         projects that don't keep autogenerated files in CVS. Put into
82632         actioncmd only the specified modules, not the transitive closure.
82633
82634 2005-08-31  Bruno Haible  <bruno@clisp.org>
82635
82636         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
82637         Create directories that shall be filled.
82638         (import): Don't look for gl_* macros in configure.ac. Recurse across
82639         all directories containing a gnulib-cache.m4 files, if meaningful.
82640
82641 2005-08-31  Bruno Haible  <bruno@clisp.org>
82642
82643         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
82644         (import): Set seen_libtool when we see gl_LIBTOOL.
82645
82646 2005-08-31  Bruno Haible  <bruno@clisp.org>
82647
82648         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
82649         declaration macro definitions from generated gnulib.m4.
82650
82651 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
82652
82653         * lib/iconvme.h: Add prototype for iconv_alloc.
82654
82655 2005-08-29  Simon Josefsson  <jas@extundo.com>
82656
82657         * lib/iconvme.c: Fix errno.
82658
82659 2005-08-29  Bruno Haible  <bruno@clisp.org>
82660
82661         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
82662         that it works when the directory contains spaces.
82663
82664 2005-08-29  Bruno Haible  <bruno@clisp.org>
82665
82666         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
82667
82668 2005-08-29  Bruno Haible  <bruno@clisp.org>
82669
82670         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
82671         Emit more advice.
82672
82673 2005-08-29  Bruno Haible  <bruno@clisp.org>
82674         and Stepan Kasal  <kasal@ucw.cz>
82675
82676         * check-module: If more parameters are given, check each of them
82677         separately; add more exceptions, as noted by Jim Meyering.
82678         (check_module): New procedure.
82679         (%exempt_header): Now contains all exceptions.
82680
82681 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
82682
82683         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
82684
82685 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
82686
82687         * lib/iconvme.c: Split iconv_string into iconv_alloc.
82688
82689 2005-08-28  Bruno Haible  <bruno@clisp.org>
82690
82691         * m4/gnulib-tool.m4: New file.
82692
82693 2005-08-27  Jim Meyering  <jim@meyering.net>
82694
82695         * modules/unistd-safer (Files): Add pipe-safer.c.
82696         * modules/fcntl-safer (Files): Add creat-safer.c.
82697
82698 2005-08-27  Jim Meyering  <jim@meyering.net>
82699
82700         * m4/stdlib-safer.m4: New file.  From coreutils.
82701         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
82702         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
82703         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
82704         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
82705         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
82706
82707 2005-08-27  Jim Meyering  <jim@meyering.net>
82708
82709         * lib/fopen-safer.c: Merge minor changes from coreutils.
82710         * lib/dup-safer.c: Likewise.
82711         * lib/fd-safer.c: Likewise.
82712
82713         Merge from coreutils.
82714         * lib/stdio--.h: New file.
82715         * lib/stdlib--.h: New file.
82716         * lib/mkstemp-safer.c: New file.
82717
82718         GNU tar needs these.
82719         * lib/pipe-safer.c: New file.
82720         * lib/creat-safer.c: New file.
82721         * lib/fcntl--.h (creat): Define to creat_safer.
82722         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
82723         * lib/unistd--.h (pipe): Define to pipe_safer.
82724         * lib/unistd-safer.h: Declare pipe_safer.
82725
82726 2005-08-26  Simon Josefsson  <jas@extundo.com>
82727
82728         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
82729         Haible <bruno@clisp.org>.
82730
82731 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
82732
82733         * lib/regex_internal.h: Remove all references to
82734         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
82735         or better.
82736         (bitset_not, bitset_merge, bitset_not_merge):
82737         (bitset_mask, re_string_allocate, re_string_construct):
82738         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
82739         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
82740         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
82741         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
82742         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82743         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82744         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
82745         (re_acquire_state_context):
82746         Remove unnecessary forward decls.
82747         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
82748         Put __attribute at function definition,
82749         now that the function decl has been removed.
82750         * lib/regex_internal.c (re_string_peek_byte_case):
82751         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
82752         Likewise.
82753
82754 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
82755
82756         * m4/regex.m4: Add AC_PREREQ(2.50).
82757         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
82758
82759 2005-08-25  Simon Josefsson  <jas@extundo.com>
82760
82761         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
82762         __fsetlocking.
82763
82764 2005-08-25  Simon Josefsson  <jas@extundo.com>
82765
82766         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
82767         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
82768         GLIBC specific code.
82769
82770 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82771
82772         Make regex safe for g++.  This fixes one real bug (an "err"
82773         that should have been "*err").  g++ problem reported by
82774         Sam Steingold.
82775         * lib/regex_internal.h (re_calloc): New macro, consistent with
82776         re_malloc etc.  All callers of calloc changed to use re_calloc.
82777         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
82778         not int.  All callers changed.
82779         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
82780         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
82781         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
82782         (find_recover_state): Change "err" to "*err"; this fixes what
82783         appears to be a real bug.
82784         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
82785         versus int.
82786
82787 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82788
82789         * modules/regex (Depends-on): Add malloc, since the code
82790         assumes that !malloc(0) means failure.
82791
82792 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82793
82794         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
82795
82796         alloca modernization/simplification for regex.
82797         * lib/regex.c: Remove portability cruft for alloca.  This no longer
82798         needs to be at the start of the file, and can be moved into
82799         regex_internal.h and simplified.
82800         * lib/regex_internal.h: Include <alloca.h>.
82801         (__libc_use_alloca) [!defined _LIBC]: New macro.
82802         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
82803         now works outside glibc.
82804
82805 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82806
82807         * config/srclist.txt: Add glibc bugs 1241, 1245.
82808
82809 2005-08-25  Jim Meyering  <jim@meyering.net>
82810
82811         * lib/open-safer.c: Include <config.h>.
82812         Otherwise, we'd lose LARGEFILE support in any file using
82813         e.g. "fcntl--.h"
82814
82815 2005-08-25  Bruno Haible  <bruno@clisp.org>
82816
82817         * m4/minmax.m4: Require autoconf 2.52.
82818         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
82819         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
82820         alternatives of translit over the alphabet.
82821         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
82822
82823 2005-08-24  Simon Josefsson  <jas@extundo.com>
82824
82825         * tests/test-getpass.c: New file.
82826
82827 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82828
82829         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
82830         for GNU regex features.
82831
82832 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82833
82834         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
82835         * lib/regex.h (regerror): Likewise.
82836
82837         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
82838         requires this.  (The code never needed it.)
82839
82840         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
82841         All uses of recently-renamed identifiers changed to use the new,
82842         POSIX-compliant names.  The code will build and run just fine
82843         without these changes, but it's better to eat our own dog food
82844         and use the standard-conforming names.
82845
82846         * lib/regex.h: Fix a multitude of POSIX name space violations.
82847         These changes have an effect only for programs that define
82848         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
82849         do not change anything for programs compiled in the normal way.
82850         Also, there is no effect on the ABI.
82851
82852         (_REGEX_SOURCE): New macro.
82853         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
82854         defined and _GNU_SOURCE is not; this fixes a name space violation.
82855
82856         Rename the following macros to obey POSIX requirements.
82857         The old names are still visible as macros if _REGEX_SOURCE is defined.
82858         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
82859         RE_BACKSLASH_ESCAPE_IN_LISTS.
82860         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
82861         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
82862         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
82863         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
82864         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
82865         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
82866         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
82867         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
82868         (REG_INTERVALS): renamed from RE_INTERVALS.
82869         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
82870         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
82871         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
82872         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
82873         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
82874         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
82875         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
82876         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
82877         RE_UNMATCHED_RIGHT_PAREN_ORD.
82878         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
82879         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
82880         (REG_DEBUG): renamed from RE_DEBUG.
82881         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
82882         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
82883         unusual, since we can't clash with the POSIX REG_ICASE.
82884         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
82885         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
82886         (REG_NO_SUB): renamed from RE_NO_SUB.
82887         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
82888         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
82889         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
82890         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
82891         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
82892         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
82893         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
82894         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
82895         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
82896         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
82897         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
82898         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
82899         RE_SYNTAX_POSIX_MINIMAL_BASIC.
82900         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
82901         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
82902         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
82903         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
82904         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
82905         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
82906         (REG_FIXED): Renamed from REGS_FIXED.
82907         (REG_NREGS): Renamed from RE_NREGS.
82908
82909         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
82910         of other REG_* macros, since POSIX says the user is allowed to
82911         #undef these macros selectively.
82912
82913         (reg_errcode_t): Update comment stating what other tables need
82914         to be consistent.
82915
82916         Rename the following enum values to obey POSIX requirements.
82917         The old names are still visible as macros.
82918         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
82919         is not defined, since GNU is supposed to be a superset of POSIX as
82920         much as possible, and since we want reg_errcode_t to be a signed
82921         type for implementation consistency.
82922         (_REG_NOERROR): Renamed from REG_NOERROR.
82923         (_REG_NOMATCH): Renamed from REG_NOMATCH.
82924         (_REG_BADPAT): Renamed from REG_BADPAT.
82925         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
82926         (_REG_ECTYPE): Renamed from REG_ECTYPE.
82927         (_REG_EESCAPE): Renamed from REG_EESCAPE.
82928         (_REG_ESUBREG): Renamed from REG_ESUBREG.
82929         (_REG_EBRACK): Renamed from REG_EBRACK.
82930         (_REG_EPAREN): Renamed from REG_EPAREN.
82931         (_REG_EBRACE): Renamed from REG_EBRACE.
82932         (_REG_BADBR): Renamed from REG_BADBR.
82933         (_REG_ERANGE): Renamed from REG_ERANGE.
82934         (_REG_ESPACE): Renamed from REG_ESPACE.
82935         (_REG_BADRPT): Renamed from REG_BADRPT.
82936         (_REG_EEND): Renamed from REG_EEND.
82937         (_REG_ESIZE): Renamed from REG_ESIZE.
82938         (_REG_ERPAREN): Renamed from REG_ERPAREN.
82939         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
82940         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
82941         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
82942         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
82943
82944         (_REG_RE_NAME, _REG_RM_NAME): New macros.
82945         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
82946         changed.  But support the old name if the new one is not defined
82947         and if _REGEX_SOURCE.
82948
82949         Change the following member names in struct re_pattern_buffer.
82950         The old names are still supported if !_REGEX_SOURCE.
82951         The new names are always supported, regardless of _REGEX_SOURCE.
82952         (re_buffer): Renamed from buffer.
82953         (re_allocated): Renamed from allocated.
82954         (re_used): Renamed from used.
82955         (re_syntax): Renamed from syntax.
82956         (re_fastmap): Renamed from fastmap.
82957         (re_translate): Renamed from translate.
82958         (re_can_be_null): Renamed from can_be_null.
82959         (re_regs_allocated): Renamed from regs_allocated.
82960         (re_fastmap_accurate): Renamed from fastmap_accurate.
82961         (re_no_sub): Renamed from no_sub.
82962         (re_not_bol): Renamed from not_bol.
82963         (re_not_eol): Renamed from not_eol.
82964         (re_newline_anchor): Renamed from newline_anchor.
82965
82966         Change the following member names in struct re_registers.
82967         The old names are still supported if !_REGEX_SOURCE.
82968         The new names are always supported, regardless of _REGEX_SOURCE.
82969         (rm_num_regs): Renamed from num_regs.
82970         (rm_start): Renamed from start.
82971         (rm_end): Renamed from end.
82972
82973         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
82974         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
82975         Prepend __ to parameter names.
82976
82977         Undo yesterday's changes.
82978
82979 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82980
82981         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
82982         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
82983         lib/regex.c.
82984
82985 2005-08-24  Jim Meyering  <jim@meyering.net>
82986
82987         Sync from coreutils.
82988         * m4/fcntl-safer.m4: New file.
82989
82990         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
82991         and object files for this module.
82992
82993 2005-08-24  Jim Meyering  <jim@meyering.net>
82994
82995         Sync from coreutils.
82996         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
82997
82998 2005-08-24  Jim Meyering  <jim@meyering.net>
82999
83000         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
83001         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
83002
83003 2005-08-24  Jim Meyering  <jim@meyering.net>
83004
83005         * modules/fcntl-safer: New module.
83006         * modules/fts (Depends-on): Add fcntl-safer.
83007         * MODULES.html.sh (File descriptor based Input/Output):
83008         Add fcntl-safer.
83009
83010 2005-08-24  Bruno Haible  <bruno@clisp.org>
83011
83012         Support for unit test modules.
83013         * modules/README: Mention tests modules.
83014         * modules/TEMPLATE-TESTS: New file.
83015         * gnulib-tool: New options --extract-tests-module, --with-tests and
83016         --tests-base (unused for the moment).
83017         (testsbase, inctests): New variables.
83018         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
83019         (func_verify_module): Exclude TEMPLATE-TESTS.
83020         (func_verify_nontests_module, func_verify_tests_module): New functions.
83021         (func_get_dependencies): Add implicit dependency for tests modules.
83022         (func_get_tests_module): New function.
83023         (func_modules_transitive_closure): When --with-tests was specified,
83024         include the unit tests as well, unless explicitly avoided.
83025         (func_emit_lib_Makefile_am): Ignore the tests modules here.
83026         (func_emit_tests_Makefile_am): New function.
83027         (func_create_testdir): When --with-tests was specified, emit a
83028         tests/ directory.
83029         * MODULES.html.sh (Future developments): Update.
83030
83031 2005-08-24  Bruno Haible  <bruno@clisp.org>
83032
83033         * modules/tls-tests: New file.
83034         * tests/test-tls.c: New file, from GNU gettext.
83035
83036 2005-08-24  Bruno Haible  <bruno@clisp.org>
83037
83038         * modules/lock-tests: New file.
83039         * tests/test-lock.c: New file, from GNU gettext.
83040
83041 2005-08-24  Bruno Haible  <bruno@clisp.org>
83042
83043         * lib/lock.h: Add multiple inclusion guard.
83044         * lib/tls.h: Add multiple inclusion guard.
83045
83046 2005-08-24  Bruno Haible  <bruno@clisp.org>
83047
83048         * gnulib-tool: Add support for the --aux-dir option to
83049         --create-testdir, --create-megatestdir, --test, --megatest.
83050         (func_create_testdir, func_create_megatestdir): Optionally emit a
83051         AC_CONFIG_AUX_DIR directive.
83052         (create-testdir, create-megatestdir, test, megatest): Provide a
83053         default value for $auxdir.
83054
83055 2005-08-24  Bruno Haible  <bruno@clisp.org>
83056
83057         * gnulib-tool (import): Use compound statement instead of subshell
83058         where possible.
83059
83060 2005-08-24  Bruno Haible  <bruno@clisp.org>
83061
83062         * gnulib-tool (import): Change --aux-dir default to "build-aux".
83063
83064 2005-08-24  Bruno Haible  <bruno@clisp.org>
83065
83066         * gnulib-tool (func_version): Update.
83067
83068 2005-08-24  Bruno Haible  <bruno@clisp.org>
83069
83070         * gnulib-tool (func_import, func_create_testdir,
83071         func_create_megatestdir): Quote all autoconf macro arguments.
83072
83073 2005-08-24  Bruno Haible  <bruno@clisp.org>
83074
83075         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
83076         option --force, because --force causes the aclocal.m4 of each
83077         subdirectory to be newer than the corresponding config.h.in.
83078
83079 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
83080
83081         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
83082         All contents moved to gl_REGEX.
83083         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
83084         assume that it does.
83085
83086 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
83087
83088         * lib/regex.h (REG_NOSYS)
83089         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
83090         Define, since POSIX requires it as of 2001.
83091         (_REG_ENOSYS)
83092         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
83093         New private symbol, used to keep the enum signed in all cases.
83094         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
83095         Youngman in
83096         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
83097
83098         * lib/regex_internal.c (re_string_skip_chars, register_state):
83099         (calc_state_hash):
83100         Remove forward decls; no longer needed now that we use prototypes.
83101         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
83102         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
83103         (clean_state_log_if_needed): Likewise.
83104
83105 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
83106
83107         * config/srclist.txt: Add glibc bugs 1231-1233.
83108
83109 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
83110
83111         Fix problems reported by Sam Steingold in
83112         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
83113         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
83114         assumed that reg_errcode_t is a signed type, which is not
83115         necessarily true if _XOPEN_SOURCE is not defined.
83116         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
83117         since some compilers warn about it otherwise.
83118
83119 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
83120
83121         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
83122         (init_word_char, create_initial_state, duplicate_node_closure):
83123         (fetch_token, peek_token_bracket, build_range_exp):
83124         (build_collating_symbol): Remove forward decls; no longer needed
83125         now that we use prototypes.
83126
83127         * lib/regcomp.c:
83128         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
83129         (re_compile_fastmap_iter, regcomp, regerror, regfree):
83130         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
83131         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
83132         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
83133         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
83134         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
83135         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
83136         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
83137         (build_range_exp, build_collating_symbol, parse_bracket_exp):
83138         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
83139         (build_charclass, build_charclass_op, fetch_number, create_tree):
83140         (create_token_tree, mark_opt_subexp, duplicate_tree):
83141         Use prototypes rather than old-style definitions.
83142
83143         * lib/regex_internal.c:
83144         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
83145         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
83146         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
83147         (re_string_reconstruct, re_string_peek_byte_case):
83148         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
83149         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
83150         (re_node_set_init_copy, re_node_set_add_intersect):
83151         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83152         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83153         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
83154         (re_acquire_state, re_acquire_state_context, register_state):
83155         (create_ci_newstate, create_cd_newstate, free_state):
83156         Likewise.
83157         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
83158         re_search_2):
83159         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
83160         (re_search_internal, prune_impossible_nodes):
83161         (acquire_init_state_context, check_matching, static):
83162         (check_halt_node_context, check_halt_state_context, proceed_next_node):
83163         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
83164         (update_regs, sift_states_backward, build_sifted_states):
83165         (clean_state_log_if_needed, merge_state_array):
83166         (update_cur_sifted_state, add_epsilon_src_nodes):
83167         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
83168         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
83169         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
83170         (find_recover_state, check_subexp_matching_top, transit_state_mb):
83171         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
83172         (check_arrival, check_arrival_add_next_nodes):
83173         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
83174         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
83175         (check_node_accept_bytes, check_node_accept, extend_buffers):
83176         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
83177         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
83178         (sift_ctx_init):
83179         Likewise.
83180
83181         * lib/regex_internal.h:
83182         (re_string_allocate, re_string_construct, re_string_reconstruct):
83183         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
83184         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
83185         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
83186         (re_string_context_at, re_string_peek_byte_case):
83187         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
83188         is defined, since we now use prototypes always.
83189
83190         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
83191         C89 or better.  All uses removed.
83192
83193 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
83194
83195         * config/srclist.txt: Add glibc bugs 1220-1227.
83196
83197 2005-08-20  Jim Meyering  <jim@meyering.net>
83198
83199         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
83200         of unused local, dfa.
83201
83202 2005-08-20  Bruno Haible  <bruno@clisp.org>
83203
83204         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
83205
83206 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83207
83208         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
83209         (re_node_set_insert_last, re_dfa_add_node):
83210         Rename local variables to avoid GCC shadowing warnings.
83211
83212 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83213
83214         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
83215         [defined lint]: Suppress bogus uninitialized-variable warnings.
83216
83217         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
83218         and let the caller return REG_ESPACE if out of space.  This
83219         removes an uninitialied-variable warning with GCC 4.0.1, and also
83220         avoids taking the address of a local variable.  All callers
83221         changed.
83222
83223 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83224
83225         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
83226         $LIBCSRC/posix/regexec.c.
83227         Add glibc bug 1217 for regcomp.c.
83228
83229 2005-08-19  Jim Meyering  <jim@meyering.net>
83230
83231         * lib/regexec.c (proceed_next_node): Redo local variables to
83232         avoid GCC shadowing warnings.
83233
83234 2005-08-18  Bruno Haible  <bruno@clisp.org>
83235
83236         * lib/strstr.c (strstr): Fix return value in multibyte case.
83237         * lib/strcasestr.c (strcasestr): Likewise.
83238
83239 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
83240
83241         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
83242
83243 2005-08-17  Jim Meyering  <jim@meyering.net>
83244
83245         Make the %s format (seconds since the epoch) work for a negative
83246         number and when used with a zero-padded field width, e.g. %015s.
83247
83248         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
83249         label so that it precedes the code to set `digits'.  Otherwise,
83250         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
83251         print `00-22'.  Now, it prints `-0022', as it should.
83252
83253 2005-08-17  Bruno Haible  <bruno@clisp.org>
83254
83255         * modules/strstr (Files): Add m4/mbrtowc.m4.
83256         (Depends-on): Add mbuiter.
83257
83258 2005-08-17  Bruno Haible  <bruno@clisp.org>
83259
83260         * modules/strcasestr: New file.
83261         * MODULES.html.sh (String handling, based on ANSI C 89): Add
83262         strcasestr.
83263
83264 2005-08-17  Bruno Haible  <bruno@clisp.org>
83265
83266         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
83267
83268 2005-08-17  Bruno Haible  <bruno@clisp.org>
83269
83270         * modules/mbuiter: New file.
83271         * MODULES.html.sh (Extended multibyte and wide character utilities):
83272         Add mbuiter.
83273
83274 2005-08-17  Bruno Haible  <bruno@clisp.org>
83275
83276         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
83277         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
83278
83279 2005-08-17  Bruno Haible  <bruno@clisp.org>
83280
83281         * m4/strcasestr.m4: New file.
83282
83283 2005-08-17  Bruno Haible  <bruno@clisp.org>
83284
83285         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
83286         * lib/strstr.c: Completely rewritten, with multibyte locale support.
83287
83288 2005-08-17  Bruno Haible  <bruno@clisp.org>
83289
83290         * lib/strcasestr.h: New file.
83291         * lib/strcasestr.c: New file.
83292
83293 2005-08-17  Bruno Haible  <bruno@clisp.org>
83294
83295         * lib/strcasecmp.c: Use mbuiter.h.
83296
83297 2005-08-17  Bruno Haible  <bruno@clisp.org>
83298
83299         * lib/mbuiter.h: New file.
83300
83301 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
83302
83303         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
83304         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
83305         and gl_GETOPT are both invoked via different paths (as happens
83306         with GNU tar CVS because it uses both argp and getopt), the former
83307         wins.
83308
83309 2005-08-16  Bruno Haible  <bruno@clisp.org>
83310
83311         * modules/tls: New file.
83312         * MODULES.html.sh (Multithreading): Add tls.
83313
83314 2005-08-16  Bruno Haible  <bruno@clisp.org>
83315
83316         * modules/strnlen1: New file.
83317         * MODULES.html.sh (String handling): Add strnlen1.
83318
83319 2005-08-16  Bruno Haible  <bruno@clisp.org>
83320
83321         * modules/strcase (Files): Add m4/mbrtowc.m4.
83322         (Depends-on): Add strnlen1, mbchar.
83323
83324 2005-08-16  Bruno Haible  <bruno@clisp.org>
83325
83326         * modules/mbiter: New file.
83327         * MODULES.html.sh (Extended multibyte and wide character utilities):
83328         Add mbiter.
83329
83330 2005-08-16  Bruno Haible  <bruno@clisp.org>
83331
83332         * modules/mbfile: New file.
83333         * MODULES.html.sh (Extended multibyte and wide character utilities):
83334         Add mbfile.
83335
83336 2005-08-16  Bruno Haible  <bruno@clisp.org>
83337
83338         * modules/mbchar: New file.
83339         * MODULES.html.sh (Extended multibyte and wide character utilities):
83340         New section.
83341
83342 2005-08-16  Bruno Haible  <bruno@clisp.org>
83343
83344         * m4/tls.m4: New file, from GNU gettext.
83345
83346 2005-08-16  Bruno Haible  <bruno@clisp.org>
83347
83348         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
83349         always.
83350         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
83351
83352 2005-08-16  Bruno Haible  <bruno@clisp.org>
83353
83354         * m4/mbiter.m4: New file.
83355
83356 2005-08-16  Bruno Haible  <bruno@clisp.org>
83357
83358         * m4/mbfile.m4: New file.
83359
83360 2005-08-16  Bruno Haible  <bruno@clisp.org>
83361
83362         * m4/mbchar.m4: New file.
83363
83364 2005-08-16  Bruno Haible  <bruno@clisp.org>
83365
83366         * lib/tls.h: New file, from GNU gettext.
83367         * lib/tls.c: New file, from GNU gettext.
83368
83369 2005-08-16  Bruno Haible  <bruno@clisp.org>
83370
83371         * lib/strnlen1.h: New file.
83372         * lib/strnlen1.c: New file.
83373
83374 2005-08-16  Bruno Haible  <bruno@clisp.org>
83375
83376         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
83377         (mbi_init): Update.
83378         (mbi_avail, mbi_advance): Let the iteration end before the terminating
83379         NUL byte, not after it.
83380
83381 2005-08-16  Bruno Haible  <bruno@clisp.org>
83382
83383         * lib/strcase.h (strcasecmp): Add note in comments.
83384         * lib/strncasecmp.c: Use code from strcasecmp.c.
83385         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
83386         (strcasecmp): Work correctly in multibyte locales.
83387
83388 2005-08-16  Bruno Haible  <bruno@clisp.org>
83389
83390         * lib/mbiter.h: New file.
83391
83392 2005-08-16  Bruno Haible  <bruno@clisp.org>
83393
83394         * lib/mbfile.h: New file.
83395
83396 2005-08-16  Bruno Haible  <bruno@clisp.org>
83397
83398         * lib/mbchar.h: New file.
83399         * lib/mbchar.c: New file.
83400
83401 2005-08-16  Bruno Haible  <bruno@clisp.org>
83402
83403         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
83404         the valid ones. Makes the comparison operations transitive:
83405         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
83406         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
83407
83408 2005-08-15  Simon Josefsson  <jas@extundo.com>
83409
83410         * modules/ssize_t (License): Change to 'unlimited'.
83411
83412         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
83413
83414 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
83415
83416         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
83417         Add comments for each pending glibc patch.
83418
83419 2005-08-15  Bruno Haible  <bruno@clisp.org>
83420
83421         * lib/regex.h (__restrict_arr): Don't define to __restrict if
83422         __cplusplus is defined.
83423
83424 2005-08-14  Jim Meyering  <jim@meyering.net>
83425
83426         Sync from coreutils.
83427
83428         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
83429         Use the hash-table-based cycle-detection code not just when
83430         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
83431         Reported by James Youngman in
83432         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
83433         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
83434         FTS_TIGHT_CYCLE_CHECK.
83435         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
83436         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
83437         once again.
83438         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
83439         * lib/fts.c (fd_safer): Remove decl.
83440         Include fcntl--.h rather than unistd-safer.h
83441         (fts_safe_changedir): Don't call fd_safer; no longer needed
83442         now that we include fcntl--.h.
83443
83444 2005-08-12  Simon Josefsson  <jas@extundo.com>
83445
83446         * modules/getndelim2: Use ssize_t module.
83447         * modules/getnline: Likewise.
83448         * modules/safe-read: Likewise.
83449         * modules/xreadlink: Likewise.
83450
83451         * modules/ssize_t: New file.
83452
83453 2005-08-12  Simon Josefsson  <jas@extundo.com>
83454
83455         * m4/readline.m4: Look for termcap, curses or ncurses if required.
83456
83457 2005-08-12  Simon Josefsson  <jas@extundo.com>
83458
83459         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83460         ssize_t.
83461
83462 2005-08-12  Simon Josefsson  <jas@extundo.com>
83463
83464         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
83465         readline, getdelim and check_version.
83466         (Support for systems lacking ISO C 99: Sizes of integer types):
83467         Add size_max.
83468
83469 2005-08-12  Bruno Haible  <bruno@clisp.org>
83470
83471         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
83472
83473 2005-08-11  Simon Josefsson  <jas@extundo.com>
83474
83475         * modules/readline: New file.
83476
83477         * modules/strnlen (Files): Add strnlen.h.
83478
83479 2005-08-11  Simon Josefsson  <jas@extundo.com>
83480
83481         * m4/readline.m4: New file.
83482
83483 2005-08-11  Simon Josefsson  <jas@extundo.com>
83484
83485         * lib/readline.h, readline.c: New file.
83486
83487 2005-08-11  Simon Josefsson  <jas@extundo.com>
83488
83489         * doc/gnulib.texi (Initial import, Finishing touches): Mention
83490         gl_AVOID.
83491
83492 2005-08-11  Bruno Haible  <bruno@clisp.org>
83493
83494         * lib/strnlen.h (strnlen): Change parameter name to match comment.
83495
83496 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
83497
83498         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
83499
83500 2005-08-10  Simon Josefsson  <jas@extundo.com>
83501
83502         * tests/test-iconvme.c: New file.
83503
83504 2005-08-10  Simon Josefsson  <jas@extundo.com>
83505
83506         * m4/strnlen.m4: New file.
83507
83508         * m4/strndup.m4: Don't check for strnlen declaration, done in
83509         strnlen.m4.
83510
83511 2005-08-10  Simon Josefsson  <jas@extundo.com>
83512
83513         * lib/strndup.c: Use strnlen.h.
83514
83515         * lib/strnlen.h: New file.
83516
83517 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83518
83519         * README: Typos.
83520
83521 2005-08-02  Simon Josefsson  <jas@extundo.com>
83522
83523         * modules/readline: New file.
83524
83525 2005-08-02  Simon Josefsson  <jas@extundo.com>
83526
83527         * modules/getdelim: New file.
83528
83529         * modules/getline: Rewrite, don't use getndelim2.
83530
83531 2005-08-02  Simon Josefsson  <jas@extundo.com>
83532
83533         * m4/getline.m4: Separate out getdelim stuff into separate module.
83534
83535         * m4/getdelim.m4: New file.
83536
83537 2005-08-02  Simon Josefsson  <jas@extundo.com>
83538
83539         * lib/getline.h, getline.c: Rewrite.
83540
83541         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
83542
83543 2005-07-31  Bruno Haible  <bruno@clisp.org>
83544
83545         * lib/lock.h (gl_lock_initializer): New macro.
83546         (gl_lock_define_initialized): Use it.
83547         (gl_rwlock_initializer): New macro.
83548         (gl_rwlock_define_initialized): Use it.
83549         (gl_recursive_lock_initializer): New macro.
83550         (gl_recursive_lock_define_initialized): Use it.
83551
83552 2005-07-30  Karl Berry  <karl@gnu.org>
83553
83554         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
83555         Report from Ben Pfaff, regarding getopt.
83556
83557 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
83558
83559         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
83560         normal way.
83561         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
83562         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
83563         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
83564         (gl_GETOPT): Use the new macros.  Most of the implementation
83565         is moved to the new macros.  This is for programs like Emacs
83566         that don't want all the functionality of gl_GETOPT.
83567
83568 2005-07-26  Bruno Haible  <bruno@clisp.org>
83569
83570         * m4/lock.m4: Update from GNU gettext.
83571
83572 2005-07-26  Bruno Haible  <bruno@clisp.org>
83573
83574         * lib/lock.h: Update from GNU gettext.
83575         * lib/lock.c: Update from GNU gettext.
83576
83577 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
83578
83579         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
83580         obsolescent AC_TRY_RUN.  Include the default includes files, for
83581         'exit'.
83582
83583 2005-07-24  Bruno Haible  <bruno@clisp.org>
83584
83585         * modules/visibility: New file.
83586         * MODULES.html.sh (Misc): Add visibility.
83587
83588 2005-07-24  Bruno Haible  <bruno@clisp.org>
83589
83590         * m4/visibility.m4: New file.
83591
83592 2005-07-24  Bruno Haible  <bruno@clisp.org>
83593
83594         * doc/visibility.texi: New file.
83595
83596 2005-07-22  Bruno Haible  <bruno@clisp.org>
83597
83598         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
83599         $(ALLOCA_H), redundant through BUILT_SOURCES.
83600         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
83601         redundant through BUILT_SOURCES.
83602         * modules/byteswap (Makefile.am): Remove explicit dependency on
83603         $(BYTESWAP_H), redundant through BUILT_SOURCES.
83604         * modules/fnmatch (Makefile.am): Remove explicit dependency on
83605         $(FNMATCH_H), redundant through BUILT_SOURCES.
83606         * modules/getopt (Makefile.am): Remove explicit dependency on
83607         $(GETOPT_H), redundant through BUILT_SOURCES.
83608         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
83609         redundant through BUILT_SOURCES.
83610         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
83611         redundant through BUILT_SOURCES.
83612         * modules/stdbool (Makefile.am): Remove explicit dependency on
83613         $(STDBOOL_H), redundant through BUILT_SOURCES.
83614         * modules/stdint (Makefile.am): Remove explicit dependency on
83615         $(STDINT_H), redundant through BUILT_SOURCES.
83616         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
83617         Remove explicit dependency on $(SYSEXITS_H).
83618         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
83619
83620 2005-07-18  Simon Josefsson  <jas@extundo.com>
83621
83622         * lib/check-version.c (check_version): Accept identical versions too.
83623
83624 2005-07-18  Bruno Haible  <bruno@clisp.org>
83625
83626         * modules/lock: New file.
83627         * MODULES.html.sh (Multithreading): New section.
83628
83629 2005-07-18  Bruno Haible  <bruno@clisp.org>
83630
83631         * m4/lock.m4: New file, from GNU gettext.
83632
83633 2005-07-18  Bruno Haible  <bruno@clisp.org>
83634
83635         * lib/lock.h: New file, from GNU gettext.
83636         * lib/lock.c: New file, from GNU gettext.
83637
83638 2005-07-18  Bruno Haible  <bruno@clisp.org>
83639
83640         * lib/lock.h (gl_once_t): New type.
83641         (gl_once_define, gl_once): New macros.
83642         * lib/lock.c (fresh_once): New variable.
83643         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
83644         functions.
83645
83646 2005-07-16  Simon Josefsson  <jas@extundo.com>
83647
83648         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
83649         workaround, suggested by Bruno.
83650
83651 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83652
83653         * modules/xalloc (Depends-on): Add xalloc-die.
83654         * modules/xvasprintf (Depends-on): Add xalloc-die.
83655
83656 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83657
83658         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
83659         with a minor change.
83660
83661 2005-07-15  Bruno Haible  <bruno@clisp.org>
83662
83663         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
83664         When using lib/poll.c, define poll as rpl_poll.
83665
83666 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
83667
83668         * modules/argp (Depends-on): Remove unlocked-io.
83669
83670 2005-07-14  Derek Price  <derek@ximbiot.com>
83671
83672         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
83673         for glob symlink bug.
83674
83675 2005-07-14  Bruno Haible  <bruno@clisp.org>
83676
83677         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
83678         Instead, test for *_unlocked function declarations directly.
83679
83680 2005-07-11  Simon Josefsson  <jas@extundo.com>
83681
83682         * modules/size_max: New file.
83683
83684         * modules/xsize: Depend on size_max module for size_max.m4.
83685
83686 2005-07-11  Simon Josefsson  <jas@extundo.com>
83687
83688         * lib/size_max.h: New file.
83689
83690 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
83691
83692         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
83693         copyright symbol and the year.
83694         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
83695         (version_etc_va): Use parameterized copyright notice.
83696         Reword to conform to the current GNU coding standards.
83697
83698 2005-07-11  Karl Berry  <karl@gnu.org>
83699
83700         * doc/gnulib.texi (Quoting): new node.
83701         (Initial import): more info, from Patrice.
83702
83703 2005-07-11  Bruno Haible  <bruno@clisp.org>
83704
83705         * gnulib-tool (func_usage): Document option --avoid.
83706         (Command line options): Handle --avoid.
83707         (func_acceptable): New function.
83708         (func_modules_transitive_closure): Use it.
83709
83710 2005-07-11  Bruno Haible  <bruno@clisp.org>
83711
83712         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
83713         Reported by Jim Meyering.
83714
83715 2005-07-10  Bruno Haible  <bruno@clisp.org>
83716
83717         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
83718         Needed when size_t is smaller than 'unsigned int'.
83719         Reported by Paul Eggert.
83720
83721 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83722
83723         * modules/argp (Depends-on): Add unlocked-io
83724
83725 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83726
83727         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
83728         block of defines.
83729
83730 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
83731
83732         * config/srclist.txt: Comment out regcomp.c, since we have a porting
83733         fix now.
83734
83735 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
83736         and Paul Eggert  <eggert@cs.ucla.edu>
83737
83738         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
83739         in wint_t, not wchar_t.  Remove now-unnecessary cast.
83740
83741 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83742
83743         * modules/regex (Files): Add lib/regex_internal.c,
83744         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
83745         (Depends-on): Add extensions.
83746         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
83747
83748 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83749
83750         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
83751         pathconf.
83752         * m4/same.m4 (gl_SAME): Likewise.
83753         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
83754
83755         * m4/regex.m4: Adjust to new libc regex implementation.
83756         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
83757         all the .c and .h parts of (the new) regex.
83758         Quote the m4 stuff better.
83759         Check for RE_ICASE bug of old gnulib.
83760         Check for REG_STARTEND of recent libc.
83761         Rename local variables from jm_* to gl_*.
83762         Quote operand of "test -f".
83763         Say "recent enough" version of libc, not "version 2".
83764         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
83765         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
83766         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
83767         Remove check for btowc, isascii.
83768         Require AM_LANGINFO_CODESET.
83769
83770 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83771
83772         * lib/regex.c, regex.h: Sync from libc.
83773         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
83774         * lib/regexec.c:
83775         New files, synced from libc, except that regex_internal.h
83776         currently has a small porting fix.
83777
83778 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83779
83780         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
83781         regex_internal.c, regexec.c.
83782         Add regex_internal.h too, but as a comment, since the libc version
83783         is currently broken in gnulib mode.
83784
83785 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
83786
83787         Support programs like Emacs that use gnulib but not gettext.
83788         * MODULES.html.sh (Internationalization functions): Add gettext-h.
83789         * modules/gettext-h: New file.
83790         * modules/gettext (Files): Remove lib/gettext.h.
83791         (Depends-on): Add gettext-h.
83792         (Makefile.am): Remove lib_SOURCES.
83793         * modules/argmatch, modules/c-stack, modules/closeout:
83794         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
83795         * modules/execute, modules/file-type, modules/getaddrinfo:
83796         * modules/getopt, modules/human, modules/javacomp:
83797         * modules/javaexec, modules/mkdir-p, modules/obstack:
83798         * modules/openat, modules/pagealign_alloc, modules/pipe:
83799         * modules/quotearg, modules/regex, modules/rpmatch:
83800         * modules/unicodeio, modules/userspec, modules/version-etc:
83801         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
83802         * modules/xsetenv:
83803         Depend on gettext-h, not gettext.
83804
83805 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
83806
83807         * gnulib-tool (func_import): Add support for 'public domain' license.
83808         * modules/alloca, modules/atexit, modules/memmove:
83809         Now public domain, not GPL.
83810         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
83811         * modules/realloc, modules/strerror, modules/strtod:
83812         Now LGPL, not GPL.
83813
83814 2005-07-05  Bruno Haible  <bruno@clisp.org>
83815
83816         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
83817         autoconf CVS. Needed for mingw.
83818
83819 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83820
83821         Remove the dependency of the strftime module on the tzset module.
83822         * modules/strftime (Depends-on): Remove dependency on tzset.
83823
83824 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83825
83826         Remove the dependency of the strftime module on the tzset module.
83827         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
83828         gl_FUNC_TZSET_CLOBBER.
83829
83830 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83831
83832         Remove the dependency of the strftime module on the tzset module.
83833         * lib/strftime.c (my_strftime)
83834         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
83835         Copy the input structure, to work around some of the bug with
83836         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
83837         Solaris releases, you should also use the tzset module, but we won't
83838         require it as a dependency any more since we don't want LGPLed code
83839         to depend on GPLed code.
83840
83841 2005-07-02  Jim Meyering  <jim@meyering.net>
83842
83843         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
83844         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
83845         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
83846         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
83847
83848 2005-07-02  Jim Meyering  <jim@meyering.net>
83849
83850         * lib/backupfile.c (backup_args): Change a `0' to NULL.
83851
83852 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
83853
83854         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
83855         declares only 'struct timespec;' (!).
83856
83857 2005-07-01  Jim Meyering  <jim@meyering.net>
83858
83859         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
83860         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
83861         * lib/save-cwd.c, tempname.c:
83862         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83863         and don't include <sys/file.h>).
83864
83865 2005-06-29  Jim Meyering  <jim@meyering.net>
83866
83867         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
83868         type name.  Use the variable name instead.
83869         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
83870         Likewise.
83871
83872 2005-06-28  Simon Josefsson  <jas@extundo.com>
83873
83874         * modules/check-version (Files): Add check-version.m4.
83875
83876 2005-06-28  Simon Josefsson  <jas@extundo.com>
83877
83878         * m4/check-version.m4: New file, suggested by Jim Meyering
83879         <jim@meyering.net>.
83880
83881 2005-06-28  Simon Josefsson  <jas@extundo.com>
83882
83883         * lib/check-version.h, lib/check-version.c: New files.
83884
83885 2005-06-28  Simon Josefsson  <jas@extundo.com>
83886
83887         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
83888         collision with global variable.  Better indentation.  Don't
83889         increment buffer pointer beyond buffer end.  Based on comments
83890         from Paul Eggert <eggert@cs.ucla.edu>.
83891
83892         * lib/base64.h: Indent.
83893
83894 2005-06-28  Simon Josefsson  <jas@extundo.com>
83895
83896         * doc/gnulib.texi (Library version handling): New section.
83897
83898 2005-06-28  Jim Meyering  <jim@meyering.net>
83899
83900         * check-module (find_included_lib_files): Hard-code another
83901         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
83902         but modules/fts-lgpl (correctly) does not list those files.
83903
83904         * modules/canonicalize (Files): Add lib/pathmax.h.
83905
83906 2005-06-25  Simon Josefsson  <jas@extundo.com>
83907
83908         * modules/check-version: New file.
83909
83910 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
83911
83912         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
83913         initializer of struct addrinfo, as an indication that we don't
83914         care how many members the structure has.
83915
83916 2005-06-24  Derek Price  <derek@ximbiot.com>
83917         and Bruno Haible  <bruno@clisp.org>
83918
83919         Remove stat module & update lstat.
83920         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
83921         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83922         * m4/stat.m4: Remove this file.
83923
83924 2005-06-24  Derek Price  <derek@ximbiot.com>
83925         and Bruno Haible  <bruno@clisp.org>
83926
83927         Remove stat module & update lstat.
83928         * lib/stat.c: Remove this file...
83929         (slash_aware_lstat): ...moving this content and its support...
83930         * lib/lstat.c (rpl_lstat): ...into here.
83931         * lib/lstat.h: New file.
83932
83933 2005-06-24  Derek Price  <derek@ximbiot.com>
83934         and Bruno Haible  <bruno@clisp.org>
83935
83936         Remove stat module & update lstat.
83937         * config/srclist.txt (libc sources): Remove stat.
83938
83939 2005-06-24  Derek Price  <derek@ximbiot.com>
83940         and Bruno Haible  <bruno@clisp.org>
83941
83942         Remove stat module & update lstat.
83943         * MODULES.html.sh (stat): Remove.
83944         * MODULES.html: Regenerated.
83945         * modules/lstat (Description): Correct function name.
83946         (Files): Add "lstat.h".
83947         (Depends-on): Remove stat, add xalloc, stat-macros.
83948         * modules/stat: Remove this file.
83949         (Include): Add "lstat.h", remove <sys/stat.h>.
83950
83951 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
83952
83953         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
83954         (ranged_convert): Don't save conversion in a temporary struct.
83955         This causes a warning with GCC 4.0.0, and anyway in the typical
83956         case it's not worth the extra 100 bytes or so of code.
83957         (ranged_convert, __mktime_internal): When calling a function via a
83958         pointer P, use P () rather than (*P) (), as we now assume C89 or
83959         better.
83960
83961 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83962
83963         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
83964         "who -r" failed to give output.  Problem reported by Tim Waugh.
83965
83966         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
83967         (xcalloc): Use it to avoid needless tests.
83968         Problem reported by Jim Meyering.
83969
83970 2005-06-20  Derek Price  <derek@ximbiot.com>
83971
83972         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
83973         unnecessary for Autoconfs > 2.59c.
83974
83975 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83976
83977         * lib/argp.h (__option_is_short): Check upper limit of
83978         __key. Isprint() requires its argument to have the value
83979         of an unsigned char or EOF.
83980
83981 2005-06-16  Jim Meyering  <jim@meyering.net>
83982
83983         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
83984         when either N or S is zero.
83985
83986 2005-06-16  Derek Price  <derek@ximbiot.com>
83987
83988         * m4/bison.m4: Declare YACC & YFLAGS precious.
83989
83990 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
83991
83992         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
83993         multibyte string or pattern, fall back on unibyte matching.
83994         Problem reported by James Youngman.
83995
83996 2005-06-08  Bruno Haible  <bruno@clisp.org>
83997
83998         * modules/csharpcomp: New file.
83999         * MODULES.html.sh (C#): Add csharpcomp.
84000
84001 2005-06-08  Bruno Haible  <bruno@clisp.org>
84002
84003         * m4/csharpcomp.m4: New file, from GNU gettext.
84004
84005 2005-06-08  Bruno Haible  <bruno@clisp.org>
84006
84007         * lib/csharpcomp.h: New file, from GNU gettext.
84008         * lib/csharpcomp.c: New file, from GNU gettext.
84009         * lib/csharpcomp.sh.in: New file, from GNU gettext.
84010
84011 2005-06-08  Bruno Haible  <bruno@clisp.org>
84012
84013         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
84014         warning on mingw.
84015
84016 2005-06-07  Derek Price  <derek@ximbiot.com>
84017
84018         Sync from CVS.
84019         * lib/glob_.h: Indent nested #ifdef.
84020
84021 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
84022
84023         Sync from coreutils.
84024         Use "file name" when talking about file names, instead of "filename"
84025         or "path", as per the GNU coding standards.
84026         * lib/mkdir-p.c: Renamed from makepath.c.
84027         (make_dir_parents): Renamed from make_path.  All callers changed.
84028         * lib/mkdir-p.h: Likewise.  All includers changed.
84029         * lib/filenamecat.c: Renamed from path-concat.c.
84030         (file_name_concat): Renamed from path_concat.  All callers changed.
84031         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
84032         * lib/filenamecat.h: Likewise.  All includers changed.
84033         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
84034         in comments or local variable names.
84035         * lib/basename.c: Likewise.
84036         * lib/canonicalize.c, canonicalize.h: Likewise.
84037         * lib/dirname.c, dirname.h: Likewise.
84038         * lib/euidaccess.c: Likewise.
84039         * lib/exclude.c: Likewise
84040         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
84041         * lib/fsusage.c, fsuage.h: Likewise.
84042         * lib/fts.c, fts_.h: Likewise.
84043         * lib/getcwd.c: Likewise.
84044         * lib/getloadavg.c: Likewise.
84045         * lib/mkstemp.c: Likewise.
84046         * lib/mountlist.c, mountlist.h: Likewise.
84047         * lib/openat.c, openat.h: Likewise.
84048         * lib/readlink-stub.c: Likewise.
84049         * lib/readutmp.c, readutmp.h: Likewise.
84050         * lib/rename.c: Likewise.
84051         * lib/rmdir.c: Likewise.
84052         * lib/same.c: Likewise.
84053         * lib/savedir.c: Likewise.
84054         * lib/stripslash.c: Likewise.
84055         * lib/tempname.c: Likewise.
84056         * lib/xreadlink.c: Likewise.
84057         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
84058         All uses changed.
84059         * lib/exclude.h: Likewise.
84060
84061         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
84062         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
84063         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
84064         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
84065         * lib/pathmax.h: Include <limits.h> unconditionally, since other
84066         files have been getting away with it for years (MORE/BSD 4.3
84067         is extinct now).
84068         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
84069         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
84070
84071         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
84072         Define to 256, not 255, as per modern POSIX.
84073
84074 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
84075
84076         Sync from coreutils.
84077         Use "file name" when talking about file names, instead of "filename"
84078         or "path", as per the GNU coding standards.
84079         * MODULES.html.sh: mkdir-p renamed from makepath.
84080         filenamecat renamed from path-concat.
84081         * modules/filenamecat: Renamed from modules/path-concat.
84082         (Files): filenamecat.h and filenamecat.c renamed from
84083         path-concat.h and path-concat.c.
84084         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
84085         (Include): filenamecat.h, not path-concat.h.
84086         * modules/mkdir-p: Renamed from modules/makepath.
84087         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
84088         makepath.c.
84089         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
84090         (Include): mkdir-p.h, not makepath.h.
84091
84092 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
84093
84094         Sync from coreutils.
84095         * m4/mkdir-p.m4: Renamed from makepath.m4.
84096         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
84097         Rename files from makepath.c to mkdir-p.c, and from
84098         makepath.h to mkdir-p.h.
84099         * m4/filenamecat.m4: Renamed from path-concat.m4.
84100         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
84101         Rename files from path-concat.c to filenamecat.c,
84102         and from path-concat.h to filenamecat.h.
84103         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
84104         "file name" in local variables or comments.
84105         * m4/rename.m4: Likewise.
84106
84107 2005-06-01  Bruno Haible  <bruno@clisp.org>
84108
84109         * modules/csharpexec: New file.
84110         * MODULES.html.sh (C#): New section.
84111
84112 2005-06-01  Bruno Haible  <bruno@clisp.org>
84113
84114         * m4/csharp.m4: New file, from GNU gettext.
84115         * m4/csharpexec.m4: New file, from GNU gettext.
84116
84117 2005-06-01  Bruno Haible  <bruno@clisp.org>
84118
84119         * lib/csharpexec.h: New file, from GNU gettext.
84120         * lib/csharpexec.c: New file, from GNU gettext.
84121         * lib/csharpexec.sh.in: New file, from GNU gettext.
84122
84123 2005-05-31  Derek Price  <derek@ximbiot.com>
84124             Paul Eggert  <eggert@cs.ucla.edu>
84125
84126         Sync from cvs.
84127         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
84128
84129 2005-05-31  Derek Price  <derek@ximbiot.com>
84130             Paul Eggert  <eggert@cs.ucla.edu>
84131
84132         Sync from cvs.
84133         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
84134
84135 2005-05-29  Derek Price  <derek@ximbiot.com>
84136
84137         * config/srclist.txt (glob_.h, glob.c): Add these files.
84138
84139 2005-05-29  Derek Price  <derek@ximbiot.com>
84140
84141         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
84142         * modules/glob: New file.
84143         * modules/getlogin_r: Add link to POSIX spec in description.
84144
84145 2005-05-29  Derek Price  <derek@ximbiot.com>
84146             Paul Eggert  <eggert@cs.ucla.edu>
84147
84148         * m4/glob.m4: New file.
84149
84150 2005-05-29  Derek Price  <derek@ximbiot.com>
84151             Paul Eggert  <eggert@cs.ucla.edu>
84152
84153         * lib/glob_.h, lib/glob.c: New files.
84154
84155 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84156
84157         * modules/fts (Files): Remove m4/inttypes-pri.m4.
84158         * modules/fts-lgpl (Depends-on): Remove gettext.
84159
84160 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84161
84162         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
84163         and don't require gt_INTTYPES_PRI.
84164
84165 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84166
84167         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
84168
84169         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
84170         the configuration hassle isn't worth it.
84171         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
84172         (LONGEST_MODIFIER, PRIuMAX): Remove.
84173
84174 2005-05-27  Bruno Haible  <bruno@clisp.org>
84175
84176         * lib/getlogin_r.h: Remove second include of <stddef.h>.
84177
84178 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
84179
84180         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
84181         _POSIX_PTHREAD_SEMANTICS for Solaris.
84182
84183 2005-05-25  Derek Price  <derek@ximbiot.com>
84184
84185         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
84186
84187 2005-05-25  Derek Price  <derek@ximbiot.com>
84188             Paul Eggert  <eggert@cs.ucla.edu>
84189
84190         * modules/getlogin_r, m4/getlogin_r.m4: New files.
84191         * lib/getlogin_r.c, getlogin_r.h: New files.
84192
84193 2005-05-25  Bruno Haible  <bruno@clisp.org>
84194             Derek Price  <derek@ximbiot.com>
84195
84196         * lib/getlogin_r.h: Simplify API documentation.
84197
84198 2005-05-23  Derek Price  <derek@ximbiot.com>
84199
84200         * modules/minmax (Files): Add m4/minmax.m4.
84201         (configure.ac): Add gl_MINMAX.
84202
84203 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
84204
84205         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
84206         so that unistd-safer.h (GPL'ed code) need not be included.
84207
84208 2005-05-22  Bruno Haible  <bruno@clisp.org>
84209
84210         * m4/minmax.m4: New file.
84211         Based on a patch by Derek Price <derek@ximbiot.com>.
84212
84213 2005-05-22  Bruno Haible  <bruno@clisp.org>
84214
84215         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
84216         (INT64_MIN): Fix definition.
84217         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
84218
84219         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
84220         NEED_SIGNED_INT_TYPES.
84221
84222         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
84223         HAVE_SYSTEM_INTTYPES.
84224
84225 2005-05-22  Bruno Haible  <bruno@clisp.org>
84226
84227         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
84228         Also include <sys/param.h> if it defines MIN, MAX.
84229         Based on a patch by Derek Price <derek@ximbiot.com>.
84230
84231 2005-05-21  Jim Meyering  <jim@meyering.net>
84232
84233         * modules/fts (Files): Add m4/inttypes-pri.m4.
84234         (Depends-on): Add lstat and remove gettext.  Alphabetize.
84235
84236 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84237
84238         New fts module.
84239         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
84240         (setup_dir, free_dir): New functions.
84241         (enter_dir, leave_dir): Define trivial
84242         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
84243         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
84244         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
84245         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
84246         Move to fts-cycle.c.
84247         (fts_open): Use setup_dir.
84248         (fts_close): Use free_dir.
84249         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
84250         This adds a label and some gotos, but the alternatives were messier.
84251         Check for memory allocation failure when entering a dir.
84252         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
84253         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
84254         (FTS): New member fts_cycle, that is a union that contains the
84255         old active_dir_ht and cycle_state.  All uses changed to mention
84256         fts_cycle.ht and fts_cycle.state.
84257         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
84258         fts.c, with the following changes:
84259         (setup_dir, free_dir): New functions.
84260         (enter_dir): Now returns bool.  Return true if successful, false
84261         if memory exhausted.  All callers changed.
84262         Do not bother partly cleaning up on
84263         memory allocation failure; that is free_dir's job.
84264         However, free ad if hash_insert fails, to avoid memory leak.
84265         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
84266         fts->fts_options to see which union member to use.
84267
84268 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84269
84270         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
84271         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
84272
84273 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84274
84275         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
84276
84277 2005-05-20  Jim Meyering  <jim@meyering.net>
84278
84279         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
84280         Now a macro, to pacify GCC.
84281
84282 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
84283
84284         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
84285         of -1.
84286
84287 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
84288
84289         * lib/chown.c (rpl_chown): Return -1 on failure.
84290
84291 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
84292
84293         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
84294         Don't check for stddef.h.
84295         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
84296         don't use its results.
84297         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
84298         since we include them unconditionally.  Don't require
84299         AM_STDBOOL_H, since stdbool is a prerequisite.
84300         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
84301         since we assume C89 or better.
84302         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
84303         as we don't use their results.
84304         Don't check for fchdir, memmove, memset, strrchr, as we use
84305         them unconditionally.
84306         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
84307         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
84308
84309 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
84310
84311         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
84312         Include <stddef.h> unconditionally, since we assume C89 now.
84313         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
84314         * lib/fts.c: Include fts_.h first, to check interface.
84315         Do not include intprops.h; no longer needed.
84316         Include cycle-check.h and hash.h, since fts_.h no longer does.
84317         Remove unnecessary casts of closedir to void.
84318         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
84319         decide whether to decrement nlinks.
84320         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
84321         (FTS): Use struct hash_table * instead of Hash_table, so that
84322         we no longer need to include hash.h here.
84323
84324 2005-05-18  Jim Meyering  <jim@meyering.net>
84325
84326         * modules/dirfd (License): Change to LGPL.  Most of the code
84327         is already in the public domain.
84328
84329 2005-05-18  Jim Meyering  <jim@meyering.net>
84330
84331         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
84332         Reported by Yoann Vandoorselaere.
84333
84334 2005-05-17  Jim Meyering  <jim@meyering.net>
84335
84336         * m4/fts.m4: New file, from coreutils.
84337
84338 2005-05-17  Jim Meyering  <jim@meyering.net>
84339
84340         * lib/fts.c, lib/fts_.h: New files, from coreutils.
84341
84342 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84343
84344         Sync from coreutils.
84345         * m4/unlinkdir.m4: New file.
84346
84347 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84348
84349         Sync from coreutils.
84350         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
84351         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
84352         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
84353         White space changes only.
84354         * lib/makepath.c (make_path): Port to hosts where leading "//" is
84355         special.
84356         * lib/yesno.c: Include getline.h, not ctype.h.
84357         (yesno): Don't remove leading white space; POSIX doesn't allow it.
84358         Use getline to remove arbitrary restriction on response length.
84359
84360 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84361
84362         * config/srclist-update: Spell out "Street" in FSF postal
84363         mail address; this is the style the FSF seems to prefer.
84364
84365         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
84366         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
84367         this updates FSF postal mail address.
84368
84369         Sync from coreutils.
84370         * modules/unlinkdir: New file.
84371         * modules/yesno (Depends-on): Add getline.
84372         * MODULES.html.sh (File system functions): Add unlinkdir.
84373
84374 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84375
84376         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
84377         lib/strsep.h:
84378         Change the initial comment to refer to GPL, not LGPL.
84379         gnulib-tool will change it to LGPL as needed.
84380
84381         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
84382         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
84383         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
84384         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
84385         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
84386         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
84387         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
84388         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
84389         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
84390         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
84391         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
84392         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
84393         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
84394         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
84395         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
84396         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
84397         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
84398         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
84399         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
84400         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
84401         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
84402         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
84403         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
84404         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
84405         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
84406         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
84407         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
84408         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
84409         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
84410         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
84411         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
84412         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
84413         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
84414         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
84415         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
84416         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
84417         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
84418         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
84419         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
84420         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
84421         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
84422         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
84423         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
84424         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
84425         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
84426         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
84427         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
84428         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
84429         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
84430         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
84431         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
84432         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
84433         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
84434         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
84435         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
84436         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
84437         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
84438         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
84439         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
84440         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
84441         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
84442         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
84443         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
84444         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
84445         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
84446         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
84447         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
84448         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
84449         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
84450         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
84451         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
84452         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
84453         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
84454         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
84455         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
84456         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
84457         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
84458         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
84459         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
84460         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
84461         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
84462         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
84463         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
84464         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
84465         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
84466         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
84467         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
84468         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
84469         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
84470         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
84471         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
84472         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
84473         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
84474         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
84475         lib/yesno.c, lib/yesno.h:
84476         Update FSF postal mail address.
84477
84478 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84479
84480         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
84481         tests/test-memmem.c, tests/test-stpncpy.c:
84482         Update FSF postal mail address.
84483
84484 2005-05-13  Bruno Haible  <bruno@clisp.org>
84485
84486         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
84487         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
84488         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
84489         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
84490         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
84491         Add support for 64-bit integers in the MSVC compiler.
84492
84493 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84494
84495         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
84496
84497 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
84498
84499         * gnulib-tool (func_import): Sort and uniquify recommended includes.
84500
84501 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
84502
84503         * doc/getdate.texi (General date syntax): Don't say that date
84504         date --iso-8601=ns generates acceptable dates; it doesn't yet.
84505         Problem reported by Nic Ferrier.
84506
84507 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84508
84509         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
84510         specified in ai_socktype. Fix invalid ai_protocol
84511         check. ai_protocol is usually set to 0 or depending on
84512         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
84513         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
84514         ai_socktype / ai_protocol in the returned addrinfo structure.
84515
84516 2005-05-10  Simon Josefsson  <jas@extundo.com>
84517
84518         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
84519         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84520
84521 2005-05-10  Karl Berry  <karl@gnu.org>
84522
84523         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
84524         (from http://www.gnu.org/licenses).
84525         * doc/COPYING.LIB: also rename to COPYING.LESSER.
84526         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
84527         fdl.texi suffices.
84528
84529 2005-05-10  Karl Berry  <karl@gnu.org>
84530
84531         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
84532         (COPYING.DOC): remove.
84533
84534         * config/srclist-update: new FSF address.
84535
84536 2005-05-10  Derek Price  <derek@ximbiot.com>
84537
84538         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
84539         possible.
84540
84541 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84542             Bruno Haible  <bruno@clisp.org>
84543
84544         * modules/inet_ntop: New file.
84545         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84546         inet_ntop.
84547
84548 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84549             Bruno Haible  <bruno@clisp.org>
84550
84551         * m4/inet_ntop.m4: New file.
84552
84553 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84554             Bruno Haible  <bruno@clisp.org>
84555
84556         * lib/inet_ntop.h: New file.
84557         * lib/inet_ntop.c: New file, from glibc with modifications.
84558
84559 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
84560
84561         * modules/time_r (License): Change to LGPL.
84562         * modules/extensions (License): Change to LGPL.  Actually,
84563         the license is more permissive than that, but currently gnulib-tool
84564         doesn't know how to handle more-permissive licenses.
84565
84566         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
84567         Problem reported by Dave Love.
84568
84569 2005-05-08  Jim Meyering  <jim@meyering.net>
84570
84571         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
84572         blank.
84573
84574 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
84575
84576         * modules/argmatch (Depends-on): Add stdbool.
84577         * modules/backupfile (Depends-on): Likewise.
84578         * modules/chdir-long (Depends-on): Likewise.
84579         * modules/closeout (Depends-on): Likewise.
84580         * modules/cycle-check (Depends-on): Likewise.
84581         * modules/dirname (Depends-on): Likewise.
84582         * modules/fnmatch (Depends-on): Likewise.
84583         * modules/fsusage (Depends-on): Likewise.
84584         * modules/fwriteerror (Depends-on): Likewise.
84585         * modules/getcwd (Depends-on): Likewise.
84586         * modules/getloadavg (Depends-on): Likewise.
84587         * modules/hard-locale (Depends-on): Likewise.
84588         * modules/makepath (Depends-on): Likewise.
84589         * modules/mountlist (Depends-on): Likewise.
84590         * modules/nanosleep (Depends-on): Likewise.
84591         * modules/posixtm (Depends-on): Likewise.
84592         * modules/quotearg (Depends-on): Likewise.
84593         * modules/readtokens (Depends-on): Likewise.
84594         * modules/readtokens0 (Depends-on): Likewise.
84595         * modules/readutmp (Depends-on): Likewise.
84596         * modules/save-cwd (Depends-on): Likewise.
84597         * modules/strftime (Depends-on): Likewise.
84598         * modules/userspec (Depends-on): Likewise.
84599         * modules/utimecmp (Depends-on): Likewise.
84600         * modules/xgetcwd (Depends-on): Likewise.
84601         * modules/xnanosleep (Depends-on): Likewise.
84602         * modules/xstrtod (Depends-on): Likewise.
84603         * modules/yesno (Depends-on): Likewise.
84604
84605 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
84606
84607         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
84608         needless checks.
84609
84610 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84611
84612         Merge from coreutils.  Among other things,
84613         add bulletproofing for cases where stdin, stdout, or stderr are closed.
84614         * lib/fd-safer.c: New file.
84615         * lib/fcntl-safer.h, open-safer.c: Remove.
84616         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
84617         * lib/dup-safer.c: Include unistd-safer.h first.
84618         Don't include errno.h.
84619         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
84620         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
84621         * lib/file-type.c: Rely on file-type.h change.
84622         * lib/getloadavg.c: Include unistd-safer.h.
84623         (getloadavg): Use safer open.
84624         * lib/getusershell.c: Include "stdio-safer.h".
84625         (getusershell): Use safer fopen.
84626         * lib/long-options.c (long_options): Use NULL rather than 0.
84627         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
84628         'free'.
84629         * lib/modechange.c: Likewise.
84630         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
84631         (MODE_DONE): New constant.
84632         (struct mode_change): Remove 'next' member.
84633         (make_node_op_equals): New function; like the old one of the
84634         same name, except it allocates an array.
84635         (mode_compile, mode_create_from_ref): Use it.
84636         (mode_compile): Allocate result as an array, not a linked list.
84637         Parse octal string ourself, so that we catch mistakes like "+0".
84638         (mode_adjust): Arg is an array, not a linked list.
84639         * lib/modechange.c: Include stat-macros.h, xalloc.h.
84640         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
84641         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
84642         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
84643         Remove.  This is now stat-macros.h's job.
84644         (talloc): Remove.  All callers replaced by xalloc, so that
84645         our invokers don't have to worry about reporting memory failures.
84646         (make_node_op_equals): Remove.
84647         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84648         New constants.
84649         (struct mode_change): Moved here from modechange.h.
84650         (mode_append_entry): Remove.
84651         (mode_compile): Remove MASKED_OPS arg, since it encouraged
84652         apps to have incorrect behavior.  Use simpler algorithm for head
84653         and tail.  Don't futz with umask; that's now the job of mode_adjust.
84654         Detect more invalid usages rather than having somewhat-random behavior.
84655         Don't insert an "a=" action, as that leads to incorrect behavior.
84656         (mode_compile, mode_create_from_ref): Return NULL on error instead
84657         of an enum, since now there's only one way to have an error.  All
84658         callers changed.
84659         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
84660         at the correct time.  Simplify calculation of "+u" and its ilk.
84661         Don't mishandle "+X".
84662         (mode_free): Remove "register" and localize decls.
84663         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84664         (struct mode_change): Move to modechange.c; callers don't
84665         need to see this stuff.
84666         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
84667         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
84668         (mode_change, mode_adjust): Reflect the new signatures noted above.
84669         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
84670         that might redefine system include files.
84671         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
84672         (my_usleep): Use NULL rather than (void *) 0.
84673         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
84674         Use siginterrupt to specify that system calls should be interrupted.
84675         (rpl_nanosleep): Move initialization of suspended closer to call of
84676         my_usleep.
84677         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
84678         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
84679         (desirable_utmp_entry): New function.
84680         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
84681         using x2nrealloc, to simplify logic.
84682         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
84683         size calculation.  Do not assume utmp file is a regular file.
84684         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
84685         (READ_UTMP_CHECK_PIDS): New constant.
84686         * lib/save-cwd.c: Include unistd-safer.h.
84687         (save_cwd): Use fd_safer.
84688         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
84689         [!_LIBC] Include "stat-macros.h" instead.
84690         * lib/unistd-safer.h (fd_safer): New decl.
84691
84692 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84693
84694         * modules/getloadavg (Depends-on): Add unistd-safer.
84695         * modules/getusershell (Depends-on): Add stdio-safer.
84696         * modules/lstat (Depends-on): Remove xalloc.
84697         * modules/mkstemp (Depends-on): Add stat-macros.
84698         * modules/modechange (Depends-on): Remove xstrtol.
84699         Add stat-macros, xalloc.
84700         * modules/save-cwd (Depends-on): Add unistd-safer.
84701         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
84702         * modules/unistd-safer (Files): Add lib/fd-safer.c
84703         (Makefile.am): Remove lib_SOURCES.
84704
84705         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
84706         Remove fcntl-safer; unistd-safer supersedes it.
84707
84708 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84709
84710         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
84711         AC_HEADER_STAT.
84712         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
84713         (gl_PREREQ_CHOWN): Remove.
84714         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
84715         it.  Don't require AC_HEADER_STAT.
84716         (gl_PREREQ_LSTAT): Remove.
84717         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
84718         Don't require AC_HEADER_STAT.
84719         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
84720         (gl_PREREQ_RMDIR): Remove.
84721         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
84722         mention stat-macros.h or AC_HEADER_STAT, since we'll make
84723         the stat-macros module a prerequisite.
84724         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
84725         * m4/filemode.m4 (gl_FILEMODE): Likewise.
84726         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
84727         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
84728         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
84729         variable names.
84730         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
84731         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
84732         variable prefixes.
84733         * m4/fcntl-safer.m4: Remove.
84734         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
84735         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
84736         Invoke gl_PREREQ_FD_SAFER.
84737         (gl_PREREQ_FD_SAFER): New macro.
84738         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
84739         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
84740         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
84741         Remove duplicate call to AC_LIBOBJ(readutmp).
84742         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
84743
84744         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
84745         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
84746
84747 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84748
84749         * MODULES.html.sh (Misc): Add byteswap.
84750
84751 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84752
84753         * modules/getcwd (Depends-on): Add extensions.
84754         * modules/openat (Depends-on): Likewise.
84755
84756 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84757
84758         * modules/byteswap: New file.
84759
84760 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84761
84762         * m4/byteswap.m4: New file.
84763
84764 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84765
84766         * lib/byteswap_.h: New file.
84767
84768 2005-04-25  Karl Berry  <karl@gnu.org>
84769
84770         * m4/gettext.m4: Update from GNU gettext 0.14.4.
84771
84772 2005-04-25  Albert Chin  <china@thewrittenword.com>
84773
84774         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
84775         Toolkit C bug.
84776
84777 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
84778
84779         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
84780         (func_ln_if_changed): Remove forcibly for no error message
84781         in case file does not exist.
84782
84783 2005-04-19  Simon Josefsson  <jas@extundo.com>
84784
84785         * gnulib-tool (Options): Make --symlink mean --symbolic.
84786
84787 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
84788
84789         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
84790
84791 2005-04-16  Simon Josefsson  <jas@extundo.com>
84792
84793         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
84794
84795 2005-04-15  Simon Josefsson  <jas@extundo.com>
84796
84797         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
84798
84799 2005-04-15  Simon Josefsson  <jas@extundo.com>
84800
84801         * gnulib-tool: Rename --symlink to --symbolic.
84802
84803 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
84804
84805         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
84806         symbolic links to files instead of copying/moving.  Add --aux-dir,
84807         specifying directory relative --dir where auxiliary build tools
84808         are placed.
84809
84810 2005-04-14  Bruno Haible  <bruno@clisp.org>
84811
84812         * modules/allocsa (License): Change to LGPL.
84813         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
84814
84815 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
84816
84817         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
84818         that "UTC +1 second" continues to work.  Problem reported
84819         by Dmitry V. Levin.
84820         (relunit_snumber): New rule.
84821         (relunit): Use it.
84822
84823 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
84824
84825         * lib/getdate.y (universal_time_zone_table): New constant.
84826         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
84827         universal_time_zone_table.
84828         (lookup_zone): Prefer universal_time_zone_table to
84829         local_time_zone_table, so that "GMT" time stamps are allowed in
84830         London during the summer.  Problem reported by Ian Abbott.
84831
84832 2005-04-12  Jim Meyering  <jim@meyering.net>
84833
84834         * lib/human.c (humblock): Set *options even when returning due to
84835         xstrtoumax conversion failure.  Thanks to a used-uninitialized
84836         warning from gcc-4.
84837
84838 2005-04-09  Jim Meyering  <jim@meyering.net>
84839
84840         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
84841         -Wuninitialized: initialize tm0.tm_year.
84842
84843 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
84844
84845         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
84846         count, since there's no maximum.  All uses changed.
84847         Add member dsts_seen.
84848         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
84849         not being INT_MAX.
84850         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
84851         Use pc_rels_seen to decide whether a date is absolute.
84852
84853         * lib/getdate.y (number): Don't overwrite year.
84854         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
84855         check.
84856
84857 2005-04-02  Simon Josefsson  <jas@extundo.com>
84858
84859         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
84860         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
84861
84862 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
84863
84864         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
84865         where no absolute path name can be longer than PATH_MAX.
84866
84867 2005-03-27  Jim Meyering  <jim@meyering.net>
84868
84869         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
84870
84871 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
84872
84873         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
84874         "one's complement" -> "ones' complement" in comment, as per Knuth.
84875         "value of type" -> "type or expression" in comment.
84876         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
84877
84878 2005-03-26  Jim Meyering  <jim@meyering.net>
84879
84880         Comment nits.
84881         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
84882         Correct typos: s/or/of/.
84883
84884 2005-03-26  Jim Meyering  <jim@meyering.net>
84885
84886         * modules/check-include-files: Move to ../ and rename to...
84887         * check-module: ...this.
84888
84889 2005-03-25  Jim Meyering  <jim@meyering.net>
84890
84891         * modules/xvasprintf (Files): Add xalloc.h.
84892
84893 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
84894
84895         * modules/gettext (Files): config/config.rpath ->
84896         build-aux/config.rpath
84897         * modules/iconv (Files): Likewise.
84898         Problem reported by Oskar Liljeblad.
84899
84900 2005-03-23  Jim Meyering  <jim@meyering.net>
84901
84902         * modules/check-include-files: New script to check for
84903         missing dependencies, multiple includes, etc.
84904
84905         * modules/c-strtold (Depends-on): Add xalloc.
84906         * modules/c-strtod (Depends-on): Add xalloc.
84907         * modules/hash (Depends-on): Add xalloc.
84908         (Files): Remove lib/xalloc.h.
84909
84910         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
84911         * modules/userspec (Files): Add lib/inttostr.h.
84912
84913 2005-03-23  Jim Meyering  <jim@meyering.net>
84914
84915         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
84916
84917 2005-03-22  Jim Meyering  <jim@meyering.net>
84918
84919         * modules/stat-macros: New module.
84920         * modules/canonicalize, modules/euidaccess, modules/file-type,
84921         * modules/filemode, modules/lchown, modules/makepath,
84922         * modules/rmdir, modules/stat: Depend on new stat-macros module
84923         rather than listing lib/stat-macros.h manually.
84924         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
84925
84926 2005-03-22  Jim Meyering  <jim@meyering.net>
84927
84928         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
84929
84930 2005-03-22  Bruno Haible  <bruno@clisp.org>
84931
84932         * config/srclist.txt: Replace target directory 'config' with
84933         'build-aux'.
84934         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
84935         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
84936         ../build-aux/.
84937
84938 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
84939
84940         * modules/chdir-long (Depends-on): Add mempcpy.
84941
84942         * modules/acl, modules/backupfile, modules/c-strtod,
84943         modules/c-strtold, modules/canon-host, modules/canonicalize,
84944         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
84945         modules/exclude, modules/exitfail, modules/file-type,
84946         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
84947         modules/getdate, modules/getline, modules/getpagesize,
84948         modules/getpass, modules/getugroups, modules/group-member,
84949         modules/hard-locale, modules/hash, modules/human, modules/idcache,
84950         modules/inttostr, modules/long-options, modules/makepath,
84951         modules/md5, modules/memcasecmp, modules/memcoll,
84952         modules/modechange, modules/mountlist, modules/path-concat,
84953         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
84954         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
84955         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
84956         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
84957         modules/strftime, modules/strndup, modules/strverscmp,
84958         modules/timespec, modules/unlocked-io, modules/userspec,
84959         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
84960         modules/yesno:
84961         Remove lib_SOURCES line from Makefile.am section, as this is now
84962         done automatically by the corresponding Autoconf macro.
84963
84964 2005-03-21  Jim Meyering  <jim@meyering.net>
84965
84966         Changes imported from coreutils.
84967
84968         * lib/cycle-check.c: Don't include xalloc.h.
84969
84970         * lib/path-concat.c: Don't include assert.h.
84971         (path_concat): Remove assertion that would have triggered
84972         for ABASE starting with more than one slash.
84973         Reported by Andreas Schwab.
84974
84975         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
84976         properly when ABASE is an absolute file name.
84977         Correct the description of this function.
84978         Include <assert.h>.
84979         Add an assertion and a test driver.
84980         This fixes a bug introduced on 2004-07-02.
84981         Andreas Schwab reported the resulting failure of cp --parents:
84982         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
84983
84984 2005-03-21  Jim Meyering  <jim@meyering.net>
84985
84986         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
84987         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
84988
84989 2005-03-21  Jim Meyering  <jim@meyering.net>
84990         and  Paul Eggert  <eggert@cs.ucla.edu>
84991
84992         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
84993         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
84994         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
84995         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
84996         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
84997         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
84998         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
84999         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
85000         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
85001         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
85002         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
85003         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
85004         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
85005         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
85006         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
85007         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
85008         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
85009         for these modules.
85010
85011 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
85012
85013         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
85014         (which shouldn't happen), generate nothing instead of returning 0
85015         immediately, so that nstrftime (NULL, ...) doesn't return 0.
85016
85017 2005-03-16  Bruno Haible  <bruno@clisp.org>
85018
85019         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
85020         HAVE_LONGLONG_64BIT.
85021
85022 2005-03-16  Bruno Haible  <bruno@clisp.org>
85023
85024         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
85025         HAVE_LONGLONG_64BIT.
85026
85027 2005-03-16  Bruno Haible  <bruno@clisp.org>
85028
85029         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
85030         HAVE_LONGLONG_64BIT.
85031
85032 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
85033
85034         * lib/strftime.c (my_strftime): Prepend space to format so that we can
85035         reliably distinguish strftime failure from empty output on POSIX
85036         hosts.
85037
85038 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
85039
85040         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
85041         (iconv_string): Don't guess a size-zero buffer, as that might cause
85042         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
85043         result would be 'too large', where 'too large' is (heuristically)
85044         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
85045         overflow concerns.  This will prevent some unwanted malloc failures
85046         when the inputs are very large.
85047
85048 2005-03-15  Karl Berry  <karl@gnu.org>
85049
85050         * config/srclist.txt (config.rpath): from gettext.
85051         * config/config.rpath: update.
85052
85053 2005-03-15  Bruno Haible  <bruno@clisp.org>
85054
85055         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
85056         to 'negate'.
85057
85058         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
85059         variable.
85060
85061         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
85062         results.
85063
85064 2005-03-14  Simon Josefsson  <jas@extundo.com>
85065
85066         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
85067         <fx@gnu.org>.
85068
85069 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
85070
85071         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
85072         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
85073         intprops.h.
85074         * lib/strtol.c: Likewise.
85075
85076 2005-03-14  Jim Meyering  <jim@meyering.net>
85077
85078         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
85079         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
85080         to be nonzero so that we (and caller) can detect the difference
85081         between a valid zero-length expansion and an error return, even
85082         when the underlying strftime fails before writing anything into
85083         that location.
85084
85085 2005-03-14  Bruno Haible  <bruno@clisp.org>
85086
85087         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
85088         Update from GNU gettext 0.14.3.
85089
85090 2005-03-10  Jim Meyering  <jim@meyering.net>
85091
85092         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
85093
85094 2005-03-10  Jim Meyering  <jim@meyering.net>
85095
85096         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
85097         so that this module works on systems without fchdir.
85098
85099 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
85100
85101         Factor int-properties macros into a single file, except for
85102         glibc-related files.
85103         * lib/intprops.h: New file.
85104         * lib/getloadavg.c: Include it instead of limits.h.
85105         (INT_STRLEN_BOUND): Remove.
85106         * lib/human.c: Include intprops.h.
85107         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
85108         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
85109         302/1000.
85110         * lib/inttostr.h: Include intprops.h instead of limits.h.
85111         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
85112         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
85113         for consistency with intprops.h.
85114         (time_t_is_integer, twos_complement_arithmetic): Use them.
85115         * lib/sig2str.h: Include <signal.h>, intprops.h.
85116         (INT_STRLEN_BOUND): Remove.
85117         * lib/strftime.c (TYPE_SIGNED): Remove.
85118         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
85119         * lib/strtol.c: Adjust comments to match intprops.h.
85120         * lib/userspec.c: Include intprops.h.
85121         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
85122         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
85123         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
85124         instead of rolling our own expressions.
85125         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
85126
85127         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
85128         instead of int.
85129         (my_strftime): Do not mishandle years close to INT_MAX, by doing
85130         the right thing even if adding 1900 would overflow.  Similarly
85131         for tm_mon + 1 and tm_yday + 1.
85132         Make %Y always equivalent to %C%y, and similarly for %G and %g.
85133         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
85134         (DO_SIGNED_NUMBER): New macro.
85135         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
85136
85137 2005-03-07  Bruno Haible  <bruno@clisp.org>
85138
85139         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
85140
85141 2005-03-07  Bruno Haible  <bruno@clisp.org>
85142
85143         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
85144
85145 2005-03-04  Derek R. Price  <derek@ximbiot.com>
85146
85147         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
85148         (func_import): Only replace files via --import when they have actually
85149         changed.
85150
85151 2005-03-03  Derek R. Price  <derek@ximbiot.com>
85152
85153         * m4/mmap-anon.m4: New file.
85154         * m4/pagealign_alloc.m4: New file.
85155
85156 2005-03-03  Derek R. Price  <derek@ximbiot.com>
85157             Bruno Haible  <bruno@clisp.org>
85158
85159         * modules/pagealign_alloc: New file.
85160         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
85161
85162 2005-03-03  Derek R. Price  <derek@ximbiot.com>
85163             Bruno Haible  <bruno@clisp.org>
85164
85165         * lib/pagealign_alloc.h: New file.
85166         * lib/pagealign_alloc.c: New file.
85167
85168 2005-03-03  Bruno Haible  <bruno@clisp.org>
85169
85170         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
85171         Use an all-permissive copyright notice, recommended by RMS.
85172
85173 2005-03-02  Bruno Haible  <bruno@clisp.org>
85174
85175         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
85176         of AIX, the replacement has to be done only after <string.h> is
85177         included, therefore not in config.h. stpncpy.h does the replacement,
85178         and stpncpy.c uses it.
85179
85180 2005-03-02  Bruno Haible  <bruno@clisp.org>
85181
85182         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
85183         stpncpy.c uses it.
85184
85185 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85186
85187         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
85188         The workaround isn't strictly needed for POSIX conformance, and
85189         it's too much of a pain to configure and maintain.  We'll ask
85190         people to fix their kernels instead.
85191         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
85192         (NANOSLEEP_BUG_WORKAROUND): Remove.
85193         (xnanosleep): Remove the workaround.
85194
85195 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85196
85197         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
85198         Reported by Derek Price.
85199         (Include): Add "timespec.h".
85200
85201         * modules/xnanosleep (Depends-on): Remove gethrxtime.
85202
85203 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85204
85205         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
85206         to detect nanosleep bug.
85207
85208 2005-03-01  Bruno Haible  <bruno@clisp.org>
85209
85210         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
85211
85212 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
85213
85214         * modules/gethrxtime: New file.
85215         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
85216         (Depends-on): Add gethrxtime.
85217         (configure.ac): Add gl_XNANOSLEEP.
85218         (Makefile.am): Remove lib_SOURCES line.
85219
85220 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
85221
85222         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
85223         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
85224
85225 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
85226
85227         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
85228         * lib/timespec.h (gettime): Return void, since it always
85229         succeeds now.  All uses changed.
85230         * lib/gettime.c (gettime): Likewise.
85231         [HAVE_NANOTIME]: Prefer nanotime.
85232         Assume gettimeofday succeeds, as POSIX requires.
85233         Assime time () succeeds, since other code already does.
85234         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
85235         (timespec_subtract): Remove.
85236         (NANOSLEEP_BUG_WORKAROUND): New constant.
85237         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
85238         things considerably.  Use it only on GNU/Linux hosts, since the
85239         workaround shouldn't be needed elsewhere.
85240
85241 2005-02-24  Bruno Haible  <bruno@clisp.org>
85242
85243         * modules/gettext (Files): Add m4/glibc2.m4.
85244
85245 2005-02-24  Bruno Haible  <bruno@clisp.org>
85246
85247         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
85248         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
85249         * m4/progtest.m4:
85250         Update from GNU gettext 0.14.2.
85251         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
85252
85253 2005-02-24  Bruno Haible  <bruno@clisp.org>
85254
85255         * lib/localcharset.c: Update from GNU gettext 0.14.2.
85256         * lib/config.charset: Update from GNU gettext 0.14.2.
85257
85258 2005-02-24  Bruno Haible  <bruno@clisp.org>
85259
85260         * lib/gettext.h: Update from GNU gettext 0.14.2.
85261
85262 2005-02-23  Simon Josefsson  <jas@extundo.com>
85263
85264         * m4/iconvme.m4: New file.
85265
85266 2005-02-23  Jim Meyering  <jim@meyering.net>
85267
85268         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
85269         change.
85270         Thanks to Bruno Haible for catching it.
85271
85272 2005-02-22  Simon Josefsson  <jas@extundo.com>
85273
85274         * modules/iconvme: New file.
85275
85276         * MODULES.html.sh: Add iconvme.
85277
85278 2005-02-22  Simon Josefsson  <jas@extundo.com>
85279
85280         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
85281
85282 2005-02-22  Simon Josefsson  <jas@extundo.com>
85283
85284         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
85285
85286 2005-02-22  Jim Meyering  <jim@meyering.net>
85287
85288         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
85289         s/ifndef/ifdef/.
85290
85291 2005-02-20  Neil Conway  <neilc@samurai.com>
85292
85293         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
85294         returned by OSX/Darwin if the specified buffer is not large
85295         enough for the hostname.
85296
85297 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85298
85299         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
85300         pass it to _help, otherwise the latter coredumps trying to
85301         dereference state.root_argp.
85302
85303 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85304
85305         * modules/chdir-long (Depends-on): Add memrchr.
85306         * modules/memrchr (Files): Add lib/memrchr.h.
85307         (Include): "memrchr.h".
85308
85309 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85310
85311         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
85312
85313 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85314
85315         * lib/memrchr.h: New file.
85316         * lib/chdir-long.c: Include it.
85317         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
85318         Don't bother including stddef.h.
85319
85320 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
85321
85322         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
85323         inclusion.
85324         Include <sys/types.h>, for dev_t.
85325         (ME_DUMMY, ME_REMOTE): Move from here....
85326         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
85327         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
85328         Dmitry V. Levin.
85329         Include mountlist.h first, to test the interface.
85330
85331 2005-01-29  Bruno Haible  <bruno@clisp.org>
85332
85333         * lib/progname.c (program_name): Initialize.
85334         Needed when linking statically on MacOS X.
85335
85336 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
85337
85338         Sync from coreutils.
85339         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
85340         (Depends-on): Add c-strtod.
85341         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
85342
85343 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
85344
85345         Sync from coreutils.
85346         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
85347
85348         Remove files that are specific to coreutils.
85349         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
85350
85351 2005-01-28  Bruno Haible  <bruno@clisp.org>
85352
85353         * modules/javacomp: New file.
85354         * MODULES.html.sh (Java): Add javacomp.
85355
85356 2005-01-28  Bruno Haible  <bruno@clisp.org>
85357
85358         * m4/javacomp.m4: New file, from GNU gettext.
85359
85360 2005-01-28  Bruno Haible  <bruno@clisp.org>
85361
85362         * lib/javacomp.sh.in: New file, from GNU gettext.
85363         * lib/javacomp.h: New file, from GNU gettext.
85364         * lib/javacomp.c: New file, from GNU gettext.
85365
85366 2005-01-26  Simon Josefsson  <jas@extundo.com>
85367
85368         * lib/gai_strerror.c: Use GPL in header.
85369
85370 2005-01-26  Bruno Haible  <bruno@clisp.org>
85371
85372         * modules/javaexec: New file.
85373         * MODULES.html.sh (Java): Add javaexec.
85374
85375 2005-01-26  Bruno Haible  <bruno@clisp.org>
85376
85377         * m4/javaexec.m4: New file, from GNU gettext.
85378
85379 2005-01-26  Bruno Haible  <bruno@clisp.org>
85380
85381         * lib/javaexec.sh.in: New file, from GNU gettext.
85382         * lib/javaexec.h: New file, from GNU gettext.
85383         * lib/javaexec.c: New file, from GNU gettext.
85384
85385 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85386
85387         * modules/lchown (Depends-on): Remove lchown.h
85388
85389 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85390
85391         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
85392         must be defined if the header file was not found, in order
85393         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
85394
85395 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85396
85397         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
85398         initializers for struct pentry_state.
85399         (__argp_error): Check return value of __asprintf
85400         (__argp_failure): Translate error message
85401
85402         * lib/argp-parse.c: Removed braces around the expansion of N_()
85403
85404 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
85405
85406         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
85407         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
85408         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
85409         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
85410         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
85411         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
85412         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
85413         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
85414         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
85415         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
85416         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
85417         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
85418         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
85419         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
85420         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
85421         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
85422         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
85423         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
85424         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
85425         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
85426         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
85427         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
85428         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
85429         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
85430         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
85431         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
85432         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
85433         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
85434         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
85435         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
85436         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
85437         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
85438         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
85439         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
85440         xstrtol.m4, xstrtoumax.m4, yesno.m4:
85441         Use an all-permissive copyright notice, recommended by RMS.
85442
85443 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
85444
85445         * modules/chdir-long (Depends-on): Remove mempcpy.
85446
85447 2005-01-21  Jim Meyering  <jim@meyering.net>
85448
85449         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
85450         same value as for Solaris 9.
85451
85452         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
85453         component length.  This included changing the parameter to be
85454         of type `char *' rather than `char const *'.
85455         * lib/chdir-long.h (chdir_long): Update prototype.
85456
85457         * lib/openat.c (fdopendir, fstatat): New functions.
85458         * lib/openat.h: Include headers required for use of DIR and struct
85459         stat.
85460         [AT_SYMLINK_NOFOLLOW]: Define.
85461         (fdopendir, fstatat): Add prototypes.
85462
85463 2005-01-21  Bruno Haible  <bruno@clisp.org>
85464
85465         * modules/classpath: New file.
85466         * MODULES.html.sh (Java): Add classpath.
85467
85468 2005-01-21  Bruno Haible  <bruno@clisp.org>
85469
85470         * lib/classpath.h: New file, from GNU gettext.
85471         * lib/classpath.c: New file, from GNU gettext.
85472
85473 2005-01-20  Simon Josefsson  <jas@extundo.com>
85474
85475         * modules/version-etc-fsf: New file.
85476
85477 2005-01-20  Simon Josefsson  <jas@extundo.com>
85478
85479         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
85480         * lib/version-etc.c: Remove version_etc_copyright.
85481         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
85482         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
85483
85484 2005-01-20  Simon Josefsson  <jas@extundo.com>
85485
85486         * lib/base64.h (isbase64): Add.
85487
85488         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
85489         using a unsigned prototype, don't inline.
85490         (base64_decode): Use it.
85491
85492 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85493
85494         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
85495         it.
85496
85497 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85498
85499         * lib/save-cwd.c (save_cwd): Remove code to support the case
85500         where fchdir is missing or flaky.
85501
85502 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85503
85504         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
85505
85506 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
85507
85508         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
85509         AC_LIBSOURCES now does this.
85510         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
85511         with new ullong_max module.
85512
85513 2005-01-19  Bruno Haible  <bruno@clisp.org>
85514
85515         * modules/sh-quote: New file.
85516         * MODULES.html.sh (Executing programs): Add sh-quote.
85517
85518 2005-01-19  Bruno Haible  <bruno@clisp.org>
85519
85520         * lib/sh-quote.h: New file, from GNU gettext.
85521         * lib/sh-quote.c: New file, from GNU gettext.
85522
85523 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85524
85525         Merge from coreutils.
85526         * m4/ullong_max.m4: New file.
85527         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
85528         (gl_MACROS): Assume localeconv exists.
85529
85530 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85531
85532         Merge changes from coreutils, as described below in several
85533         changelogs dated today.
85534
85535         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
85536         (O_DIRECTORY): Remove; not needed here, since "." must be
85537         a directory.  All uses removed.
85538         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
85539         universal on Suns, and we also need to test for IRIX.
85540         Revamp code to use 'if' rather than '#if'.
85541         Avoid unnecessary comparison of cwd->desc to 0.
85542
85543         * lib/utimens.c (futimens): Robustify the previous patch, by checking
85544         for known valid error numbers rather than observed invalid ones.
85545
85546 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85547
85548         * modules/ullong_max: New file.
85549
85550         * modules/chdir-long, modules/openat: New files.
85551         * modules/save-cwd (Depends-on): Depend on chdir-long.
85552         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
85553
85554 2005-01-18  Jim Meyering  <jim@meyering.net>
85555
85556         Merge from coreutils.
85557         * m4/chdir-long.m4, m4/openat.m4: New files.
85558         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
85559         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
85560         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
85561         is sane and DOES follow symlinks.  Besides, testing 20 different
85562         systems found no broken chown implementations.
85563         Prompted by a change in rsync's copy of this macro.
85564         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
85565
85566         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
85567
85568         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
85569         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
85570         NULL-means-set-to-current-time semantics.
85571         Remove temporary file immediately, rather than waiting
85572         for configure's at-exit trap code to do it.
85573
85574 2005-01-18  Jim Meyering  <jim@meyering.net>
85575
85576         * lib/version-etc.c (version_etc_copyright): Update copyright date.
85577
85578         * lib/utimens.c (futimens): Account for the fact that futimes
85579         can also fail with errno == ENOSYS or errno == ENOENT.
85580         Patch from Dmitry V. Levin.
85581
85582         Change the name of the robust chdir function from chdir to chdir_long.
85583         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
85584         (restore_cwd): Use chdir_long, not chdir.
85585         * lib/chdir-long.c: Renamed from chdir.c.
85586         * lib/chdir-long.h: Renamed from chdir.h.
85587         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
85588         Hurd.
85589
85590 2005-01-18  Bruno Haible  <bruno@clisp.org>
85591
85592         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
85593         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
85594         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
85595         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
85596         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
85597         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
85598         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
85599         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
85600         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
85601         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
85602         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
85603         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
85604         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
85605         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
85606         Use an all-permissive copyright notice, recommended by RMS.
85607
85608 2005-01-18  Bob Proulx  <bob@proulx.com>
85609
85610         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
85611         simplify offsetof() macro construct to avoid compile failure with
85612         native HP-UX 11.0 ANSI C compiler.
85613
85614 2005-01-17  Bruno Haible  <bruno@clisp.org>
85615
85616         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
85617         redundant because stpncpy.m4 takes care of it.
85618
85619 2005-01-17  Bruno Haible  <bruno@clisp.org>
85620
85621         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
85622
85623 2005-01-17  Bruno Haible  <bruno@clisp.org>
85624
85625         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
85626         used.
85627
85628 2005-01-17  Bruno Haible  <bruno@clisp.org>
85629
85630         * lib/fwriteerror.h (fwriteerror): Change specification to include
85631         fclose.
85632         * lib/fwriteerror.c: Include <stdbool.h>.
85633         (fwriteerror): At the end, close the file stream. Record whether
85634         stdout was already closed.
85635
85636 2005-01-17  Bruno Haible  <bruno@clisp.org>
85637
85638         * lib/execute.c (environ): Declare if needed.
85639         * lib/pipe.c (environ): Likewise.
85640         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
85641
85642 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85643
85644         * modules/argp: Depend on vsnprintf
85645
85646 2005-01-10  Jim Meyering  <jim@meyering.net>
85647
85648         * modules/closeout (Depends-on): Add atexit.
85649
85650 2005-01-06  Bruno Haible  <bruno@clisp.org>
85651
85652         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
85653
85654 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
85655
85656         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
85657         definitions to be after all include files, to avoid collisions.
85658         Problem reported by Bob Proulx.
85659
85660 2005-01-04  Jim Meyering  <jim@meyering.net>
85661
85662         Changes imported from coreutils.
85663         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
85664         as the mkstemp template, use a temporary directory and an
85665         8.3-friendly template to avoid trouble on systems like DJGPP.
85666         Reported by Juan M. Guerrero via Stepan Kasal.
85667         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
85668         close. Remove the temporary directory right away, rather than waiting
85669         for configure's at-exit trap code to do it.
85670         Suggestion from Stepan Kasal.
85671
85672 2005-01-01  Simon Josefsson  <jas@extundo.com>
85673
85674         * gnulib-tool: Print #include directives when --import'ing.
85675
85676 2004-12-28  Simon Josefsson  <jas@extundo.com>
85677
85678         * tests/test-base64.c: Include required header files.  Remove
85679         unused variables.
85680
85681 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85682
85683         * modules/error (Depends-on): Remove gettext.
85684
85685 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85686
85687         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
85688         not needed.  This removes a dependency on the gettext module.
85689         [defined _LIBC]: Do not include <libintl.h>; not needed.
85690
85691 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85692
85693         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
85694         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
85695
85696 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85697
85698         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
85699         HAVE_DECL_STRTOLD.
85700
85701 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85702
85703         * modules/getdate (Depends-on): Remove alloca-opt.
85704
85705 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85706
85707         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
85708
85709 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85710
85711         * lib/argp-parse.c: Include <stddef.h>.
85712         (alignof, alignto): New macros.
85713         (parser_init): Don't assume that void * is aligned sufficiently
85714         for struct option.
85715
85716         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
85717         need to extend the stack.
85718         (YYINITDEPTH): New macro, so that the initial stack isn't overly
85719         large.
85720
85721 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85722
85723         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
85724
85725 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85726
85727         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
85728         (2004-10-24) change.  Apparently this was a false alarm.
85729
85730         * modules/getdate: Depend on alloca-opt, not alloca.
85731
85732 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85733
85734         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
85735         Remove now-obsolete comment about AIX.
85736         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
85737         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
85738         (YYMAXDEPTH): New macro.
85739
85740 2004-12-18  Simon Josefsson  <jas@extundo.com>
85741
85742         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
85743
85744 2004-12-18  Bruno Haible  <bruno@clisp.org>
85745
85746         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
85747
85748 2004-12-18  Bruno Haible  <bruno@clisp.org>
85749
85750         * lib/fatal-signal.c (fatal_signals): Make non-const.
85751         (init_fatal_signals): New function.
85752         (uninstall_handlers, install_handlers): Ignore signals that were set to
85753         SIG_IGN.
85754         (at_fatal_signal): Call init_fatal_signals.
85755         (init_fatal_signal_set): Likewise. Ignore signals that were set to
85756         SIG_IGN.
85757         Reported by Paul Eggert.
85758
85759 2004-12-18  Bruno Haible  <bruno@clisp.org>
85760
85761         * doc/alloca.texi: New file.
85762         * doc/alloca-opt.texi: New file.
85763
85764 2004-12-17  Jim Meyering  <jim@meyering.net>
85765
85766         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
85767         Otherwise, install-sh could exit with improper exit status when
85768         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
85769
85770 2004-12-16  Simon Josefsson  <jas@extundo.com>
85771
85772         * tests/test-base64.c: Add license.
85773
85774 2004-12-15  Stepan Kasal  <address@hidden>
85775
85776         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
85777
85778 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
85779
85780         * modules/getcwd (Files): Add m4/d-ino.m4.
85781         Suggested by Mark D. Baushke.
85782
85783 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85784
85785         * lib/getdate.y (textint): New member "negative".
85786         (time_zone_hhmm): New function.
85787         Expect 14 shift-reduce conflicts, not 13.
85788         (o_colon_minutes): New rule.
85789         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
85790         (yylex): Set the "negative" member of signed numbers.
85791
85792 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85793
85794         * doc/getdate.texi (Time of day items, Time zone items):
85795         Describe new formats +00:00, UTC+00:00.
85796
85797 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
85798
85799         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
85800         spurious "-l"s.  Problem reported by Stepan Kasal.
85801
85802 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
85803
85804         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
85805         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
85806
85807 2004-12-04  Simon Josefsson  <jas@extundo.com>
85808
85809         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
85810         Vandoorselaere <yoann@prelude-ids.org>.
85811
85812 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85813
85814         Changes imported from coreutils.
85815         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
85816         exist.
85817         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
85818
85819 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85820
85821         Changes imported from coreutils.
85822         * lib/hard-locale.c: Assume <locale.h> exists.
85823         Include "strdup.h".
85824         (GLIBC_VERSION): New macro.
85825         (hard_locale): Assume setlocale exists.
85826         Rewrite to avoid #ifdef.
85827         Use strdup rather than malloc + strcpy.
85828         * lib/human.c: Assume <locale.h> exists.
85829         (human_readable): Assume localeconv exists.
85830
85831 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85832
85833         * modules/hard-locale (Depends-on): Add strdup.
85834
85835 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
85836
85837         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
85838         convert T2, not T.  (Imported from libc.)
85839
85840 2004-11-30  Simon Josefsson  <jas@extundo.com>
85841
85842         * modules/restrict (License): Change to LGPL.
85843
85844 2004-11-30  Simon Josefsson  <jas@extundo.com>
85845
85846         * m4/restrict.m4: Add copyright and copying conditions.
85847
85848 2004-11-30  Simon Josefsson  <jas@extundo.com>
85849
85850         * m4/base64.m4: New file.
85851
85852 2004-11-30  Simon Josefsson  <jas@extundo.com>
85853
85854         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
85855         base64.
85856
85857         * tests/test-base64.c: New file.
85858
85859         * modules/base64: New file.
85860
85861 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85862
85863         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
85864         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
85865
85866         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
85867
85868 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85869
85870         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
85871         (__getcwd.c): Don't restore errno; glibc doesn't.
85872         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
85873         first, falling back to our code only if its results look suspicious.
85874         Ensure that the resulting buffer is only as large as necessary.
85875
85876         * lib/readutmp.c: Include readutmp.h first.
85877         Include <errno.h>, since readutmp.h no longer does that.
85878         * lib/readutmp.h: Don't include <errno.h>,
85879         <sys/param.h>, <time.h>; not needed to establish interface.
85880         (errno): Remove decl.
85881         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
85882         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
85883         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
85884
85885 2004-11-28  Simon Josefsson  <jas@extundo.com>
85886
85887         * lib/base64.h, base64.c: New file.
85888
85889 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
85890
85891         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
85892
85893 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
85894
85895         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
85896         (Depends-on): Remove pathmax, same.  Add mempcpy.
85897         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
85898         (Makefile.am): Append getcwd.h to lib_SOURCES.
85899         (Include): Add getcwd.h.
85900         (Maintainer): Change from Jim Meyering to "all, glibc",
85901         since getdate now uses intended-for-glibc code.
85902         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
85903         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
85904
85905 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85906
85907         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
85908         HP's ANSI C compiler.
85909         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
85910         Declaring int functions causes warnings on some modern systems and
85911         shouldn't be needed to compile on ancient ones.
85912         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
85913         defined.
85914
85915         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
85916         with the following changes.
85917         (__set_errno): Parenthesize properly.
85918         Include <stdbool.h>.
85919         (MIN, MAX, MATCHING_INO): New macros.
85920         (__getcwd): Define with prototype, not K&R form.
85921         Use heuristics to allocate default buffer on stack if possible.
85922         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
85923         behavior, and to avoid the PATH_MAX limit when computing
85924         ../../../../...
85925         Use MATCHING_INO to compare inode number to file.
85926         Check for arithmetic overflow in size calculations.
85927         Fix bug in reallocation of dot array that caused getcwd to fail
85928         on directories nested deeper than 75.
85929         Be more careful about saving errno on error.
85930         Do not use realloc; use only free+malloc, as this is a bit
85931         more flexible and avoids a needless copy operation.
85932         Do not inspect st_dev and st_ino for symbolic links; POSIX
85933         doesn't specify the latter.
85934         Check for closedir errors.
85935         Avoid needless casts.
85936         Use "#ifdef weak_alias" around weak_alias, to be like other
85937         glibc code.
85938         The following changes to getcwd.c have effect only when used in
85939         gnulib; they have no effect inside glibc proper.
85940         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
85941         as alloca isn't used.
85942         (alloca, __alloca): Likewise.
85943         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
85944         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
85945         unconditionally, as gnulib assumes C89 or better.
85946         Do not include <sys/param.h>.
85947         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
85948         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
85949         better.
85950         (NULL) [!defined NULL]: Remove; we assume C89 or better.
85951         Include <dirent.h> in a way that is compatible with modern Autoconf.
85952         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
85953         New macros, if not already defined.
85954         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
85955         Use "_LIBC", not "defined _LIBC", for consistency.
85956         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
85957         a mempcpy module.
85958         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
85959         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
85960         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
85961         credit only to Jim Meyering and adjust the copyright dates.
85962         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
85963         <stdlib.h>, <unistd.h>, "pathmax.h".
85964         Instead, include "xgetcwd.h" (first) and "getcwd.h".
85965         (INITIAL_BUFFER_SIZE): Remove.
85966         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
85967
85968 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85969
85970         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
85971         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
85972         Use the _ONCE methods, for efficiency.
85973         Check for fcntl.h.  In test program, include <errno.h>
85974         and <fcntl.h> if available.  Remove old K&R cruft from
85975         test program.  Check for common errors in GNU/Linux,
85976         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
85977         don't do AC_LIBOBJ, as that's getcwd.m4's job.
85978         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
85979         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
85980         name accordingly.
85981         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
85982         accommodate new getcwd.c.
85983         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
85984         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
85985         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
85986         that's all we need now.
85987
85988 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85989
85990         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
85991         argp-parse.c depends on getopt internals, that means we should
85992         always use our getopt, to be on the safe side.
85993         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
85994         order not to spoil the result of an eventual previous invocation
85995         of gl_GETOPT_SUBSTITUTE.
85996
85997 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85998
85999         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
86000         redefinition warnings. To avoid them, include the defines
86001         in `#if !defined __need_getopt ... #endif'. The only place
86002         where __getopt_argv_const is used is in definitions
86003         of getopt_long and getopt_long_only below, which are as well
86004         protected by `#ifndef __need_getopt'.
86005         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
86006         __need_getopt after including <stdio.h> and <unistd.h> These
86007         headers might have defined it.
86008
86009 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
86010
86011         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
86012
86013 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
86014
86015         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
86016         (futimens): New function, which uses futimes if available.
86017         (futimens, utimens): Support timespec==NULL, with same semantics
86018         as utime and utimens.
86019         * lib/utimens.h (futimens): New decl.
86020
86021 2004-11-23  Jim Meyering  <jim@meyering.net>
86022
86023         * lib/getopt_.h: Remove trailing blanks.
86024
86025 2004-11-23  Jim Meyering  <jim@meyering.net>
86026
86027         * lib/__fpending.c: Add comment.
86028
86029 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
86030
86031         * modules/canonicalize (Depends-on): Add xreadlink.
86032         Problem reported by James Youngman.
86033
86034 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
86035
86036         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
86037         New macros.
86038         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
86039         optopt): Use them instead of invoking ## directly; otherwise, the
86040         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
86041
86042 2004-11-19  Bruno Haible  <bruno@clisp.org>
86043
86044         * lib/strtok_r.c: Move comments from here...
86045         * lib/strtok_r.h: ... to here.
86046
86047 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
86048
86049         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
86050         implementations that mishandle size_t overflow.
86051
86052 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
86053
86054         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
86055         might fail.  Problem reported by Yoann Vandoorselaere.
86056         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
86057         implementations that mishandle size_t overflow.
86058
86059 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86060
86061         * modules/canon-host (Depends-on): Add strdup.
86062
86063 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86064
86065         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
86066
86067 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86068
86069         * lib/canon-host.c: Include "strdup.h".
86070         (canon_host): Use getaddrinfo if available, so that IPv6 works.
86071         Use strdup instead of malloc/strcpy to duplicate strings.
86072
86073         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
86074         (human_space_before_unit): New constant.
86075         * lib/human.c (human_readable): Support it.
86076
86077         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
86078         (xgetcwd): Set errno correctly when failing.
86079         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
86080         the failure is actually due to a PATH_MAX problem.
86081
86082         Further getopt changes to make it more likely that glibc will
86083         buy the changes back.
86084         * lib/getopt.c (POSIXLY_CORRECT): New constant.
86085         (getopt): Use it, so to preserve glibc semantic
86086         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
86087         when compiling for libc.
86088         * lib/getopt_.h (__getopt_argv_const): Bring it back.
86089         (getopt_long, getopt_long_only): Use it.
86090
86091         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
86092         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
86093         (getopt): Argv is now char * const *, as per standard.
86094         (_getopt_internal_r, _getopt_internal): Argv is now char **,
86095         not char *__getopt_argv_const *.
86096         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
86097         _getopt_long_only_r): Likewise.
86098         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
86099         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
86100         _getopt_long_r, _getopt_long_only_r): Likewise.
86101         * lib/getopt_.h (__getopt_argv_const): Remove.
86102         (getopt): Argv is now char * const *, as per standard.
86103
86104         * lib/getdate.y (tORDINAL): New token.
86105         (day, relunit): Allow it for relative times.
86106         (relative_time_table): Use tORDINAL for ordinals.
86107
86108 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86109
86110         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
86111         Document that "second" isn't allowed as an ordinal number.
86112
86113 2004-11-16  Jim Meyering  <jim@meyering.net>
86114
86115         * modules/closeout (Depends-on): Add fpending.
86116
86117 2004-11-15  Jim Meyering  <jim@meyering.net>
86118
86119         * lib/closeout.c: Include "__fpending.h" once again.
86120         Include <stdbool.h>.
86121         (close_stdout): Don't fail just because stdout was closed initially,
86122         since some programs don't write to stdout in the normal course of
86123         operation (other than --version and --help), and we don't want this
86124         function to make e.g. `touch file >&-' fail.
86125         But do fail if it was closed and someone has tried to write to it.
86126         E.g., `printf foo >&-' must fail.
86127
86128 2004-11-13  Jim Meyering  <jim@meyering.net>
86129
86130         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
86131
86132 2004-11-12  Simon Josefsson  <jas@extundo.com>
86133
86134         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
86135         small doc fix is still pending.
86136
86137 2004-11-11  Simon Josefsson  <jas@extundo.com>
86138
86139         * modules/strtok_r: New file.
86140
86141         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86142         strtok_r.
86143
86144 2004-11-11  Simon Josefsson  <jas@extundo.com>
86145
86146         * m4/strtok_r.m4: New file.
86147
86148         * m4/getopt.m4: Replace opterr.
86149
86150 2004-11-11  Simon Josefsson  <jas@extundo.com>
86151
86152         * lib/strtok_r.h, strtok_r.c: New file.
86153
86154 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
86155
86156         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
86157         of replacing opterr, getopt, etc.  This should handle the
86158         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
86159
86160 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
86161
86162         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
86163         we can stop lying to compilers about the constness of argv when we
86164         are compiled outside glibc.
86165         (getopt, getopt_long, getopt_long_only): Use it.
86166         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
86167         _getopt_internal, getopt): Likewise.
86168         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
86169         _getopt_long_only_r): Likewise.
86170         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
86171         _getopt_long_r, _getopt_long_only_r): Likewise.
86172
86173         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
86174         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
86175         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
86176         the other external symbols.
86177         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
86178         declaration, since the above renaming now works around collisions.
86179
86180 2004-11-11  Jim Meyering  <jim@meyering.net>
86181
86182         * lib/linebreak.c: Remove trailing blanks.
86183         * lib/alloca_.h: Likewise.
86184         * lib/acosl.c: Likewise.
86185         * lib/euidaccess.c: Likewise.
86186         * lib/allocsa.h: Likewise.
86187
86188 2004-11-10  Simon Josefsson  <jas@extundo.com>
86189
86190         * m4/getaddrinfo.m4: New file.
86191
86192 2004-11-10  Simon Josefsson  <jas@extundo.com>
86193
86194         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
86195
86196 2004-11-10  Simon Josefsson  <jas@extundo.com>
86197
86198         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86199         getaddrinfo.
86200
86201         * modules/getaddrinfo: New file.
86202
86203 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
86204
86205         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
86206
86207 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
86208
86209         * lib/mktime.c (SHR): New macro, which is a portable
86210         substitute for >> that should work even on Crays.
86211         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
86212         Problem reported by Mark D. Baushke in
86213         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
86214         * lib/getdate.y (SHR): Likewise.
86215         (tm_diff): Use it.
86216         * lib/strftime.c (SHR): Likewise.
86217         (tm_diff): Use it.
86218         * lib/quotearg.c (struct quoting_options): Use unsigned int for
86219         quote_these_too, so that right shifts are well defined.  All uses
86220         changed.
86221
86222 2004-11-10  Jim Meyering  <jim@meyering.net>
86223
86224         Ensure that no close failure goes unreported.
86225         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
86226         return early when it seems there's nothing to flush.
86227         Don't include __fpending.h.
86228
86229 2004-11-10  Jim Meyering  <jim@meyering.net>
86230
86231         * modules/closeout (Depends-on): Remove fpending.
86232
86233 2004-11-10  Jim Meyering  <jim@meyering.net>
86234
86235         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
86236
86237 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
86238
86239         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
86240         gl_FUNC_STRFTIME.
86241         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
86242         and AC_REQUIRE when possible, to avoid duplicate checks.
86243         Check for <wchar.h>.
86244
86245 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
86246
86247         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
86248
86249 2004-11-09  Bruno Haible  <bruno@clisp.org>
86250
86251         * m4/sockpfaf.m4: New file.
86252
86253 2004-11-05  Bruno Haible  <bruno@clisp.org>
86254
86255         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
86256         Reported by Mark D. Baushke <mdb@cvshome.org>.
86257
86258 2004-11-04  Bruno Haible  <bruno@clisp.org>
86259
86260         2004-09-11  Bruno Haible  <bruno@clisp.org>
86261                 * allocsa.valgrind: New file.
86262         2004-02-06  Bruno Haible  <bruno@clisp.org>
86263                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
86264                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
86265                 Reported by Christopher Seip <chris.seip@hp.com>.
86266
86267 2004-11-04  Bruno Haible  <bruno@clisp.org>
86268
86269         * modules/allocsa (Files): Add lib/allocsa.valgrind.
86270         (Makefile.am): Distribute it.
86271
86272 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
86273
86274         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
86275         with errno == ERANGE if the buffer is too small.
86276         Problem reported by Mark D. Baushke.
86277
86278 2004-11-03  Albert Chin  <china@thewrittenword.com>
86279             Paul Eggert  <eggert@cs.ucla.edu>
86280
86281         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
86282         equivalent, substitute $ac_type for equivalent type rather than
86283         blindly using uint32_t *always* which won't work if uint32_t is not
86284         available.  Define _UINT32_T to work around typedef of uint32_t if
86285         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
86286         2.5.1.
86287
86288 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86289
86290         * m4/jm-macros.m4: Sync from coreutils.
86291         (gl_MACROS): Check for mbrlen, for pathchk.
86292         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
86293
86294 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86295
86296         * lib/xreadlink.c (MAXSIZE): New macro.
86297         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
86298         size does not exceed MAXSIZE.  Avoid cast.
86299         As suggested by Mark D. Baushke in
86300         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
86301         if readlink fails with buffer size just under MAXSIZE, try again
86302         with MAXSIZE.
86303
86304 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86305
86306         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
86307
86308 2004-11-02  Derek R. Price  <derek@ximbiot.com>
86309         and  Paul Eggert  <eggert@cs.ucla.edu>
86310
86311         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
86312         (get_date): Overparenthesize to avoid GCC warning.
86313
86314 2004-11-02  Bruno Haible  <bruno@clisp.org>
86315
86316         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
86317         returns void.
86318
86319 2004-11-02  Bruno Haible  <bruno@clisp.org>
86320
86321         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
86322         function returns void.
86323
86324 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
86325
86326         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
86327         fflush_unlocked, flockfile, funlockfile, funlockfile,
86328         fputs_unlocked, putc_unlocked.
86329
86330 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
86331
86332         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
86333         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
86334         already declared.
86335
86336 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86337
86338         * modules/getdate (Files): Add doc/getdate.texi.
86339         (Depends-on): Add setenv, xalloc.
86340
86341 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86342
86343         * lib/getdate.y: Add support for TZ="foo" within a date string.
86344         Fix some bugs near time_t boundaries.  Reject dates with
86345         out-of-range components, e.g., "Sept 31".
86346         Include <stdlib.h>, "setenv.h", "xalloc.h".
86347         (ISDIGIT_LOCALE): Remove; unused.
86348         Note that the TZ and time functions used here are not reentrant.
86349         (mktime_ok, get_tz): New functions.
86350         (TZBUFSIZE): New constant.
86351         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
86352         This requires that we sometimes generate our own TZ="XXX..." setting.
86353
86354 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86355
86356         * doc/getdate.texi: New file, from coreutils with modifications for
86357         the new TZ parsing.
86358
86359 2004-10-27  Derek R. Price  <derek@ximbiot.com>
86360
86361         * lib/mktime.c (not_equal_tm): Remove redundant check.
86362
86363 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86364
86365         * modules/regex (lib_SOURCES): Add regex.c.
86366         Reported by James Youngman in
86367         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
86368
86369 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86370
86371         * lib/getdate.y: Use Bison 1.875 features, and some minor
86372         code cleanups.  This change does not affect semantics.
86373         Don't include <stdlib.h>; no longer needed.
86374         Don't include unlocked-io.h; only the "#if TEST" code uses
86375         stdio, and performance isn't crucial there.
86376         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
86377         Bison 1.875 features as described below.
86378         All uses of "PC." replaced by "pc->".
86379         (YYSTYPE): Add a forward declaration.
86380         (yylex, yyerror): Use full prototypes in forward decls.
86381         Use "%pure-parser" rather than obsolescent "%pure_parser".
86382         Use %parse-param and %lex-param instead of obsolescent
86383         YYPARSE_PARAM and YYLEX_PARAM.
86384         (meridian_table, month_and_day_table, time_units_table,
86385         relative_time_table, time_zone_table, military_table,
86386         lookup_zone, lookup_word, get_date):
86387         Use NULL instead of 0 where appropriate.
86388         (to_hour): Avoid abort (), to avoid a dependency on
86389         stdlib.h.
86390         (yyerror, yylex): Now accepts parser_control * arg.
86391         (main) [TEST]: Use '\0' rather than 0 for char.
86392
86393 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
86394
86395         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
86396
86397 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
86398
86399         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
86400         It's now the caller's responsibility to handle the case where
86401         !HAVE_GETPAGESIZE && !defined getpagesize.
86402
86403         * lib/mktime.c (leapyear): Arg is long int, not int.
86404
86405 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
86406
86407         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
86408
86409 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
86410
86411         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
86412         missing.  Problem reported by James Youngman.
86413
86414 2004-10-16  Simon Josefsson  <jas@extundo.com>
86415
86416         * gnulib-tool: Fix comments.  Fix parse problem.
86417         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
86418
86419 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
86420
86421         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
86422         implementation of getopt_long.  Problem reported by Alexander Taler in:
86423         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
86424
86425 2004-10-15  Bruno Haible  <bruno@clisp.org>
86426
86427         * gnulib-tool: Untabify. Initialize supplied_libname.
86428         (func_usage): More homogenous output.
86429         (func_modules_transitive_closure, func_modules_to_filelist,
86430         func_emit_lib_Makefile_am): New functions.
86431         (func_import): New function, extracted from big case statement. Use
86432         func_get_license, func_modules_transitive_closure,
86433         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
86434         opt_lgpl. Don't use test -a, as it's not portable.
86435         (func_create_testdir): Use func_modules_transitive_closure,
86436         func_modules_to_filelist, func_emit_lib_Makefile_am.
86437
86438 2004-10-15  Bruno Haible  <bruno@clisp.org>
86439
86440         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
86441
86442 2004-10-15  Bruno Haible  <bruno@clisp.org>
86443
86444         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
86445         the portions belonging to each module.
86446         Suggested by Derek Robert Price <derek@ximbiot.com>.
86447
86448 2004-10-12  Simon Josefsson  <jas@extundo.com>
86449
86450         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
86451         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
86452         to real functions.
86453
86454 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86455
86456         * modules/vsnprintf: New file.
86457
86458 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86459
86460         * m4/vsnprintf.m4: New file.
86461
86462 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86463
86464         * lib/vsnprintf.h: New file.
86465         * lib/vsnprintf.c: New file.
86466
86467 2004-10-11  Bruno Haible  <bruno@clisp.org>
86468
86469         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
86470         vsnprintf.
86471
86472 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
86473
86474         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
86475
86476 2004-10-07  Bruno Haible  <bruno@clisp.org>
86477
86478         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
86479         fits into the provided buffer.
86480
86481 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
86482
86483         * lib/diacrit.c, diacrit.h: Add GPL notice.
86484
86485         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
86486         notice.
86487         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
86488         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
86489         This avoids a potential constant-folding bug.
86490
86491 2004-10-05  Bruno Haible  <bruno@clisp.org>
86492
86493         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
86494         for the declaration of strsep.
86495
86496 2004-10-05  Bruno Haible  <bruno@clisp.org>
86497
86498         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
86499
86500 2004-10-04  Simon Josefsson  <jas@extundo.com>
86501
86502         * modules/memmem: New file.
86503         * tests/test-memmem.c: New file.
86504         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
86505
86506 2004-10-04  Simon Josefsson  <jas@extundo.com>
86507
86508         * m4/memmem.m4: New file.
86509
86510 2004-10-04  Simon Josefsson  <jas@extundo.com>
86511
86512         * lib/memmem.h: New file.
86513         * lib/memmem.c: New file, taken from glibc.
86514
86515 2004-10-04  Simon Josefsson  <jas@extundo.com>
86516
86517         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
86518         '#ifdef USE_UNLOCKED_IO'.
86519
86520 2004-10-04  Simon Josefsson  <jas@extundo.com>
86521
86522         * config/srclist.txt: Add memmem from glibc.
86523
86524 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86525
86526         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
86527
86528         * modules/argmatch, modules/argp, modules/closeout, modules/error,
86529         modules/exclude, modules/getdate, modules/getline,
86530         modules/getndelim2, modules/getpass, modules/getpass-gnu,
86531         modules/getusershell, modules/linebuffer, modules/md5,
86532         modules/mountlist, modules/posixtm, modules/readtokens,
86533         modules/readutmp, modules/regex, modules/sha1,
86534         modules/version-etc, modules/yesno:
86535         Remove dependency on unlocked-io.
86536
86537 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86538
86539         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
86540
86541         * m4/unlocked-io.m4: Add copyright notice.
86542         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
86543
86544 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86545
86546         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
86547         * lib/xmalloc.c (xmemdup): Likewise.
86548         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
86549         XFREE): Remove these long-obsolescent macros.
86550         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
86551         * lib/xstrdup.c: Remove.
86552
86553         * lib/regex.c (re_comp): Cast gettext return value to char *,
86554         Problem reported by Martin Neitzel via Mark D. Baushke.
86555
86556 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86557
86558         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
86559         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
86560         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
86561         regex.c, sha1.c, version-etc.c, yesno.c:
86562         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
86563         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
86564         the includer's responsibility.
86565
86566         Sync from coreutils.
86567
86568         * lib/modechange.c (mode_compile): Don't decrement a pointer that
86569         points to the start of a string, as the C Standard says the
86570         resulting behavior is undefined.
86571
86572         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
86573         simple -> simple_backups, numbered_existing ->
86574         numbered_existing_backups, numbered -> numbered_backups
86575         to avoid shadowing problems.  All uses changed.
86576         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
86577         * lib/backupfile.c (check_extension, numbered_backup):
86578         Rename locals to avoid shadowing 'basename'.
86579         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
86580         once.
86581
86582         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
86583         * lib/.cvsignore: Add getopt.h.
86584
86585 2004-10-04  Bruno Haible  <bruno@clisp.org>
86586
86587         * modules/README: New file.
86588         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
86589         not a module.
86590
86591 2004-10-02  Jim Meyering  <jim@meyering.net>
86592
86593         * lib/dirfd.h, getpagesize.h: Add copyright notice.
86594
86595 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86596
86597         * modules/strsep: New file.
86598
86599 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86600
86601         * m4/strsep.m4: New file.
86602
86603 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86604
86605         * lib/strsep.h: New file.
86606         * lib/strsep.c: New file.
86607
86608 2004-10-01  Simon Josefsson  <jas@extundo.com>
86609
86610         * lib/snprintf.c (snprintf): Handle size==0.
86611
86612 2004-10-01  Simon Josefsson  <jas@extundo.com>
86613             Bruno Haible  <bruno@clisp.org>
86614
86615         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
86616         (snprintf): Declare 'args'.
86617
86618 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
86619
86620         * lib/snprintf.c: Remove comments as to why each header is needed.
86621
86622 2004-10-01  Bruno Haible  <bruno@clisp.org>
86623
86624         * MODULES.html.sh: Add strsep.
86625
86626 2004-09-30  Simon Josefsson  <jas@extundo.com>
86627
86628         * modules/snprintf: New file.
86629
86630 2004-09-30  Simon Josefsson  <jas@extundo.com>
86631
86632         * m4/snprintf.m4: New file.
86633
86634 2004-09-30  Simon Josefsson  <jas@extundo.com>
86635
86636         * lib/snprintf.h, lib/snprintf.c: New files.
86637
86638 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86639
86640         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
86641         (hol_entry_help): Never translate an empty string.
86642         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
86643         * lib/argp.h (OPTION_NO_TRANS): New option.
86644
86645 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86646
86647         * modules/argp (Maintainer): Replace Simon Josefsson
86648         by Sergey Poznyakoff.
86649
86650 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86651
86652         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
86653         changes merged back into glibc.
86654
86655 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86656
86657         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
86658
86659 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86660
86661         * lib/xvasprintf.c: Include xalloc.h.
86662         (xvasprintf): Use xalloc_die, not xmalloc_die.
86663
86664 2004-09-29  Bruno Haible  <bruno@clisp.org>
86665
86666         * modules/alloca-opt: New file, derived from modules/alloca.
86667         * modules/allocsa: Depend on alloca-opt instead of alloca.
86668         * modules/setenv: Likewise.
86669         * modules/vasnprintf: Likewise.
86670         * MODULES.html.sh: Add alloca-opt.
86671
86672 2004-09-28  Simon Josefsson  <jas@extundo.com>
86673
86674         * gnulib-tool: New parameter --lgpl, to asseert that modules are
86675         LGPL, and to replace license template from GPL to LGPL.
86676
86677 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86678
86679         * modules/dummy: Change license to LGPL.
86680
86681 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86682
86683         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
86684
86685 2004-09-24  Simon Josefsson  <jas@extundo.com>
86686
86687         * modules/minmax (License): Change from GPL to LGPL.
86688
86689 2004-09-23  Simon Josefsson  <jas@extundo.com>
86690
86691         * gnulib-tool (--import): Typo.
86692
86693 2004-09-23  Simon Josefsson  <jas@extundo.com>
86694
86695         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
86696
86697 2004-09-22  Bruno Haible  <bruno@clisp.org>
86698
86699         * modules/*: Add 'License' field.
86700         * gnulib-tool: Accept --extract-license option.
86701         (func_get_license): New function.
86702
86703 2004-09-21  Bruno Haible  <bruno@clisp.org>
86704
86705         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
86706         Reported by Simon Josefsson.
86707
86708 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86709
86710         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
86711         gl_AC_TYPE_LONG_LONG.
86712
86713 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86714
86715         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
86716
86717 2004-09-18  Simon Josefsson  <jas@extundo.com>
86718         and  Paul Eggert  <eggert@cs.ucla.edu>
86719
86720         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
86721         calls with autoreconf.  Define GL_LIB.
86722
86723 2004-09-14  Karl Berry  <karl@gnu.org>
86724
86725         * config/srclist.txt: unsync setenv.c, sigh.
86726
86727 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86728
86729         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
86730         Problem reported by Bruno Haible in:
86731         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
86732
86733 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86734
86735         * config/srclist.txt: Comment out argp-pvh.c.
86736
86737 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
86738
86739         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
86740         in case some system header has #define'd it.  Problem reported by
86741         Soeren D. Schulze in
86742         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
86743
86744 2004-09-09  Karl Berry  <karl@gnu.org>
86745
86746         * regex.[ch]: delete from the root.  These were supposed to be
86747                 synced with emacs cvs, but this has not happened for about
86748                 a year, and anyway nothing else uses emacs regex.[ch].
86749                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
86750                 lib/regex[.ch] is untouched.
86751
86752 2004-09-09  Bruno Haible  <bruno@clisp.org>
86753
86754         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
86755
86756 2004-09-09  Bruno Haible  <bruno@clisp.org>
86757
86758         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
86759         modifications.
86760         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
86761
86762 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86763
86764         * modules/xvasprintf: New file.
86765         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
86766
86767 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86768
86769         * lib/xvasprintf.h: New file.
86770         * lib/xvasprintf.c: New file.
86771         * lib/xasprintf.c: New file.
86772
86773 2004-09-08  Bruno Haible  <bruno@clisp.org>
86774
86775         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
86776
86777 2004-09-08  Bruno Haible  <bruno@clisp.org>
86778
86779         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
86780         length is > INT_MAX.
86781         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
86782         more.
86783
86784 2004-09-08  Bruno Haible  <bruno@clisp.org>
86785
86786         * lib/stdint_.h: New file, taken from GNU clisp.
86787
86788 2004-09-08  Bruno Haible  <bruno@clisp.org>
86789             Oskar Liljeblad  <oskar@osk.mine.nu>
86790
86791         * modules/stdint: New file.
86792         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
86793
86794 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86795
86796         Import from coreutils.
86797         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
86798         strings on unbounded length.  alloca's performance benefits aren't
86799         that important here.
86800         (V_STRDUP): Remove.
86801         (parse_with_separator): New function, with most of the internals
86802         of the old parse_user_spec.  Allow user to omit both user and group,
86803         for compatibility with FreeBSD.
86804         Clone only the user name, not the entire spec.
86805         Do not set *uid, *gid unless entirely successful.
86806         Avoid memory leak in some failing cases.
86807         Fix regression for USER.GROUP reported by Dmitry V. Levin in
86808         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
86809         (parse_user_spec): Rewrite to use parse_with_separator.
86810
86811 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86812
86813         * modules/userspec: Don't depend on alloca.
86814
86815 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86816
86817         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
86818
86819 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86820
86821         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
86822         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
86823         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
86824
86825 2004-08-16  Simon Josefsson  <jas@extundo.com>
86826
86827         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
86828         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
86829         Add --dry-run for --import.
86830         Let user provided command line parameters override configure.ac
86831         settings.
86832
86833 2004-08-12  Simon Josefsson  <jas@extundo.com>
86834
86835         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
86836         as discussed with Paul Eggert in threads rooted at
86837         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
86838         and
86839         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
86840         Before, the test was empty, and relied on ELIDE_CODE in source
86841         code.)
86842         (gl_PREREQ_GETOPT): New macro.
86843         (gl_GETOPT): Use them.
86844
86845 2004-08-12  Simon Josefsson  <jas@extundo.com>
86846
86847         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
86848         * lib/getopt_.h: Renamed from getopt.h.
86849
86850 2004-08-12  Simon Josefsson  <jas@extundo.com>
86851
86852         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
86853         Change default library name from libfoo to libgnu.
86854         Now, if you have a configure.ac that says:
86855                 gl_SOURCE_BASE(gl)
86856                 gl_M4_BASE(gl/m4)
86857                 gl_MODULES(error getopt etcetera)
86858                 gl_INIT
86859         you can import all you need by running:
86860                 ../gnulib/gnulib-tool --import
86861
86862         * modules/getopt (Files): Rename getopt.h to getopt_.h.
86863         (Makefile.am): Rewrite, use logic from argz.
86864         (Include): Use <getopt.h> instead of "getopt.h".
86865
86866 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86867
86868         * modules/argp (Files): Add m4/unlocked-io.m4.
86869         (Depends-on): Add extensions.
86870
86871 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86872
86873         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
86874         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
86875         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
86876         Check for program_invocation_name, program_invocation_short_name,
86877         flockfile, funlockfile, features.h, _getopt_long_only_r.
86878
86879 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86880
86881         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
86882         its complicated substitute.
86883         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
86884         and program_invocation_name.
86885         (__argp_basename) [!_LIBC]: Remove; the only use was
86886         replaced by its body.
86887         (__argp_short_program_name): Change condition from
86888         !defined __argp_short_program_name to
86889         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
86890         to match argp-namefrob.h.
86891         (__argp_failure): Don't assume strerror_r returns char *.
86892         * lib/argp-parse.c (N_): Define unconditionally.
86893         (argp_default_options): Fill out initializers with 0 to avoid
86894         gcc warnings.
86895
86896 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86897
86898         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
86899         getopt1.c.
86900
86901 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86902
86903         Merge from coreutils.
86904
86905         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
86906
86907         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
86908         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
86909
86910 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86911
86912         Merge from coreutils.
86913
86914         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
86915         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
86916         for Reliant Unix 5.43.
86917
86918         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
86919         (union fooround): Use uintmax_t, not long int.
86920         The rest is a merge from libc:
86921         [defined _LIBC]: Include <shlib-compat.h>.
86922         (_obstack) [defined _LIBC]: Remove after 2.3.4.
86923
86924         * lib/settime.c (settime): Recode to avoid warning with
86925         Sun Forte C 6U2.
86926
86927         * lib/strverscmp.c: Convert to UTF-8.
86928
86929 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86930
86931         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
86932         m4/uintmax_t.m4.
86933
86934 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86935
86936         * modules/xalloc-die: New file.
86937         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
86938
86939         * modules/md5 (Files): Add m4/uint32_t.m4.
86940         * modules/sha1: Renamed from modules/sha.
86941         (Files):
86942         Rename lib/sha.h to lib/sha1.h.
86943         Rename lib/sha.c to lib/sha1.c.
86944         Rename m4/sha.m4 to m4/sha1.m4.
86945         (lib_SOURCES): Likewise.
86946         (configure.ac): Rename gl_SHA to gl_SHA1.
86947         (Include): sha.h -> sha1.h.
86948
86949 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86950
86951         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
86952         * m4/sha1.m4: Renamed from sha.m4.
86953         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
86954
86955 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86956
86957         * lib/obstack.h (obstack_empty_p):
86958         Don't assume that chunk->contents is suitably aligned.
86959         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
86960         Likewise. Problem reported by Benno in
86961         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
86962
86963         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
86964         readable.  This could be improved further but it'd take some work.
86965
86966 2004-08-08  Simon Josefsson  <jas@extundo.com>
86967
86968         * modules/xgethostname (Depends-on): Remove exit and error (not
86969         used).
86970
86971         * modules/getpass-gnu: Add getpass.h.
86972         (Depends-on): Add stdbool.
86973         * modules/getpass: Add getpass.h.
86974
86975 2004-08-08  Simon Josefsson  <jas@extundo.com>
86976
86977         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
86978         Check getpass declaration.
86979
86980 2004-08-08  Simon Josefsson  <jas@extundo.com>
86981
86982         * lib/xgethostname.c: Don't include error.h (not used).
86983
86984         * lib/getpass.h: Add.
86985         * lib/getpass.c: Include getpass.h first.
86986
86987 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
86988
86989         * lib/xalloc-die.c: New file.
86990         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
86991         All uses removed.
86992         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
86993         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
86994         xalloc-die.c.
86995         (_, N_, xalloc_die): Move to xalloc-die.c.
86996         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
86997         so that we needn't mess with xalloc_msg_memory_exhausted.
86998
86999         * lib/sha1.h: Renamed from sha.h.
87000         (SHA1_H): Renamed from _SHA_H.
87001         (sha1_ctx): Renamed from sha_ctx.
87002         (sha1_init_ctx): Renamed from sha_init_ctx.
87003         (sha1_process_block): Renamed from sha_process_block.
87004         (sha1_process_bytes): Renamed from sha_process_bytes.
87005         (sha1_finish_ctx): Renamed from sha_finish_ctx.
87006         (sha1_read_ctx): Renamed from sha_read_ctx.
87007         (sha1_stream): Renamed from sha_stream.
87008         (sha1_buffer): Renamed from sha_buffer.
87009         * lib/sha1.c: Likewise; renamed from sha.c.
87010         Do not include <sys/types.h>.
87011         Include <stddef.h> rather than <stdlib.h>.
87012
87013 2004-08-08  Bruno Haible  <bruno@clisp.org>
87014
87015         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
87016         FILESYSTEM_PREFIX_LEN.
87017         * lib/progreloc.c: Likewise.
87018         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
87019
87020 2004-08-06  Simon Josefsson  <jas@extundo.com>
87021
87022         * modules/progname (Depends-on): Don't depend on stdbool.
87023
87024 2004-08-06  Simon Josefsson  <jas@extundo.com>
87025
87026         * modules/getsubopt: New file.
87027         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87028         getsubopt.
87029
87030 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
87031
87032         More merge from coreutils.
87033
87034         * m4/utimens.m4, m4/utimecmp.m4: New files.
87035         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
87036         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
87037         prereq.m4, sha.m4: Import changes from coreutils.
87038
87039 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
87040
87041         More merge from coreutils.
87042         * modules/raise, modules/readtokens0, modules/utimens:
87043         * modules/utimecmp, module/xnanosleep: New files.
87044         * modules/strftime: Add lib/strftime.h.
87045         Change include from <time.h> to "strftime.h".
87046         * modules/yesno: Add lib/yesno.h.
87047         * modules/backupfile: Remove lib/addext.c.
87048         * modules/euidaccess: Add stat-macros.h.
87049         * modules/canonicalize, modules/euidaccess,
87050         modules/filemode, modules/lchown, modules/makepath,
87051         modules/rmdir, modules/stat: Likewise.
87052
87053 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
87054
87055         Merge from tar.
87056         * lib/argp-help.c (make_hol, hol_append): Don't assume that
87057         SIZE_MAX is a valid preprocessor constant.
87058         (__argp_basename): Change from "#ifndef _LIBC"
87059         to "#ifndef __argp_short_program_name", so that
87060         we don't compile these functions for tar.
87061
87062         More merges from coreutils.
87063         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
87064         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
87065         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
87066         * lib/addext.c: Remove; no longer needed.
87067         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
87068         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
87069         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
87070         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
87071         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
87072         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
87073         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
87074         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
87075         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
87076         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
87077         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
87078         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
87079         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
87080         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
87081         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
87082         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
87083         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
87084         Import changes from coreutils.
87085
87086 2004-08-05  Simon Josefsson  <jas@extundo.com>
87087
87088         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
87089
87090 2004-08-05  Simon Josefsson  <jas@extundo.com>
87091
87092         * m4/getsubopt.m4: New file.
87093
87094 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
87095
87096         Merge from coreutils.
87097
87098         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
87099         * m4/getcwd-path-max.m4: New files.
87100
87101         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
87102         FILESYSTEM_PREFIX_LEN ->
87103         FILE_SYSTEM_PREFIX_LEN.
87104         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
87105         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
87106         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
87107         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
87108
87109         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
87110         prerequisite modules now handle the DOS stuff.
87111         Don't check for unistd.h.
87112
87113 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
87114
87115         Merge from coreutils.
87116
87117         * lib/.gdb-history: Remove; this doesn't belong here.
87118
87119         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
87120         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
87121         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
87122         * lib/getcwd.c: New files.
87123
87124         * lib/dirname.h: Include <stdbool.h>.
87125         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
87126         for consistency with POSIX terminology.  All uses changed.
87127         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
87128         (strip_trailing_slashes): Use bool for booleans.
87129         * lib/stripslash.c (strip_trailing_slashes): Likewise.
87130
87131         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
87132         sometimes returns a positive errno value even when it succeeds.
87133         (print_errno_message) [!LIBC]: Fall back on strerror if
87134         __strerror_r fails.
87135
87136         * lib/path-concat.c (mempcpy): Don't define if a system header defines
87137         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
87138         (longest_relative_suffix): New function.
87139         (path_concat): Use it.  Assume first argument is not NULL.
87140         Port to DOS.  Omit redundant separators.
87141         Report an error instead of returning NULL.
87142         Use mempcpy instead of memcpy.
87143         (xpath_concat): Remove: not declared or used.
87144
87145         * lib/same.h: Include <stdbool.h>
87146         (same_name): Return bool, not int.
87147         * lib/same.c (same_name): Likewise.
87148         (errno): Don't declare; we assume C89 or better now.
87149
87150         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
87151         if not already defined.
87152
87153         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
87154         * lib/dup-safer.c (errno): Likewise.
87155
87156 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
87157
87158         Merge from coreutils.
87159         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
87160         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
87161         * modules/path-concat: Don't depend on strdup.
87162
87163 2004-08-03  Simon Josefsson  <jas@extundo.com>
87164
87165         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
87166         * lib/progname.h: Don't include stdbool.h.
87167
87168 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87169
87170         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
87171         * MODULES.html.sh (func_all_modules): Remove fatal.
87172
87173 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87174
87175         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
87176
87177 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87178
87179         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
87180         working.
87181
87182 2004-08-02  Simon Josefsson  <jas@extundo.com>
87183
87184         * lib/getsubopt.h: New file, with comments from Bruno Haible.
87185         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
87186         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
87187
87188 2004-08-01  Simon Josefsson  <jas@extundo.com>
87189
87190         * lib/xgetdomainname.c: Include stdlib.h, for free().
87191
87192 2004-07-19  Bruno Haible  <bruno@clisp.org>
87193
87194         * MODULES.html.sh (func_all_modules): Add dummy.
87195
87196 2004-07-16  Simon Josefsson  <jas@extundo.com>
87197
87198         * modules/dummy: New file.
87199
87200 2004-07-16  Simon Josefsson  <jas@extundo.com>
87201
87202         * lib/dummy.c: New file.
87203
87204 2004-07-16  Bruno Haible  <bruno@clisp.org>
87205
87206         * lib/backupfile.h: Add extern "C" for C++.
87207         * lib/closeout.h: Likewise.
87208         * lib/copy-file.h: Likewise.
87209         * lib/findprog.h: Likewise.
87210         * lib/full-write.h: Likewise.
87211         * lib/pathname.h: Likewise.
87212         * lib/progname.h: Likewise.
87213         * lib/stpcpy.h: Likewise.
87214         * lib/stpncpy.h: Likewise.
87215         * lib/strcase.h: Likewise.
87216         * lib/strstr.h: Likewise.
87217         * lib/xalloc.h: Likewise.
87218
87219         * lib/mbswidth.h: Add extern "C" for C++.
87220         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
87221
87222 2004-07-13  Robert Millan  <robertmh@gnu.org>
87223
87224         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
87225
87226 2004-07-09  Simon Josefsson  <jas@extundo.com>
87227
87228         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
87229         failed without this.)
87230
87231 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
87232
87233         * modules/chown (Files): Add lib/fchown-stub.c, since
87234         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
87235
87236 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
87237
87238         * lib/fchown-stub.c: New file.
87239
87240 2004-06-24  Jim Meyering  <jim@meyering.net>
87241
87242         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
87243
87244 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87245
87246         * modules/argz: Omit "#include".
87247
87248         * MODULES.html.sh (func_all_modules): Add calloc, to match
87249         2004-06-01 addition of calloc module.
87250
87251 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87252
87253         * m4/argz.m4: New file, which is autoupdated from libtool.
87254
87255 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87256
87257         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
87258         libtool.
87259
87260 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87261
87262         * config/srclist-update: Don't insist on "USA." before the
87263         close-comment, as libtool omits the period and puts the */ on a
87264         separate line.
87265         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
87266         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
87267
87268 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
87269
87270         * modules/argz: New file.
87271         * MODULES.html.sh (func_all_modules): Add argz.
87272
87273 2004-06-12  Jim Meyering  <jim@meyering.net>
87274         and  Paul Eggert  <eggert@cs.ucla.edu>
87275
87276         * modules/hash (Files): Add lib/xalloc.h.
87277         * modules/pipe (Depends-on): Add wait-process.
87278         * modules/stat (Depends-on): Add xalloc.
87279         * modules/userspec (Files): Add lib/userspec.h.
87280         * modules/xstrto
87281
87282         Upgrade from gettext-0.13.
87283         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
87284         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
87285         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
87286
87287 2004-06-10  Jim Meyering  <jim@meyering.net>
87288
87289         * lib/calloc.c: New file.
87290
87291 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
87292
87293         * lib/getdate.y (yylex): Allow space between sign and number.
87294         Problem reported by Dan Jacobson.
87295
87296 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
87297
87298         Merge from coreutils CVS.
87299
87300         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
87301         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
87302         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
87303         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
87304         xstrtol.m4: Fix copyright date and/or serial number.
87305
87306         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
87307         See if we need an fchown replacement.
87308         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
87309         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
87310         and use the replacement function if we detect either defect.
87311
87312         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
87313         gl_UTIMECMP.
87314
87315 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
87316         and  Jim Meyering  <jim@meyering.net>
87317
87318         Merge from coreutils CVS.
87319
87320         * lib/stat-macros.h: New file, with contents from file-type.h
87321         and coreutils' system.h.
87322         * lib/file-type.c: Include "stat-macros.h".
87323         * lib/file-type.h (file_type): Move all macro definitions to new file,
87324         stat-macros.h.
87325
87326         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
87327         Wrap old code with this conditional.
87328         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
87329         function that does not dereference symlinks.
87330         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
87331
87332         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
87333         dependency problems.
87334         (xreadlink): Accept new arg SIZE, for efficiency.
87335         All decls and uses changed.
87336         * lib/xreadlink.h: Include <stddef.h>, for size_t.
87337
87338         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
87339         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
87340
87341         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
87342         sysexits.h.
87343
87344 2004-06-01  Jim Meyering  <jim@meyering.net>
87345
87346         * m4/calloc.m4: New file.
87347
87348 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
87349
87350         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
87351         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
87352         Also, fix a typo in a diagnostic.
87353
87354 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
87355
87356         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
87357         or AC_FUNC_REALLOC.
87358
87359 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
87360
87361         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
87362         macros to be defined.
87363         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
87364         the allocator returns NULL because the requested size is zero.
87365
87366 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87367
87368         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
87369         var.  Add comment explaining why libc still defines it.  This
87370         merges the following patch from glibc:
87371         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
87372
87373 2004-05-20  Andreas Schwab  <schwab@suse.de>
87374
87375         * m4/free.m4: Replace free if it not known to work, not the other
87376         way round.
87377
87378 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
87379
87380         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
87381         present in glibc since revision 1.1 of this file.
87382         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
87383         obstack_alignment_mask, obstack_alloc, obstack_base,
87384         obstack_blank, obstack_blank_fast, obstack_chunk_size,
87385         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
87386         obstack_grow0, obstack_init, obstack_int_grow,
87387         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
87388         obstack_next_free, obstack_object_size, obstack_ptr_grow,
87389         obstack_ptr_grow_fast, obstack_room): Remove declarations of
87390         nonexistent functions.
87391
87392 2004-05-18  Karl Berry  <karl@gnu.org>
87393
87394         * config/srclist.txt: break link for vasnprintf.c.
87395
87396 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
87397
87398         Port obstack to the AS/400, where pointers are 16 bytes wide and
87399         you cannot cast an integer to a valid pointer.  This patch is
87400         currently waiting to be integrated into glibc; see
87401         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
87402
87403         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
87404         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
87405         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
87406         (struct obstack): temp member is now a union of a pointer and
87407         an integer, instead of an integer.  All integer uses changed.
87408         This does not affect the physical layout of struct obstack,
87409         except on hosts (like the AS/400) where the size or alignment of
87410         void * is greater than that of ptrdiff_t.
87411         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
87412         __STDC__)]: Store temporary in pointer member of union, not
87413         integer member.
87414         * lib/obstack.c: Include <stddef.h>, for offsetof.
87415         (struct fooalign): Remove; it doesn't need a name.
87416         (union fooround): Change double to long double, and add void *.
87417         (DEFAULT_ALIGNMENT): Use offsetof to compute.
87418         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
87419         not a macro.  Hence the values are always int; so remove all
87420         casts-to-int in uses.
87421
87422 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
87423
87424         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
87425         we can get this patch merged into glibc.
87426
87427 2004-05-17  Derek R. Price  <derek@ximbiot.com>
87428             Paul Eggert  <eggert@cs.ucla.edu>
87429
87430         * m4/argp: Depend on alloca.
87431
87432 2004-05-17  Derek R. Price  <derek@ximbiot.com>
87433             Paul Eggert  <eggert@cs.ucla.edu>
87434
87435         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
87436         freecoding.
87437
87438 2004-05-17  Bruno Haible  <bruno@clisp.org>
87439
87440         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
87441         precision that consists of a '.' followed by an empty digit string.
87442         Patch by Tor Lillqvist <tml@iki.fi>.
87443
87444 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
87445
87446         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
87447         for backward compatibility with older code.  We need our own
87448         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
87449         it under some other name, and our alloca.h will define it.
87450
87451 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
87452             Derek Price  <derek@ximbiot.com>
87453
87454         * lib/alloca.c: Include <alloca.h>, to get our interface.
87455         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
87456         include <alloca.h> first.  Use C89 prototype for alloca; this
87457         requires including <stddef.h> for size_t.  Use extern "C" if C++.
87458         Use #elif for simplicity, since we can assume C89 now.
87459         Don't try to source the system alloca.h since it will not be found
87460         and to prevent recursively including its replacement.
87461         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
87462         * lib/regex.c: Likewise.
87463
87464 2004-05-16  Derek Price  <derek@ximbiot.com>
87465             Paul Eggert  <eggert@cs.ucla.edu>
87466
87467         getline cleanup.  This changes the getndelim2 API: both order of
87468         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
87469         no delimiter).
87470
87471         * lib/getline.c: Don't include stddef.h or stdio.h, since our
87472         interface does that.
87473         (getline): Always use getdelim, so that we don't have two
87474         copies of this code.
87475         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
87476         if available.
87477         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
87478         (GETNDELIM2_MAXIMUM): New macro.
87479         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
87480         instead of the old practice of delim2==0.  All callers changed.
87481         Return -1 on overflow, instead of returning junk.
87482         Do not set *linesize unless allocation succeeds.
87483         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
87484         that we include sys/types.h.
87485         * lib/getnline.h: Likewise.
87486         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
87487         (getndelim2): Reorder arguments.
87488         * lib/getnline.c (getnline, getndelim):
87489         Don't discard the NMAX argument.
87490         (getnline): Invoke getndelim, to avoid code duplication.
87491         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
87492         of (size_t) -1 by callers of the getnline family.
87493
87494 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87495
87496         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
87497         Check for gettimeofday.
87498         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
87499         Check for settimeofday, stime.
87500
87501 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87502
87503         * lib/nanosleep.c (suspended): Change its type from int to
87504         sig_atomic_t volatile.
87505         (first_call): Make it private to rpl_nanosleep, and have it
87506         be zero initially as that's a bit faster.
87507         (my_usleep): Round up fractional times instead of truncating them,
87508         as this is the usual meaning for 'sleep'.
87509
87510         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
87511         doesn't work.
87512         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
87513         (ENOSYS): Define if not defined.
87514         (settime): Fall back on stime if it exists and settimeofday fails.
87515         But don't bother with fallbacks if a method fails with errno == EPERM.
87516
87517 2004-05-11  Jim Meyering  <jim@meyering.net>
87518
87519         Prior to this change, the save_cwd caller required read access to the
87520         current directory on most systems (ones with the fchdir function).
87521
87522         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
87523         fails, try write-only, and finally, resort to using xgetcwd.
87524
87525 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
87526
87527         * lib/obstack.c, obstack.h: Import changes from libc.
87528
87529 2004-04-28  Bruno Haible  <bruno@clisp.org>
87530
87531         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
87532         also implicitly appends .exe to executables.
87533         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
87534         accepts Windows pathnames.
87535         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
87536         Treat Cygwin like Windows, since it now accepts Windows pathnames.
87537         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
87538         Treat Cygwin like Windows, since it now accepts Windows pathnames.
87539         Reported by Derek Robert Price <derek@ximbiot.com>.
87540
87541 2004-04-21  Karl Berry  <karl@gnu.org>
87542
87543         * config/srclist.txt (localcharset.c): break sync.
87544
87545 2004-04-20  Paul Eggert  <eggert@twinsun.com>
87546
87547         * m4/host-os.m4: Add a copyright notice.
87548
87549 2004-04-20  Jim Meyering  <jim@meyering.net>
87550
87551         Change UTILS_ to gl_ in AC_DEFINE'd names.
87552         Change utils_- and jm_-prefixed variables, too.
87553         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
87554         UTILS_FUNC_MKDIR_TRAILING_SLASH.
87555         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
87556
87557         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
87558         Don't emit trailing blanks.
87559         Also rename jm_-prefixed variables to have gl_ prefix.
87560
87561         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
87562         Also rename jm_-prefixed variables to have gl_ prefix.
87563
87564         * m4/jm-macros.m4: Reflect the renamings.
87565         * m4/prereq.m4: Likewise.
87566
87567 2004-04-20  Jim Meyering  <jim@meyering.net>
87568
87569         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
87570         memory.
87571
87572 2004-04-20  Jim Meyering  <jim@meyering.net>
87573             Bruno Haible  <bruno@clisp.org>
87574
87575         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
87576         memory when realloc fails.
87577
87578 2004-04-19  Jim Meyering  <jim@meyering.net>
87579
87580         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
87581         now that readutmp.c may call `free (0)'.
87582
87583 2004-04-19  Bruno Haible  <bruno@clisp.org>
87584
87585         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
87586         * m4/inttypes_h.m4: Likewise.
87587         * m4/stdint_h.m4: Likewise.
87588         * m4/intmax_t.m4: Likewise.
87589         * m4/uintmax_t.m4: Likewise.
87590
87591 2004-04-18  Jim Meyering  <jim@meyering.net>
87592
87593         * m4/prereq.m4: Don't forbid jm_ prefix.
87594
87595         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
87596         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
87597         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
87598         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
87599         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
87600         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
87601         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
87602         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
87603         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
87604         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
87605         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
87606         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
87607         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
87608         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
87609         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
87610         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
87611         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
87612         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
87613         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
87614
87615 2004-04-18  Jim Meyering  <jim@meyering.net>
87616
87617         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
87618         failure, don't leak memory and do call END_UTMP_ENT.
87619
87620 2004-04-16  Jim Meyering  <jim@meyering.net>
87621
87622         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
87623         coreutils' stat program.
87624         (gl_PREREQ): Don't require jm_PREREQ_STAT.
87625
87626 2004-04-11  Paul Eggert  <eggert@twinsun.com>
87627
87628         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
87629         C89.
87630         (CHAR_BIT): Remove, since we assume C89.
87631         Include <stdint.h> if available, as per current Autoconf CVS advice.
87632
87633 2004-03-31  Jim Meyering  <jim@meyering.net>
87634
87635         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
87636         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
87637         * m4/xalloc.m4: Likewise.
87638
87639 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87640
87641         Merge from coreutils.
87642
87643         * m4/inttostr.m4: New file.
87644         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
87645         Require AM_STDBOOL_H and gl_TIMESPEC instead.
87646         Require gl_CLOCK_TIME.
87647         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
87648
87649 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87650
87651         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
87652         not bool, to be more consistent with Unix conventions.
87653         Suggested by Bruno Haible.
87654
87655         Merge from coreutils.
87656
87657         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
87658         * lib/umaxtostr.c: New files.
87659
87660         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
87661         the usual <time.h> dance.
87662         (get_date): Change signature to support fractional time stamps.
87663         All callers changed.
87664         * lib/getdate.y: Include "getdate.h" first, as we can now
87665         assume C89 and don't need to worry about 'const'.
87666         Similarly, include "unlocked-io.h" near start, not in middle.
87667         Include <limits.h>.
87668         (textint.value): Use long int rather than int.
87669         (textint.digits): Use size_t rather than int.
87670         (BILLION, LOG10_BILLION): New constants.
87671         (parser_control): New member rel_ns.  Members day_ordinal,
87672         time_zone, month, day, hour, minutes, rel_year, rel_month,
87673         rel_day, rel_hour, rel_minutes, rel_seconds
87674         are now long int, not int.  Member seconds is now struct timespec,
87675         not int.  New member timespec_seen.  Members dates_seen, days_seen,
87676         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
87677         not int.
87678         (%union.intval): Now long int, not int.
87679         New member timespec.
87680         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
87681         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
87682         (spec): Now is a timespec or an item list.
87683         (timespec, items): New nonterminals.
87684         (time, rel, relunit, number, get_date):
87685         Add support for fractional seconds.
87686         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
87687         (gmtime, localtime, mktime): Remove decls; not needed with C89.
87688         (to_hour): First arg is now long int, not int.
87689         (to_year): Returns long int, not int.
87690         Don't treat year -70 like 70.
87691         (tm_diff): Returns long int, not int.
87692         (lookup_word): Use bool instead of int when appropriate.
87693         (yylex): Use size_t for count, not int.
87694         Detect overflow when parsing large integer constants.
87695         Add support for fractions.
87696         (get_date): Make pointers 'const' if possible.
87697         Use more-portable code to detect integer overflow.
87698         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
87699         Don't use ctime; it's not reliable if the year has >4 digits.
87700
87701         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
87702         This is for compatibility with BSD.
87703
87704         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
87705         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
87706         From coreutils' system.h.
87707
87708         * lib/userspec.c: Don't include "posixver.h".
87709         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
87710         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
87711         compatible extension.  Simplify code by removing a boolean int
87712         that was always nonzero if a string was nonnull.
87713
87714 2004-03-30  Jim Meyering  <jim@meyering.net>
87715
87716         Merge from coreutils.
87717
87718         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
87719         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
87720         on some systems one must include <grp.h> before it.
87721         Reported by Christian Krackowizer.
87722
87723 2004-03-30  Jim Meyering  <jim@meyering.net>
87724
87725         Merge from coreutils.
87726
87727         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
87728
87729         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
87730         an empty input stream.
87731
87732         * lib/readtokens.c: Include <stdbool.h>.
87733         (readtoken): Use `size_t' rather than int/long.
87734         All callers adjusted.
87735         Use `bool' rather than `int' where appropriate.
87736         Use memset rather than an explicit loop.
87737         Use x2nrealloc rather than xrealloc.
87738         Allow the use of `\0' as a delimiter.
87739         (readtokens): Likewise.
87740         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
87741
87742 2004-03-30  Jim Meyering  <jim@meyering.net>
87743
87744         * m4/realloc.m4: Remove file, since now it does no more than
87745         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
87746         the `configure.ac' section of module/realloc.
87747         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
87748
87749 2004-03-30  Bruno Haible  <bruno@clisp.org>
87750
87751         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
87752         nonnull.
87753
87754 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87755
87756         Merge changes to getloadavg.c from coreutils and Emacs.
87757
87758         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
87759         Define to an expression, not to the empty string.
87760         Include cloexec.h and xalloc.h.
87761         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
87762         Use set_cloexec_flag rather than rolling our own.
87763         * lib/cloexec.c, lib/cloexec.h: New files.
87764
87765 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87766
87767         * m4/cloexec.m4: New file.
87768
87769 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87770
87771         * lib/getopt.h: Sync with libc CVS.
87772
87773 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87774             Bruno Haible  <bruno@clisp.org>
87775
87776         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
87777         mbswidth.
87778
87779 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87780             Bruno Haible  <bruno@clisp.org>
87781
87782         * lib/mbswidth.h: Include <wchar.h> only if
87783         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
87784         <wchar.h>.
87785         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
87786
87787 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87788
87789         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
87790         Sync with libc CVS.
87791         * lib/getopt_int.h: New file, also synced from libc.
87792
87793 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87794
87795         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
87796         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
87797         Bring back getopt.c, getopt.h, getopt1.c.
87798
87799 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87800
87801         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
87802         All uses changed.  Check for sa_sigaction member; this fixes
87803         a bug first reported by Jason Andrade in
87804         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87805
87806 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87807
87808         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
87809         '#if' expressions.  Unlike the code it replaces, it does not
87810         depend on (defined _SC_PAGESIZE).  However, it does depend on
87811         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
87812         first reported by Jason Andrade in
87813         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87814
87815 2004-02-25  Simon Josefsson  <jas@extundo.com>
87816
87817         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
87818
87819 2004-02-25  Simon Josefsson  <jas@extundo.com>
87820
87821         * lib/strdup.h: New file.
87822         * lib/strdup.c: Include it.
87823         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
87824         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
87825
87826 2004-02-23  Karl Berry  <karl@gnu.org>
87827
87828         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
87829         (from fencepost.gnu.org:/gd/gnuorg).
87830
87831 2004-02-23  Karl Berry  <karl@gnu.org>
87832
87833         * config/srclistvars.sh (GNUORG) [karl]: redefine.
87834         * config/srclist.txt: add maintain/standards documents.
87835
87836 2004-02-18  Bruno Haible  <bruno@clisp.org>
87837
87838         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
87839         Reported by Derek Robert Price <derek@ximbiot.com>.
87840
87841 2004-02-16  Karl Berry  <karl@gnu.org>
87842
87843         * config/mkinstalldirs, install-sh: update from automake.
87844
87845 2004-02-06  Karl Berry  <karl@gnu.org>
87846
87847         * m4/po.m4: update from gettext 0.14.1.
87848
87849 2004-02-06  Karl Berry  <karl@gnu.org>
87850
87851         * lib/config.charset: update from gettext 0.14.1.
87852
87853 2004-02-05  Paul Eggert  <eggert@twinsun.com>
87854
87855         Add comments and code, prompted by suggestions from Bruno Haible
87856         for sh-quote.
87857         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
87858         describing the enum quoting_style values.
87859         * lib/quotearg.c (quotearg_alloc): New function.
87860         (quotearg_buffer_restyled): Treat lone { and } as special.
87861         Treat = as special.  Work around bug with older shells
87862         that "see" a '\' that is really the 2nd byte of a multibyte char.
87863         Quote empty string with shell_quoting_style.
87864
87865 2004-02-03  Bruno Haible  <bruno@clisp.org>
87866
87867         * m4/pipe.m4: New file, from GNU gettext.
87868
87869 2004-02-03  Bruno Haible  <bruno@clisp.org>
87870
87871         * lib/pipe.h: New file, from GNU gettext.
87872         * lib/pipe.c: New file, from GNU gettext.
87873
87874 2004-01-27  Bruno Haible  <bruno@clisp.org>
87875
87876         * m4/execute.m4: New file, from GNU gettext.
87877
87878 2004-01-27  Bruno Haible  <bruno@clisp.org>
87879
87880         * lib/execute.h: New file, from GNU gettext.
87881         * lib/execute.c: New file, from GNU gettext.
87882         * lib/w32spawn.h: New file, from GNU gettext.
87883
87884 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87885
87886         Merge from diffutils.
87887
87888         * lib/file-type.c (file_type): Add typed memory objects.
87889         * lib/file-type.h (S_TYPEISTMO): New macro.
87890
87891         * lib/c-stack.h (c_stack_action): Remove argv argument.
87892         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
87893         (die): Don't calculate message unless segv_action returns.
87894         (get_stack_location, min_address_from_argv, max_address_from_argv,
87895         volatile stack_base, volatile_stack_size): Remove.
87896         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
87897         that every segmentation violation is a stack overflow.  (Ouch!)
87898         See Debian bug 136249 (still outstanding) for more info about why
87899         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
87900
87901 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87902
87903         Exit-status fix from coreutils.
87904
87905         Use exit_failure consistently in place of EXIT_FAILURE,
87906         so that program exit statuses are consistent on failure.
87907
87908         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
87909         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
87910         * lib/argmatch.h: Comment fix to match the above.
87911         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
87912         Now a macro referring to exit_failure, instead of a separate
87913         variable.  Include "exitfail.h" to get it.
87914         * lib/xstrtol.h: Include "exitfail.h".
87915         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
87916
87917         * lib/long-options.c (parse_long_options): Use prototype
87918         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
87919         for clarity.
87920
87921 2004-01-21  Jim Meyering  <jim@meyering.net>
87922
87923         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
87924         so as not to conflict with a different-sized __mktime_internal
87925         function in GNU libc.
87926         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
87927         Problem building statically-linked `ls' reported by Michael Brunnbauer.
87928
87929 2004-01-20  Karl Berry  <karl@gnu.org>
87930
87931         * config/config.guess: update from config.
87932
87933         * config/srclistvars.sh: GNUWWWLICENSES for karl.
87934
87935 2004-01-20  Bruno Haible  <bruno@clisp.org>
87936
87937         Safer stack allocation.
87938         * lib/setenv.c: Include allocsa.h.
87939         (alloca): Remove fallback definition.
87940         (freea): Remove macro.
87941         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
87942         instead of freea.
87943
87944 2004-01-20  Bruno Haible  <bruno@clisp.org>
87945
87946         * m4/eealloc.m4: New file, from GNU gettext.
87947
87948 2004-01-20  Bruno Haible  <bruno@clisp.org>
87949
87950         * m4/allocsa.m4: New file, from GNU gettext.
87951
87952 2004-01-20  Bruno Haible  <bruno@clisp.org>
87953
87954         * lib/xallocsa.h: New file, from GNU gettext.
87955         * lib/xallocsa.c: New file, from GNU gettext.
87956
87957 2004-01-20  Bruno Haible  <bruno@clisp.org>
87958
87959         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
87960
87961 2004-01-20  Bruno Haible  <bruno@clisp.org>
87962
87963         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
87964         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
87965         specially.
87966
87967 2004-01-20  Bruno Haible  <bruno@clisp.org>
87968
87969         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
87970         patch.
87971
87972 2004-01-20  Bruno Haible  <bruno@clisp.org>
87973
87974         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
87975
87976 2004-01-20  Bruno Haible  <bruno@clisp.org>
87977
87978         * lib/eealloc.h: New file.
87979
87980 2004-01-20  Bruno Haible  <bruno@clisp.org>
87981
87982         * lib/binary-io.h: Avoid warnings on Cygwin.
87983
87984 2004-01-20  Bruno Haible  <bruno@clisp.org>
87985
87986         * lib/allocsa.h: New file, from GNU gettext.
87987         * lib/allocsa.c: New file, from GNU gettext.
87988
87989 2004-01-18  Karl Berry  <karl@gnu.org>
87990
87991         * doc/gpl.texi, doc/lgpl.texi: new files.
87992
87993 2004-01-18  Karl Berry  <karl@gnu.org>
87994
87995         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
87996         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
87997
87998 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87999
88000         Merge from coreutils.
88001
88002         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
88003         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
88004         (gl_DEFAULT_POSIX2_VERSION): Move
88005         the documentation from 'configure' into 'config.hin',
88006         so that 'configure --help' isn't burdened by it and
88007         we don't have to worry about its formatting there.
88008         Reword the documentation so that it's more succinct
88009         and can be run together into a single paragraph.
88010         * m4/same.m4 (gl_SAME): Check for pathconf.
88011
88012 2004-01-15  Paul Eggert  <eggert@twinsun.com>
88013
88014         Merge from coreutils.
88015
88016         * lib/posixver.c: Include posixver.h.
88017
88018         * lib/same.c: Include <stdbool.h>, <limits.h>.
88019         (_POSIX_NAME_MAX): Define if not defined.
88020         (MIN): New macro.
88021         (same_name): If file names are silently truncated, report
88022         that the file names are the same if they are the same after
88023         the silent truncation.
88024
88025         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
88026         conversion function.
88027         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
88028         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
88029         longer needed.
88030
88031 2004-01-15  Jim Meyering  <jim@meyering.net>
88032
88033         Merge from coreutils.
88034
88035         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
88036         if no library is required.
88037         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
88038         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
88039         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
88040         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
88041         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
88042         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
88043         value, $ac_cv_search_crypt, if it's "none required".
88044         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
88045         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
88046         not gl_FUNC_GETLOADAVG.
88047         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
88048         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
88049
88050 2004-01-15  Jim Meyering  <jim@meyering.net>
88051
88052         Merge from coreutils.
88053
88054         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
88055         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
88056         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
88057
88058         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
88059         optional configure-time default.
88060
88061         * lib/version-etc.c (version_etc_copyright): Update copyright date.
88062
88063         * lib/xreadlink.c (xreadlink): Correct outdated comment.
88064
88065 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
88066
88067         Merge from coreutils.
88068
88069         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
88070         value, $ac_cv_search_nanosleep, if it's "none required".
88071
88072 2004-01-14  Paul Eggert  <eggert@twinsun.com>
88073
88074         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
88075         with like-named macro in fnmatch.c.
88076         (EXT): Use an internal constant instead.
88077
88078         Merge fnmatch patches from glibc.
88079         * lib/fnmatch.c (mbsinit): Remove define.
88080         Add libc_hidden_ver (__fnmatch, fnmatch).
88081         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
88082         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
88083
88084 2004-01-14  Karl Berry  <karl@gnu.org>
88085
88086         * config/install-sh: update from automake.
88087
88088 2004-01-13  Karl Berry  <karl@gnu.org>
88089
88090         * config/install-sh: update from automake.
88091
88092 2004-01-09  Karl Berry  <karl@gnu.org>
88093
88094         * config/install-sh: update from automake.
88095
88096 2004-01-05  Karl Berry  <karl@gnu.org>
88097
88098         * config/config.{sub,guess}: update from config.
88099
88100 2003-12-31  Karl Berry  <karl@gnu.org>
88101
88102         * config/depcomp: update from automake.
88103
88104 2003-12-14  Karl Berry  <karl@gnu.org>
88105
88106         * lib/config.charset: update from gettext-runtime.
88107
88108 2003-12-03  Paul Eggert  <eggert@twinsun.com>
88109
88110         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
88111         Bug reported by Alfred M. Szmidt.
88112
88113 2003-12-03  Bruno Haible  <bruno@clisp.org>
88114
88115         * m4/gettext.m4: Upgrade from gettext-0.13.
88116         * m4/po.m4: Upgrade from gettext-0.13.
88117         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
88118         * m4/intmax.m4: New file, from gettext-0.13.
88119         * m4/printf-posix.m4: New file, from gettext-0.13.
88120
88121 2003-11-29  Karl Berry  <karl@gnu.org>
88122
88123         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
88124
88125 2003-11-25  Paul Eggert  <eggert@twinsun.com>
88126             Bruno Haible  <bruno@clisp.org>
88127
88128         * lib/printf-parse.h: Don't include sys/types.h.
88129         (ARG_NONE): New macro.
88130         (char_directive): Change type of *arg_index fields to size_t.
88131         * lib/printf-parse.c: Don't include sys/types.h.
88132         (SSIZE_MAX): Remove macro.
88133         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
88134         Remove unnecessary overflow check.
88135         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
88136         fields.
88137
88138 2003-11-25  Bruno Haible  <bruno@clisp.org>
88139
88140         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
88141
88142 2003-11-25  Bruno Haible  <bruno@clisp.org>
88143
88144         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
88145         gt_TYPE_SSIZE_T.
88146
88147 2003-11-24  Paul Eggert  <eggert@twinsun.com>
88148
88149         * modules/alloca: Remove dependency on xalloc.
88150
88151 2003-11-24  Paul Eggert  <eggert@twinsun.com>
88152
88153         * lib/alloca.c: Remove dependency on xalloc module.
88154         (xalloc_die): Remove.
88155         (memory_full) [!defined emacs]: New macro.
88156         [!defined emacs]: Don't include xalloc.h.
88157         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
88158         address arithmetic overflows.  Change datatypes a bit to avoid
88159         unnecessary casts.
88160
88161 2003-11-22  Jim Meyering  <jim@meyering.net>
88162
88163         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
88164         s/size/size_t/.
88165
88166 2003-11-21  Karl Berry  <karl@gnu.org>
88167
88168         * config/config.{sub,guess}: update from config.
88169
88170 2003-11-18  Karl Berry  <karl@gnu.org>
88171
88172         * config/config.{sub,guess}: update from config.
88173
88174         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
88175
88176 2003-11-17  Paul Eggert  <eggert@twinsun.com>
88177
88178         * README: Mention that S+T cannot overflow if S is the size of
88179         an existing object and T is sufficiently small.
88180
88181 2003-11-17  Jim Meyering  <jim@meyering.net>
88182
88183         On systems without utime and without a utimes function capable of
88184         dealing with a NULL struct utimbuf* argument, this utime replacement
88185         could -- in unusual circumstances -- leak a file descriptor.
88186         * lib/utime.c: Include <unistd.h> and <errno.h>.
88187         (utime_null): Be sure to close `fd' and to preserve errno.
88188         Reported by Geoff Collyer via Arnold Robbins.
88189
88190 2003-11-17  Bruno Haible  <bruno@clisp.org>
88191
88192         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
88193         (Depends-on): Add xsize.
88194
88195 2003-11-17  Bruno Haible  <bruno@clisp.org>
88196
88197         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
88198
88199 2003-11-17  Bruno Haible  <bruno@clisp.org>
88200
88201         * lib/vasnprintf.c (alloca): Remove fallback definition.
88202         (freea): Remove definition.
88203         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
88204         Reported by Paul Eggert.
88205
88206 2003-11-16  Paul Eggert  <eggert@twinsun.com>
88207             Bruno Haible  <bruno@clisp.org>
88208
88209         Protect against address arithmetic overflow.
88210         * lib/printf-args.h: Include stddef.h.
88211         (arguments): Change type of field 'count' to size_t.
88212         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
88213         'unsigned int' where appropriate.
88214         * lib/printf-parse.h: Include sys/types.h.
88215         (char_directive): Change type of *arg_index fields to ssize_t.
88216         (char_directives): Change type of fields 'count', max_*_length to
88217         size_t.
88218         * lib/printf-parse.c: Include sys/types.h and xsize.h.
88219         (SSIZE_MAX): Define fallback value.
88220         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
88221         instead of 'int' where appropriate. Check a_allocated, d_allocated
88222         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
88223         * lib/vasnprintf.c: Include xsize.h.
88224         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
88225         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
88226         overflow. Avoid wraparound when converting a width or precision from
88227         decimal to binary.
88228
88229 2003-11-16  Bruno Haible  <bruno@clisp.org>
88230
88231         Update from GNU gettext.
88232         * lib/printf-parse.c: Generalize to it can be compiled for wide
88233         strings.
88234         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
88235         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
88236         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
88237         SNPRINTF): New macros.
88238         Don't include <alloca.h> if the file is used inside libintl.
88239         (local_wcslen): New function, for Solaris 2.5.1.
88240         (VASNPRINTF): Use it instead of wcslen.
88241
88242 2003-11-16  Bruno Haible  <bruno@clisp.org>
88243
88244         * lib/xsize.h (xmax): New function.
88245         (xsum, xsum3, xsum4): Declare as "pure" functions.
88246
88247 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88248
88249         * modules/xalloc (Files): Undo latest change, since xalloc.h
88250         no longer needs SIZE_MAX or PTRDIFF_MAX.
88251
88252 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88253
88254         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
88255         gl_PTRDIFF_MAX.
88256
88257 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88258
88259         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
88260         "return", to pacify some unknown compiler.  Problem reported
88261         by Joerg Schilling.
88262
88263 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88264
88265         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
88266         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
88267         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
88268         heuristic is just as accurate as far as we know, and it removes a
88269         dependency on size_max.m4 and ptrdiff_max.m4.
88270
88271 2003-11-11  Bruno Haible  <bruno@clisp.org>
88272
88273         * modules/xsize (Files): Add m4/size_max.m4.
88274         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
88275
88276 2003-11-11  Bruno Haible  <bruno@clisp.org>
88277
88278         * m4/size_max.m4: New file.
88279         * m4/ptrdiff_max.m4: New file.
88280         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
88281         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
88282         (gl_XALLOC): Invoke it.
88283
88284 2003-11-11  Bruno Haible  <bruno@clisp.org>
88285
88286         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
88287         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
88288         defined.
88289
88290 2003-11-10  Paul Eggert  <eggert@twinsun.com>
88291
88292         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
88293         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
88294         rejected some allocations of exactly SIZE_MAX - 2 bytes.
88295         From Bruno Haible.
88296         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
88297         not (size_t) -1, since it's defined here.
88298
88299 2003-11-09  Karl Berry  <karl@gnu.org>
88300
88301         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
88302
88303 2003-11-06  Paul Eggert  <eggert@twinsun.com>
88304
88305         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
88306         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
88307         Reject sizes of exactly SIZE_MAX bytes.
88308         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
88309         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
88310
88311 2003-11-05  Bruno Haible  <bruno@clisp.org>
88312
88313         * lib/xsize.h: Include limits.h, to avoid a possible collision with
88314         SIZE_MAX defined in <limits.h> on Solaris.
88315
88316 2003-11-04  Jim Meyering  <jim@meyering.net>
88317
88318         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
88319         variable names, rather than @VAR@.
88320         * modules/poll: Likewise.
88321
88322 2003-11-04  Bruno Haible  <bruno@clisp.org>
88323
88324         * modules/xsize: New file.
88325         * modules/linebreak: Depend on xsize.
88326         * MODULES.html.sh (func_all_modules): Add xsize.
88327
88328 2003-11-04  Bruno Haible  <bruno@clisp.org>
88329
88330         * m4/xsize.m4: New file.
88331
88332 2003-11-04  Bruno Haible  <bruno@clisp.org>
88333
88334         * lib/xsize.h: New file.
88335         * lib/linebreak.c: Include xsize.h.
88336         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
88337         argument for overflow.
88338         Suggested by Paul Eggert.
88339
88340 2003-11-03  Karl Berry  <karl@gnu.org>
88341
88342         * config/config.{guess,sub}: update from config.
88343
88344 2003-11-03  Jim Meyering  <jim@meyering.net>
88345
88346         * modules/userspec (lib_SOURCES): Add userspec.h.
88347         (Include): Add "userspec.h".
88348         Improve description.
88349
88350 2003-11-03  Jim Meyering  <jim@meyering.net>
88351
88352         * lib/userspec.c: Include "userspec.h".
88353         * lib/userspec.h: New file.
88354
88355 2003-11-03  Bruno Haible  <bruno@clisp.org>
88356
88357         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
88358
88359 2003-11-03  Bruno Haible  <bruno@clisp.org>
88360
88361         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
88362         available, to avoid (extremely rare) race condition.
88363         Suggested by Paul Eggert.
88364
88365 2003-11-02  Karl Berry  <karl@gnu.org>
88366
88367         * config/srclist.txt (vasprintf.c): sync broken, sigh.
88368
88369 2003-10-31  Paul Eggert  <eggert@twinsun.com>
88370
88371         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
88372         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
88373         (read_filesystem_list): Set and use me_type_malloced.
88374         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
88375         whatever the type happens to be), for brevity and consistency.
88376         Check for size calculation overflow on Alphas running OSF/1.
88377
88378 2003-10-31  Jim Meyering  <jim@meyering.net>
88379
88380         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
88381
88382         * lib/linebuffer.c: Include <string.h> for declaration of memset.
88383
88384 2003-10-30  Paul Eggert  <eggert@twinsun.com>
88385             Bruno Haible  <bruno@clisp.org>
88386
88387         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
88388         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
88389
88390 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
88391
88392         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
88393         netbsd*-gnu*.  Suggested by Robert Millan.
88394
88395 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88396
88397         * modules/group-member: Depend on stdbool.
88398
88399 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88400
88401         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
88402
88403 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88404
88405         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
88406         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
88407         after the 'gnu' in these cases.  This fixes some bugs in the
88408         previous change, and is based on suggestions by Robert Millan.
88409
88410 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88411
88412         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
88413         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
88414         no longer needed.
88415         * lib/quotearg.c (quotearg_n_options): Use it.
88416         * lib/group-member.c: Include <stdbool.h>.
88417         (free_group_info): Arg is now const *; don't free arg.
88418         (get_group_info): Now returns bool and accepts struct group_info *,
88419         rather than returning a malloc'ed struct group_info *.
88420         All uses changed.  Check for overflow in internal size calculation.
88421
88422         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
88423         rather than xmalloc/xrealloc.
88424         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
88425         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
88426         conformance bug: the old code used a pointer after freeing the
88427         storage that it addressed.
88428         * lib/hash.c (hash_initialize): Simplify the code by using
88429         xalloc_oversized rather than doing it by hand.
88430         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
88431         the buffer preserved.  Use free and xmalloc instead.
88432         * lib/quotearg.c (quotearg_n_options): Likewise.
88433         Use a simpler test for size overflow.  Don't use xalloc_oversized
88434         because unsigned int might be wider than size_t (!); this suggests
88435         that we should switch from unsigned int to size_t for slot numbers.
88436
88437 2003-10-28  Paul Eggert  <eggert@twinsun.com>
88438
88439         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
88440         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
88441         NetBSD kernels.  Requested by Richard Stallman.
88442
88443 2003-10-27  Paul Eggert  <eggert@twinsun.com>
88444
88445         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
88446         to allocate the returned structure.  Do not allocate a subarray,
88447         as x2nrealloc will do that.
88448         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
88449         instead of xnrealloc.
88450         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
88451
88452 2003-10-27  Bruno Haible  <bruno@clisp.org>
88453
88454         * lib/stdbool_.h: Better support for BeOS.
88455
88456 2003-10-26  Paul Eggert  <eggert@twinsun.com>
88457
88458         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
88459         now uses inline.
88460
88461 2003-10-26  Paul Eggert  <eggert@twinsun.com>
88462
88463         * lib/xalloc.h (xalloc_oversized): New static inline function, for
88464         callers that want to do their own size-overflow checking.  Include
88465         <stdbool.h>, since xalloc_oversized returns bool.
88466         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
88467         to use xalloc_oversized.
88468
88469         Add two functions x2realloc, x2nrealloc, for programs that grow
88470         arrays dynamically by doubling their sizes.
88471         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
88472         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
88473         New functions.
88474
88475         Port to C99 semantics for 'inline' of external functions.
88476         Bug reported by Bruno Haible.
88477         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
88478         with the old contents of xnmalloc.
88479         (xnmalloc, xmalloc): Use it.
88480         (xnrealloc_inline): New static inline function,
88481         with the old contents of xnrealloc.
88482         (xnrealloc, xrealloc): Use it.
88483
88484         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
88485         that.
88486
88487 2003-10-26  Karl Berry  <karl@gnu.org>
88488
88489         * config/srclist.txt (COPYING.DOC): no longer available from
88490         /gd/gnuorg; don't know where the ultimate source is.
88491
88492 2003-10-25  Paul Eggert  <eggert@twinsun.com>
88493
88494         Fix several address-calculation bugs in the hash modules,
88495         plus some minor code cleanup.
88496
88497         * lib/hash.h: Include <stdbool.h>, for bool.
88498         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
88499         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
88500         hash_get_n_entries, hash_get_max_bucket_length,
88501         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
88502         hash_rehash): Use size_t rather than unsigned.
88503         * lib/hash.c (struct hash_table, hash_get_n_buckets,
88504         hash_get_n_buckets_used, hash_get_n_entries,
88505         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
88506         hash_get_entries, hash_do_for_each, hash_string, is_prime,
88507         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
88508         Likewise.
88509         (SIZE_MAX): Define if not defined.
88510         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
88511         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
88512         hash_print):
88513         Use const * when possible.
88514         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
88515         (check_tuning): Fix bug: if tuning parameters were very close to
88516         0 or 1, rounding errors could have caused subscript violations.
88517         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
88518         (hash_initialize): Add 'fail:' label
88519         to free table and return NULL, and use it to simplify code.
88520         Use calloc rather than clearing the storage ourself.
88521         (hash_initialize, hash_rehash): Check for arithmetic overflow in
88522         buffer size calculations.
88523         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
88524         Include <stddef.h>, for size_t.
88525         * lib/hash-pjw.c (hash_pjw): Likewise.
88526         Switch to method described by Bruno Haible.
88527         Include <limits.h>, for CHAR_BIT.
88528         (SIZE_BITS): New macro.
88529
88530 2003-10-23  Paul Eggert  <eggert@twinsun.com>
88531
88532         * m4/getline.m4 (AM_FUNC_GETLINE):
88533         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
88534         hosts.  Problem reported by Derek Robert Price in
88535         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
88536         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
88537         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
88538
88539 2003-10-21  Paul Eggert  <eggert@twinsun.com>
88540
88541         * lib/getndelim2.c (getndelim2): When size calculation overflows,
88542         ceiling the allocation at NMAX bytes rather than silently
88543         discarding input bytes before NMAX is reached.  This makes
88544         a difference only if NMAX exceeds SIZE_MAX / 2.
88545
88546         * lib/obstack.c: Merge from glibc.
88547         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
88548         Add libc_hidden_def (_obstack_newchunk).
88549         (_obstack_free) [! defined _LIBC]: Remove.
88550         [defined _LIBC]: Make a strong alias from obstack_free, rather than
88551         a clone of the function body.
88552         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
88553         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
88554
88555         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
88556         glibc.
88557         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
88558         arg to memcpy.
88559
88560         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
88561         (obstack_ptr_grow_fast, obstack_int_grow_fast):
88562         Don't use lvalue casts, as GCC plans to remove support for them
88563         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
88564         was also present in the non-GCC version, indicating that this
88565         code had always been buggy and had never been widely used.
88566         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
88567         Use the fast variant of each macro, rather than copying the
88568         definiens of the fast variant; that way, we'll be more likely to
88569         catch future bugs in the fast variants.
88570
88571 2003-10-20  Bruno Haible  <bruno@clisp.org>
88572
88573         * modules/wait-process: New file.
88574         * MODULES.html.sh (func_all_modules): Add wait-process.
88575
88576 2003-10-20  Bruno Haible  <bruno@clisp.org>
88577
88578         * m4/wait-process.m4: New file.
88579
88580 2003-10-20  Bruno Haible  <bruno@clisp.org>
88581
88582         * lib/wait-process.h: New file, from GNU gettext.
88583         * lib/wait-process.c: New file, from GNU gettext.
88584
88585 2003-10-19  Jim Meyering  <jim@meyering.net>
88586
88587         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
88588         HPUX 10.20.
88589
88590 2003-10-18  Karl Berry  <karl@gnu.org>
88591
88592         * config/config.guess: update from config.
88593
88594 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88595
88596         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
88597         (getgroups): First arg is int, not size_t.
88598         Don't let 'free' mangle errno.
88599
88600 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88601
88602         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
88603
88604 2003-10-16  Karl Berry  <karl@gnu.org>
88605
88606         * config/config.{guess,sub}: update from config.
88607
88608 2003-10-16  Jim Meyering  <jim@meyering.net>
88609
88610         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
88611         memcpy.
88612
88613 2003-10-15  Paul Eggert  <eggert@twinsun.com>
88614
88615         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
88616         (SIZE_MAX): Remove.
88617         (new_exclude, add_exclude_file): Initial size no longer needs to
88618         be a power of 2.
88619         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
88620         our own address arithmetic overflow checking.
88621
88622         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
88623         (fnmatch): Do not alloca more than 2000 wide characters;
88624         instead, use malloc for large buffers.
88625         Check for address arithmetic overflow, and return -1
88626         with errno set to ENOMEM in that case.
88627         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
88628         (NEW_PATTERN): Do not alloca more than 8000 bytes;
88629         instead, return -1.  Check for address arithmetic overflow.
88630
88631 2003-10-14  Paul Eggert  <eggert@twinsun.com>
88632
88633         Handle invalid suffixes and overflow independently, so that
88634         callers can treat them independently as needed.  Fix some bugs in
88635         suffix handling, e.g., "100k@" was not diagnosed as an invalid
88636         suffix for a human-readable blocksize.  The major caller-visible
88637         change is the addition of a new
88638         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
88639         that both overflow and suffix chars were found.
88640
88641         * lib/human.c (humblock): Don't check separately for invalid suffix
88642         char; that is xstrtoumax's job (now that its bug is fixed).
88643         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
88644         INTMAX_MAX]: New macros.
88645         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
88646         TYPE_MAXIMUM): New macros.
88647         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
88648         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
88649         if overflow occurs, as it's what __strtol does and it's more useful
88650         in practice.
88651         (__xstrtol): If __strtol reports some error other than ERANGE,
88652         reflect it to the caller as LONGINT_INVALID.  If it reports
88653         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
88654         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
88655         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
88656         value.
88657         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
88658         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
88659         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
88660         [defined UINTMAX_MAX]: New macros.
88661
88662 2003-10-14  Bruno Haible  <bruno@clisp.org>
88663
88664         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
88665
88666 2003-10-14  Bruno Haible  <bruno@clisp.org>
88667
88668         * m4/sig_atomic_t: New file, from GNU gettext.
88669         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
88670
88671 2003-10-14  Bruno Haible  <bruno@clisp.org>
88672
88673         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
88674         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
88675         Also use volatile where needed.
88676
88677 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88678
88679         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
88680         Change maintainer from Bruno Haible to 'all'.
88681
88682 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88683
88684         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
88685
88686 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88687
88688         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
88689         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
88690         and define in terms of the other primitives.
88691         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
88692         (SIZE_MAX): Define if not already defined.
88693         (array_size_overflow): New function.
88694         (xalloc_die): Abort instead of exiting if 'error' returns.
88695         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
88696         (xmalloc, xrealloc): Use them.
88697         (xcalloc): Check for address arithmetic overflow.
88698         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
88699         a bit faster than strcpy.
88700
88701 2003-10-10  Simon Josefsson  <jas@extundo.com>
88702
88703         * modules/argp (Depends-on): Add restrict and strcase.
88704
88705 2003-10-10  Simon Josefsson  <jas@extundo.com>
88706
88707         * m4/argp.m4: Add AC_C_INLINE.
88708
88709 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88710
88711         Merge getpass from libc, plus a few fixes.
88712
88713         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
88714         Include <stdbool.h>.
88715         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
88716         __fsetlocking to empty.
88717         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
88718         do include <bits/libc-lock.h>.
88719         Do not include <fcntl.h>; not needed.
88720         [_LIBC]: Include <wchar.h>.
88721         (NOTCANCEL_MODE): New macro.
88722         (flockfile, funlockfile) [_LIBC]: New macros.
88723         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
88724         [!_LIBC]: New macros.
88725         (call_fclose): New function.
88726         (getpass): Use it.  Save tty stream separately; this simplifies the
88727         code and makes it more reliable if stdin happens to equal stdout.
88728         Invoke __fsetlocking on tty.
88729         Handle thread cancellation if needed.
88730         Namespace cleanup (use __tcgetattr, __getline).
88731         Use bool for Booleans.
88732         [USE_IN_LIBIO]: Handle wide streams.
88733         [!_LIBC]: Unconditionally do the fseek, since we don't know what
88734         stream might go where.
88735
88736         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
88737         doesn't have to include <stdio.h> before us.
88738         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
88739         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
88740         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
88741         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
88742         if not declared, so that we can use getpass.c code from libc without
88743         rewriting it.
88744         (flockfile, ftrylockfile, funlockfile): New macros.
88745
88746 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88747
88748         * modules/getpass: Depend on stdbool.
88749
88750 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88751
88752         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
88753
88754 2003-10-07  Karl Berry  <karl@gnu.org>
88755
88756         * config/config.{guess,sub}: update from config.
88757
88758 2003-10-06  Jim Meyering  <jim@meyering.net>
88759             Bruno Haible  <bruno@clisp.org>
88760
88761         This lets translators provide better translations for the
88762         "Written by ..." part of --version output.
88763         * lib/version-etc.h: Include stdarg.h.
88764         (version_etc_copyright): Declare as readonly.
88765         (version_etc): Make this function variadic with a NULL-terminated list
88766         of author name strings.
88767         (version_etc_va): New declaration.
88768         * lib/version-etc.c: Include stdarg.h, stdlib.h.
88769         (version_etc_copyright): Declare as readonly.
88770         (version_etc_va): New function. Provide a different translatable string
88771         for each possible number of authors < 10. Abbreviate when there are 10
88772         authors or more.
88773         (version_etc): Make this function variadic. Call version_etc_va.
88774         Suggestion from Gary V. Vaughan.
88775
88776         * lib/long-options.h (parse_long_options): Change prototype: the
88777         authors string is moved to the end and becomes variadic.
88778         * lib/long-options.c: Include stdarg.h.
88779         (parse_long_options): Make this function variadic, too.
88780         Call version_etc_va, not version_etc.
88781
88782 2003-10-06  Bruno Haible  <bruno@clisp.org>
88783
88784         * modules/version-etc-2: Remove file.
88785         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
88786
88787 2003-10-06  Bruno Haible  <bruno@clisp.org>
88788
88789         * modules/fatal-signal: New file.
88790         * MODULES.html.sh (func_all_modules): Add fatal-signal.
88791
88792 2003-10-06  Bruno Haible  <bruno@clisp.org>
88793
88794         * m4/fatal-signal.m4: New file.
88795         * m4/signalblocking.m4: New file, from GNU gettext.
88796
88797 2003-10-06  Bruno Haible  <bruno@clisp.org>
88798
88799         * lib/version-etc-2.h: Remove file.
88800         * lib/version-etc-2.c: Remove file.
88801
88802 2003-10-06  Bruno Haible  <bruno@clisp.org>
88803
88804         * lib/fatal-signal.h: New file, from GNU gettext.
88805         * lib/fatal-signal.c: New file, from GNU gettext.
88806
88807 2003-10-05  Paul Eggert  <eggert@twinsun.com>
88808
88809         * README: Rework advice for preventing empty .o files.
88810         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
88811         not <sys/types.h>.
88812
88813 2003-10-04  Karl Berry  <karl@gnu.org>
88814
88815         * lib/argp*: update from libc.
88816
88817 2003-10-04  Karl Berry  <karl@gnu.org>
88818
88819         * config/config.{guess,sub}: update from config.
88820
88821 2003-10-02  Bruno Haible  <bruno@clisp.org>
88822
88823         * modules/lchown (Include): Add lchown.h.
88824         * modules/time_r (Include): Use "..." syntax.
88825         * modules/xgetdomainname (Include): Add xgetdomainname.h.
88826
88827 2003-10-01  Simon Josefsson  <jas@extundo.com>
88828
88829         * MODULES.html.sh (func_all_modules): Move gethostname from section
88830         'based on' to section 'lacking' POSIX:2001.
88831
88832 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
88833
88834         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
88835         to output mode on the same stream.
88836
88837 2003-09-29  Paul Eggert  <eggert@twinsun.com>
88838
88839         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
88840         Fix arg typo in previous patch.
88841
88842 2003-09-28  Jim Meyering  <jim@meyering.net>
88843
88844         * lib/error.c: Correct cpp indentation.
88845
88846 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88847
88848         * modules/free: New file.
88849
88850 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88851
88852         * m4/free.m4: New file.
88853
88854 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88855
88856         * lib/minmax.h (MIN, MAX)
88857         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
88858         Omit the special code that used __typeof__, since we worry that
88859         it could be more trouble than it's worth.  See:
88860         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
88861         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
88862
88863         * lib/free.c: New file.
88864
88865 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
88866
88867         Trivial fixes to Makefile.am parts of module listings.
88868         * modules/strstr: Append strstr.h to lib_SOURCES.
88869         * modules/strcase: Likewise, for strcase.h.
88870
88871 2003-09-27  Karl Berry  <karl@gnu.org>
88872
88873         * config/mkinstalldirs: update from automake.
88874
88875 2003-09-26  Paul Eggert  <eggert@twinsun.com>
88876
88877         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
88878         (error_tail): Do not loop, reallocating temporary buffer, since
88879         the output cannot contain more wide characters than the input
88880         contains bytes, the size must be big enough already.  This avoids
88881         one potential size overflow calculation.  Check for size overflow
88882         when calculating temporary buffer size.  Free temporary buffer
88883         when done, if it was allocated with malloc; this plugs a memory
88884         leak.  Remove casts from void * to pointers, that are no longer
88885         needed now that we're assuming C89 or better.
88886
88887         Merge error changes from glibc.
88888
88889         * lib/error.c, error.h: Update copyright notice header to match glibc.
88890         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
88891         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
88892         Disable cancellation while printing error.
88893         * lib/error.h: Prepend __ to parameter names.
88894
88895 2003-09-26  Jim Meyering  <jim@meyering.net>
88896
88897         * lib/error.c (error_tail): Move some declarations
88898         into inner scope where the local variables are used.
88899
88900 2003-09-26  Bruno Haible  <bruno@clisp.org>
88901
88902         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
88903         stpncpy().
88904         Don't define stpncpy through config.h; it's now done through stpncpy.h.
88905
88906 2003-09-26  Bruno Haible  <bruno@clisp.org>
88907
88908         * lib/stpncpy.h (gnu_stpncpy): New declaration.
88909         (stpncpy): Define as alias for gnu_stpncpy.
88910         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
88911
88912 2003-09-25  Simon Josefsson  <jas@extundo.com>
88913
88914         * lib/xgetdomainname.h: New file.
88915         * lib/xgetdomainname.c: New file.
88916
88917 2003-09-25  Simon Josefsson  <jas@extundo.com>
88918             Bruno Haible  <bruno@clisp.org>
88919
88920         * modules/getdomainname: New file.
88921         * modules/xgetdomainname: New file.
88922         * MODULES.html.sh (func_all_modules): Add getdomainname,
88923         xgetdomainname.
88924
88925 2003-09-25  Simon Josefsson  <jas@extundo.com>
88926             Bruno Haible  <bruno@clisp.org>
88927
88928         * m4/getdomainname.m4: New file.
88929
88930 2003-09-25  Simon Josefsson  <jas@extundo.com>
88931             Bruno Haible  <bruno@clisp.org>
88932
88933         * lib/getdomainname.h: New file.
88934         * lib/getdomainname.c: New file.
88935
88936 2003-09-25  Karl Berry  <karl@gnu.org>
88937
88938         * lib/argp-fmtstream.c, argp-help.c: update from libc.
88939
88940 2003-09-25  Karl Berry  <karl@gnu.org>
88941
88942         * config/install-sh: update from automake.
88943
88944 2003-09-25  Bruno Haible  <bruno@clisp.org>
88945
88946         * modules/version-etc-2: New file, from modules/version-etc with
88947         modifications.
88948         * MODULES.html.sh (func_all_modules): Add version-etc-2.
88949
88950 2003-09-25  Bruno Haible  <bruno@clisp.org>
88951
88952         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
88953         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
88954
88955 2003-09-24  Simon Josefsson  <jas@extundo.com>
88956
88957         * modules/xgethostname: Add xgethostname.h.
88958
88959 2003-09-24  Paul Eggert  <eggert@twinsun.com>
88960
88961         * lib/linebuffer.c (freebuffer): Don't free the argument, just
88962         the buffer associated with the argument.  Bug reported by
88963         Simon Josefsson.
88964
88965 2003-09-24  Paul Eggert  <eggert@twinsun.com>
88966
88967         * README: Document assumptions that 'int' is at least 32 bits
88968         wide, that integer arithmetic is 2's complement without overflow,
88969         that there are no holes in integer values, that adding sizes of
88970         two nonoverlapping objects can't overflow, and that all-bits-zero
88971         yields scalar zero.  Fix spelling and capitalization typos.
88972
88973 2003-09-19  Karl Berry  <karl@gnu.org>
88974
88975         * lib/argp.h: update from libc.
88976
88977 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88978
88979         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
88980         to avoid spurious warnings like "AC_RUN_IFELSE was called before
88981         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
88982
88983 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88984
88985         * gnulib-tool: Use "test -h", not "test -L", for portability
88986         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
88987         (tags_regexp): Remove, since \| doesn't conform to POSIX.
88988         (sed_extract_prog): Issue s commands one-by-one, rather than
88989         using \| in one s command.
88990
88991 2003-09-16  Paul Eggert  <eggert@twinsun.com>
88992
88993         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
88994         input error, instead of returning NULL the next time we are called
88995         (and therefore losing track of errno).
88996
88997 2003-09-16  Bruno Haible  <bruno@clisp.org>
88998
88999         * gnulib-tool (func_create_testdir): Warn about duplicated
89000         dependencies.
89001
89002 2003-09-15  Paul Eggert  <eggert@twinsun.com>
89003
89004         * modules/argmatch, modules/fatal, modules/obstack,
89005         modules/xalloc, modules/xgethostname: Sort dependencies by
89006         importance, not alphabetically.
89007
89008 2003-09-15  Paul Eggert  <eggert@twinsun.com>
89009
89010         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
89011         fails, so that the caller gets the proper errno.
89012
89013         * lib/readutmp.c (read_utmp): Likewise.
89014         Check for fstat error.  Close stream and free storage
89015         when failing.
89016
89017 2003-09-14  Karl Berry  <karl@gnu.org>
89018
89019         * config/srclist.txt (strdup.c): disable for c89 changes.
89020
89021 2003-09-14  Jim Meyering  <jim@meyering.net>
89022
89023         * lib/getloadavg.c: Correct cpp indentation.
89024         * lib/strdup.c: Likewise.
89025         * lib/vasnprintf.c: Likewise.
89026
89027 2003-09-14  Bruno Haible  <bruno@clisp.org>
89028
89029         * modules/fwriteerror: New file.
89030         * MODULES.html.sh (func_all_modules): Add fwriteerror.
89031
89032 2003-09-14  Bruno Haible  <bruno@clisp.org>
89033
89034         * lib/fwriteerror.h: New file.
89035         * lib/fwriteerror.c: New file.
89036
89037 2003-09-12  Paul Eggert  <eggert@twinsun.com>
89038
89039         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
89040         modules/xgethostname, modules/xalloc: Depend on exit.
89041
89042 2003-09-12  Paul Eggert  <eggert@twinsun.com>
89043
89044         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
89045
89046         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
89047         and AC_MINIX, too, so that their extensions are available.
89048
89049         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
89050         This macro has been superseded by gl_BACKUPFILE.
89051
89052         More patches to assume C89 or better.
89053
89054         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
89055
89056         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
89057         unconditionally.
89058         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
89059         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
89060         Include <string.h>, <stdlib.h> unconditionally.
89061         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
89062         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
89063         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
89064         headers or for string.h.
89065         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
89066         or strtoul.
89067
89068         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
89069         headers.
89070         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
89071         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89072         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
89073         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
89074         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89075         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
89076         memcpy, memset.
89077         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
89078         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
89079         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
89080         strtol.
89081         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
89082         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
89083         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
89084         strtoul.
89085
89086 2003-09-12  Paul Eggert  <eggert@twinsun.com>
89087
89088         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
89089         * lib/obstack.c [!defined _LIBC]: Likewise.
89090         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
89091         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
89092         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
89093
89094         More changes to assume C89 or better.
89095
89096         * lib/error.c (error_tail): Assume vprintf.
89097
89098         * lib/argmatch.c (getenv): Remove decl.
89099         * lib/progreloc.c (get_full_program_name): Define via prototype.
89100         * lib/setenv.c (clearenv): Likewise.
89101         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
89102         needed.
89103         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
89104         (malloc, memcpy): Remove decls.
89105         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
89106         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
89107         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
89108         (memcpy): Remove macro.
89109         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
89110         (__P): Remove.  All uses removed.
89111         (PTR): Remove.  All uses changed to void *.
89112         (CHAR_BIT, NULL): Remove.
89113         (spaces, zeros, memset_space, memset_zero)
89114         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
89115         Remove.
89116         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
89117         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
89118         Define with prototype.
89119         Remove now-unnecessary prototype decl.
89120         (extra_args_spec): Assume ANSI C.  All uses changed.
89121         (extra_args_spec_iso): Remove.
89122         (my_strftime, emacs_strftimeu): Define via prototype.
89123         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
89124         unconditionally.
89125         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
89126         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
89127         (strtoul, strtol): Remove decls.
89128         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
89129         LONG_MAX): Remove.
89130         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
89131         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
89132         (LOCALE_PARAM_PROTO): New macro.
89133         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
89134         (INTERNAL (strtol), strtol): Define with a prototype.
89135         (PARAMS): Remove.  All uses removed.
89136         * lib/tempname.c: Include <string.h> unconditionally.
89137         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
89138         * lib/xgethostname.c (main): Define with a prototype.
89139         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
89140         Include <stdlib.h> unconditionally.
89141         (calloc, malloc, realloc, free): Remove decls.
89142         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
89143         Include <stdlib.h> unconditionally.  Sort include file names.
89144         (strtod): Remove.
89145         (xstrtod): Define with a prototype.
89146         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
89147         (strtol, strtoul): Remove decls.
89148
89149 2003-09-11  Paul Eggert  <eggert@twinsun.com>
89150
89151         More patches to assume C89 or better.
89152         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
89153         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
89154         string.h, memchr, STDC_HEADERS.
89155
89156 2003-09-11  Paul Eggert  <eggert@twinsun.com>
89157
89158         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
89159         Include <stdlib.h>, <string.h> unconditionally.
89160         Remove now-unnecessary cast to char *.
89161         * lib/strnlen.c: Include <string.h> unconditionally.
89162         * lib/yesno.c (yesno): Define with a prototype.
89163
89164 2003-09-11  Bruno Haible  <bruno@clisp.org>
89165
89166         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
89167
89168 2003-09-10  Jim Meyering  <jim@meyering.net>
89169
89170         * lib/error.c: Correct indentation of cpp directives.
89171
89172 2003-09-10  Bruno Haible  <bruno@clisp.org>
89173
89174         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
89175         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
89176         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
89177         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
89178         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
89179         <stdlib.h> and <string.h> checks.
89180         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
89181         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
89182
89183 2003-09-10  Bruno Haible  <bruno@clisp.org>
89184
89185         * lib/strcspn.c: Include <string.h> unconditionally.
89186         * lib/strpbrk.c: Include <string.h> unconditionally.
89187         * lib/strstr.c: Include <string.h> unconditionally.
89188         * lib/unicodeio.c: Include <string.h> unconditionally.
89189         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
89190         * lib/unsetenv.c: Likewise.
89191         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
89192         * lib/yesno.c: Include <stdlib.h> unconditionally.
89193         (rpmatch): Add prototype.
89194
89195 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89196
89197         More patches to assume C89 or better.
89198         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
89199         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
89200         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
89201         or for string.h.
89202         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
89203         stdlib.h.
89204         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
89205         C headers.
89206         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
89207         string.h.
89208         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
89209         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
89210         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
89211         or for string.h.
89212         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
89213         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
89214         C headers.
89215         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
89216         memcpy.
89217         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
89218         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
89219         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
89220         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
89221         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
89222         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
89223         string.h, free.
89224         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
89225         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
89226         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
89227         C headers, or for string.h.
89228         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
89229         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
89230         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
89231         headers, memory.h, stdlib.h, string.h, strings.h.
89232         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
89233         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
89234         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
89235         strchr.
89236         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
89237         headers, memory.h, string.h.
89238         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
89239         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
89240         free.
89241         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
89242         headers.
89243         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
89244         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
89245         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
89246         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
89247         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
89248
89249 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89250
89251         More K&R removal.
89252
89253         * lib/acosl.c (main): Use a prototype.
89254         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
89255         tanl.c: Likewise.
89256
89257         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
89258
89259         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
89260         (getopt, etopt_long, getopt_long_only, _getopt_internal)
89261         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
89262         with a prototype.
89263         * lib/getopt.c (const): Remove macro.
89264         Include <string.h> unconditionally.
89265         (my_index): Remove; all uses changed to strchr.
89266         (strlen): Remove decl.
89267         (exchange): Remove forward decl; no longer needed.
89268         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
89269         Define with prototype.
89270         * lib/getopt1.c (const): Remove macro.
89271         (getopt_long, getopt_long_only, main): Define with prototype.
89272
89273         * lib/getugroups.c: Include <string.h> unconditionally.
89274
89275         * lib/getusershell.c: Include <stdlib.h> unconditionally.
89276         (getusershell, setusershell, endusershell, readname, main):
89277         Define with prototypes.
89278
89279         * lib/group-member.c: Include group-member.h first.
89280         Include <stdlib.h> unconditionally.
89281
89282         * lib/hard-locale.c: Include hard-locale.h first.
89283         Include <stdlib.h>, <string.h> unconditionally.
89284
89285         * lib/hash.c (free, malloc): Remove decls.
89286         Include <stdlib.h> unconditionally.
89287
89288         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
89289         (getenv): Do not declare.
89290
89291         * lib/idcache.c: Include <string.h> unconditionally.
89292
89293         * lib/long-options.c: Include long-options.h first, to test interface.
89294         Include <stdlib.h> unconditionally.
89295
89296         * lib/makepath.c: Include makepath.h first, to test interface.
89297         Include <stdlib.h> and <string.h> unconditionally.
89298
89299         * lib/linebuffer.c: Include <stdlib.h>.
89300         (free): Remove decl.
89301
89302         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
89303         stddef.h. rpl_malloc returns void *, not char *.
89304         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
89305         prototype.
89306
89307         * lib/md5.h: Include <limits.h> unconditionally.
89308         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
89309         (__P): Remove; all uses removed.
89310         * lib/md5.c: Include "md5.h" first.
89311         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
89312         md5_buffer, md5_process_bytes, md5_process_block):
89313         Define with prototypes.
89314         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
89315         * lib/sha.c: Include "sha.h" first.
89316         Include <stdlib.h>, <string.h> unconditionally.
89317
89318         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
89319         * lib/memcmp.c (__ptr_t): Likewise.
89320         * lib/memrchr.c (__ptr_t): Likewise.
89321         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
89322         Include <string.h> unconditionally.
89323         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
89324         * lib/memchr.c: Include <stdlib.h> unconditionally.
89325         * lib/memchr.c (LONG_MAX): Remove.
89326         * lib/memrchr.c (LONG_MAX): Likewise.
89327         * lib/memchr.c (__memchr): Define via a prototype.
89328         * lib/memrchr.c (__memrchr): Likewise.
89329         * lib/memcmp.c (__P): Remove, and remove all uses.
89330         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
89331         Remove forward decls; no longer needed.
89332         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
89333         Use types required by C89 in prototype.
89334
89335         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
89336         * lib/savedir.c: Likewise.
89337         * lib/mkdir.c (free): Remove decl.
89338         * lib/rmdir.c (rmdir): Define with a prototype.
89339         * lib/savedir.c: Include savedir.h first, to test interface.
89340
89341         * lib/mktime.c (STDC_HEADERS): Remove.
89342         Include <stdlib.h>, <string.h> unconditionally.
89343
89344         * lib/modechange.c: Include <stdlib.h> unconditionally.
89345         (malloc): Remove decl.
89346
89347         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
89348         (free): Remove decl.
89349
89350         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
89351         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
89352         (This type really should be intptr_t, but that's a C99ism.)
89353         (_obstack_memcpy): Remove: all uses changed to memcpy.
89354         Include <string.h> unconditionally.
89355         (struct obstack): Assume __STDC__ for types of members
89356         chunkfun, freefun, extra_arg.
89357         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
89358         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
89359         obstack_begin, obstack_specify_allocation,
89360         obstack_specify_allocation_with_arg, obstack_chunkfun,
89361         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
89362         Remove unprototyped decls and the macros that use them.
89363         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
89364         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
89365         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
89366         (defined __STDC__ && __STDC__)]:
89367         Remove nonprototyped code.
89368         Include <stdlib.h> unconditionally.
89369         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
89370         _obstack_allocated_p, _obstack_free, obstack_free,
89371         _obstack_memory_used, print_and_abort):
89372         Define using prototypes.
89373         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
89374         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
89375         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
89376         obstack_next_free, obstack_object_size, obstack_room) [0]:
89377         Remove unused, unprototyped code.
89378
89379         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
89380
89381         * lib/physmem.c (physmem_total, physmem_available, main): Define
89382         with prototypes.
89383
89384         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
89385         (main): Define with a prototype.
89386
89387         * lib/posixver.c (getenv): Remove decl.
89388
89389         * lib/putenv.c (malloc): Returns void *, not char *.
89390         Include <string.h> unconditionally.
89391         (strchr, memcpy, NULL): Do not define.
89392
89393         * lib/readtokens.c: Include readtokens.h first, to test interface.
89394         Include <stdlib.h>, <string.h> unconditionally.
89395         (init_tokenbuffer): Define with a prototype.
89396
89397         * lib/regex.c (PARAMS): Remove.  All uses removed.
89398         All uses of _RE_ARGS removed, too.
89399         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89400         unconditionally.
89401         (bzero): Assume memset exists.
89402         (memcmp, memcpy, NULL): Remove.
89403         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
89404         char, or assignments to local vars of type signed char.
89405         (init_syntax_once, PREFIX(extract_number_and_incr),
89406         PREFIX(print_partial_compiled_pattern),
89407         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
89408         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
89409         PREFIX(regex_grow_registers), PREFIX(regex_compile),
89410         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
89411         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
89412         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
89413         wcs_compile_range, byte_compile_range, truncate_wchar,
89414         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
89415         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
89416         count_mbs_length, wcs_re_match_2_internal,
89417         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
89418         PREFIX(alt_match_null_string_p),
89419         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
89420         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
89421         regfree, PREFIX(extract_number)): Define with prototype.  Remove
89422         now-unnecessary declaration, if any.
89423         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
89424         regcomp, regexec):
89425         Remove now-unnecessary casts among pointer types.
89426         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
89427
89428         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
89429         (free): Remove decl.
89430
89431         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
89432
89433         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
89434         (free): Remove decl.
89435
89436         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
89437         * lib/xgetcwd.c: Likewise.
89438
89439         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
89440         (free): Remove decl.
89441
89442         * lib/strchrnul.c (strchrnul): Define with a prototype.
89443         Fix bug: c_in was not converted to char before searching.
89444
89445         The following changes are not K&R related:
89446
89447         * lib/group-member.h: Include <sys/types.h>, so that this file is
89448         self-contained.
89449         * lib/makepath.h: Likewise.
89450
89451         * lib/getusershell.c (readname, default_index, line_size, readname):
89452         Use size_t, not int, for sizes.
89453         (readname): If the size overflows, report an error instead of
89454         looping forever.
89455
89456 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89457
89458         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
89459         libc.
89460
89461 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89462
89463         * README: New section: portability guidelines.
89464
89465 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
89466
89467         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
89468         C89 spec.
89469
89470 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
89471
89472         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
89473
89474 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89475
89476         Assume C89 or better; remove K&R cruft.
89477         A few of these changes were first proposed by Derek Robert Price
89478         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
89479
89480         * lib/addext.c: Include <string.h> unconditionally.
89481         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
89482         Don't declare getenv or malloc.
89483
89484         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
89485         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
89486         (NULL): Remove.
89487         (find_stack_direction, alloca): Use prototypes.
89488
89489         * lib/atexit.c (atexit): Define using a prototype.
89490
89491         * lib/basename.c, dirname.c, stripslash.c:
89492         Include <string.h> unconditionally.
89493
89494         * lib/bcopy.c: Include <stddef.h>.
89495         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
89496
89497         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
89498
89499         * lib/error.h (error, error_at_line, error_print_progname)
89500         [! (defined (__STDC__) && __STDC__)]: Remove decls.
89501         * lib/error.c: Include error.h first, to check interface.
89502         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
89503         (VA_START): Remove; all uses changeed to va_start.
89504         (exit, strerror): Remove decls.
89505         (error_print_progname): Prototype uncondionally.
89506         Don't include <errno.h>; no longer needed.
89507         (private_strerror): Remove.
89508         (error_tail): Always define.
89509         (error, error_at_line): Assume C89 or better; always use prototypes.
89510         * lib/fatal.c: Include "fatal.h" first, to test interface.
89511         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
89512         (VA_START): Remove; all uses changed to va_start.
89513         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
89514         this case.
89515         (exit): Remove decl.
89516         (fatal): Prototype unconditionally.  Assume va_start works.
89517         Abort at end, to pacify gcc.
89518
89519         * lib/euidaccess.c (main): Define with a prototype.
89520
89521         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
89522
89523         * lib/exitfail.c: Include <stdlib.h> unconditionally.
89524
89525         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
89526         prototypes.
89527         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
89528         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
89529         (getenv): Remove decl.
89530         (fnmatch): Define using a prototype.
89531         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
89532         (FCT): Define using a prototype.
89533
89534         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
89535
89536         * lib/gethostname.c: Include <stddef.h>.
89537         (gethostname): Define with prototype.  Length is size_t, not int.
89538
89539 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89540
89541         Assume C89 or better; remove K&R cruft.
89542         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
89543         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
89544         string.h, getenv, malloc.
89545         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
89546         headers.
89547         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
89548         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
89549         do not check for strerror.
89550         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
89551         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
89552         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
89553         do not check for doprnt or vprintf.
89554         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
89555         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
89556
89557 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89558
89559         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
89560         getversion.c should have been removed then, but was accidentally
89561         preserved.
89562
89563         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
89564         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
89565
89566 2003-09-08  Karl Berry  <karl@gnu.org>
89567
89568         * config/config.sub, config.guess, srclistvars.sh: update from savannah
89569                 config, forget about prep.
89570
89571         * config/depcomp, missing: update from automake.
89572
89573 2003-09-07  Paul Eggert  <eggert@twinsun.com>
89574
89575         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
89576         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
89577
89578 2003-09-07  Paul Eggert  <eggert@twinsun.com>
89579
89580         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
89581         copy_tm_result.  Bug reported by Simon Josefsson in
89582         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
89583
89584 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89585
89586         * m4/time_r.m4: New file.
89587         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
89588         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
89589         is. Check for timegm declaration.
89590         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
89591         Do not check for gmtime_r.
89592         Replace mktime if __mktime_internal does not exist and if mktime
89593         hasn't been replaced already.
89594
89595 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89596
89597         * lib/time_r.c, lib/time_r.h: New files.
89598
89599         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
89600         __localtime_r.
89601         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
89602         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
89603
89604         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
89605         __gmtime_r.
89606         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
89607         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
89608         Include <time_r.h>.
89609
89610         * lib/timegm.c: Switch to glibc implementation, with the following
89611         changes:
89612         [defined HAVE_CONFIG_H]: Include <config.h>.
89613         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
89614         (__mktime_internal) [!defined _LIBC]: New decl.
89615         (__gmtime_r) [!defined _LIBC]: New macro and function.
89616         (timegm): Use a prototype, since gnulib assumes C89.
89617         Do not bother declaring tmp to be const, as it's not really usefu.
89618         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
89619         (timegm): Declare only if HAVE_DECL_TIMEGM.
89620
89621 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89622
89623         * MODULES.html.sh (func_all_modules): Add time_r.
89624         * modules/time_r: New file.
89625         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
89626         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
89627
89628 2003-09-03  Paul Eggert  <eggert@twinsun.com>
89629
89630         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
89631         Bug reported by Lute Kamstra in
89632         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
89633
89634         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
89635         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
89636         course with correspondingly smaller numbers for tomorrow and
89637         yesterday.  From Tadayoshi Funaba.  Originally installed into
89638         sh-utils on 1999-08-07, but the patch got lost (I guess during the
89639         coreutils merge?).
89640
89641 2003-08-31  Simon Josefsson  <jas@extundo.com>
89642
89643         * modules/timegm: New file.
89644         * MODULES.html.sh (func_all_modules): Add timegm.
89645
89646 2003-08-31  Simon Josefsson  <jas@extundo.com>
89647
89648         * m4/timegm.m4: New file.
89649
89650 2003-08-31  Simon Josefsson  <jas@extundo.com>
89651
89652         * lib/timegm.h: New file.
89653         * lib/timegm.c: New file.  Based on
89654         wget-1.8.2/src/http.c:mktime_from_utc.
89655
89656 2003-08-31  Karl Berry  <karl@gnu.org>
89657
89658         * lib/argp.h: update from libc.
89659
89660 2003-08-28  Bruno Haible  <bruno@clisp.org>
89661
89662         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
89663         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
89664         followed by '#define fnmatch fnmatch_posix' gives an error.
89665
89666 2003-08-28  Bruno Haible  <bruno@clisp.org>
89667
89668         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
89669         warning on QNX, which defines O_BINARY to 000000.
89670
89671 2003-08-27  Jim Meyering  <jim@meyering.net>
89672
89673         * m4/mkstemp.m4: Require that the system mkstemp be able to create
89674         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
89675         would fail after 32.  Reported by Danny Levinson.  Details here:
89676         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
89677
89678 2003-08-24  Bruno Haible  <bruno@clisp.org>
89679
89680         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
89681         MSVC7 <stdio.h> is included later.
89682
89683 2003-08-22  Simon Josefsson  <jas@extundo.com>
89684
89685         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
89686
89687 2003-08-20  Karl Berry  <karl@gnu.org>
89688
89689         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
89690
89691 2003-08-20  Bruno Haible  <bruno@clisp.org>
89692
89693         * modules/progname: New file.
89694         * MODULES.html.sh (func_all_modules): Add progname.
89695
89696 2003-08-20  Bruno Haible  <bruno@clisp.org>
89697
89698         * lib/progname.h: New file, from GNU gettext.
89699         * lib/progname.c: New file, from GNU gettext.
89700         * lib/progreloc.c: New file, from GNU gettext.
89701
89702 2003-08-19  Jim Meyering  <jim@meyering.net>
89703
89704         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
89705         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
89706
89707 2003-08-19  Bruno Haible  <bruno@clisp.org>
89708
89709         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
89710         more.
89711
89712 2003-08-19  Bruno Haible  <bruno@clisp.org>
89713
89714         * lib/xstrdup.c: Assume <string.h> exists.
89715
89716 2003-08-18  Paul Eggert  <eggert@twinsun.com>
89717
89718         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
89719         in makefile rules.
89720
89721 2003-08-18  Jim Meyering  <jim@meyering.net>
89722
89723         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
89724         * m4/lib-ld.m4: Likewise.
89725
89726 2003-08-18  Jim Meyering  <jim@meyering.net>
89727
89728         * lib/setenv.h: Indent nested cpp directive.
89729         * lib/vasnprintf.c: Remove trailing blanks.
89730
89731 2003-08-17  Simon Josefsson  <jas@extundo.com>
89732
89733         * modules/xstrndup: New file.
89734         * MODULES.html.sh (func_all_modules): Add xstrndup.
89735
89736 2003-08-17  Simon Josefsson  <jas@extundo.com>
89737
89738         * modules/argp: Fix autoconf macro name. Add more dependencies.
89739
89740 2003-08-17  Simon Josefsson  <jas@extundo.com>
89741
89742         * m4/xstrndup.m4: New file.
89743
89744 2003-08-17  Simon Josefsson  <jas@extundo.com>
89745
89746         * m4/argp.m4: New file.
89747
89748 2003-08-17  Simon Josefsson  <jas@extundo.com>
89749             Bruno Haible  <bruno@clisp.org>
89750
89751         * lib/xstrndup.h: New file.
89752         * lib/xstrndup.c: New file.
89753
89754 2003-08-17  Bruno Haible  <bruno@clisp.org>
89755
89756         * modules/strndup (Files, Include): Add lib/strndup.h.
89757
89758 2003-08-17  Bruno Haible  <bruno@clisp.org>
89759
89760         * modules/euidaccess (Files): Add lib/euidaccess.h.
89761
89762 2003-08-17  Bruno Haible  <bruno@clisp.org>
89763
89764         * lib/strndup.h: New file.
89765
89766 2003-08-17  Bruno Haible  <bruno@clisp.org>
89767
89768         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
89769         like AC_GNU_SOURCE.
89770         * modules/extensions (configure.ac): Comment out the invocation of
89771         gl_USE_SYSTEM_EXTENSIONS.
89772
89773 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89774
89775         Merges from coreutils, etc.
89776         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
89777         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
89778         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
89779         fixing a typo.
89780         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
89781         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
89782
89783 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89784
89785         Document merge from coreutils.
89786         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
89787         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
89788         * modules/utime: Add m4/utimes-null.m4.
89789
89790 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89791
89792         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
89793         space, undoing this 2003-08-12 change:
89794         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89795
89796 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89797
89798         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
89799         strtoul.c from libc, undoing this 2003-08-12 change:
89800         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89801
89802 2003-08-16  Jim Meyering  <jim@meyering.net>
89803
89804         Merges from coreutils.
89805         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
89806         prefix.  Adjust cache variables similarly.  Create 500 rather than
89807         just 300 files, to exercise bug on Darwin6.5, too.
89808         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
89809         $missing_dir.
89810         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
89811         AM_SYS_POSIX_TERMIOS.
89812         Reported by mkc@mathdogs.com.
89813         Also change use of $am_cv_sys_posix_termios
89814         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
89815         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
89816         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
89817         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
89818         in /proc/mounts until it finds one with matching device number.  This
89819         is unnecessary when the FILE argument *is* a mount point.  No stat call
89820         is necessary in that case.  So, disable the statvfs-testing code on
89821         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
89822         as RedHat bug# 84846.
89823         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89824         to 1MB, so as not to render systems with no stack size limit (e.g.,
89825         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89826         Include <unistd.h>.  On some systems,
89827         it is required for the definition of _SC_PAGESIZE.
89828
89829 2003-08-16  Jim Meyering  <jim@meyering.net>
89830
89831         Merge from coreutils.
89832         * lib/xstrtoimax.c: #else #if -> #elif.
89833         * lib/xstrtoumax.c: Likewise.
89834
89835 2003-08-16  Jim Meyering  <jim@meyering.net>
89836
89837         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
89838         * m4/utimes.m4: Removed.
89839         * m4/utimes-null.m4: Renamed from utimes.m4.
89840
89841         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89842         to 1MB, so as not to render systems with no stack size limit (e.g.,
89843         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89844         Include <unistd.h>.  On some systems,
89845         it is required for the definition of _SC_PAGESIZE.
89846
89847 2003-08-16  Jim Meyering  <jim@meyering.net>
89848         and Paul Eggert  <eggert@cs.ucla.edu>
89849
89850         Merges from coreutils, etc.
89851
89852         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
89853         using the latest version from cvs.  This avoids problems with #line
89854         directives using a vendor (Sun) compiler.
89855         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
89856         Don't set GETGROUPS_LIB here; now it's
89857         done via getgroups.m4's wrapper function.
89858         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
89859         rather than just in sh-util/configure.in, so that the
89860         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
89861         same.
89862         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
89863         AC_FUNC_GETLOADAVG where to find getloadavg.c.
89864         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
89865         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
89866         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
89867         Remove code that is now done by the newly-required macros.
89868         Append $(EXEEXT) to DF_PROG.
89869         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
89870         Do not invoke or require the following here,
89871         since prereq.m4 or some gnulib .m4 now does this for us:
89872         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
89873         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
89874         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
89875         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
89876         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
89877         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
89878         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
89879         AC_FUNC_OBSTACK.
89880         Do not replace the following functions, as this is now the job
89881         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
89882         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
89883         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
89884         atexit getpass, strdup, getpagesize.
89885         Replace 'raise'.
89886         Do not check for the following functions, as this is now the job
89887         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
89888         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
89889         setregid.
89890         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
89891         Check for sys/sysctl.h.
89892         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
89893         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
89894         of checking for ssize_t ourselves.
89895
89896         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
89897         Require every macro that gnulib/modules/* suggests for us.
89898         (jm_PREREQ_ADDEXT): New macro.
89899         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
89900         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
89901
89902         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
89903         (gl_PHYSMEM): Use it.
89904         Also check for `table' function.
89905         Check for new headers and functions.
89906         Add check for sys/sysmp.h.
89907         With suggestions from Kaveh Ghazi.
89908         Ignore headers that are present but cannot be compiled.  This
89909         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
89910         C 5.4.
89911
89912 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89913
89914         Document merge from coreutils.
89915         * modules/userspec: Depend on posixver.
89916         * modules/strftime: Depend on tzset.
89917
89918 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89919
89920         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
89921         rather than tab, after '#' in shell-script copyright notices.
89922         Suggested by Bruno Haible.
89923
89924 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89925
89926         * config/srclist-update: Use three spaces, rather than tab, after '#'
89927         in shell-script copyright notices.  Suggested by Bruno Haible.
89928         Remove unnecessary parenthesization in regular expression.
89929
89930 2003-08-15  Jim Meyering  <jim@meyering.net>
89931
89932         Merge from coreutils.
89933         * lib/xgethostname.c: Include <stdlib.h>.
89934         (xghostname): Don't exit for anything other than memory-related
89935         failure; just return NULL.
89936         * lib/userspec.c: Include "posixver.h".
89937         (parse_user_spec): Accept `.' as a separator only
89938         in pre-POSIX-200112 mode.
89939         * lib/strtoimax.c: Use #elif rather than #else #if.
89940         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
89941         Remove function, now that we can rely on a working tzset function.
89942         [!_LIBC]: Ensure that the required autoconf test has been run.
89943         [!defined _NL_CURRENT && HAVE_STRFTIME]:
89944         Use underlying_strftime for %r.
89945         * lib/sha.c: Merge in some clean-up and optimization changes from
89946         glibc.
89947         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
89948         Ensure that it is a multiple of 64.
89949         Rearrange loop exit tests so as to avoid performing an
89950         additional fread after encountering an error or EOF.
89951         * lib/realloc.c: Update copyright date.
89952
89953 2003-08-15  Jim Meyering  <jim@meyering.net>
89954         and Paul Eggert  <eggert@twinsun.com>
89955
89956         Merge from coreutils.
89957         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
89958         member but strut utmpx does not.  Needed for AIX 4.3.3.
89959         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
89960
89961 2003-08-15  Jim Meyering  <jim@meyering.net>
89962         and Paul Eggert  <eggert@cs.ucla.edu>
89963
89964         Merges from coreutils, etc.
89965         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
89966         Require gl_FUNC_TZSET_CLOBBER.
89967         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
89968         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
89969         members.
89970
89971 2003-08-14  Paul Eggert  <eggert@twinsun.com>
89972
89973         Help the merge from coreutils.
89974         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
89975         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
89976         * m4/tzset.m4: Use it too.
89977
89978 2003-08-14  Paul Eggert  <eggert@twinsun.com>
89979
89980         * modules/tzset: New file.
89981
89982 2003-08-14  Jim Meyering  <jim@meyering.net>
89983
89984         Merges from coreutils.
89985         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
89986         variable names, rather than @FNMATCH_H@.
89987         * modules/alloca: Likewise for $(ALLOCA_H).
89988
89989         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
89990         the three copies of the literal target, `fnmatch.h'.
89991         * modules/alloca (alloca.h): Likewise.
89992
89993 2003-08-14  Jim Meyering  <jim@meyering.net>
89994
89995         Merge from coreutils.
89996         * m4/tzset.m4: New file.
89997         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
89998         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
89999         otherwise, AIX 5.1 systems would end up using the latter.
90000         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
90001         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
90002         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
90003         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
90004
90005 2003-08-14  Jim Meyering  <jim@meyering.net>
90006
90007         Merge from coreutils.
90008         * lib/obstack.h: Whitespace changes.
90009         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
90010         and xcalloc return values.
90011         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
90012         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
90013         hang on OSF/1 5.1 for DIR on both local and remote file systems.
90014         Reported by (and fix confirmed by) Nelson H. F. Beebe.
90015         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
90016         error from mntctl.
90017         Use mntctl's return value to drive the entry-processing loop, since
90018         we can't rely on the value of the vmt_length member in the last
90019         entry.  On some systems doing so could result in exhausting
90020         virtual memory.  Based in part on a patch from Mike Jetzer.
90021
90022 2003-08-14  Jim Meyering  <jim@meyering.net>
90023         and Paul Eggert  <eggert@twinsun.com>
90024
90025         Merges from coreutils, plus other fixes.
90026         * lib/physmem.c: Merge in portability changes from gcc/libiberty
90027         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
90028         for credits and details.  Thanks to Kaveh Ghazi for helping
90029         to keep these files in sync.
90030         (ARRAY_SIZE): Define it.
90031         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
90032         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
90033         (memcasecmp): Don't assume size_t fits in unsigned int.
90034         Remove casts and duplicate code.
90035         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
90036         (memcpy): Remove definition.
90037         Merge in some clean-up and optimization changes from glibc.
90038         [BLOCKSIZE]: Move definition to top of file.
90039         Ensure that it is a multiple of 64.
90040         Rearrange loop exit tests so as to avoid performing an
90041         additional fread after encountering an error or EOF.
90042         * lib/md5.h (md5_uintptr): Define.
90043         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
90044         return to the initial working directory.  Preserve errno
90045         for caller.
90046         * lib/idcache.c: Include "xalloc.h".
90047         (xmalloc, xrealloc): Remove decls.
90048         (getuser): Remove casts no longer required in C89.
90049         * lib/human.c: Include stdio.h, for sprintf.
90050         * lib/group-member.c: Include "xalloc.h".
90051         (xmalloc, xrealloc): Remove decls.
90052         (get_group_info): Remove casts no longer required in C89.
90053         * lib/getusershell.c (readname): Remove casts no longer required in
90054         C89.
90055         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
90056         * lib/getline.c: Whitespace fix, from coreutils.
90057
90058 2003-08-13  Paul Eggert  <eggert@twinsun.com>
90059
90060         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
90061         Check for isascii.
90062
90063         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
90064         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
90065         Undo previous (whitespace-only) change.
90066
90067 2003-08-13  Paul Eggert  <eggert@twinsun.com>
90068
90069         * lib/exclude.c: Include <ctype.h>
90070         (IN_CTYPE_DOMAIN): New macro.
90071         (is_space): New fn.
90072         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
90073         and empty lines.
90074
90075         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
90076         Undo previous (whitespace-only) change.
90077
90078 2003-08-13  Paul Eggert  <eggert@twinsun.com>
90079
90080         * config/srclist-update: Change update back to the old behavior,
90081         leaving whitespace alone.  Use one 'sed' command rather than a
90082         pipeline.
90083         (fixlicense): Now a variable, not a function.
90084         (remove_trailing_blanks): Remove.
90085         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
90086         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
90087         Undo previous (whitespace-only) change.
90088
90089 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90090
90091         Merge from coreutils.
90092         * modules/euidaccess: Add lib_SOURCES, include for new
90093         file euidaccess.h
90094
90095 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90096
90097         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
90098         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
90099         Normalize leading white space and remove trailing white space.
90100
90101         Merge from coreutils
90102         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
90103
90104         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
90105         0.12.1.  These files are now being upgraded automatically by
90106         ../config/srclist-update.
90107
90108 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90109
90110         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
90111         Normalize leading white space and remove trailing white space.
90112         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
90113         notice, as per ../config/srclist-update.
90114
90115         Merge from coreutils.
90116         * lib/euidaccess.h: New file.
90117         * lib/euidaccess.c: Include it.
90118         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
90119         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
90120         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
90121
90122 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90123
90124         * config/srclist-update: Add copyright notice.
90125         (remove_id_lines, remove_trailing_blanks): New constants.
90126         (fixfile): Use them to normalize spacing a bit in copied files.
90127         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
90128         Normalize leading white space and remove trailing white space.
90129
90130         * config/texinfo.tex: Sync with texinfo.
90131
90132         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
90133         strtoul.c from libc, to merge coreutils whitespace changes.
90134
90135         * config/srclist.txt: Get the following m4 files from gettext:
90136         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
90137         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
90138         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
90139         wint_t.m4.
90140
90141 2003-08-12  Karl Berry  <karl@gnu.org>
90142
90143         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
90144         been made.
90145
90146 2003-08-11  Paul Eggert  <eggert@twinsun.com>
90147
90148         * modules/gnu-source, m4/gnu-source.m4:
90149         Remove; we're assuming Autoconf 2.54 or later now.
90150         Suggested by Bruno Haible.
90151         * MODULES.html.sh (func_all_modules): Remove gnu-source.
90152
90153 2003-08-11  Bruno Haible  <bruno@clisp.org>
90154
90155         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
90156
90157 2003-08-11  Bruno Haible  <bruno@clisp.org>
90158
90159         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
90160         (vasnprintf): Use it instead of wcslen.
90161
90162 2003-08-11  Bruno Haible  <bruno@clisp.org>
90163
90164         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
90165         value to ensure that _Bool promotes to int. Use #define for _Bool when
90166         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
90167
90168 2003-08-10  Karl Berry  <karl@gnu.org>
90169
90170         * lib/regex.h: update from libc (whitespace fix).
90171
90172 2003-08-09  Paul Eggert  <eggert@twinsun.com>
90173
90174         Merge some files from coreutils.  These changes were
90175         originally made by Jim Meyering.
90176         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
90177         many older Unixes require this.
90178         * lib/alloca.c (alloca): Remove cast to argument of free;
90179         no longer needed in C89.
90180         * lib/alloca_.h, regex.h: Fix white space to match
90181         what GNU indent does.
90182
90183 2003-08-09  Paul Eggert  <eggert@twinsun.com>
90184
90185         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
90186         apparently Emacs's Unicode mode got confused before my 2003-08-05
90187         checkin.
90188
90189 2003-08-08  Paul Eggert  <eggert@twinsun.com>
90190
90191         * m4/extensions.m4: New file.
90192         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
90193         Require gl_USE_SYSTEM_EXTENSIONS.
90194         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
90195         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
90196
90197 2003-08-08  Paul Eggert  <eggert@twinsun.com>
90198
90199         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
90200         * modules/extensions, modules/gnu-source: New files.
90201         * modules/timespec, modules/unlocked-io: Depend on extensions.
90202
90203 2003-08-07  Paul Eggert  <eggert@twinsun.com>
90204
90205         * modules/restrict: New file.
90206         * MODULES.html.sh (func_all_modules): Add restrict.
90207         * modules/regex: Depend on restrict.
90208
90209 2003-08-07  Paul Eggert  <eggert@twinsun.com>
90210
90211         * m4/restrict.m4: New file.
90212         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
90213
90214 2003-08-07  Bruno Haible  <bruno@clisp.org>
90215
90216         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
90217         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
90218
90219 2003-08-07  Bruno Haible  <bruno@clisp.org>
90220
90221         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
90222         makes the module 'getndelim2' compatible with the module 'getline'.
90223
90224 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90225
90226         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
90227         byte with "\201" to avoid glitches when editing that source file
90228         with multi-gnome-terminal.
90229
90230 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90231
90232         * lib/bumpalloc.h: Remove.
90233
90234 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90235
90236         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
90237         * modules/bumpalloc: Remove.
90238
90239 2003-08-04  Paul Eggert  <eggert@twinsun.com>
90240
90241         * lib/getloadavg.c: Change copyright notice and spacing to conform to
90242         GNU coding style.
90243
90244         Merge from coreutils.
90245         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
90246         1. From glibc.
90247         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
90248         from Karl Berry, implemented by Jim Meyering.
90249         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
90250         from Dmitry V. Levin.
90251         Remove anachronistic cast of xrealloc.
90252         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
90253         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
90254         type. Otherwise, it wouldn't compile with at least /bin/cc on
90255         ymp-cray-unicos9.0.2.X.
90256         Combine two mostly-identical uses of alloca into one.
90257         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
90258
90259 2003-08-04  Dave Love  <d.love@dl.ac.uk>
90260
90261         [From Emacs.]
90262
90263         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
90264         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
90265         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
90266         obsolete NLIST_NAME_UNION.
90267         [__GNU__]: Undef BSD and FSCALE.
90268         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
90269
90270 2003-08-03  Paul Eggert  <eggert@twinsun.com>
90271
90272         * lib/stdbool_.h (_Bool): Make it signed char, instead of
90273         an enum type, so that it's guaranteed to promote to int.  See:
90274         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
90275
90276 2003-08-03  Karl Berry  <karl@gnu.org>
90277
90278         * config/depcomp: update from automake.
90279
90280 2003-07-31  Paul Eggert  <eggert@twinsun.com>
90281
90282         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
90283         (strerror): Don't assume that a printable int fits in 14 bytes.
90284
90285 2003-07-31  Bruno Haible  <bruno@clisp.org>
90286
90287         * modules/getpass-gnu: New file.
90288         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
90289
90290 2003-07-31  Bruno Haible  <bruno@clisp.org>
90291
90292         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
90293
90294 2003-07-24  Karl Berry  <karl@gnu.org>
90295
90296         * config/missing: update from automake.
90297
90298 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
90299             Bruno Haible  <bruno@clisp.org>
90300
90301         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
90302         * lib/getline.c (getline, getdelim): Likewise.
90303         Remove _GNU_SOURCE define; now it's defined in config.h through
90304         m4/getline.m4.
90305
90306 2003-07-23  Karl Berry  <karl@gnu.org>
90307
90308         * config/config.sub: update from prep.
90309
90310 2003-07-22  Paul Eggert  <eggert@twinsun.com>
90311
90312         * modules/xalloc (Depends-on): Add exitfail.
90313         * modules/xmemcoll: Likewise.
90314
90315 2003-07-22  Paul Eggert  <eggert@twinsun.com>
90316
90317         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
90318         over-parenthesization in macros.
90319
90320         Sync with coreutils.
90321
90322         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
90323         required by C99.
90324
90325         Use `exit_failure' for xalloc and xmemcoll instead of their own
90326         private exit-failure variables.
90327         * lib/xalloc.h (xalloc_exit_failure): Remove.
90328         * lib/xmalloc.c: Likewise.  Include exitfail.h.
90329         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
90330         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
90331         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
90332         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
90333
90334 2003-07-20  Jim Meyering  <jim@meyering.net>
90335
90336         * modules/closeout (Depends-on): Add exitfail.
90337         Suggestion from Bruno Haible.
90338
90339 2003-07-19  Karl Berry  <karl@gnu.org>
90340
90341         * config/config.sub: update from prep.
90342
90343 2003-07-18  Paul Eggert  <eggert@twinsun.com>
90344
90345         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
90346         Remove.
90347         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
90348         to test that it can stand by itself.  Include "exitfail.h".
90349         Clients should set exit_failure instead.
90350         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
90351
90352 2003-07-18  Bruno Haible  <bruno@clisp.org>
90353
90354         * modules/getndelim2: New file.
90355         * modules/getline: Share files with module getndelim2.
90356         * modules/getnline: Depend on getndelim2 instead of sharing files with
90357         it. Add getnline.c to lib_SOURCES.
90358         * MODULES.html.sh (func_all_modules): Add getndelim2.
90359
90360 2003-07-18  Bruno Haible  <bruno@clisp.org>
90361
90362         * m4/getndelim2.m4: New file.
90363         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
90364         invoke gl_PREREQ_GETNDELIM2.
90365         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
90366         gl_PREREQ_GETNDELIM2.
90367         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
90368         gl_GETNDELIM2.
90369
90370 2003-07-18  Bruno Haible  <bruno@clisp.org>
90371
90372         * lib/getndelim2.h: New file.
90373         * lib/getndelim2.c: Make into a module of its own. Include config.h,
90374         getndelim2.h.
90375         (getndelim2): Make non-static. Change return type to ssize_t.
90376         * lib/getline.h: Change argument names.
90377         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
90378         * lib/getnline.c: Include getndelim2.h.
90379
90380 2003-07-18  Andreas Schwab  <schwab@suse.de>
90381
90382         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
90383
90384 2003-07-17  Karl Berry  <karl@gnu.org>
90385
90386         * config/config.sub: update from prep.
90387
90388 2003-07-17  Bruno Haible  <bruno@clisp.org>
90389
90390         * modules/getnline: New file.
90391         * modules/getline: Add lib/getndelim2.c to source file list.
90392         * MODULES.html.sh (func_all_modules): Add getnline.
90393
90394 2003-07-17  Bruno Haible  <bruno@clisp.org>
90395
90396         * m4/getnline.m4: New file.
90397
90398 2003-07-17  Bruno Haible  <bruno@clisp.org>
90399
90400         * m4/Makefile.am.in: Remove file.
90401         * m4/Makefile.am: Remove file.
90402         * m4/Makefile.in: Remove file.
90403
90404 2003-07-17  Bruno Haible  <bruno@clisp.org>
90405
90406         * lib/getnline.h: New file.
90407         * lib/getnline.c: New file.
90408         * lib/getndelim2.c: New file, extracted from getline.c.
90409         (getndelim2): Renamed from getdelim2, with added nmax argument.
90410         * lib/getline.c: Include getndelim2.c.
90411         (getdelim2): Moved out to getndelim2.c.
90412         (getline, getdelim): Update.
90413
90414 2003-07-17  Bruno Haible  <bruno@clisp.org>
90415
90416         * lib/Makefile.am: Remove file.
90417         * lib/Makefile.in: Remove file.
90418
90419 2003-07-17  Bruno Haible  <bruno@clisp.org>
90420
90421         * configure.in: Remove file.
90422         * Makefile.in: Remove file.
90423
90424 2003-07-17  Bruno Haible  <bruno@clisp.org>
90425
90426         * MODULES.html.sh: Put the </BODY> right before </HTML>.
90427
90428 2003-07-16  Karl Berry  <karl@gnu.org>
90429
90430         * config/srclist-update: was running fixlicense twice, which caused
90431                 texinfo.tex to be nullified for some reason.  Simplify,
90432                 $gplsrc is no longer needed as far as I can see?
90433
90434 2003-07-16  Jim Meyering  <jim@meyering.net>
90435
90436         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
90437
90438 2003-07-15  Paul Eggert  <eggert@twinsun.com>
90439
90440         * config/srclist.txt: Get the following files from gettext-runtime/intl
90441         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
90442         ref-del.sin.  From Bruno Haible.
90443         * config/srclist-update (fixfile): Change grep pattern again, since the
90444         previous fix didn't work (there was another trailing $).  Use
90445         '[$]' to escape the $s.
90446
90447 2003-07-15  Karl Berry  <karl@gnu.org>
90448
90449         * lib/vasnprintf.c: update from gettext.
90450
90451 2003-07-15  Karl Berry  <karl@gnu.org>
90452
90453         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
90454         gets expanded when surrounded by '$'.
90455
90456 2003-07-15  Jim Meyering  <jim@meyering.net>
90457
90458         * modules/save-cwd: Don't depend on error.  From Derek Price.
90459
90460 2003-07-15  Jim Meyering  <jim@meyering.net>
90461
90462         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
90463
90464 2003-07-14  Simon Josefsson  <jas@extundo.com>
90465
90466         * modules/mempcpy: New file.
90467         * MODULES.html.sh (func_all_modules): Add mempcpy.
90468
90469 2003-07-14  Simon Josefsson  <jas@extundo.com>
90470
90471         * m4/mempcpy.m4: New file.
90472
90473 2003-07-14  Simon Josefsson  <jas@extundo.com>
90474
90475         * lib/mempcpy.h: New file.
90476         * lib/mempcpy.c: New file.
90477
90478 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90479
90480         * modules/getdate, modules/posixtm: Depend on mktime.
90481
90482 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90483
90484         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
90485         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
90486         unicodeio.c, unicodeio.h, unlocked-io.h:
90487         Switch from LGPL to GPL.
90488
90489 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90490
90491         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
90492         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
90493         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
90494         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
90495         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
90496         updated automatically by ../config/srclist-update.  This changes
90497         their license from LPGL to GPL.
90498
90499 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90500
90501         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
90502         assumed to refer to the root of the most recent stable gettext version.
90503         * config/srclistvars.sh: Add defaults for eggert.
90504         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
90505         Match "This program" as well as "The program".  This is needed
90506         for gettext.
90507
90508 2003-07-14  Jim Meyering  <jim@meyering.net>
90509
90510         Don't emit diagnostics.  Let callers do that.
90511         * lib/save-cwd.c: Don't include "error.h".
90512         (save_cwd): Don't call error.  Ensure that errno is valid
90513         when returning nonzero.
90514
90515         * lib/save-cwd.h (restore_cwd): Update prototype.
90516         * lib/save-cwd.c (restore_cwd): Remove two parameters.
90517         Simplify.  Don't call error upon failure.  Let callers do that.
90518         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
90519         when auditing is enabled.  But don't bother updating the #if.
90520
90521 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
90522
90523         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
90524         it breaks C++ compilation.
90525         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
90526
90527 2003-07-10  Simon Josefsson  <jas@extundo.com>
90528
90529         * modules/strchrnul (Makefile.am): Add strchrnul.h.
90530
90531 2003-07-10  Jim Meyering  <jim@meyering.net>
90532
90533         * m4/clock_time.m4: Remove trailing blank.
90534         * m4/intmax_t.m4: Likewise.
90535
90536 2003-07-10  Jim Meyering  <jim@meyering.net>
90537
90538         * lib/vasnprintf.c: Remove trailing blanks.
90539         Make cpp indentation consistent.
90540
90541 2003-07-09  Paul Eggert  <eggert@twinsun.com>
90542
90543         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
90544         posixver.c, strftime.c, strnlen.c, strverscmp.c:
90545         Switch from LGPL to GPL.
90546
90547 2003-07-09  Paul Eggert  <eggert@twinsun.com>
90548
90549         * config/srclist.txt: Sort sublists.  Add
90550         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
90551         that differ from gnulib for one reason or another; we'd like this list
90552         to be smaller but for now let's document what we have.
90553
90554 2003-07-08  Paul Eggert  <eggert@twinsun.com>
90555
90556         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
90557         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
90558         and sweeter "eval x=$x".
90559         * config/srclist.txt: Get lib/argp* from glibc.
90560
90561 2003-07-07  Paul Eggert  <eggert@twinsun.com>
90562
90563         * lib/mktime.c: Fix some boundary cases and remove need for floating
90564         point.
90565
90566         Issue a compile-time diagnostic if time_t is floating point, or if
90567         two's complement arithmetic is not in effect, or if arithmetic
90568         right shift does not propagate the sign.  These assumptions were
90569         all in the original code but they weren't checked.
90570
90571         (TIME_T_MIDPOINT, verify): New macros.
90572         (__isleap): Remove; it has integer overflow problems.
90573         (leapyear): New function, without those problems.
90574         (ydhms_tm_diff): Remove; splitting into two parts.
90575         (ydhms_diff): New function, containing the arithmetic part of
90576         the old ydhms_tm_diff function.  Issue a compile-time
90577         diagnostic if we are not using C99 integer division.
90578         Avoid casts when possible.
90579         (guess_time_tm): New function, containing the checking part of
90580         the old ydhms_tm_diff function.  Return the new value, rather than
90581         the difference between it and the old.  Accept a new argument T
90582         so that *T specifies the old value.  Check for overflow in the result.
90583
90584         (__mktime_internal): Use a time_t offset, not a long int offset.
90585         This undoes the 2003-06-04 change, which is no longer needed now
90586         that we have better overflow checking.
90587         (localtime_offset): Likewise.
90588
90589         (__mktime_internal): Avoid harmful overflow on hosts where time_t
90590         and long are 64-bit but int is only 32-bit.
90591         (ydhms_diff): Use long int to store year1 and yday1.
90592         Issue a compile-time diagnostic if long int is not wide enough.
90593
90594         (__mktime_internal): Use long int to store adjusted year and yday.
90595         Use plain C rather than preprocessor commands, if that doesn't
90596         affect efficiency.
90597         Check for overflow (and try to repair) after each probe
90598         rather than checking only at the very end.  This avoids some bugs
90599         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
90600         does not equal GMT offset at maximum time).
90601         Use integer to check for overflow rather than floating point; this
90602         is more portable to non-IEEE hosts, and is a tad faster.
90603         When we detect that we are oscillating between two values,
90604         don't check whether tm_isdst has the requested value, since
90605         we already know the answer.  When tm_isdst has the wrong value,
90606         use a different heuristic to find the right one, based on the
90607         extreme values actually observed in practice in tz2003a,
90608         rather than the (overly optimistic) "previous 3 calendar quarters".
90609
90610         (not_equal_tm, print_tm, check_result): Use "const T" rather than
90611         "T const" to accommodate glibc style.
90612         (check_result): Use less-confusing report format.  "long" -> "long int.
90613         (main): Likewise.
90614         Don't loop if the iteration overflows time_t.
90615         Allow a negative step in the iteration.
90616
90617 2003-07-06  Karl Berry  <karl@gnu.org>
90618
90619         * config/depcomp: update from automake.
90620         * config/config.sub: update from prep.
90621
90622 2003-07-03  Karl Berry  <karl@gnu.org>
90623
90624         * config/config.guess: update from prep.
90625
90626 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90627
90628         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
90629         xreadlink.c now includes it unconditionally.
90630
90631 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90632
90633         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
90634         having it depend on HAVE_SYS_TYPES_H.
90635
90636 2003-07-01  Bruno Haible  <bruno@clisp.org>
90637
90638         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
90639         <sys/types.h> should be sufficient.
90640         Reported by Paul Eggert.
90641
90642 2003-06-26  Karl Berry  <karl@gnu.org>
90643
90644         * config/depcomp: update from automake.
90645
90646 2003-06-26  Bruno Haible  <bruno@clisp.org>
90647
90648         * modules/human: Depend on module stdbool.
90649
90650 2003-06-25  Bruno Haible  <bruno@clisp.org>
90651
90652         * modules/readlink: New file.
90653         * modules/xreadlink: Depend on it.
90654         * MODULES.html.sh (func_all_modules): Add readlink.
90655
90656 2003-06-25  Bruno Haible  <bruno@clisp.org>
90657
90658         * m4/readlink.m4: New file.
90659
90660 2003-06-25  Bruno Haible  <bruno@clisp.org>
90661
90662         * lib/readlink.c: New file.
90663
90664 2003-06-22  Karl Berry  <karl@gnu.org>
90665
90666         * config/srclist.txt: update mkinstalldirs from automake.
90667         * config/mkinstalldirs: update.
90668
90669 2003-06-22  Bruno Haible  <bruno@clisp.org>
90670
90671         Portability to mingw32.
90672         * m4/ssize_t.m4: New file, from GNU gettext.
90673         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
90674         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
90675
90676 2003-06-22  Bruno Haible  <bruno@clisp.org>
90677
90678         * modules/safe-read: Add m4/ssize_t.m4.
90679         * modules/xreadlink: Add m4/ssize_t.m4.
90680
90681 2003-06-20  Bruno Haible  <bruno@clisp.org>
90682
90683         Assume C89, so PARAMS isn't needed.
90684         * lib/unicodeio.h (PARAMS): Remove.
90685         * lib/unicodeio.c: Don't use PARAMS.
90686
90687 2003-06-18  Karl Berry  <karl@gnu.org>
90688
90689         * config/config.{guess,sub}: update from prep.
90690
90691 2003-06-18  Jim Meyering  <jim@meyering.net>
90692
90693         Merge changes from coreutils.
90694         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
90695         Remove explicit declarations of xmalloc and realloc.
90696         Include xalloc.h.
90697         (read_utmp): Remove anachronistic cast of xmalloc.
90698
90699 2003-06-17  Paul Eggert  <eggert@twinsun.com>
90700
90701         Assume C89, so PARAMS isn't needed.
90702         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
90703         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
90704         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
90705         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
90706         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
90707         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
90708         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
90709         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
90710         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
90711         lib/xstrtod.h, lib/xstrtol.h: Likewise.
90712         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
90713         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
90714         no longer needed. Anyway, config.h should always be included before any
90715         other file.
90716
90717 2003-06-11  Simon Josefsson  <jas@extundo.com>
90718
90719         * modules/sysexits: New file.
90720         * MODULES.html.sh (func_all_modules): Add sysexits.
90721
90722 2003-06-11  Simon Josefsson  <jas@extundo.com>
90723
90724         * lib/sysexit_.h: New file.
90725
90726 2003-06-11  Derek Price  <derek@ximbiot.com>
90727
90728         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
90729         necessary.
90730
90731 2003-06-11  Bruno Haible  <bruno@clisp.org>
90732
90733         * m4/sysexits.m4: New file.
90734
90735 2003-06-10  Simon Josefsson  <jas@extundo.com>
90736
90737         * lib/argp.h: New file, from glibc.
90738         * lib/argp-ba.c: New file, from glibc.
90739         * lib/argp-eexst.c: New file, from glibc.
90740         * lib/argp-fmtstream.c: New file, from glibc.
90741         * lib/argp-fmtstream.h: New file, from glibc.
90742         * lib/argp-fs-xinl.c: New file, from glibc.
90743         * lib/argp-help.c: New file, from glibc.
90744         * lib/argp-namefrob.h: New file, from glibc.
90745         * lib/argp-parse.c: New file, from glibc.
90746         * lib/argp-pv.c: New file, from glibc.
90747         * lib/argp-pvh.c: New file, from glibc.
90748         * lib/argp-xinl.c: New file, from glibc.
90749
90750 2003-06-10  Simon Josefsson  <jas@extundo.com>
90751
90752         * modules/strchrnul: New file.
90753
90754 2003-06-10  Simon Josefsson  <jas@extundo.com>
90755
90756         * modules/argp: New file.
90757
90758 2003-06-10  Simon Josefsson  <jas@extundo.com>
90759
90760         * m4/strchrnul.m4: New file.
90761
90762 2003-06-10  Simon Josefsson  <jas@extundo.com>
90763
90764         * lib/strchrnul.h: New file.
90765         * lib/strchrnul.c: New file.
90766
90767 2003-06-10  Bruno Haible  <bruno@clisp.org>
90768
90769         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
90770
90771 2003-06-07  Karl Berry  <karl@gnu.org>
90772
90773         * config/config.{guess,sub}: update from prep.
90774
90775 2003-06-07  Jim Meyering  <jim@meyering.net>
90776
90777         * modules/strtod: Use $(...) notation, not @...@ for
90778         AC_REPLACE'd variables.
90779         * modules/localcharset: Likewise.
90780
90781 2003-06-07  Jim Meyering  <jim@meyering.net>
90782
90783         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
90784         in place of my name in the copyright comment.
90785         Remove definition and uses of __P.
90786
90787         From coreutils.
90788         * lib/stat.c: Don't declare xmalloc explicitly.
90789         Instead, include "xalloc.h".
90790         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
90791         xrealloc, and xcalloc return values.
90792         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
90793         Improve comment.
90794         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
90795
90796 2003-06-07  Bruno Haible  <bruno@clisp.org>
90797
90798         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
90799         avoid AC_CONFIG_LINKS.
90800         * modules/fnmatch (Makefile.am): Use explicit creation rule for
90801         fnmatch.h, to avoid AC_CONFIG_LINKS.
90802         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
90803
90804 2003-06-07  Bruno Haible  <bruno@clisp.org>
90805
90806         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
90807         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
90808         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90809         directory.
90810         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
90811         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90812         directory.
90813
90814 2003-06-06  Jim Meyering  <jim@meyering.net>
90815
90816         Merge from coreutils.
90817         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
90818         Consolidate declarations and initializations of *_base* locals.
90819
90820         Merge from coreutils.
90821         This avoids a core dump on systems without GNU putenv,
90822         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
90823         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
90824         (unsetenv): New static function, from GNU libc.
90825         (rpl_putenv): Use it.
90826
90827         * lib/modechange.c: Remove trailing blanks.
90828
90829         Merge from coreutils.
90830         * lib/fsusage.c: Remove declaration of statfs.
90831         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
90832
90833         * lib/posixtm.c: Include <stdbool.h> unconditionally.
90834
90835 2003-06-06  Jim Meyering  <jim@meyering.net>
90836
90837         * lib/stdbool_.h: Renamed from stdbool.h.in.
90838
90839 2003-06-06  Jim Meyering  <jim@meyering.net>
90840             Bruno Haible  <bruno@clisp.org>
90841
90842         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
90843         Adjust Makefile.am snippet not to redirect directly to target.
90844         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
90845
90846 2003-06-05  Paul Eggert  <eggert@twinsun.com>
90847
90848         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
90849         mismatch, look in future quarters as well as past.  This fixes a
90850         bug when processing fall-backwards gaps immediately after a long
90851         period of daylight-saving time.
90852
90853         * lib/mktime.c: Assume freestanding C89 or better.
90854         (HAVE_LIMITS_H): Remove.  Assume it's 1.
90855         (__P): Remove; not used.
90856         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
90857         (mktime, not_equal_tm, print_tm, check_result,
90858         main): Use prototypes.  Use const * where appropriate.
90859         (main): Fix typo in testing code that uncovered by above changes.
90860         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
90861
90862 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90863
90864         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
90865         locale.h, localeconv.  This merges changes from coreutils.
90866
90867         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
90868         It can be removed after the next Autoconf is released.
90869         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
90870         needed.
90871
90872 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90873
90874         * lib/mktime.c: Fix Debian bug 177940
90875         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
90876         (localtime_offset): Now long int, not time_t, because we want it
90877         to be guaranteed to be signed.  All uses changed.
90878         (__mktime_internal): If overflow would occur when adding offset,
90879         don't add it.
90880
90881         Merge 'human' changes from coreutils.  Rewrite to support
90882         locale-specific notations like thousands separators.
90883         * lib/human.c: Simplify authorship notice.
90884         Include human.h immediately after config.h.
90885         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
90886         <limits.h>: Do not include, since human.h does.
90887         (SIZE_MAX, UINTMAX_MAX): New macros.
90888         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
90889         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
90890         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
90891         (power_letter): Renamed from suffixes.
90892         (generate_suffix_backwards): Remove.
90893         (adjust_value): Now takes int style (because of human.h changes)
90894         and long double value (for greater precision on some platforms).
90895         (group_number): New function.
90896         (human_readable): Use it.  Use integer options, not enum.
90897         Put the options before the sizes in the arg list.
90898         Support all the new options.
90899         The old human_readable function has been removed;
90900         use inttostr.h instead.
90901         (human_readable, default_block_size, humblock):
90902         Use uintmax_t, not int, for block sizes.
90903         (human_readable_inexact, block_size_types): Remove.
90904         (block_size_opts): New constant.
90905         (human_options): Renamed from human_block_size, with new signature
90906         that allows block sizes up to UINTMAX_MAX.  All callers changed.
90907         * lib/human.h: Add copyright and authorship notice.
90908         Include <limits.h> and <stdbool.h> unconditionally.
90909         (PARAMS): Remove.  All uses removed.
90910         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
90911         (enum human_inexact_style): Remove tag; now a nameless enum.
90912         (human_floor, human_ceiling, human_round_to_even): Now have
90913         values 2, 0, 1 rather than -1, 1, 0.
90914         (human_group_digits, human_suppress_point_zero, human_autoscale,
90915         human_base_1024, human_SI, human_B): New constants.
90916         (human_readable_inexact, human_block_size): Remove.
90917         (human_readable): Size args are now uintmax_t, not int.
90918         (human_options): New decl.
90919
90920         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
90921         unnecessary now that we assume C89 or better.  This change
90922         imported from coreutils.
90923
90924         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
90925         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
90926         in the 2003-05-30 sync from glibc.
90927
90928         .h files should stand alone, but we shouldn't include <sys/types.h>
90929         if we can get away with just <stddef.h>.
90930
90931         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
90932         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
90933         rather than <sys/types.h>, as we merely need size_t.
90934         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
90935         to get size_t.
90936         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
90937         Include <stdio.h>, to get FILE.
90938         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
90939         memcasecmp.h has included <stddef.h> and all we need is size_t.
90940         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
90941         our interface, instead of including <sys/types.h>
90942
90943 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90944
90945         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
90946         now, as glibc mktime is buggy on non-glibc systems.
90947
90948 2003-06-03  Karl Berry  <karl@gnu.org>
90949
90950         * config/config.sub: update from prep.
90951
90952 2003-06-02  Paul Eggert  <eggert@twinsun.com>
90953
90954         [from coreutils]
90955         Fix some minor time-related bugs with POSIX time arguments.
90956         Some valid time stamps were being rejected (notably -1, and
90957         time stamps before 1900 on 64-bit hosts).  And some invalid
90958         time stamps were being accepted, e.g. September 31.
90959
90960         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
90961         that we can return (time_t) -1 successfully.
90962         * lib/posixtm.c: Likewise.
90963         [HAVE_STDBOOL_H]: Include <stdbool.h>.
90964         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
90965         (t): Remove static var.
90966         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
90967         of static var.  All uses changed.
90968         (year): Do not reject years before 1900; they can occur with
90969         64-bit time_t.
90970         (posix_time_parse): Do not check for out-of-range components;
90971         that is now the caller's responsibility, since our checks were
90972         only approximations.
90973         (posixtime): Use mktime to check for out-of-range components,
90974         since it knows them exactly.
90975         If mktime returns (time_t) -1, check whether an error actually occurred
90976         by invoking localtime on -1.
90977         (main) [TEST_POSIXTIME]: Check for input data errors, and report
90978         posixtime failures better.
90979         Improve the test data (in comments only).
90980
90981 2003-06-02  Karl Berry  <karl@gnu.org>
90982
90983         * config/mkinstalldirs (version): new variable.
90984         (--version): new option.
90985         (usage): improve message.
90986
90987 2003-05-30  Karl Berry  <karl@gnu.org>
90988
90989         * lib/mktime.c: update from libc.
90990
90991 2003-05-30  Bruno Haible  <bruno@clisp.org>
90992
90993         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
90994         * config/config.rpath: Upgrade to gettext-0.12.1.
90995
90996 2003-05-30  Bruno Haible  <bruno@clisp.org>
90997
90998         * m4/gettext.m4: Upgrade to gettext-0.12.1.
90999         * m4/nls.m4: New file, from gettext-0.12.1.
91000         * m4/po.m4: New file, from gettext-0.12.1.
91001         * m4/progtest.m4: Upgrade to gettext-0.12.1.
91002
91003 2003-05-30  Bruno Haible  <bruno@clisp.org>
91004
91005         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
91006         * lib/localcharset.h: Likewise.
91007         * lib/localcharset.c: Likewise.
91008
91009 2003-05-29  Karl Berry  <karl@gnu.org>
91010
91011         * config/config.rpath: update from gettext.
91012
91013 2003-05-28  Paul Eggert  <eggert@twinsun.com>
91014
91015         Assume the headers required for C89 freestanding compilers.
91016         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
91017         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
91018         * m4/human.m4 (gl_HUMAN): Likewise.
91019         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
91020         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
91021         * m4/userspec.m4 (gl_USERSPEC): Likewise.
91022         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
91023         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
91024         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
91025
91026 2003-05-28  Paul Eggert  <eggert@twinsun.com>
91027
91028         Assume the headers required for C89 freestanding compilers.
91029         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
91030         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
91031         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
91032         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
91033         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
91034         define, since <limits.h> is guaranteed to do that.
91035         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
91036         * lib/exclude.c: Include <stdbool.h> unconditionally.
91037         * lib/tempname.c: Include <stddef.h> unconditionally.
91038         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
91039         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
91040         <stddef.h> does that.
91041         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
91042         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
91043         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
91044         needed.
91045         * lib/xstrtol.c: Likewise.
91046         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
91047         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
91048
91049         * lib/addext.c (addext): Use assignment rather than cast, to avoid
91050         warnings on some platforms.
91051
91052         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
91053         arbitrarily.
91054
91055 2003-05-26  Jim Meyering  <jim@meyering.net>
91056
91057         Merge in a change from coreutils:
91058         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
91059         that is guaranteed to be `no'.  Use `no_such_member' to indicate
91060         that condition, rather than `-1' which is slightly misleading.
91061         Change the name of the cache variable to have the gl_ prefix.
91062         Prompted by a patch from Richard Dawe for DJGPP.
91063
91064 2003-05-24  Karl Berry  <karl@gnu.org>
91065
91066         * config/config.guess: update from prep.
91067
91068 2003-05-22  Karl Berry  <karl@gnu.org>
91069
91070         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
91071
91072 2003-05-20  Karl Berry  <karl@gnu.org>
91073
91074         * config/config.guess: update from prep.
91075
91076 2003-05-18  Karl Berry  <karl@gnu.org>
91077
91078         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
91079         might actually be set by the user.
91080
91081         * config/depcomp, install-sh, mdate-sh: update from automake.
91082
91083 2003-05-17  Bruno Haible  <bruno@clisp.org>
91084
91085         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
91086         invalid expansion for AC_EGREP_CPP.
91087         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
91088         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
91089         Suggested by Akim Demaille <akim@epita.fr> in
91090         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
91091
91092 2003-05-12  Jim Meyering  <jim@meyering.net>
91093
91094         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
91095         the space-padded-by-default conversion specifiers, %e, %k, %l.
91096
91097 2003-05-12  Bruno Haible  <bruno@clisp.org>
91098
91099         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
91100         the string is longer than 4 KB.
91101
91102 2003-05-11  Karl Berry  <karl@gnu.org>
91103
91104         * config/config.{guess,sub}: update from prep.
91105
91106 2003-05-09  Bruno Haible  <bruno@clisp.org>
91107
91108         * modules/error: Add m4/strerror_r.m4 to file list.
91109
91110 2003-05-03  Bruno Haible  <bruno@clisp.org>
91111
91112         Upgrade to Unicode-4.0.
91113         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
91114         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
91115         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
91116         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
91117         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
91118         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
91119         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
91120         Change width of U+E0100..U+E01EF from 1 to 0.
91121
91122 2003-04-25  Jim Meyering  <jim@meyering.net>
91123
91124         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
91125         of type size_t, not int.
91126
91127 2003-04-25  Bruno Haible  <bruno@clisp.org>
91128
91129         * lib/copy-file.c: Include <stddef.h>, for size_t.
91130
91131 2003-04-21  Paul Eggert  <eggert@twinsun.com>
91132
91133         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
91134         code which expansion is under static control.  Patch imported from
91135         Akim Demaille's patch to Bison; see
91136         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
91137
91138 2003-04-14  Bruno Haible  <bruno@clisp.org>
91139
91140         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
91141
91142 2003-04-11  Jim Meyering  <jim@meyering.net>
91143
91144         Merge changes from Coreutils.
91145
91146         2003-03-22  Jim Meyering  <jim@meyering.net>
91147
91148         * lib/strftime.c (widen): Cast alloca return value to proper type.
91149
91150         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
91151
91152         From GNU libc.
91153         * lib/strftime.c (my_strftime): Handle very large width
91154         specifications for numeric values correctly.  Improve checks for
91155         overflow.
91156
91157         2003-01-19  Jim Meyering  <jim@meyering.net>
91158
91159         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
91160         definitions.
91161         (nl_get_alt_digit) [! defined my_strftime]: Define.
91162         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
91163         _nl_get_alt_digit and _nl_get_walt_digit.
91164
91165         * lib/strftime.c (my_strftime): Merge in locale-related changes from
91166         libc. These changes have no effect outside of _LIBC.
91167
91168 2003-04-10  Bruno Haible  <bruno@clisp.org>
91169
91170         * modules/findprog: New file.
91171         * MODULES.html.sh (func_all_modules): Add it.
91172
91173 2003-04-10  Bruno Haible  <bruno@clisp.org>
91174
91175         * m4/findprog.m4: New file.
91176         * m4/eaccess.m4: New file.
91177
91178 2003-04-10  Bruno Haible  <bruno@clisp.org>
91179
91180         * lib/findprog.h: New file, from GNU gettext.
91181         * lib/findprog.c: New file, from GNU gettext.
91182
91183 2003-04-05  Jim Meyering  <jim@meyering.net>
91184
91185         Merge changes from Coreutils.
91186
91187         * lib/exclude.h (PARAMS): Remove definition and uses.
91188         * lib/exclude.c: Remove uses of `PARAMS'.
91189
91190         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
91191         Add test-cases for DOS filenames. Declare program_name.
91192         (main): Set up program_name.  Patch by Rich Dawe.
91193
91194         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
91195         error from mntctl.
91196         Use mntctl's return value to drive the entry-processing loop, since
91197         we can't rely on the value of the vmt_length member in the last
91198         entry.  On some systems doing so could result in exhausting
91199         virtual memory.  Based in part on a patch from Mike Jetzer.
91200
91201 2003-04-04  Bruno Haible  <bruno@clisp.org>
91202
91203         * modules/linebreak: New file.
91204         * MODULES.html.sh (func_all_modules): Add it.
91205
91206 2003-04-04  Bruno Haible  <bruno@clisp.org>
91207
91208         * m4/linebreak.m4: New file.
91209
91210 2003-04-04  Bruno Haible  <bruno@clisp.org>
91211
91212         * lib/linebreak.h: New file, from GNU gettext.
91213         * lib/linebreak.c: New file, from GNU gettext with slight
91214         modifications.
91215         * lib/lbrkprop.h: New file, from GNU gettext.
91216
91217 2003-04-03  Bruno Haible  <bruno@clisp.org>
91218
91219         * modules/utf8-ucs4: New file.
91220         * modules/utf16-ucs4: New file.
91221         * modules/ucs4-utf8: New file.
91222         * modules/ucs4-utf16: New file.
91223         * MODULES.html.sh (func_all_modules): Add them.
91224
91225 2003-04-03  Bruno Haible  <bruno@clisp.org>
91226
91227         * m4/utf-ucs4.m4: New file.
91228         * m4/ucs4-utf.m4: New file.
91229
91230 2003-04-03  Bruno Haible  <bruno@clisp.org>
91231
91232         * lib/utf8-ucs4.h: New file, from GNU gettext.
91233         * lib/utf16-ucs4.h: New file, from GNU gettext.
91234         * lib/ucs4-utf8.h: New file, from GNU gettext.
91235         * lib/ucs4-utf16.h: New file, from GNU gettext.
91236
91237 2003-04-02  Bruno Haible  <bruno@clisp.org>
91238
91239         * modules/binary-io: New file.
91240         * MODULES.html.sh (func_all_modules): Add it.
91241
91242 2003-04-02  Bruno Haible  <bruno@clisp.org>
91243
91244         * lib/binary-io.h: New file, from GNU gettext.
91245
91246 2003-04-01  Bruno Haible  <bruno@clisp.org>
91247
91248         * modules/pathname: New file.
91249         * MODULES.html.sh (func_all_modules): Add it.
91250
91251 2003-04-01  Bruno Haible  <bruno@clisp.org>
91252
91253         * lib/pathname.h: New file, from GNU gettext.
91254         * lib/concatpath.c: New file, from GNU gettext.
91255
91256 2003-03-30  Bruno Haible  <bruno@clisp.org>
91257
91258         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
91259
91260 2003-03-30  Bruno Haible  <bruno@clisp.org>
91261
91262         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
91263         function chown() doesn't exist.
91264
91265 2003-03-28  Bruno Haible  <bruno@clisp.org>
91266
91267         * modules/copy-file: New file.
91268         * MODULES.html.sh (func_all_modules): Add it.
91269
91270 2003-03-28  Bruno Haible  <bruno@clisp.org>
91271
91272         * m4/copy-file.m4: New file.
91273
91274 2003-03-28  Bruno Haible  <bruno@clisp.org>
91275
91276         * lib/copy-file.h: New file, from GNU gettext.
91277         * lib/copy-file.c: New file, from GNU gettext.
91278
91279 2003-03-18  Jim Meyering  <jim@meyering.net>
91280
91281         * lib/quote.c (quote_n): Fix typo in comment.
91282
91283 2003-03-18  Bruno Haible  <bruno@clisp.org>
91284
91285         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
91286         checking.
91287         * m4/onceonly_2_57.m4: Likewise.
91288
91289 2003-03-17  Bruno Haible  <bruno@clisp.org>
91290
91291         * m4/onceonly.m4: Require autoconf 2.54 or newer.
91292         (m4_quote): Remove macro.
91293         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
91294
91295 2003-03-14  Jim Meyering  <jim@meyering.net>
91296
91297         Merge changes from Coreutils.
91298         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
91299         to be const, in order to avoid warnings.
91300         (obstack_room): Likewise.
91301         (obstack_empty_p): Likewise.
91302
91303 2003-03-14  Bruno Haible  <bruno@clisp.org>
91304
91305         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
91306         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
91307
91308 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91309
91310         Merge changes from Bison.
91311         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
91312         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
91313         when compiling Bison 1.875's `bitset bset = obstack_alloc
91314         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
91315         * lib/hash.c: Include <stdbool.h> unconditionally.
91316
91317 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91318
91319         * m4/onceonly.m4 (m4_quote): New macro.
91320         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
91321         Quote AC_FOREACH variable-expansions properly.
91322
91323 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91324
91325         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
91326
91327 2003-03-09  Paul Eggert  <eggert@twinsun.com>
91328
91329         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
91330         Reported by Bruce Becker; see:
91331         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
91332
91333 2003-03-03  Paul Eggert  <eggert@twinsun.com>
91334             Bruno Haible  <bruno@clisp.org>
91335
91336         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
91337         Reported by John Hughes, see
91338         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
91339
91340 2003-02-20  Bruno Haible  <bruno@clisp.org>
91341
91342         * MODULES.html.sh (func_all_modules): Add poll.
91343
91344 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91345
91346         * modules/poll: New file.
91347
91348 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91349
91350         * lib/poll_.h: New file.
91351         * lib/poll.c: New file.
91352
91353 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91354
91355         * m4/poll.m4: New file.
91356
91357 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91358
91359         * modules/mathl: New file.
91360
91361 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91362
91363         * lib/mathl.h: New file.
91364         * lib/acosl.c: New file.
91365         * lib/asinl.c: New file.
91366         * lib/atanl.c: New file.
91367         * lib/ceill.c: New file.
91368         * lib/cosl.c: New file.
91369         * lib/expl.c: New file.
91370         * lib/floorl.c: New file.
91371         * lib/frexpl.c: New file.
91372         * lib/ldexpl.c: New file.
91373         * lib/logl.c: New file.
91374         * lib/sincosl.c: New file.
91375         * lib/sinl.c: New file.
91376         * lib/sqrtl.c: New file.
91377         * lib/tanl.c: New file.
91378         * lib/trigl.c: New file.
91379         * lib/trigl.h: New file.
91380
91381 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91382
91383         * m4/mathl.m4: New file.
91384
91385 2003-02-18  Bruno Haible  <bruno@clisp.org>
91386
91387         * MODULES.html.sh (func_all_modules): Add mathl.
91388
91389 2003-02-17  Bruno Haible  <bruno@clisp.org>
91390
91391         * modules/mkdtemp: New module.
91392         * MODULES.html.sh (func_all_modules): Add it.
91393
91394 2003-02-17  Bruno Haible  <bruno@clisp.org>
91395
91396         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
91397
91398 2003-02-17  Bruno Haible  <bruno@clisp.org>
91399
91400         * lib/mkdtemp.h: New file, from GNU gettext.
91401         * lib/mkdtemp.c: New file, from GNU gettext.
91402
91403 2003-02-02  Jim Meyering  <jim@meyering.net>
91404
91405         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
91406         e.g. glibc-2.2.93.
91407
91408 2003-01-31  Bruno Haible  <bruno@clisp.org>
91409
91410         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
91411         'rpl_rename'.
91412         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
91413         'rpl_strnlen'.
91414         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
91415         'rpl_strtod'.
91416         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
91417         'rpl_utime'.
91418
91419 2003-01-31  Bruno Haible  <bruno@clisp.org>
91420
91421         * lib/rename.c: #undef rename before defining rpl_rename.
91422         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
91423
91424 2003-01-30  Bruno Haible  <bruno@clisp.org>
91425
91426         * modules/vasnprintf, modules/vasprintf: New modules.
91427         * MODULES.html.sh (func_all_modules): Add them.
91428
91429 2003-01-30  Bruno Haible  <bruno@clisp.org>
91430
91431         * m4/signed.m4: New file, from GNU gettext.
91432         * m4/longdouble.m4: New file, from GNU gettext.
91433         * m4/wchar_t.m4: New file, from GNU gettext.
91434         * m4/wint_t.m4: New file, from GNU gettext.
91435         * m4/vasnprintf.m4: New file.
91436         * m4/vasprintf.m4: New file.
91437
91438 2003-01-30  Bruno Haible  <bruno@clisp.org>
91439
91440         * lib/printf-args.h: New file, from GNU gettext.
91441         * lib/printf-args.c: New file, from GNU gettext.
91442         * lib/printf-parse.h: New file, from GNU gettext.
91443         * lib/printf-parse.c: New file, from GNU gettext.
91444         * lib/vasnprintf.h: New file, from GNU gettext.
91445         * lib/vasnprintf.c: New file, from GNU gettext.
91446         * lib/asnprintf.c: New file, from GNU gettext.
91447         * lib/vasprintf.h: New file, from GNU gettext with modifications.
91448         * lib/vasprintf.c: New file, from GNU gettext.
91449         * lib/asprintf.c: New file, from GNU gettext.
91450
91451 2003-01-29  Bruno Haible  <bruno@clisp.org>
91452
91453         * modules/stpncpy: New module.
91454         * MODULES.html.sh (func_all_modules): Add it.
91455
91456 2003-01-29  Bruno Haible  <bruno@clisp.org>
91457
91458         * m4/stpncpy.m4: New file.
91459
91460 2003-01-29  Bruno Haible  <bruno@clisp.org>
91461
91462         * lib/stpncpy.h: New file, from GNU gettext with modifications.
91463         * lib/stpncpy.c: New file, from GNU gettext with modifications.
91464
91465 2003-01-28  Bruno Haible  <bruno@clisp.org>
91466
91467         * modules/c-ctype: New module.
91468         * MODULES.html.sh (func_all_modules): Add it.
91469
91470 2003-01-28  Bruno Haible  <bruno@clisp.org>
91471
91472         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
91473         Paul Eggert.
91474         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
91475         Paul Eggert.
91476
91477 2003-01-27  Bruno Haible  <bruno@clisp.org>
91478
91479         * modules/xsetenv: New module.
91480         * MODULES.html.sh (func_all_modules): Add it.
91481
91482 2003-01-27  Bruno Haible  <bruno@clisp.org>
91483
91484         * lib/xsetenv.h: New file, from GNU gettext.
91485         * lib/xsetenv.c: New file, from GNU gettext.
91486
91487 2003-01-23  Jim Meyering  <jim@meyering.net>
91488
91489         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
91490         from working on systems without dirfd (at least Irix and OSF1/Tru64).
91491
91492 2003-01-23  Bruno Haible  <bruno@clisp.org>
91493
91494         * modules/minmax: New module.
91495         * MODULES.html.sh (func_all_modules): Add it.
91496
91497 2003-01-23  Bruno Haible  <bruno@clisp.org>
91498
91499         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
91500         Eggert.
91501
91502 2003-01-22  Bruno Haible  <bruno@clisp.org>
91503
91504         * modules/exit: New module.
91505         * MODULES.html.sh (func_all_modules): Add it.
91506
91507 2003-01-22  Bruno Haible  <bruno@clisp.org>
91508
91509         * lib/exit.h: New file, from GNU gettext.
91510
91511 2003-01-19  Bruno Haible  <bruno@clisp.org>
91512
91513         * gnulib-tool: Recognize option --extract-maintainer.
91514         (func_get_maintainer): New function.
91515         * modules/*: Add Maintainer entry.
91516
91517 2003-01-16  Jim Meyering  <jim@meyering.net>
91518
91519         * m4/regex.m4: The `regex' struct is both input and output.
91520         Initialize it before each use.  Patch by Tim Waugh.
91521
91522 2003-01-16  Bruno Haible  <bruno@clisp.org>
91523
91524         * MODULES.html.sh: Add a table of contents. Add the module name as
91525         leftmost column. Add hyperlinks.
91526
91527 2003-01-15  Bruno Haible  <bruno@clisp.org>
91528
91529         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
91530
91531 2003-01-15  Bruno Haible  <bruno@clisp.org>
91532
91533         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
91534         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
91535         suffix.
91536
91537 2003-01-15  Bruno Haible  <bruno@clisp.org>
91538
91539         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
91540
91541 2003-01-15  Bruno Haible  <bruno@clisp.org>
91542
91543         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
91544         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
91545
91546 2003-01-14  Jim Meyering  <jim@meyering.net>
91547
91548         * lib/same.c (same_name): Tweak a comment.
91549
91550 2003-01-14  Bruno Haible  <bruno@clisp.org>
91551
91552         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
91553         when a string comparison is sufficient.
91554
91555 2003-01-14  Bruno Haible  <bruno@clisp.org>
91556
91557         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
91558         'unsigned int'.
91559
91560 2003-01-14  Bruno Haible  <bruno@clisp.org>
91561
91562         * lib/hash-pjw.c: Add comment about low quality of this function.
91563
91564 2003-01-13  Bruno Haible  <bruno@clisp.org>
91565
91566         * modules/stpcpy: Distribute lib/stpcpy.h.
91567         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
91568
91569 2003-01-13  Bruno Haible  <bruno@clisp.org>
91570
91571         * modules/*: Add a description.
91572         * modules/strpbrk: Fix Makefile.am snippet.
91573         * modules/strtoimax: Fix dependencies.
91574         * modules/strtoumax: Likewise.
91575
91576 2003-01-13  Bruno Haible  <bruno@clisp.org>
91577
91578         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
91579         * modules/alloca (Makefile.am): All object files depend on alloca.h.
91580         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
91581
91582 2003-01-13  Bruno Haible  <bruno@clisp.org>
91583
91584         * gnulib-tool (func_create_testdir): Store config/* files in the main
91585         directory.
91586         * config.rpath: Move to ...
91587         * config/config.rpath: ... here.
91588         * modules/gettext: Contains config/config.rpath, not config.rpath.
91589         * modules/iconv: Likewise.
91590
91591 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91592
91593         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91594         to avoid collisions with libcurses and libreadline.
91595
91596         * m4/getstr.m4: Remove.
91597         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
91598
91599 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91600
91601         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91602         to avoid collisions with libcurses and libreadline.
91603
91604         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
91605         * lib/getstr.h, getstr.c: Remove.
91606         * lib/getline.c: Include "getline.h", to check interface.
91607         Move body of old getstr.c here: this defines MIN_CHUNK and
91608         declares getdelim2, which is renamed from getstr.
91609         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
91610
91611         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
91612         All uses changed.
91613         * lib/linebuffer.h: Likewise.
91614         (readline): Remove backward-compatibility macro.
91615
91616 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91617
91618         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91619         to avoid collisions with libcurses and libreadline.
91620         * getstr: Remove.
91621         * MODULES.html.sh: Remove getstr.
91622         * modules/getline: Depend on unlocked-io, not getstr.
91623
91624 2003-01-12  Jim Meyering  <jim@meyering.net>
91625
91626         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
91627
91628 2003-01-10  Bruno Haible  <bruno@clisp.org>
91629
91630         * modules/alloca: Change Makefile.am requirements. Simplify Include
91631         requirements. Add lib/alloca_.h to file list.
91632
91633 2003-01-10  Bruno Haible  <bruno@clisp.org>
91634
91635         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
91636
91637 2003-01-10  Bruno Haible  <bruno@clisp.org>
91638
91639         * lib/alloca_.h: New file.
91640         * lib/getdate.y: Unconditionally include alloca.h.
91641         * lib/makepath.c: Likewise.
91642         * lib/setenv.c: Likewise.
91643         * lib/userspec.c: Likewise.
91644
91645 2003-01-09  Karl Berry  <karl@gnu.org>
91646
91647         * MODULES.html.sh: include `dirname $0` in PATH, to find
91648         gnulib-tool.
91649
91650 2003-01-09  Bruno Haible  <bruno@clisp.org>
91651
91652         * modules/stdbool: Change configure.ac, Makefile.am requirements.
91653         Simplify Include requirements. Add lib/stdbool.h.in to file list.
91654
91655 2003-01-09  Bruno Haible  <bruno@clisp.org>
91656
91657         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
91658
91659 2003-01-09  Bruno Haible  <bruno@clisp.org>
91660
91661         * lib/stdbool.h.in: New file.
91662
91663 2003-01-09  Bruno Haible  <bruno@clisp.org>
91664
91665         * gnulib-tool (func_all_modules): Ignore files ending in ~.
91666         * MODULES.html.sh: Likewise.
91667
91668 2003-01-08  Jim Meyering  <jim@meyering.net>
91669
91670         * lib/full-write.c: Undefine and define-away `const' after inclusion
91671         of errno.h, not before.  Suggestion from Bruno Haible.
91672
91673 2003-01-08  Bruno Haible  <bruno@clisp.org>
91674
91675         * modules/full-read: Depend on full-write.
91676
91677 2003-01-08  Bruno Haible  <bruno@clisp.org>
91678
91679         * lib/safe-read.c: Include specification header first, to ensure its
91680         selfcontainedness.
91681         * lib/full-write.c: Likewise.
91682
91683 2003-01-07  Jim Meyering  <jim@meyering.net>
91684
91685         * lib/full-write.c: Rework so that it may serve to define full_read,
91686         too.
91687         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
91688
91689 2003-01-07  Bruno Haible  <bruno@clisp.org>
91690
91691         * lib/strtoimax.c: Include <stdint.h> as an alternative to
91692         <inttypes.h>.
91693         * lib/xstrtol.h: Likewise.
91694         * lib/xstrtoimax.c: Likewise.
91695         * lib/xstrtoumax.c: Likewise.
91696         * lib/human.h: Likewise.
91697
91698         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
91699         on systems that have <inttypes.h> but not <stdint.h>.
91700
91701 2003-01-07  Bruno Haible  <bruno@clisp.org>
91702
91703         * MODULES.html.sh: Add copyright notice.
91704         (missed_files): Omit CVS directory entries.
91705         (func_module): Make it work with sed-3.02.
91706         * MODULES.txt: Remove file.
91707
91708 2003-01-06  Jim Meyering  <jim@meyering.net>
91709
91710         * lib/version-etc.c: Update year in translatable copyright string.
91711
91712 2003-01-03  Karl Berry  <karl@gnu.org>
91713
91714         * config/config.{guess,sub}: update from prep.
91715
91716 2003-01-02  Karl Berry  <karl@gnu.org>
91717
91718         * doc/COPYING.DOC: belatedly updated to 1.2.
91719
91720 2003-01-01  Karl Berry  <karl@gnu.org>
91721
91722         * gnulib-tool (func_verify_module): report module name $module in
91723         error message, not $1.
91724         * gnulib-tool (create-testdir): don't complain if destdir couldn't
91725         be created, only if it doesn't exist.
91726         * gnulib-tool (last_checkin_date): don't expand the $Date here.
91727
91728 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91729
91730         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
91731
91732 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91733
91734         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
91735         memcmp if strcoll doesn't work.
91736
91737 2002-12-31  Bruno Haible  <bruno@clisp.org>
91738
91739         * lib/utime.c (utime_null): No need to call ftruncate if the file was
91740         nonempty.
91741
91742 2002-12-31  Bruno Haible  <bruno@clisp.org>
91743
91744         * lib/memcoll.c (STRCOLL): New macro.
91745         (memcoll): Use it.
91746
91747 2002-12-31  Bruno Haible  <bruno@clisp.org>
91748
91749         * lib/localcharset.h: New file.
91750         * lib/localcharset.c: Include it.
91751         * lib/unicodeio.c: Likewise.
91752
91753 2002-12-31  Bruno Haible  <bruno@clisp.org>
91754
91755         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
91756         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
91757
91758 2002-12-31  Bruno Haible  <bruno@clisp.org>
91759
91760         * lib/getline.h: Include <stddef.h>, for size_t.
91761
91762         * lib/unicodeio.h: Include <stddef.h>, for size_t.
91763         * lib/unicodeio.c: Don't include <stddef.h>.
91764
91765 2002-12-31  Bruno Haible  <bruno@clisp.org>
91766
91767         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
91768         HAVE_TM_ZONE.
91769
91770 2002-12-24  Karl Berry  <karl@gnu.org>
91771
91772         * config/config.guess: update from prep.
91773
91774 2002-12-24  Bruno Haible  <bruno@clisp.org>
91775
91776         General infrasructure.
91777         * m4/README: Rewritten.
91778         * m4/onceonly.m4: New file.
91779         * m4/onceonly_2_57.m4: New file.
91780
91781         Module atexit.
91782         * m4/atexit.m4: New file.
91783
91784         Module strtod.
91785         * m4/strtod.m4: New file.
91786
91787         Module strtol.
91788         * m4/strtol.m4: New file.
91789
91790         Module strtoul.
91791         * m4/strtoul.m4: New file.
91792
91793         Module memchr.
91794         * m4/memchr.m4: New file.
91795
91796         Module memcmp.
91797         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
91798         (jm_FUNC_MEMCMP): Invoke it.
91799
91800         Module memcpy.
91801         * m4/memcpy.m4: New file.
91802
91803         Module memmove.
91804         * m4/memmove.m4: New file.
91805
91806         Module memset.
91807         * m4/memset.m4: New file.
91808
91809         Module strcspn.
91810         * m4/strcspn.m4: New file.
91811
91812         Module strpbrk.
91813         * m4/strpbrk.m4: New file.
91814
91815         Module strstr.
91816         * m4/strstr.m4: New file.
91817
91818         Module strerror.
91819         * m4/strerror.m4: New file.
91820
91821         Module mktime.
91822         * m4/mktime.m4: Renamed from jm-mktime.m4.
91823         (gl_PREREQ_MKTIME): New macro.
91824         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
91825
91826         Module malloc.
91827         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
91828         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
91829         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
91830
91831         Module realloc.
91832         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
91833         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
91834         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
91835
91836         Module strftime.
91837         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
91838         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
91839         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
91840         gl_TM_GMTOFF.
91841         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
91842
91843         Module xalloc.
91844         * m4/xalloc.m4: New file.
91845
91846         Module alloca.
91847         * m4/alloca.m4: New file.
91848
91849         Module putenv.
91850         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
91851         (jm_FUNC_PUTENV): Invoke it.
91852
91853         Module setenv.
91854         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
91855         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
91856         when invoked twice.
91857         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
91858         gt_FUNC_SETENV.
91859
91860         Module memrchr.
91861         * m4/memrchr.m4: New file.
91862
91863         Module stpcpy.
91864         * m4/stpcpy.m4: New file.
91865
91866         Module strcase.
91867         * m4/strcase.m4: New file.
91868
91869         Module strdup.
91870         * m4/strdup.m4: New file.
91871
91872         Module strnlen.
91873         * m4/strnlen.m4: New file.
91874
91875         Module strndup.
91876         * m4/strndup.m4: New file.
91877
91878         Module xstrtod.
91879         * m4/xstrtod.m4: New file.
91880
91881         Module xstrtol.
91882         * m4/xstrtol.m4: New file.
91883
91884         Module getdate.
91885         * m4/getdate.m4: New file.
91886
91887         Module unlocked-io.
91888         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
91889         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
91890         * m4/jm-glibc-io.m4n: Remove file.
91891
91892         Module long-options.
91893         * m4/long-options.m4: New file.
91894
91895         Module md5.
91896         * m4/md5.m4: New file.
91897
91898         Module sha.
91899         * m4/sha.m4: New file.
91900
91901         Module getstr.
91902         * m4/getstr.m4: New file.
91903
91904         Module getline.
91905         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
91906         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
91907         <sys/types.h>, for size_t. Use the function name gnu_getline, not
91908         simply getline. Infoke gl_PREREQ_GETLINE.
91909
91910         Module obstack.
91911         * m4/obstack.m4: New file.
91912
91913         Module hash.
91914         * m4/hash.m4: New file.
91915
91916         Module readtokens.
91917         * m4/readtokens.m4: New file.
91918
91919         Module strverscmp.
91920         * m4/strverscmp.m4: New file.
91921
91922         Module stdbool.
91923         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
91924         OSF/1.
91925
91926         Module strtoll.
91927         * m4/strtoll.m4: New file.
91928
91929         Module strtoull.
91930         * m4/strtoull.m4: New file.
91931
91932         Module strtoimax.
91933         * m4/strtoimax.m4: New file.
91934
91935         Module strtoumax.
91936         * m4/strtoumax.m4: New file.
91937
91938         Module xstrtoimax.
91939         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
91940         jm_AC_PREREQ_XSTRTOIMAX.
91941         Moved the strtol prerequisites to strtol.m4.
91942         Moved the strtoll prerequisites to strtoll.m4.
91943         Moved the strtoimax prerequisites to strtoimax.m4.
91944
91945         Module xstrtoumax.
91946         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
91947         jm_AC_PREREQ_XSTRTOUMAX.
91948         Moved the strtoul prerequisites to strtoul.m4.
91949         Moved the strtoull prerequisites to strtoull.m4.
91950         Moved the strtoumax prerequisites to strtoumax.m4.
91951
91952         Module chown.
91953         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
91954         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
91955
91956         Module dup2.
91957         * m4/dup2.m4: New file.
91958
91959         Module ftruncate.
91960         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
91961         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
91962
91963         Module getgroups.
91964         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
91965         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
91966
91967         Module gettimeofday.
91968         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
91969         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
91970         gl_PREREQ_GETTIMEOFDAY.
91971
91972         Module mkdir.
91973         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
91974         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
91975
91976         Module mkstemp.
91977         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
91978         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
91979         jm_AC_TYPE_UINTMAX_T.
91980         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
91981
91982         Module stat.
91983         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
91984         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
91985
91986         Module lstat.
91987         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
91988         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
91989
91990         Module timespec.
91991         * m4/timespec.m4 (gl_TIMESPEC): New macro.
91992         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
91993         * m4/st_mtim.m4: Indentation.
91994
91995         Module nanosleep.
91996         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
91997         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
91998         gl_PREREQ_NANOSLEEP.
91999
92000         Module regex.
92001         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
92002         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
92003         (gl_REGEX): New macro.
92004
92005         Module rename.
92006         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
92007         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
92008
92009         Module rmdir.
92010         * m4/rmdir.m4: New file.
92011
92012         Module utime.
92013         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
92014         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
92015         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
92016
92017         Module dirname.
92018         * m4/dirname.m4: New file.
92019
92020         Module getopt.
92021         * m4/getopt.m4: New file.
92022
92023         Module unistd-safer.
92024         * m4/unistd-safer.m4: New file.
92025
92026         Module fnmatch.
92027         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
92028         declaration.
92029         (gl_PREREQ_FNMATCH_EXTRA): New macro.
92030         (gl_FUNC_FNMATCH_POSIX): New macro.
92031         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
92032         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
92033         simply fnmatch.
92034
92035         Module exclude.
92036         * m4/exclude.m4: New file.
92037
92038         Module human.
92039         * m4/human.m4: New file.
92040
92041         Module acl.
92042         * m4/acl.m4: Nop.
92043
92044         Module backupfile.
92045         * m4/backupfile.m4: New file.
92046         * m4/d-ino.m4: Indentation.
92047
92048         Module fsusage.
92049         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
92050         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
92051         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
92052
92053         Module dirfd.
92054         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
92055         requirements.
92056
92057         Module euidaccess.
92058         * m4/euidaccess.m4: New file.
92059
92060         Module file-type.
92061         * m4/file-type.m4: New file.
92062
92063         Module fileblocks.
92064         * m4/fileblocks.m4: New file.
92065
92066         Module filemode.
92067         * m4/filemode.m4: New file.
92068
92069         Module isdir.
92070         * m4/isdir.m4: New file.
92071
92072         Module lchown.
92073         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
92074         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
92075
92076         Module makepath.
92077         * m4/makepath.m4: New file.
92078
92079         Module modechange.
92080         * m4/modechange.m4: New file.
92081
92082         Module mountlist.
92083         * m4/mountlist.m4: New file.
92084         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
92085         Indentation.
92086
92087         Module path-concat.
92088         * m4/path-concat.m4: New file.
92089
92090         Module pathmax.
92091         * m4/pathmax.m4: New file.
92092
92093         Module same.
92094         * m4/same.m4: New file.
92095
92096         Module save-cwd.
92097         * m4/save-cwd.m4: New file.
92098
92099         Module savedir.
92100         * m4/savedir.m4: New file.
92101
92102         Module xgetcwd.
92103         * m4/xgetcwd.m4: New file.
92104         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
92105
92106         Module xreadlink.
92107         * m4/xreadlink.m4: New file.
92108
92109         Module safe-read.
92110         * m4/safe-read.m4: New file.
92111
92112         Module safe-write.
92113         * m4/safe-write.m4: New file.
92114
92115         Module closeout.
92116         * m4/closeout.m4: New file.
92117
92118         Module stdio-safer.
92119         * m4/stdio-safer.m4: New file.
92120
92121         Module getpass.
92122         * m4/getpass.m4: New file.
92123
92124         Module getugroups.
92125         * m4/getugroups.m4: New file.
92126
92127         Module group-member.
92128         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
92129         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
92130
92131         Module idcache.
92132         * m4/idcache.m4: New file.
92133
92134         Module userspec.
92135         * m4/userspec.m4: New file.
92136
92137         Module gettime.
92138         * m4/clock_time.m4: New file.
92139         * m4/gettime.m4: New file.
92140
92141         Module settime.
92142         * m4/settime.m4: New file.
92143
92144         Module posixtm.
92145         * m4/posixtm.m4: New file.
92146
92147         Module gethostname.
92148         * m4/gethostname.m4: New file.
92149
92150         Module canon-host.
92151         * m4/canon-host.m4: New file.
92152
92153         Module gettext.
92154         * m4/codeset.m4: New file, from gettext-0.11.5.
92155         * m4/gettext.m4: New file, from gettext-0.11.5.
92156         * m4/glibc21.m4: New file, from gettext-0.11.5.
92157         * m4/iconv.m4: New file, from gettext-0.11.5.
92158         * m4/intdiv0.m4: New file, from gettext-0.11.5.
92159         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
92160         * m4/inttypes.m4: New file, from gettext-0.11.5.
92161         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
92162         * m4/isc-posix.m4: New file, from gettext-0.11.5.
92163         * m4/lcmessage.m4: New file, from gettext-0.11.5.
92164         * m4/lib-ld.m4: New file, from gettext-0.11.5.
92165         * m4/lib-link.m4: New file, from gettext-0.11.5.
92166         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
92167         * m4/progtest.m4: New file, from gettext-0.11.5.
92168         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
92169         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
92170         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
92171
92172         Module localcharset.
92173         * m4/localcharset.m4: New file.
92174
92175         Module hard-locale.
92176         * m4/hard-locale.m4: New file.
92177
92178         Module mbswidth.
92179         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
92180         onceonly macros.
92181         * m4/mbrtowc.m4: Add comment.
92182
92183         Module memcasecmp.
92184         * m4/memcasecmp.m4: New file.
92185
92186         Module memcoll.
92187         * m4/memcoll.m4: New file.
92188
92189         Module unicodeio.
92190         * m4/unicodeio.m4: New file.
92191
92192         Module rpmatch.
92193         * m4/rpmatch.m4: New file.
92194
92195         Module yesno.
92196         * m4/yesno.m4: New file.
92197
92198         Module exitfail.
92199         * m4/exitfail.m4: New file.
92200
92201         Module c-stack.
92202         * m4/c-stack.m4 (gl_C_STACK): New macro.
92203         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
92204
92205         Module error.
92206         * m4/error.m4 (gl_ERROR): New macro.
92207         (jm_PREREQ_ERROR): Use onceonly macros.
92208
92209         Module fatal.
92210         * m4/fatal.m4: New file.
92211
92212         Module getloadavg.
92213         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
92214         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
92215
92216         Module getpagesize.
92217         * m4/getpagesize.m4: New file.
92218
92219         Module getusershell.
92220         * m4/getusershell.m4: New file.
92221
92222         Module physmem.
92223         * m4/physmem.m4: New file.
92224
92225         Module posixver.
92226         * m4/posixver.m4: New file.
92227
92228         Module quotearg.
92229         * m4/quotearg.m4: New file.
92230
92231         Module quote.
92232         * m4/quote.m4: New file.
92233
92234         Module readutmp.
92235         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
92236
92237         Module sig2str.
92238         * m4/sig2str.m4: New file.
92239
92240         Other.
92241         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
92242         ulonglong.m4.
92243         * m4/intmax_t.m4: New file.
92244         * m4/d-type.m4: Indentation.
92245         * m4/jm-macros.m4: Update.
92246         * m4/prereq.m4 (jm_PREREQ): Update.
92247         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
92248         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
92249         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
92250         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
92251         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
92252         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
92253         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
92254         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
92255         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
92256         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
92257         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
92258         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
92259         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
92260         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
92261         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
92262         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
92263         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
92264         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
92265         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
92266
92267 2002-12-24  Bruno Haible  <bruno@clisp.org>
92268
92269         * MODULES.txt: Update according to m4/ changes.
92270
92271         Module gettext.
92272         * config.rpath: New file, from gettext-0.11.5.
92273
92274         * modules/*: New module descriptions.
92275         * gnulib-tool: New file.
92276         * MODULES.html.sh: New file.
92277
92278 2002-12-21  Karl Berry  <karl@gnu.org>
92279
92280         * doc/fdl.texi: update to version 1.2.
92281
92282 2002-12-19  Karl Berry  <karl@gnu.org>
92283
92284         * config/config.guess: update from prep.
92285
92286 2002-12-18  Bruno Haible  <bruno@clisp.org>
92287
92288         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
92289         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
92290
92291 2002-12-17  Bruno Haible  <bruno@clisp.org>
92292
92293         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
92294         stdlib.h, string.h.
92295
92296 2002-12-17  Bruno Haible  <bruno@clisp.org>
92297
92298         * lib/canon-host.c (strdup): Remove unused declaration.
92299
92300         * lib/fsusage.c: Include full_read.h.
92301         (get_fs_usage): Use full_read instead of safe_read.
92302
92303         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
92304
92305 2002-12-12  Karl Berry  <karl@gnu.org>
92306
92307         * config/config.guess: update from prep.
92308
92309 2002-12-11  Bruno Haible  <bruno@clisp.org>
92310
92311         * m4/setenv.m4: New file, from gettext-0.11.5.
92312
92313 2002-12-11  Bruno Haible  <bruno@clisp.org>
92314
92315         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
92316         not unsetenv().
92317         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
92318         modifications:
92319
92320         2002-12-11  Bruno Haible  <bruno@clisp.org>
92321
92322                 * setenv.c (alloca): Fall back to malloc.
92323                 (freea): New macro.
92324                 (setenv): Use freea() to free memory allocated with alloca().
92325
92326         2002-11-13  Bruno Haible  <bruno@clisp.org>
92327
92328                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
92329                 function declarations.
92330                 * unsetenv.c (unsetenv): Likewise.
92331
92332         2002-03-04  Bruno Haible  <bruno@clisp.org>
92333
92334                 Portability to AIX 4.3.3.
92335                 * unsetenv.c: New file, extracted from setenv.c.
92336                 * setenv.c: Move the unsetenv() function to unsetenv.c.
92337
92338         2001-12-20  Bruno Haible  <bruno@clisp.org>
92339
92340                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
92341                 use malloc instead. For SunOS 4.
92342
92343         2001-12-11  Bruno Haible  <bruno@clisp.org>
92344
92345                 * setenv.c: Declare alloca.
92346                 (compar_fn_t): New typedef.
92347                 (KNOWN_VALUE, STORE_VALUE): Use it.
92348
92349         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
92350         setenv.h.
92351
92352 2002-12-10  Paul Eggert  <eggert@twinsun.com>
92353
92354         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
92355         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
92356         Choose values that are less likely to collide with system fnmatch
92357         options.
92358         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
92359         defined (e.g., a pure POSIX system).
92360         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
92361         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
92362
92363 2002-12-06  Paul Eggert  <eggert@twinsun.com>
92364
92365         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
92366         a pain in practice to deal with generated m4 files.  This change
92367         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
92368
92369         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
92370         and jm-glibc-io.m4, as they are no longer a special case.
92371         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
92372         kludge and the auto-generation stuff.  Check only whether the
92373         functions are declared, not whether they exist, since older hosts
92374         that don't declare the functions can't use the optimization anyway.
92375
92376 2002-12-06  Jim Meyering  <jim@meyering.net>
92377
92378         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
92379
92380         Merge in changes from libc's misc/error.c, in preparation
92381         for the merge of gnulib's changes back into libc.
92382
92383         * lib/error.c (_): Define only if not already defined.
92384         Move definition to follow all #include directives.
92385         Include unlocked-io.h only if !_LIBC.
92386         [_LIBC]: Include <libio/libioP.h>.
92387         [USE_IN_LIBIO]: Include <libio/iolibio.h>
92388         (fflush): Tweak definition to use INTUSE.
92389         (putc): Define.
92390
92391 2002-12-05  Paul Eggert  <eggert@twinsun.com>
92392
92393         * lib/alloca.c [defined emacs]: Include "lisp.h".
92394         (xalloc_die) [defined emacs]: New macro.
92395         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
92396         [! defined emacs]: Include <xalloc.h>.
92397         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
92398         (pointer): Typedef to POINTER_TYPE *.
92399         (malloc): Remove decl; we now always use xmalloc.
92400         (alloca): Use old-style definition, since Emacs needs this.
92401         Check for arithmetic overflow when computing combined size.
92402
92403 2002-12-04  Paul Eggert  <eggert@twinsun.com>
92404
92405         Do not generate unlocked-io.h automatically, since it's easier to
92406         maintain it by hand.
92407
92408         * lib/unlocked-io.h: New file, from GNU diffutils,
92409         but with proper copyright notice and attribution.
92410         * lib/gen-uio: Remove.
92411         * lib/Makefile.am: Add copyright notice.
92412         (libfetish_a_SOURCES): Add unlocked-io.h.
92413         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
92414         (DISTCLEANFILES, io_functions): Remove macros.
92415         (EXTRA_DIST): Remove gen_uio.
92416         (unlocked-io.h): Remove rule.
92417
92418 2002-12-04  Jim Meyering  <jim@meyering.net>
92419
92420         Reflect the fact that stat.c and lstat.c are no longer generated.
92421         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
92422         (DISTCLEANFILES): Likewise.
92423         (EXTRA_DIST): Likewise.
92424         (all_local): Don't depend on stat.c or lstat.c.
92425         (stat.c, lstat.c): Remove rules.
92426         (EXTRA_DIST): Remove xstat.in.
92427
92428         * lib/xstat.in: Remove file.  Contents moved into stat.c.
92429         * lib/stat.c: New file.  Contents mostly from xstat.in.
92430         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
92431         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
92432
92433         * lib/safe-read.c: Rework so that it may serve to define safe_write,
92434         too.
92435         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
92436
92437 2002-12-03  Jim Meyering  <jim@meyering.net>
92438
92439         * lib/safe-read.c, safe-write.c: Change variable names and comments,
92440         but not semantics, to minimize the differences between these two files.
92441         (safe_read): Change comment to mention SAFE_READ_ERROR.
92442
92443         * lib/safe-read.c (IS_EINTR): Define.
92444         (safe_read): Use IS_EINTR in place of in-function cpp directives.
92445
92446 2002-12-02  Jim Meyering  <jim@meyering.net>
92447
92448         * lib/safe-read.c (EINTR): Define.
92449         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
92450         (INT_MAX): Provide fallback.
92451         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
92452
92453         * lib/safe-read.h (SAFE_READ_ERROR): Define.
92454
92455 2002-12-02  Bruno Haible  <bruno@clisp.org>
92456
92457         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
92458         Define, taken from safe-read.c.
92459         (INT_MAX): Provide fallback.
92460         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
92461         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
92462
92463         * lib/safe-read.c (EINTR): Remove definition.
92464         (safe_read): Don't use EINTR if it is absent.
92465
92466 2002-12-01  Jim Meyering  <jim@meyering.net>
92467
92468         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
92469         zero.
92470         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
92471
92472 2002-11-27  Paul Eggert  <eggert@twinsun.com>
92473
92474         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
92475         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
92476         with `if (! (value < limit)) abort ();', for readability.
92477
92478 2002-11-26  Karl Berry  <karl@gnu.org>
92479
92480         * lib/strdup.c: copy from libc again, with jim's ok.
92481         * lib/.cppi-disable: re-add strdup.c
92482
92483 2002-11-25  Karl Berry  <karl@gnu.org>
92484
92485         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
92486         instead of "strtol.c".
92487
92488 2002-11-25  Karl Berry  <karl@gnu.org>
92489
92490         * config/install-sh: update from automake for variable quoting, $0 in
92491         error msgs, etc.
92492
92493         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
92494         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
92495         entry.
92496
92497 2002-11-25  Jim Meyering  <jim@meyering.net>
92498
92499         * lib/mktime.c: Sync from libc, now that it has the latest fix.
92500
92501 2002-11-24  Karl Berry  <karl@gnu.org>
92502
92503         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
92504         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
92505
92506 2002-11-24  Jim Meyering  <jim@meyering.net>
92507
92508         Update from coreutils:
92509
92510         * lib/mktime.c: Merge in changes from libc.
92511
92512         Avoid a link-time failure on some Linux systems.
92513         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
92514         (otherwise).
92515         (__mon_yday): Declare with the STATIC attribute.
92516         (__mktime_internal): Likewise.
92517         Based on a report from Greg Schafer.
92518
92519 2002-11-23  Jim Meyering  <jim@meyering.net>
92520
92521         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
92522         Use `unsigned', not `int', as type of index.
92523
92524         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
92525
92526         * lib/fsusage.c: Remove unneeded parentheses around operands of
92527         `defined'.
92528
92529 2002-11-22  Paul Eggert  <eggert@twinsun.com>
92530
92531         * lib/quotearg.h: Allow multiple inclusion by surrounding with
92532         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
92533         so that we can be included first.
92534         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
92535         * lib/quotearg.c: Include quotearg.h immediately after config.h.
92536         No need to include stddef.h or sys/types.h any more.
92537         Surround local include files with "", not "<>".
92538         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
92539         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
92540         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
92541         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
92542         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
92543         (ISPRINT): Remove; no longer needed now that we assume C89.
92544
92545         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
92546         Preserve errno.
92547
92548         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
92549         quotearg_char): Use SIZE_MAX rather than
92550         (size_t) -1 when we are talking about "infinity".
92551
92552         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
92553
92554 2002-11-22  Paul Eggert  <eggert@twinsun.com>
92555
92556         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
92557         hint that one should use `if (! x) abort ();' rather than `assert
92558         (x);', and anyway it's one less thing to worry about configuring.
92559         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
92560         hash_rehash, hash_insert): Use abort rather than assert.
92561
92562 2002-11-22  Bruno Haible  <bruno@clisp.org>
92563
92564         * lib/safe-read.h: Assume C89. Add comments.
92565         (safe_read): Change return type to size_t.
92566         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
92567         byte counts > SSIZE_MAX correctly.
92568         * lib/safe-write.h: New file.
92569         * lib/safe-write.c: New file.
92570         * lib/full-read.h: New file.
92571         * lib/full-read.c: New file.
92572         * lib/full-write.h: Assume C89. Add comments.
92573         * lib/full-write.c: Include safe-write.h.
92574         (full_write): Rewritten to use safe_write.
92575         Suggested by Jim Meyering and Paul Eggert.
92576
92577 2002-11-21  Jim Meyering  <jim@meyering.net>
92578
92579         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
92580
92581         Merge in changes from the coreutils.
92582
92583         2002-09-25  Paul Eggert  <eggert@twinsun.com>
92584         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
92585         <stdint.h>.
92586         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
92587         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
92588         int.  Work more efficiently if X is the same width as uintmax_t.
92589         Do not compare X to -1, to avoid bogus compiler warning.
92590         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
92591         Don't assume that f_frsize and f_bsize are the same type.
92592
92593         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
92594         warning on FreeBSD.
92595
92596         * lib/makepath.c (make_path): Restore umask *before* creating the final
92597         component.
92598         (make_path): Minor reformatting.
92599
92600         * lib/xmalloc.c: Adjust to work with new autoconf macros,
92601         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
92602         HAVE_MALLOC/HAVE_REALLOC.
92603
92604         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
92605         dummy ones.  At least on GNU/Linux systems, `auto' means something
92606         else.
92607         From Michael Stone.
92608
92609 2002-11-21  Bruno Haible  <bruno@clisp.org>
92610
92611         Remove case insensitive option matching.
92612         * lib/argmatch.h (argcasematch): Remove declaration.
92613         (ARGCASEMATCH): Remove macro.
92614         (__xargmatch_internal): Remove case_sensitive argument.
92615         (XARGMATCH): Update.
92616         (XARGCASEMATCH): Remove macro.
92617         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
92618         case_sensitive argument.
92619         (argcasematch): Remove function.
92620         (__xargmatch_internal): Remove case_sensitive argument.
92621         (main): Use XARGMATCH instead of XARGCASEMATCH.
92622
92623         * lib/xmalloc.c: Change compile-time error message. Add comment about
92624         required autoconf version.
92625
92626 2002-11-20  Paul Eggert  <eggert@twinsun.com>
92627
92628         Merge argmatch cleanups from Bison.  Assume C89.
92629
92630         * lib/argmatch.c: Include config.h here, not in argmatch.h.
92631         Include stdlib.h, for EXIT_FAILURE.
92632         Always include <string.h>, since we assume C89.
92633         (EXIT_FAILURE): Remove pre-C89 bug workaround.
92634         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
92635         Include <stddef.h> instead, since it's all we need for size_t.
92636         (PARAMS): Remove.  All uses removed.
92637         (ARRAY_CARDINALITY): Do not bother to #undef.
92638         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
92639         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92640         Remove unnecessary parentheses.
92641         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92642         Insert necessary parentheses.
92643         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
92644         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
92645
92646 2002-11-19  Bruno Haible  <bruno@clisp.org>
92647
92648         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
92649         * lib/mbswidth.h: Include <stddef.h>, for size_t.
92650
92651         * lib/mbswidth.h (PARAMS): Remove macro.
92652         (mbswidth, mbsnwidth): Use ANSI C function declarations.
92653         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
92654
92655         * lib/gcd.h (PARAMS): Remove macro.
92656         (gcd): Use ANSI C function declarations.
92657         * lib/gcd.c (gcd): Likewise.
92658
92659 2002-11-15  Bruno Haible  <bruno@clisp.org>
92660
92661         * lib/strcspn.c: Include <stddef.h>.
92662         (strcspn): Use ANSI C function declaration. Change return type to
92663         size_t. Use NULL.
92664         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
92665         (strpbrk): Use NULL.
92666         * lib/strpbrk.h (PARAMS): Remove macro.
92667         (strpbrk): Use ANSI C function declaration.
92668         * lib/strstr.c: Don't include <sys/types.h>.
92669         * lib/strstr.h (PARAMS): Remove macro.
92670         (strstr): Use ANSI C function declarations.
92671
92672 2002-11-14  Karl Berry  <karl@gnu.org>
92673
92674         * config/mkinstalldirs: `do' on separate line, instead of
92675         `for var; do'.
92676
92677 2002-11-06  Bruno Haible  <bruno@clisp.org>
92678
92679         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
92680         * lib/gcd.c (gcd): Likewise.
92681
92682 2002-11-05  Bruno Haible  <bruno@clisp.org>
92683
92684         * lib/gcd.h: New file, from gettext-0.11.5.
92685         * lib/gcd.c: New file, from gettext-0.11.5.
92686
92687 2002-11-05  Bruno Haible  <bruno@clisp.org>
92688
92689         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92690         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92691         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92692         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92693
92694         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
92695         <libintl.h>.
92696         * lib/makepath.c: Include gettext.h instead of <locale.h> and
92697         <libintl.h>.
92698
92699         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
92700         * lib/human.c: Include gettext.h instead of <libintl.h>.
92701         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
92702         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
92703         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
92704         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
92705         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
92706         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
92707         (textdomain): Remove definition.
92708         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
92709
92710         * lib/long-options.c: Remove include of <libintl.h> and definition of
92711         _.
92712         * lib/same.c: Remove include of <libintl.h> and definition of _.
92713
92714 2002-11-04  Owen Taylor  <otaylor@redhat.com>
92715
92716         * lib/config.charset: A few additions for Solaris.
92717
92718 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92719
92720         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
92721         * lib/localcharset.c (locale_charset): Declare as extern "C".
92722
92723 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92724
92725         * lib/config.charset: msdos in uk_UA uses CP1125.
92726
92727 2002-11-04  Bruno Haible  <bruno@clisp.org>
92728
92729         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
92730         * lib/strcase.h: New file, from GNU gettext-0.11.5.
92731         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
92732         * lib/strstr.h: New file, from GNU gettext-0.11.5.
92733         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
92734
92735 2002-11-04  Bruno Haible  <bruno@clisp.org>
92736
92737         * lib/localcharset.c (locale_charset): Don't return an empty string.
92738
92739 2002-11-04  Bruno Haible  <bruno@clisp.org>
92740
92741         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
92742         aliases.
92743
92744 2002-11-04  Bruno Haible  <bruno@clisp.org>
92745
92746         * lib/config.charset: Update for newest glibc. Add canonical names
92747         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
92748
92749 2002-11-04  Bruno Haible  <bruno@clisp.org>
92750
92751         * lib/config.charset: Add support for NetBSD.
92752
92753 2002-11-04  Bruno Haible  <bruno@clisp.org>
92754
92755         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
92756
92757 2002-11-01  Bruno Haible  <bruno@clisp.org>
92758
92759         * configure.in: Add AC_CONFIG_AUX_DIR call.
92760         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
92761         test/Makefile.
92762         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
92763
92764 2002-09-28  Karl Berry  <karl@gnu.org>
92765
92766         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
92767         installed automake until the next release, since changes have been
92768         made.
92769
92770 2002-09-25  Karl Berry  <karl@gnu.org>
92771
92772         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
92773         * lib/getopt*: copy from libc/posix.
92774         * lib/gettext.h: copy from gettext.
92775         * lib/.cppi-disable: add strdup.c, gettext.h.
92776
92777 2002-09-25  Karl Berry  <karl@gnu.org>
92778
92779         * config/srclist.txt: enable gettext.h check.
92780         * config/config.{guess,sub}: update from prep.
92781         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
92782                 from automake 1.6.3.
92783         See srclist*.
92784
92785 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
92786
92787         * regex.c (PATFETCH): Remove the translating fetch.
92788         (PATFETCH_RAW): Rename to PATFETCH.
92789         (set_image_of_range): New fun.
92790         (SET_RANGE_TABLE_WORK_AREA): Use it.
92791         (regex_compile): Don't translate the pattern chars so eagerly.
92792         Only do it when inserting an `exactn' bytecode or when handling
92793         a char-range.
92794         (mutually_exclusive_p): Avoid empty statement.
92795
92796 2002-07-06  Jim Meyering  <meyering@lucent.com>
92797
92798         * m4/README: Don't mention Makefile.am.in.
92799         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
92800
92801 2002-07-01  Jim Meyering  <meyering@lucent.com>
92802
92803         * lib/c-stack.c: Include sys/time.h.
92804         From Volker Borchert.
92805
92806 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92807
92808         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
92809
92810 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92811
92812         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
92813         New macro.  Use it uniformly instead of
92814         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
92815         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
92816         reported by Vin Shelton.
92817
92818 2002-06-22  Paul Eggert  <eggert@twinsun.com>
92819
92820         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
92821         Do not assume SA_SIGINFO behavior.
92822         Bug reported by Jim Meyering on NetBSD 1.5.2.
92823
92824 2002-06-22  Jim Meyering  <meyering@lucent.com>
92825
92826         * m4/c-stack.m4: New file, from diffutils-2.8.2.
92827         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
92828
92829         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
92830         now that configure.ac uses AC_GNU_SOURCE.
92831         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
92832         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
92833
92834         Update to latest tools.  Suggestions from Paul Eggert.
92835         * m4/stdbool.m4: New file, from diffutils-2.8.2.
92836         * m4/gnu-source.m4: Update from diffutils-2.8.2.
92837         * m4/fnmatch.m4: Likewise.
92838         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
92839         to AC_HEADER_STDBOOL
92840
92841 2002-06-22  Jim Meyering  <meyering@lucent.com>
92842
92843         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
92844         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
92845
92846 2002-06-22  Jim Meyering  <meyering@lucent.com>
92847
92848         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
92849
92850         * lib/exitfail.c, exitfail.h: Likewise.
92851         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
92852
92853         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
92854         of fnmatch.h.
92855         (EXTRA_DIST): Add fnmatch_loop.c.
92856         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
92857
92858         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
92859         * lib/fnmatch.c: Update from diffutils-2.8.2.
92860         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
92861         * lib/fnmatch.h: Remove file.
92862
92863 2002-06-21  Jim Meyering  <meyering@lucent.com>
92864
92865         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
92866         * m4/mbrtowc.m4: Likewise.
92867
92868         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
92869         * m4/mbswidth.m4: Reflect name change:
92870         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
92871         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92872
92873         * m4/lib-link.m4: Update from gettext-0.11.2.
92874         * m4/gettext.m4: Likewise.
92875
92876         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
92877         From Alfred M. Szmidt.
92878
92879 2002-06-18  Paul Eggert  <eggert@twinsun.com>
92880
92881         * lib/file-type.h: Report an error if neither S_ISREG nor
92882         S_IFREG is defined, instead of using a test specific to glibc
92883         2.2.  This should be safe, since POSIX requires S_ISREG and
92884         Unix Version 7 had S_IFREG.  We don't need to check for
92885         <sys/types.h> since we don't use any symbols that it defines.
92886
92887 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
92888
92889         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
92890         $@-t, so that each temporary file name is unique and valid in the first
92891         8 characters, for operation under DOS.
92892
92893 2002-06-15  Paul Eggert  <eggert@twinsun.com>
92894
92895         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
92896
92897 2002-06-15  Jim Meyering  <meyering@lucent.com>
92898
92899         Work even with DJGPP 2.03, which lacks support for symlinks.
92900         From Richard Dawe.
92901         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
92902         is defined.
92903         * lib/lchown.c (S_ISLNK): Likewise.
92904
92905 2002-06-15  Jim Meyering  <meyering@lucent.com>
92906
92907         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
92908         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
92909         have been included before this file.
92910
92911 2002-06-14  Jim Meyering  <meyering@lucent.com>
92912
92913         * lib/file-type.h: Use the version from diffutils-2.8.2.
92914         * lib/file-type.c: Likewise.
92915
92916 2002-06-07  Jim Meyering  <meyering@lucent.com>
92917
92918         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
92919         They're needed at least for NetBSD 1.5.2.
92920         ($statxfs_includes): Include those same headers.
92921         ($statxfs_includes): Include sys/vfs.h if available.
92922         ($statxfs_includes): Likewise for sys/statvfs.h.
92923         Check for the following members in both structs statfs and statvfs:
92924         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
92925
92926 2002-06-01  Jim Meyering  <meyering@lucent.com>
92927
92928         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
92929         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
92930
92931 2002-05-28  Jim Meyering  <meyering@lucent.com>
92932
92933         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
92934         Reported by Volker Borchert.
92935
92936 2002-05-27  Jim Meyering  <meyering@lucent.com>
92937
92938         Fix a problem seen only on nonconforming systems whereby ls.c's
92939         use of localtime, and then of gettimeofday would cause trouble:
92940         the localtime call used to initialize rpl_gettimeofday's save
92941         mechanism would clobber ls's current local time information so
92942         that in any long listing the first file would always be listed
92943         with date 1970-01-01.  Analysis by Volker Borchert.
92944
92945         * lib/gettimeofday.c (localtime): Undefine.
92946         (rpl_localtime): New function.
92947
92948 2002-05-27  Jim Meyering  <meyering@lucent.com>
92949
92950         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
92951         localtime.
92952
92953         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
92954         use the replacement function; it wouldn't resolve at link time.
92955         Reported by Volker Borchert.
92956
92957 2002-05-22  Jim Meyering  <meyering@lucent.com>
92958
92959         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
92960         file-type.h.
92961         * lib/file-type.h: New file.
92962         * lib/file-type.c (file_type): New file/function.  Extracted from
92963         diffutils.
92964
92965 2002-04-30  Jim Meyering  <meyering@lucent.com>
92966
92967         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
92968
92969 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92970
92971         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
92972
92973 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92974
92975         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
92976         Do not check for alloca.h (no longer used) or stdbool.h (was never
92977         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
92978
92979 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92980
92981         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
92982
92983 2002-04-29  Jim Meyering  <meyering@lucent.com>
92984
92985         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
92986         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
92987         Use AC_FUNC_STRNLEN here instead.
92988
92989         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
92990         With autoconf-2.53a, it's part of AC_PROG_CC.
92991
92992 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92993
92994         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
92995         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
92996
92997 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92998
92999         * lib/sig2str.h, lib/sig2str.c: New files.
93000         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
93001
93002 2002-04-28  Paul Eggert  <eggert@twinsun.com>
93003
93004         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
93005         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
93006         of 127, since 64 is the largest conceivable number for ancient
93007         nonstandard hosts.
93008         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
93009
93010 2002-04-28  Jim Meyering  <meyering@lucent.com>
93011
93012         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
93013
93014 2002-04-24  Jim Meyering  <meyering@lucent.com>
93015
93016         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
93017         (jm_PREREQ): Use it.
93018
93019         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
93020         mach/mach.h fcntl.h.
93021         Check for this function: setlocale.
93022
93023 2002-04-24  Jim Meyering  <meyering@lucent.com>
93024
93025         * lib/gettext.h: New file, from Gettext.
93026         * lib/Makefile.am (INCLUDES): Remove -I../intl.
93027         (libfetish_a_SOURCES): Add gettext.h.
93028
93029 2002-04-16  Jim Meyering  <meyering@lucent.com>
93030
93031         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
93032         ut_pid, ut_id, ut_exit.
93033
93034 2002-04-16  Jim Meyering  <meyering@lucent.com>
93035
93036         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
93037         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
93038         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
93039
93040 2002-04-12  Jim Meyering  <meyering@lucent.com>
93041
93042         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
93043         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
93044         existence of the getmntinfo function.  Needed for Darwin 5.3.
93045
93046         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
93047         This is necessary at least on Darwin 5.3.
93048
93049         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
93050         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
93051         strnlen.o in the library, and that makes some versions of ranlib
93052         object.
93053
93054 2002-04-12  Jim Meyering  <meyering@lucent.com>
93055
93056         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
93057
93058 2002-04-09  Jim Meyering  <meyering@lucent.com>
93059
93060         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
93061         to be more precise.  Rather than saying we're checking whether the
93062         function `works', say what we're testing.
93063         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
93064         Reported by Bruno Haible.
93065
93066 2002-03-10  Jim Meyering  <meyering@lucent.com>
93067
93068         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
93069         Suggestion from Santiago Vila.
93070
93071 2002-03-08  Jim Meyering  <meyering@lucent.com>
93072
93073         * lib/rename.c: Mention that this wrapper is needed also on
93074         mips-dec-ultrix4.4 systems.
93075
93076 2002-03-02  Jim Meyering  <meyering@lucent.com>
93077
93078         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
93079         not HAVE_CLOCK_SETTIME.
93080
93081 2002-02-27  Paul Eggert  <eggert@twinsun.com>
93082
93083         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
93084         Check for clock_settime.
93085
93086 2002-02-27  Paul Eggert  <eggert@twinsun.com>
93087
93088         * lib/nanosleep.h: Rename to....
93089         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
93090
93091         * lib/gettime.c: New file.
93092         * lib/settime.c: New file.
93093         * lib/stime.c: Remove.
93094
93095         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
93096         timespec.h.  Remove nanosleep.h.
93097
93098 2002-02-25  Paul Eggert  <eggert@twinsun.com>
93099
93100         * m4/acl.m4: New file.
93101         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
93102         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
93103
93104 2002-02-25  Paul Eggert  <eggert@twinsun.com>
93105
93106         * lib/acl.c, lib/acl.h: New files.
93107         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
93108
93109 2002-02-24  Jim Meyering  <meyering@lucent.com>
93110
93111         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
93112         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
93113         cause trouble.  Reported by Nelson Beebe.
93114
93115 2002-02-23  Paul Eggert  <eggert@twinsun.com>
93116
93117         * lib/path-concat.c (xpath_concat): Reorder code to pacify
93118         compilers that don't know that xalloc_die never returns.
93119
93120 2002-02-20  Jim Meyering  <meyering@lucent.com>
93121
93122         * lib/getdate.c: Regenerate using bison-1.33.
93123
93124 2002-02-17  Jim Meyering  <meyering@lucent.com>
93125
93126         * config/config.guess (main): Don't use `head -1'; it's no longer
93127         portable. Use `sed 1q' instead.
93128
93129 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
93130
93131         * m4/codeset.m4: Upgrade to gettext-0.11.
93132         * m4/gettext.m4: Upgrade to gettext-0.11.
93133         * m4/glibc21.m4: Upgrade to gettext-0.11.
93134         * m4/iconv.m4: Upgrade to gettext-0.11.
93135         * m4/isc-posix.m4: Upgrade to gettext-0.11.
93136         * m4/lcmessage.m4: Upgrade to gettext-0.11.
93137         * m4/lib-ld.m4: New file, from gettext-0.11.
93138         * m4/lib-link.m4: New file, from gettext-0.11.
93139         * m4/lib-prefix.m4: New file, from gettext-0.11.
93140         * m4/progtest.m4: Upgrade to gettext-0.11.
93141
93142 2002-02-15  Paul Eggert  <eggert@twinsun.com>
93143
93144         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
93145         (jm_PREREQ): Use it.
93146
93147 2002-02-15  Paul Eggert  <eggert@twinsun.com>
93148
93149         * lib/posixver.c, lib/posixver.h: New files.
93150         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
93151
93152 2002-02-02  Paul Eggert  <eggert@twinsun.com>
93153             Bruno Haible  <bruno@clisp.org>
93154
93155         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
93156         (fwrite_success_callback): New declaration.
93157         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
93158         print_unicode_char. Call failure callback instead of error.
93159         (fwrite_success_callback): New function.
93160         (exit_failure_callback): New function.
93161         (fallback_failure_callback): New function.
93162         (print_unicode_char): Call unicode_to_mb.
93163
93164 2002-01-26  Jim Meyering  <meyering@lucent.com>
93165
93166         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
93167         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
93168
93169 2002-01-26  Jim Meyering  <meyering@lucent.com>
93170
93171         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
93172
93173 2002-01-22  Paul Eggert  <eggert@twinsun.com>
93174
93175         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
93176
93177 2002-01-22  Jim Meyering  <meyering@lucent.com>
93178
93179         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
93180         Otherwise, some versions of automake would omit the rule that makes
93181         Makefile from Makefile.in.
93182
93183 2002-01-21  Paul Eggert  <eggert@twinsun.com>
93184
93185         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
93186         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
93187         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
93188         (memcoll): Set errno to zero if there is no error.
93189
93190         * lib/quotearg.c (quotearg_buffer_restyled):
93191         Fix bug with quoting buffers containing NUL when backslashing escapes.
93192         This bug was exposed by the other changes in this patch.
93193         (quotearg_n_options): New arg ARGSIZE.
93194         All callers changed.
93195         (quoting_options_from_style): New function.
93196         (quotearg_n_style): Use it.
93197         (quotearg_n_style_mem): New function.
93198
93199         * lib/quotearg.h (quotearg_n_style_mem): New function.
93200
93201 2002-01-19  Jim Meyering  <meyering@lucent.com>
93202
93203         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
93204         Remove useless quotes: DF_PROG="df".
93205         * m4/strnlen.m4: New file.
93206
93207 2002-01-16  Paul Eggert  <eggert@twinsun.com>
93208
93209         * lib/backupfile.c (ISDIGIT): Comment fix.
93210         * lib/getdate.y (ISDIGIT): Likewise.
93211         * lib/posixtm.c (ISDIGIT, year): Likewise.
93212         * lib/strverscmp.c (ISDIGIT): Likewise.
93213         * lib/userspec.c (ISDIGIT): Likewise.
93214
93215 2002-01-16  Jim Meyering  <meyering@lucent.com>
93216
93217         * lib/getdate.y: Add three semicolons, each just before a closing
93218         brace. Bison (as of version 1.31) no longer papers over that mistake.
93219
93220 2002-01-05  Jim Meyering  <meyering@lucent.com>
93221
93222         * lib/version-etc.c (version_etc_copyright): Update copyright year.
93223
93224 2001-12-19  Paul Eggert  <eggert@twinsun.com>
93225
93226         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
93227         not silently exit merely because the output buffer happens to
93228         have nothing pending.
93229
93230 2001-12-18  Paul Eggert  <eggert@twinsun.com>
93231
93232         See the big note in ../ChangeLog.
93233         * lib/human.c (suffixes): Prefer K to k for 1024.
93234         (generate_suffix_backwards): New function.
93235         (human_readable_inexact): Use it.
93236         * lib/xstrtol.c (__xstrtol): If there is no number but there
93237         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
93238         Accept 'K' as well as 'k'.
93239
93240 2001-12-15  Jim Meyering  <meyering@lucent.com>
93241
93242         * lib/regex.h (__restrict_arr): Update from libc.
93243
93244         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
93245         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
93246         (STREQ): Define.
93247
93248 2001-12-14  Jim Meyering  <meyering@lucent.com>
93249
93250         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
93251         Suggestion from Bruno Haible.
93252
93253 2001-12-10  Jim Meyering  <meyering@lucent.com>
93254
93255         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
93256         xrealloc, Instead, include "xalloc.h".
93257         (initbuffer): Don't cast xmalloc return value to char*.
93258         (readline): Reword comment.
93259         Don't cast xrealloc return value to char*
93260         Return NULL, not 0.
93261
93262 2001-12-09  Jim Meyering  <meyering@lucent.com>
93263
93264         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
93265         about `signed and unsigned type in conditional expression'.
93266         * lib/posixtm.c (posix_time_parse): Likewise.
93267
93268         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
93269
93270         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
93271         to avoid a pedantic warning.
93272
93273         * lib/getstr.c: Don't include assert.h.
93274         (getstr): Remove warning-evoking assertions.
93275         Return -1 if offset parameter is out of bounds.
93276         Change the type of a local from int to size_t.
93277
93278         * lib/strftime.c (my_strftime_localtime_r): Include this function
93279         definition in the `#if ! HAVE_TM_GMTOFF' block.
93280
93281         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
93282         Include xalloc.h instead.
93283
93284 2001-12-02  Jim Meyering  <meyering@lucent.com>
93285
93286         * lib/tempname.c: Don't declare getenv, thus reverting the change of
93287         2001-11-18.  It's no longer necessary, now that stdlib.h is always
93288         included.
93289
93290         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
93291         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
93292
93293 2001-11-30  Akim Demaille  <akim@epita.fr>
93294
93295         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
93296         before being defined.
93297
93298 2001-11-27  Paul Eggert  <eggert@twinsun.com>
93299
93300         * lib/quotearg.h (quotearg_n, quotearg_n_style):
93301         First arg is int, not unsigned.
93302         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
93303         (SIZE_MAX, UINT_MAX): New macros.
93304         (quotearg_n_options): Abort if N is negative.
93305         Avoid overflow check on hosts where size_t is 64 bits and int
93306         is 32 bits, as overflow is impossible there.
93307         Fix off-by-one typo that caused unnecessary reallocation.
93308
93309 2001-11-27  Jim Meyering  <meyering@lucent.com>
93310
93311         * lib/tempname.c: Merge with version from libc.
93312         * lib/regex.c: Likewise.
93313
93314         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
93315         systems for which STDC_HEADERS is 0, it was not included, resulting in
93316         a warning about an integer-to-pointer conversion problem with getenv.
93317         Reported by Volker Borchert.
93318
93319 2001-11-26  Jim Meyering  <meyering@lucent.com>
93320
93321         * lib/gtod.h: Remove file.
93322         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
93323         * lib/gettimeofday.c: Don't include gtod.h.
93324         (GTOD_init): Remove function.
93325         (rpl_gettimeofday): Do its job here instead, rather than aborting.
93326         Suggestion from Volker Borchert.
93327
93328 2001-11-23  Jim Meyering  <meyering@lucent.com>
93329
93330         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
93331         it.
93332         * lib/hash.c (struct hash_table): Define it here instead.
93333
93334 2001-11-22  Jim Meyering  <meyering@lucent.com>
93335
93336         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
93337
93338 2001-11-20  Jim Meyering  <meyering@lucent.com>
93339
93340         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
93341         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
93342
93343 2001-11-19  Jim Meyering  <meyering@lucent.com>
93344
93345         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
93346         directory.  Use "conftestXXXXXX" as the template.
93347         Suggestion from Paul Eggert.
93348
93349         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
93350         immediately, so the test doesn't mistakenly hit the max-open-files
93351         limit.
93352
93353 2001-11-18  Paul Eggert  <eggert@twinsun.com>
93354
93355         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
93356         (TEMPORARIES): New macro.
93357         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
93358         removes an artificial limitation (e.g. HP-UX 10.20, where
93359         TMP_MAX is 17576).
93360
93361 2001-11-18  Jim Meyering  <meyering@lucent.com>
93362
93363         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
93364
93365 2001-11-18  Jim Meyering  <meyering@lucent.com>
93366
93367         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
93368         on SunOS 4.
93369
93370         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
93371         files will be created before anything else.
93372
93373 2001-11-17  Paul Eggert  <eggert@twinsun.com>
93374
93375         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
93376         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
93377
93378 2001-11-17  Jim Meyering  <meyering@lucent.com>
93379
93380         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
93381         Prompted by a report from Bob Proulx.
93382
93383         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
93384         Instead, require UTILS_FUNC_MKSTEMP.
93385
93386 2001-11-17  Jim Meyering  <meyering@lucent.com>
93387
93388         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
93389         Now, that's done as part of AC_FUNC_STRTOD.
93390
93391 2001-11-17  Jim Meyering  <meyering@lucent.com>
93392
93393         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
93394         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
93395         rather than group writable.  Patch by Juan F. Codagnone.
93396
93397         * lib/readtokens.c: Remove explicit declarations of xmalloc and
93398         xrealloc, Instead, include "xalloc.h".
93399
93400         * lib/mountlist.c: Include unlocked-io.h after all system headers.
93401         Remove explicit declarations of xmalloc, xrealloc,
93402         and xstrdup.  Instead, include "xalloc.h".
93403
93404         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
93405         unlocked-io.h.
93406         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
93407         Likewise.
93408         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
93409
93410         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
93411         Reported by Padraig Brady.
93412
93413         * lib/mkstemp.c: #undef mkstemp.
93414         Include config.h.
93415         (rpl_mkstemp): Rename from mkstemp.
93416         Protoize.
93417
93418 2001-11-16  Jim Meyering  <meyering@lucent.com>
93419
93420         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
93421         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
93422         determine the amount of total physical memory, use pstat_getstatic.
93423         HPUX-11 doesn't define _SC_PHYS_PAGES.
93424         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
93425         If sysconf couldn't be used to determine the amount of available
93426         physical memory, use both pstat_getstatic and pstat_getdynamic.
93427         Based on a patch from Bob Proulx.
93428
93429 2001-11-10  Jim Meyering  <meyering@lucent.com>
93430
93431         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
93432         (jm_PREREQ): Use it.
93433
93434 2001-11-09  Jim Meyering  <meyering@lucent.com>
93435
93436         * m4/jm-macros.m4: Require autoconf-2.52f.
93437         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
93438         Use these AC_-prefixed names, not the AM_-prefixed ones.
93439
93440         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
93441
93442 2001-11-05  Jim Meyering  <meyering@lucent.com>
93443
93444         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
93445
93446 2001-11-04  Jim Meyering  <meyering@lucent.com>
93447
93448         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
93449         $DEFS.
93450
93451 2001-11-03  Jim Meyering  <meyering@lucent.com>
93452
93453         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
93454         of AC_DEFUN.
93455
93456         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
93457         know the name of the variable in the macro definition.
93458
93459 2001-11-03  Jim Meyering  <meyering@lucent.com>
93460
93461         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
93462         in argmatch_to_argument call.
93463
93464         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
93465         argument.
93466
93467         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
93468         e.g., a fault due to an attempt to free a NULL pointer.
93469
93470 2001-11-01  Jim Meyering  <meyering@lucent.com>
93471
93472         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
93473         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
93474
93475 2001-11-01  Jim Meyering  <meyering@lucent.com>
93476
93477         * lib/dirfd.c, lib/dirfd.h: New files.
93478         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
93479
93480         * lib/hash.c (hash_print) [TESTING]: Clean up.
93481
93482 2001-10-22  Paul Eggert  <eggert@twinsun.com>
93483
93484         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
93485         to avoid a warning if -Wall.
93486
93487 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
93488
93489         * README: New file
93490         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
93491         (per RMS's instructions, this is now the canonical source)
93492         * lgpl/, gpl/: New directories.
93493
93494 2001-10-21  Paul Eggert  <eggert@twinsun.com>
93495
93496         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
93497
93498 2001-10-21  Jim Meyering  <meyering@lucent.com>
93499
93500         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
93501         this code would end up calling gettext even in packages built
93502         with --disable-nls.
93503         * lib/getopt.c (_): Likewise.
93504         * lib/regex.c (_): Likewise.
93505
93506 2001-10-20  Paul Eggert  <eggert@twinsun.com>
93507
93508         * m4/error.m4 (jm_PREREQ_ERROR):
93509         Do not invoke AC_CHECK_FUNCS with strerror_r, as
93510         AC_FUNC_STRERROR_R does that.
93511         Check for strerror declaration.
93512
93513         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
93514         are supposed to have them these days.
93515         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
93516         Merge changes from latest Autoconf CVS.
93517         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
93518         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
93519         POSIX decided to standardize on the int flavor of strerror_r.
93520
93521 2001-10-20  Paul Eggert  <eggert@twinsun.com>
93522
93523         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
93524         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
93525         Use strerror_r that is only a macro, even if it is not a function.
93526         (strerror): Check for HAVE_DECL_STRERROR before declaring.
93527         (private_strerror): Use prototypes, not old-style function definition.
93528         (print_errno_message): New function.
93529         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
93530         char*-flavored one.
93531         (error_tail, error, error_at_line): Use it.
93532
93533 2001-10-11  Jim Meyering  <meyering@lucent.com>
93534
93535         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
93536         and quote_n (1, ... to avoid clobbering a buffer.
93537
93538 2001-10-05  Jim Meyering  <meyering@lucent.com>
93539
93540         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
93541         hash-pjw.h.
93542         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
93543         * lib/hash-pjw.h: New file.
93544
93545 2001-09-30  Jim Meyering  <meyering@lucent.com>
93546
93547         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
93548         `struct fsstat' has the `f_fstypename' member.
93549         Use that to define FS_TYPE, which is now used to make
93550         the getfsstat link test tighter.
93551
93552 2001-09-30  Jim Meyering  <meyering@lucent.com>
93553
93554         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
93555         Include <sys/ucred.h>, for Apple Darwin.
93556         Include sys/mount.h and sys/fs_types.h only if available.
93557         (FS_TYPE): Define.
93558         (read_filesystem_list): Use FS_TYPE.
93559
93560 2001-09-29  Paul Eggert  <eggert@twinsun.com>
93561
93562         * lib/exclude.c (excluded_filename): 0 -> false, since it's
93563         a boolean context.
93564
93565 2001-09-29  Jim Meyering  <meyering@lucent.com>
93566
93567         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
93568         [one-argument getmntent function]): Include stdio.h before mntent.h.
93569         SunOS 4.1.x needs it for the declaration of `FILE'.
93570         Patch by Volker Borchert.
93571
93572         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
93573         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
93574         sys/fs_types.h, and make the link-test for getfsstat guard #include
93575         directives with appropriate #if HAVE_*_H tests so that we can
93576         detect getfsstat on Apple Darwin1.3.7 systems.
93577         Reported by Nelson Beebe.
93578         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
93579
93580 2001-09-28  Paul Eggert  <eggert@twinsun.com>
93581
93582         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93583         #defines strtoimax.  Also treat the other strto* functions
93584         like strtoimax.
93585
93586         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93587         Check for strtoul and strtoumax,
93588         as those declarations are made even in the signed case.
93589         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
93590         Likewise, for strtol and strtoimax.
93591
93592 2001-09-28  Paul Eggert  <eggert@twinsun.com>
93593
93594         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93595         #defines strtoimax.  Also treat the other strto* functions
93596         like strtoimax.
93597
93598         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
93599         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
93600         (strtoimax, strtoumax): Do not declare if already defined as a macro.
93601
93602 2001-09-26  Jim Meyering  <meyering@lucent.com>
93603
93604         Most macros in unlocked-io.h had the wrong number of arguments.
93605         * lib/gen-uio: New script.
93606         (USE_UNLOCKED_IO): Define to 1 if not already defined.
93607         * lib/unlocked-io.hin: Remove file.
93608         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
93609         rather than trying to embed it here.
93610         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
93611         Reported by Padraig Brady.
93612
93613 2001-09-25  Volker Borchert  <bt@teknon.de>
93614
93615         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
93616         `result'.
93617
93618 2001-09-24  Jim Meyering  <meyering@lucent.com>
93619
93620         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
93621
93622 2001-09-23  Jim Meyering  <meyering@lucent.com>
93623
93624         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
93625         instead of the mere test for existence of mntent.h.  The latter
93626         would get a false-positive on AIX 3.4 systems.
93627         In the outer getmntent if-block, don't die if neither of the getmntent
93628         tests succeeds.  Instead, just fall through and continue with the
93629         remaining tests.
93630
93631 2001-09-23  Jim Meyering  <meyering@lucent.com>
93632
93633         * lib/mountlist.c: Remove useless parentheses in #if directives.
93634         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
93635         the deprecated MOUNTED symbol is no longer defined in mntent.h.
93636
93637 2001-09-22  Jim Meyering  <meyering@lucent.com>
93638
93639         * m4/gettext.m4: New file.  From gettext.
93640         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
93641         * m4/progtest.m4: Likewise
93642         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
93643         * m4/glibc21.m4: Likewise.
93644
93645         * m4/libintl.m4: Remove.  No longer used.
93646
93647 2001-09-22  Jim Meyering  <meyering@lucent.com>
93648
93649         * lib/localcharset.c: Update from latest gettext.
93650         * lib/config.charset: Likewise.
93651
93652 2001-09-20  Jim Meyering  <meyering@lucent.com>
93653
93654         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
93655         strtoimax.
93656         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
93657         strtoumax.
93658
93659 2001-09-20  Jim Meyering  <meyering@lucent.com>
93660
93661         * lib/xstrtol.c (strtoimax): Guard declaration with
93662         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
93663         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
93664         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
93665         (strtoumax): Likewise, for completeness (it wasn't necessary).
93666
93667 2001-09-17  Paul Eggert  <eggert@twinsun.com>
93668
93669         * lib/strtoimax.c (HAVE_LONG_LONG):
93670         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
93671         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
93672         to work around bug in IBM C compiler.
93673
93674 2001-09-17  Jim Meyering  <meyering@lucent.com>
93675
93676         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
93677         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
93678         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
93679         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
93680         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
93681         whenever the right hand side need not be expanded by the shell.
93682
93683 2001-09-16  Paul Eggert  <eggert@twinsun.com>
93684
93685         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
93686         library.  It's not correct, as some older glibcs are buggy.
93687         fnmatch wasn't fixed until glibc 2.2.
93688
93689         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
93690         special shell magic here.
93691
93692 2001-09-16  Jim Meyering  <meyering@lucent.com>
93693
93694         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
93695         * m4/jm-macros.m4: Require it.
93696
93697 2001-09-16  Jim Meyering  <meyering@lucent.com>
93698
93699         * lib/mkdir.c: New file.
93700
93701 2001-09-15  Jim Meyering  <meyering@lucent.com>
93702
93703         * m4/jm-macros.m4: Check for help2man.
93704
93705 2001-09-11  Jim Meyering  <meyering@lucent.com>
93706
93707         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
93708         The body, by Paul Eggert, was moved here from configure.in.
93709         * m4/jm-macros.m4: Require UTILS_HOST_OS.
93710
93711 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93712
93713         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
93714         (jm_PREREQ): Use it.
93715
93716 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93717
93718         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
93719         Use ssize_t, not int, to store result of readlink.
93720         Check for ssize_t overflow as well as size_t overflow,
93721         as POSIX says the result of readlink is implementation-defined
93722         when ssize_t overflows.
93723         Remove unnecessary cast to char*.
93724         Use free+malloc instead of realloc, as the storage doesn't need
93725         to be preserved and it's clearer and can be more efficient that way.
93726         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
93727         * lib/xreadlink.h (xreadlink): Update prototype.
93728
93729 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93730
93731         * lib/xgetcwd.c: Revert some of the previous change; intead,
93732         fix the HAVE_GETCWD_NULL code to behave more like the
93733         !HAVE_GETCWD_NULL code used to.
93734
93735         Include "xalloc.h".
93736         (xgetcwd): Do not return NULL when memory is exhausted; instead,
93737         invoke xalloc_die.
93738
93739 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93740
93741         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
93742         sys/param.h, as pathmax.h includes them.
93743
93744 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93745
93746         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
93747         (jm_PREREQ_XGETCWD): New macro.
93748
93749         * m4/getcwd.m4: New file.
93750
93751 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93752
93753         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
93754         like the HAVE_GETCWD_NULL code.
93755         Include pathmax.h if not HAVE_GETCWD.
93756         Do not include xalloc.h.
93757         (INITIAL_BUFFER_SIZE): New symbol.
93758         Do not use xmalloc / xrealloc, since the caller is responsible for
93759         handling errors.  Preserve errno around `free' during failure.
93760         Do not overrun buffer when using getwd.
93761
93762 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93763
93764         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
93765         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
93766         getcwd (NULL, 0).
93767
93768 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93769
93770         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
93771         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
93772         spotted by Jim Meyering.
93773
93774 2001-09-03  Jim Meyering  <meyering@lucent.com>
93775
93776         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
93777         failure.
93778
93779 2001-09-02  Jim Meyering  <meyering@lucent.com>
93780
93781         * lib/error.c: Update from GNU libc.
93782
93783 2001-09-01  Jim Meyering  <meyering@lucent.com>
93784
93785         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
93786         Used by df.
93787
93788 2001-09-01  Jim Meyering  <meyering@lucent.com>
93789
93790         * lib/xreadlink.c: New file.
93791         * lib/xreadlink.h: New file.
93792         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
93793         xreadlink.h.
93794
93795         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
93796         doesn't conflict with sparc Solaris 7's definition in
93797         /usr/include/sys/int_types.h.
93798
93799         * lib/exclude.c: Use `""', not `<>' to #include non-system header
93800         files.
93801         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
93802         and strncasecmp as r-values.  Unixware didn't have declarations.
93803
93804 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93805
93806         * lib/xstrtol.h: Add copyright notice.
93807         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
93808         LONGINT_INVALID_SUFFIX_CHAR.
93809
93810 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93811
93812         * lib/xstrtol.c (strtoimax): New decl.
93813
93814 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93815
93816         * lib/xgetcwd.c: Don't include pathmax.h.
93817         Include stdlib.h and unistd.h if available.
93818         Include xalloc.h.
93819         (xmalloc, xstrdup, free): Remove decls.
93820         (xgetcwd): Don't assume sizes fit in unsigned.
93821         Check for overflow when computing sizes.
93822         Simplify reallocation code.
93823
93824 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93825
93826         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
93827         a directory's st_size can have an arbitrary value, so the old
93828         usage could waste an arbitrary amount of memory.  All uses
93829         changed.
93830         * lib/savedir.h: Update prototype.
93831
93832 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93833
93834         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
93835
93836         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
93837         old strtoimax.c.
93838
93839         Also, make the following further changes to make this file's
93840         configuration more similar to that of strtol.c:
93841         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
93842         (strtoumax, uintmax_t, strtoull, strtol): Remove.
93843         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
93844         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
93845         changed to signed values.
93846
93847         And make the following changes as well:
93848         Fix copyright notice, as 1999 was missing.
93849         (verify): New macro.
93850         (strtoimax): Check sizes at compile-time, not run-time.
93851         Prefer strtol to strtoll if both work.
93852         (main): Remove; it was not that useful and was a pain to maintain.
93853
93854         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
93855
93856 2001-08-31  Jim Meyering  <meyering@lucent.com>
93857
93858         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
93859         Use an initial, malloc'd, buffer of length 128 rather than
93860         a statically allocated one of length 1024.
93861
93862 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93863
93864         Simplify code, partly by assuming autoconf 2.52 semantics.
93865
93866         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
93867
93868         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
93869         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
93870         All uses removed.
93871         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
93872         Move AC_REQUIRE to next-to-top level, to avoid confusion.
93873         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
93874         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
93875         jm_AC_HEADER_INTTYPES_H.
93876         * m4/jm-macros.m4 (jm_MACROS): Likewise.
93877
93878         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
93879
93880         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93881         Quote first arg of AC_DEFUN.
93882         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
93883         since they are needed to parse the include file even if we need
93884         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
93885         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
93886         but with opposite signedness.
93887
93888 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93889
93890         Merge 'exclude' changes from tar 1.13.22.
93891         This fixes one or two unlikely storage allocation overflow bugs,
93892         but doesn't change user-visible behavior otherwise.
93893
93894 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93895
93896         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
93897         (jm_PREREQ_EXCLUDE): New macro.
93898
93899 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93900
93901         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
93902         tm to be declared.
93903
93904 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93905
93906         * lib/hash.c: Remove '2001' from copyright notice.
93907
93908 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93909
93910         * lib/full-write.h: New file.
93911         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
93912         * lib/full-write.c: Correct credits, as cccp.c no longer
93913         exists and anyway it was so heavily changed from the old cccp
93914         code as to be unrecognizable.  Include full-write.h.
93915         (full_write): Return size_t, with short writes meaning failure.
93916         All callers changed.  This fixes a bug with large buffers
93917         on 64-bit hosts.
93918         * lib/utime.c: Include full-write.h.
93919
93920 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93921
93922         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
93923         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
93924         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
93925         Include if available.
93926         (<xalloc.h>): Include
93927         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
93928         (verify): New macro.  Use it to verify that EXCLUDE macros do not
93929         collide with FNM macros.
93930         (struct patopts): New struct.
93931         (struct exclude): Use it, as exclude patterns now come with options.
93932         (new_exclude): Support above changes.
93933         (new_exclude, add_exclude_file):
93934         Initial size must now be a power of two to simplify overflow checking.
93935         (free_exclude, fnmatch_no_wildcards): New function.
93936         (excluded_filename): No longer requires options arg, as the options
93937         are determined by add_exclude.  Now returns bool, not int.
93938         (excluded_filename, add_exclude):
93939         Add support for the fancy new exclusion options.
93940         (add_exclude, add_exclude_file): Now takes int options arg.
93941         Check for arithmetic overflow when computing sizes.
93942         (add_exclude_file): xrealloc might modify errno, so don't
93943         realloc until after errno might be used.
93944
93945         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
93946         New macros.
93947         (free_exclude): New decl.
93948         (add_exclude, add_exclude_file): Now takes int options arg.
93949         (excluded_filename): No longer requires options arg, as the options
93950         are determined by add_exclude.  Now returns bool, not int.
93951
93952 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93953
93954         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
93955
93956 2001-08-27  Jim Meyering  <meyering@lucent.com>
93957
93958         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
93959
93960         * lib/version-etc.c (N_): Remove definition.
93961         Revert most of last change.
93962         Instead, simply don't mark the `Copyright...' string for translation.
93963         Based on advice from Paul Eggert.
93964
93965         * lib/strtoxmax.c: Tweak comment.
93966
93967 2001-08-26  Jim Meyering  <meyering@lucent.com>
93968
93969         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
93970
93971         * m4/xstrtoimax.m4: New file.
93972         * m4/xstrtoumax.m4: Add comments explaining why we
93973         AC_REPLACE_FUNCS(strtol).
93974
93975 2001-08-26  Jim Meyering  <meyering@lucent.com>
93976
93977         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
93978         of copyright with `%s' so translators don't get an untranslated
93979         message in 2002.
93980         (COPYRIGHT_YEAR): Define.
93981         (version_etc): Use fprintf rather than fputs.
93982         Suggestion from Ulrich Drepper.
93983
93984         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
93985
93986         * lib/strtoll.c: New file, from GNU libc.
93987         * lib/xstrtoimax.c: New file.
93988
93989         * lib/xstrtol.h: Add xstrtoimax.
93990         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
93991         * lib/strtoimax.c: New file.  Likewise, but first define
93992         STRTOUXMAX_SIGNED.
93993
93994         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
93995         ...
93996         * lib/strtoxmax.c: ... then renamed to this.
93997
93998 2001-08-18  Paul Eggert  <eggert@twinsun.com>
93999
94000         * m4/inttypes.m4: Add AC_PREREQ(2.13).
94001         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
94002         (jm_AC_TYPE_INTMAX_T): New macro.
94003         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
94004
94005         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
94006
94007         * m4/longlong.m4: Renamed from ulonglong.m4.
94008         * m4/inttypes.m4: Renamed from inttypes_h.m4.
94009         * m4/uintmax_t.m4: Removed.
94010
94011 2001-08-13  Paul Eggert  <eggert@twinsun.com>
94012
94013         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
94014         Port to Solaris 8, where 'sed' requires a space after the 'r'
94015         command, and where sh dislikes "$/".  Clean up the spacing a bit.
94016         Redirect output to $tmp just once.
94017
94018 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
94019
94020         * lib/addext.c (<errno.h>): Include.
94021         (errno): Declare if not defined.
94022         (addext): Work correctly when pathconf returns -1 and leaves
94023         errno alone because there is no limit.  Also, work even if
94024         pathconf returns a value greater than SIZE_MAX.
94025
94026 2001-08-12  Jim Meyering  <meyering@lucent.com>
94027
94028         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
94029         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
94030         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
94031         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
94032         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
94033         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
94034         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
94035         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
94036         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
94037         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
94038         utime.m4, utimes.m4, xstrtoumax.m4:
94039         Quote the first argument in each use of AC_DEFUN.
94040
94041 2001-08-12  Jim Meyering  <meyering@lucent.com>
94042
94043         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
94044         Simply `return getcwd (NULL, 0);'.
94045         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
94046         Use 1300 as initial value for length, not PATH_MAX.
94047
94048         * lib/pathmax.h: Clean up cpp syntax.
94049
94050 2001-08-12  Jim Meyering  <meyering@lucent.com>
94051
94052         * lib/gettimeofday.c: New file.
94053         * lib/gtod.h: New file.
94054         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
94055
94056 2001-08-05  Jim Meyering  <meyering@lucent.com>
94057
94058         * m4/jm-macros.m4: Require autoconf-2.52.
94059
94060 2001-08-04  Jim Meyering  <meyering@lucent.com>
94061
94062         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
94063         stmt, to get in sync with glibc.
94064
94065 2001-08-03  Paul Eggert  <eggert@twinsun.com>
94066
94067         The following changes are from gettext 0.10.39 as maintained by
94068         Bruno Haible.
94069
94070         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
94071         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
94072         with inverted sense.  All uses changed.
94073
94074         * lib/mbswidth.c: Don't include <limits.h>.
94075         Include <stdlib.h> and <string.h> unconditionally.
94076         (iswcntrl, mbsinit, ISCNTRL): New macros.
94077         (mbsnwidth): Use K&R style function declarations.
94078         Don't bother checking for MB_LEN_MAX == 1, since the compiler
94079         can optimize it when MB_CUR_MAX == 1.
94080         The width of control characters is zero, not 1.
94081
94082 2001-08-03  Paul Eggert  <eggert@twinsun.com>
94083
94084         The following changes are from gettext 0.10.39 as maintained by
94085         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
94086
94087         * m4/codeset.m4: Upgrade to serial AM1.
94088         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
94089         all uses changed.  Quote first arg of AC_DEFUN.
94090         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
94091
94092         * m4/iconv.m4: Upgrade to serial AM2.
94093         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
94094         Add --with-libconv-prefix.
94095         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
94096         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
94097         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
94098         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
94099         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
94100
94101         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
94102         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
94103         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
94104         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
94105         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
94106         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
94107         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
94108         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
94109         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
94110
94111         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
94112         string.h any more.
94113
94114         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
94115         not the default value.
94116
94117         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
94118         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
94119         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
94120         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
94121         Also check for iswcntrl, used for wcwidth fallback.
94122         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
94123         to Autoconf 2.13.
94124
94125 2001-08-03  Jim Meyering  <meyering@lucent.com>
94126
94127         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
94128         as it was in the original.  Reported by Paul Eggert.
94129
94130 2001-07-16  Jim Meyering  <meyering@lucent.com>
94131
94132         * m4/gettimeofday.m4: New file.
94133         Prompted by a report from Bernhard Baehr.
94134
94135 2001-07-15  Jim Meyering  <meyering@lucent.com>
94136
94137         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
94138         stuff. Now it's in ../Makefile.cfg.
94139
94140 2001-07-15  Jim Meyering  <meyering@lucent.com>
94141
94142         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
94143         (BUILT_SOURCES): Add unlocked-io.h.
94144         (io_functions): Define.
94145         (unlocked-io.h): New rule.
94146         (DISTCLEANFILES): Add unlocked-io.h.
94147         (all-local): Depend on unlocked-io.h, to ensure it is created.
94148
94149         * lib/unlocked-io.hin: New file
94150
94151         * lib/regex.c: Update from glibc.
94152
94153 2001-07-05  Jim Meyering  <meyering@lucent.com>
94154
94155         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
94156         recommendation.
94157         (libfetish_a_SOURCES): Put all .h files here instead.
94158         Remove a thus-exposed (better checks in automake) duplicate and
94159         two unnecessary .h files.
94160
94161 2001-07-04  Jim Meyering  <meyering@lucent.com>
94162
94163         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
94164         that generates jm-glibc-io.m4 so that it doesn't trigger any make
94165         distcheck failure.
94166
94167 2001-07-02  Jim Meyering  <meyering@lucent.com>
94168
94169         The following changes were prompted by suggestions from Bruno Haible.
94170
94171         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
94172         is now generated.
94173         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
94174         definition of EXTRA_DIST.
94175         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
94176         ensure that the generated file is created/updated whenever the list
94177         of $(unlocked_functions) is changed.
94178         (jm-glibc-io.m4): New rule.
94179         (unlocked-io.h): New rule -- currently unused.
94180
94181 2001-06-24  Jim Meyering  <meyering@lucent.com>
94182
94183         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
94184         unmatched right bracket, rather than kludging it with an extra,
94185         falsely-matching quote in a comment.  Patch by Akim Demaille.
94186
94187 2001-06-11  Jim Meyering  <meyering@lucent.com>
94188
94189         * lib/regex.c: Update from GNU libc.
94190
94191 2001-05-27  Jim Meyering  <meyering@lucent.com>
94192
94193         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
94194         Check for ut_type in struct utmp.
94195
94196 2001-05-27  Jim Meyering  <meyering@lucent.com>
94197
94198         * lib/readutmp.h (UT_TYPE): Define.
94199
94200 2001-05-24  Jim Meyering  <meyering@lucent.com>
94201
94202         * lib/argmatch.c: Include "quote.h".
94203         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
94204         quote function.  Reported by Göran Uddeborg.
94205
94206 2001-05-22  Jim Meyering  <meyering@lucent.com>
94207
94208         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
94209         now that we use the package-supplied version unconditionally.
94210         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
94211
94212 2001-05-21  Jim Meyering  <meyering@lucent.com>
94213
94214         * m4/regex.m4: Change a couple backticks to single quotes to avoid
94215         shell syntax errors.
94216
94217 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
94218
94219         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
94220
94221 2001-05-20  Paul Eggert  <eggert@twinsun.com>
94222
94223         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
94224         Don't bother to check library strftime, since
94225         we'll be using our own my_strftime function anyway.
94226         Define my_strftime instead of strftime.
94227
94228 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
94229
94230         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
94231         which is not yet declared.
94232
94233 2001-05-15  Jim Meyering  <meyering@lucent.com>
94234
94235         * m4/regex.m4: Use proper quoting so brackets appear in the test
94236         program.
94237         Reported by, and with help from, Bruno Haible.
94238
94239 2001-05-13  Jim Meyering  <meyering@lucent.com>
94240
94241         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
94242         undefined.
94243
94244 2001-05-11  Paul Eggert  <eggert@twinsun.com>
94245
94246         dirname code cleanup.  base_name now behaves more compatibly
94247         with POSIX basename when given file names that have trailing
94248         slashes, and similarly for dir_name.  Add new primitives
94249         base_len and dir_len.  Put the directory-name-related decls
94250         into dirname.h.
94251
94252         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
94253         * lib/backupfile.c (base_name): Likewise.
94254         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
94255         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
94256         * lib/makepath.c (strip_trailing_slashes): Likewise.
94257         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
94258         ISSLASH): Likewise.
94259         * lib/rename.c (strip_trailing_slashes): Likewise.
94260         * lib/same.c (base_name): Likewise.
94261         * lib/stripslash.c (ISSLASH): Likewise.
94262
94263         * lib/addext.c: Include <dirname.h> after size_t is defined.
94264         * lib/backupfile.c: Likewise.
94265
94266         * lib/addext.c (addext): Use base_len to trim redundant
94267         trailing slashes instead of doing it ourselves.
94268         But do not trim the last slash if it is not redundant.
94269
94270         * lib/backupfile.c (find_backup_file_name,
94271         max_backup_version): Use base_len instead of rolling it ourselves.
94272         Handle the case of "" and (on DOS) "C:" correctly.
94273
94274         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
94275         needed. Include <string.h>, <dirname.h>.
94276         (base_name): Allow file names ending in slashes, other than names
94277         that are all slashes.  In this case, return the basename followed
94278         by the slashes.  This is more general, and can be used in places
94279         where the original base_name purposely had an assertion failure.
94280         (base_len): New function.
94281
94282         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
94283         Do not include <assert.h>; no longer needed.
94284         Include xalloc.h.
94285         (memrchr): Remove decl.
94286         (dir_name_r): Remove.
94287         (dir_len): Renamed from dirlen.  All callers changed.
94288         Rewrite in terms of base_name, for simplicity and consistency.
94289         (dir_name): Never return NULL.  All callers changed.
94290         Do not include <stdlib.h> in test program; no longer needed.
94291         return 0; is fine for test program.
94292
94293         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
94294         New macros.
94295         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
94296
94297         * lib/path-concat.c (path_concat): Use base_len to compute
94298         base length, not strlen; this means we cannot rely on memcpy
94299         to null-terminate.
94300
94301         * lib/same.c (STREQ): Remove.
94302         (same_name): Handle the case where the basename ends in trailing '/'.
94303
94304         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
94305         a slash was stripped.  Do not strip the last slash after a
94306         file system prefix.
94307
94308 2001-05-11  Paul Eggert  <eggert@twinsun.com>
94309
94310         * lib/Makefile.am (libfetish_a_SOURCES):
94311         Add strftime.c, since we now compile it on all hosts.
94312
94313         * lib/strftime.c (my_strftime):
94314         Define to nstrftime if emacs, but only if my_strftime is not defined.
94315         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
94316         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
94317         Add one more extra argument: a nanoseconds value.
94318         All uses changed.
94319         (ns): New macro.
94320         (my_strftime function): Add %N format.
94321         (emacs_strftimeu): Renamed from emacs_strftime,
94322         with extra ut argument.
94323
94324 2001-05-09  Paul Eggert  <eggert@twinsun.com>
94325
94326         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
94327
94328 2001-04-21  Jim Meyering  <meyering@lucent.com>
94329
94330         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
94331         doesn't interfere.
94332
94333 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
94334
94335         * m4/ftruncate.m4: Check for chsize.
94336         Link with ftruncate.o unconditionally if ftruncate is missing.
94337         This was required when cross-compiling to i586-mingw32msvc.
94338
94339 2001-04-08  Jim Meyering  <meyering@lucent.com>
94340
94341         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
94342         recomputed; that's necessary when the offset spans a DST transition.
94343         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
94344
94345 2001-04-02  Jim Meyering  <meyering@lucent.com>
94346
94347         * lib/regex.h, regex.c: Update from GNU libc.
94348
94349 2001-03-24  Jim Meyering  <meyering@lucent.com>
94350
94351         * m4/jm-macros.m4: Require autoconf-2.49d.
94352
94353 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
94354
94355         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
94356
94357 2001-03-19  Paul Eggert  <eggert@twinsun.com>
94358
94359         * lib/version-etc.c (version_etc_copyright): Update to 2001.
94360
94361 2001-03-17  Jim Meyering  <meyering@lucent.com>
94362
94363         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
94364         now that the version in autoconf is equivalent.
94365         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
94366
94367         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
94368         Suggestion from Akim Demaille.
94369
94370         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
94371         (jm_PREREQ_TEMPNAME): New function.
94372
94373 2001-03-16  Paul Eggert  <eggert@twinsun.com>
94374
94375         * lib/tempname.c (uint64_t): Define to uintmax_t if
94376         not defined, and if UINT64_MAX is not defined.
94377         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
94378         Reported by John David Anglin.
94379
94380 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
94381
94382         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
94383         resolve alias if codeset is empty.
94384         * lib/config.charset (BeOS): Use wildcard syntax.
94385
94386 2001-03-13  Jim Meyering  <meyering@lucent.com>
94387
94388         * lib/path-concat.c (path_concat)
94389         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
94390         concatenating e.g., `C:' and `foo'.
94391         From Bruno Haible.
94392
94393 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
94394
94395         * lib/localcharset.c (locale_charset): Don't use
94396         setlocale(LC_CTYPE,NULL). Don't return NULL.
94397         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
94398
94399 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
94400
94401         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
94402         support for DOS/DJGPP.
94403
94404 2001-03-01  Paul Eggert  <eggert@twinsun.com>
94405
94406         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
94407         lacks mkstemp.  Compile our own tempname.c if we compile our own
94408         mkstemp.c, as mkstemp relies on tempname.
94409
94410 2001-03-01  Jim Meyering  <meyering@lucent.com>
94411
94412         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
94413         AH_VERBATIM really does output its argument verbatim.
94414
94415 2001-02-28  Paul Eggert  <eggert@twinsun.com>
94416
94417         * lib/Makefile.am (libfetish_a_SOURCES):
94418         Add dup-safer.c, fopen-safer.c.
94419         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
94420
94421         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
94422         * lib/unistd-safer.h: New files.
94423
94424 2001-02-25  Paul Eggert  <eggert@twinsun.com>
94425
94426         The mkstemp replacement is taken from glibc 2.2.2, with some
94427         portability fixes for use outside glibc, as follows:
94428
94429         * lib/tempname.c (struct_stat64): New macro.
94430         (direxists, __gen_tempname): Use it.
94431         This avoids a portability problem with Solaris 8.
94432
94433         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
94434         (<stddef.h>, <stdint.h>, <string.h>):
94435         Include only if STDC_HEADERS || _LIBC.
94436         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
94437         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
94438         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
94439         (__set_errno): Define this macro if <errno.h> doesn't.
94440         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
94441         Define these macros if <stdio.h> doesn't.
94442         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
94443         Define these macros if <sys/stat.h>
94444         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
94445         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
94446         __xstat64): Define if not _LIBC.
94447         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
94448         (__gen_tempname): Invoke gettimeofday only if
94449         HAVE_GETTIMEOFDAY || _LIBC;
94450         otherwise, fall back on plain "time".
94451         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
94452
94453         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
94454
94455         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
94456
94457 2001-02-18  Paul Eggert  <eggert@twinsun.com>
94458
94459         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
94460
94461 2001-02-17  Paul Eggert  <eggert@twinsun.com>
94462
94463         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
94464         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
94465         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
94466         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
94467
94468 2001-02-17  Paul Eggert  <eggert@twinsun.com>
94469
94470         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
94471         Remove workaround macros for hosts that have mbrtowc but not
94472         mbstate_t, as we now insist on proper declarations for both
94473         before using mbrtowc.
94474
94475 2001-02-17  Jim Meyering  <meyering@lucent.com>
94476
94477         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
94478         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
94479         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
94480         UnixWare 7.1.1.
94481
94482         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
94483         rather than AC_CACHE_VAL.
94484
94485 2001-02-17  Jim Meyering  <meyering@lucent.com>
94486
94487         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
94488         around included file name.
94489
94490         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
94491
94492         * lib/strftime.c: Update from GNU libc (the only changes were to
94493         comments).
94494
94495 2001-02-17  Jim Meyering  <meyering@lucent.com>
94496
94497         * lib/regex.c: Update from libc.
94498
94499 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
94500
94501         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
94502         clash.
94503
94504 2001-02-16  Paul Eggert  <eggert@twinsun.com>
94505
94506         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
94507         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
94508         Reported by Mark Hounschell via Paul Eggert.
94509
94510 2001-02-07  Jim Meyering  <meyering@lucent.com>
94511
94512         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
94513
94514 2001-02-05  Jim Meyering  <meyering@lucent.com>
94515
94516         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
94517         it includes the patch required for `large file' support with at least
94518         HP-UX's 10.20 /bin/cc.
94519
94520 2001-02-03  Jim Meyering  <meyering@lucent.com>
94521
94522         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
94523         AS_IF, now that it works once again (mysteriously).
94524         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
94525
94526 2001-01-30  Jim Meyering  <meyering@lucent.com>
94527
94528         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
94529         * m4/chown.m4: Rename conftestchown to conftest.chown.
94530         * m4/rename.m4: s/conftestdir/conftest.d1/ and
94531         s/conftestdir2/conftest.d2/.
94532         * m4/utimes.m4: s/conftestdata/conftest.data/
94533         Inspired by Pavel Roskin's change in autoconf.
94534
94535 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
94536
94537         * lib/config.charset: Update for FreeBSD 4.2.
94538
94539 2001-01-27  Jim Meyering  <meyering@lucent.com>
94540
94541         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
94542         a use of AS_IF.
94543         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
94544
94545 2001-01-26  Jim Meyering  <meyering@lucent.com>
94546
94547         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
94548         quotearg.c includes it.
94549
94550 2001-01-26  Jim Meyering  <meyering@lucent.com>
94551
94552         * lib/quotearg.c: Include stddef.h.
94553         * lib/quote.c: Include stddef.h.
94554         Reported by Axel Kittenberger.
94555
94556         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
94557         line in double quotes so that it evokes a better diagnostic.
94558         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
94559         Reported by Axel Kittenberger.
94560
94561 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
94562
94563         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
94564         as if it was a `charset'.
94565
94566 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
94567
94568         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
94569         has const.
94570
94571 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
94572
94573         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
94574         to avoid a warning.  Add back 'const' to inptr.
94575
94576 2001-01-20  Jim Meyering  <meyering@lucent.com>
94577
94578         Be sure that headers are checked before used in code compiled
94579         for the type checks.
94580         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
94581         In place of that, invoke jm_CHECK_ALL_TYPES.
94582         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
94583         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
94584         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
94585         The check for ssize_t was mistakenly run before the test for unistd.h.
94586
94587         The configure-time check for stdbool.h was missing.
94588         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
94589         (jm_PREREQ_HASH): New function.
94590
94591 2001-01-17  Jim Meyering  <meyering@lucent.com>
94592
94593         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
94594         for autoconf-2.49c.
94595         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
94596
94597 2001-01-16  Jim Meyering  <meyering@lucent.com>
94598
94599         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
94600         From Bruno Haible.
94601
94602 2001-01-14  Jim Meyering  <meyering@lucent.com>
94603
94604         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
94605         foo and bar.  Create conftestdir/ in the script, not in the C code.
94606         Remove directories in the script, not in the C code.
94607         Remove conftestdir{,2} before trying to create the directory.
94608         Make the entire configure script fail if the mkdir fails.
94609
94610 2001-01-14  Jim Meyering  <meyering@lucent.com>
94611
94612         * lib/rename.c: New file.  From Volker Borchert.
94613         Include stdlib.h, string.h or strings.h, and xalloc.h.
94614         Use strip_trailing_slashes rather than open-coding it.
94615
94616 2001-01-03  Paul Eggert  <eggert@twinsun.com>
94617
94618         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
94619
94620 2001-01-03  Jim Meyering  <meyering@lucent.com>
94621
94622         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
94623         of local `inptr' to avoid warning with some system declarations of
94624         iconv.
94625
94626 2001-01-02  Volker Borchert  <bt@teknon.de>
94627
94628         * m4/rename.m4: New file.
94629         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
94630
94631 2001-01-01  Jim Meyering  <meyering@lucent.com>
94632
94633         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
94634         even on systems with utmpx.h.  It's necessary for the declaration of
94635         utmp's ut_user member.  Reported by Andreas Jaeger.
94636
94637         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
94638         available. They are required for the declarations of getgrgid and
94639         getpwuid resp.
94640         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
94641         Reported by Andreas Jaeger.
94642
94643 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
94644
94645         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
94646         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
94647         so `make install' also works in VPATH builds.
94648
94649 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
94650
94651         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
94652         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
94653         can be used in subdirectories.
94654
94655 2000-12-29  Paul Eggert  <eggert@twinsun.com>
94656
94657         * lib/modechange.c: Do not assume that mode_t uses the
94658         traditional octal encoding.  E.g. "chmod 1 FOO" should set
94659         the other-execute bit of FOO even if S_IXOTH != 1.
94660
94661         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
94662         WOTH, XOTH, ALLM): New macros.
94663         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
94664          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
94665         Use them.
94666         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
94667         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
94668         (mode_compile):
94669         No need to use uintmax_t; unsigned long is long enough.
94670         Don't bother to get suffix since we don't use it.
94671
94672 2000-12-26  Jim Meyering  <meyering@lucent.com>
94673
94674         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
94675         better with autoheader.
94676
94677 2000-12-24  Jim Meyering  <meyering@lucent.com>
94678
94679         * lib/hash.c (is_prime): Return explicit boolean values.
94680         (hash_get_first): Return NULL to appease Irix5.6's 89.
94681         Reported by Nelson Beebe.
94682
94683 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
94684
94685         * lib/localcharset.c (locale_charset): Add support for Win32.
94686
94687 2000-12-18  Paul Eggert  <eggert@twinsun.com>
94688
94689         * lib/physmem.h, lib/physmem.c: New files.
94690
94691         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
94692         (noinst_HEADERS): Add physmem.h.
94693
94694         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
94695         't' for compatibility with Solaris 8 sort.
94696
94697 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
94698
94699         * lib/config.charset: Add support for BeOS.
94700
94701 2000-12-17  Jim Meyering  <meyering@lucent.com>
94702
94703         * m4/dos.m4 (jm_AC_DOS): New file and macro.
94704         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
94705
94706 2000-12-16  Jim Meyering  <meyering@lucent.com>
94707
94708         This bug had a serious impact on chown: `chown N:M FILE' (for integer
94709         N and M) would have treated it like `chown N:N FILE'.
94710
94711         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
94712
94713 2000-12-16  Jim Meyering  <meyering@lucent.com>
94714
94715         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
94716         SHELLS_FILE to a file name that's useful on djgpp systems.
94717         Include stdlib.h.
94718         (ADDITIONAL_DEFAULT_SHELLS): Define.
94719         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
94720         Based mostly on a patch from Prashant TR.
94721
94722 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
94723
94724         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
94725         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
94726         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
94727
94728 2000-12-08  Andreas Schwab  <schwab@suse.de>
94729
94730         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
94731         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
94732
94733 2000-12-07  Jim Meyering  <meyering@lucent.com>
94734
94735         * lib/stripslash.c (ISSLASH): Define.
94736         (strip_trailing_slashes): Use ISSLASH rather than comparing against
94737         `/'.
94738         From Prashant TR.
94739
94740         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
94741         (dir_name_r): Declare this function as static.
94742         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
94743         manifest itself on a name containing a mix of slashes and
94744         backslashes.
94745         Make this function work with names starting with a DOS-style
94746         drive letter and colon prefix.
94747         (dir_name): Append `.' if necessary.
94748         Based mostly on patches from Prashant TR and Eli Zaretskii.
94749
94750         * lib/dirname.h (dir_name_r): Remove prototype.
94751
94752 2000-12-06  Paul Eggert  <eggert@twinsun.com>
94753
94754         * m4/off_t-format.m4: Remove this file.
94755         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
94756
94757 2000-12-06  Jim Meyering  <meyering@lucent.com>
94758
94759         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
94760         replacement strtoull, we may well need the replacement strtoul, too.
94761         Check for declarations of strtoul and strtoull.
94762         Check for strtol.  Mainly as a cue to cause automake to include
94763         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
94764         Check for limits.h -- strtol.c needs it.
94765
94766 2000-12-05  Jim Meyering  <meyering@lucent.com>
94767
94768         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
94769
94770 2000-12-04  Jim Meyering  <meyering@lucent.com>
94771
94772         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
94773         Also include memory.h, stdlib.h, unistd.h if appropriate.
94774         Reported by Andreas Jaeger (conflicting declaration of malloc).
94775
94776 2000-12-02  Jim Meyering  <meyering@lucent.com>
94777
94778         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
94779         * m4/jm-macros.m4 (jm_MACROS): require it.
94780
94781 2000-12-02  Jim Meyering  <meyering@lucent.com>
94782
94783         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
94784
94785 2000-12-01  Paul Eggert  <eggert@twinsun.com>
94786
94787         * lib/memrchr.c: Include <config.h> before any system include file.
94788
94789 2000-11-30  Jim Meyering  <meyering@lucent.com>
94790
94791         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
94792
94793 2000-11-30  Jim Meyering  <meyering@lucent.com>
94794
94795         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
94796
94797 2000-11-29  Paul Eggert  <eggert@twinsun.com>
94798
94799         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
94800
94801 2000-11-26  Jim Meyering  <meyering@lucent.com>
94802
94803         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
94804
94805 2000-11-22  Paul Eggert  <eggert@twinsun.com>
94806
94807         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
94808         size of (size_t) -1; it's not portable.
94809
94810 2000-11-17  Jim Meyering  <meyering@lucent.com>
94811
94812         * lib/strstr.c: Update from GNU libc.
94813
94814 2000-11-17  Akim Demaille  <akim@epita.fr>
94815
94816         * lib/obstack.h: Formatting changes.
94817         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
94818         prevent type checking.
94819         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
94820         cast the value to (void *): assigning a `foo *' to a `void *'
94821         variable is valid.
94822         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
94823
94824 2000-11-16  Jim Meyering  <meyering@lucent.com>
94825
94826         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
94827
94828 2000-11-11  Jim Meyering  <meyering@lucent.com>
94829
94830         * lib/error.c: Add a couple #includes, merging from GNU libc version.
94831
94832 2000-11-10  Jim Meyering  <meyering@lucent.com>
94833
94834         * lib/obstack.h: Update from GNU libc.
94835         * lib/obstack.c: Likewise.
94836
94837 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
94838
94839         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
94840
94841 2000-11-06  Paul Eggert  <eggert@twinsun.com>
94842
94843         * lib/getusershell.c (setusershell): Use rewind rather than
94844         fseek/fseeko, to avoid configuration hassles with fseeko.
94845         Don't bother opening SHELLS_FILE if shellstream is NULL;
94846         it's not necessary.
94847
94848 2000-11-05  Jim Meyering  <meyering@lucent.com>
94849
94850         * lib/makepath.h (make_dir): Declare.
94851         * lib/makepath.c (make_dir): Remove `static' attribute.
94852         Tweak a comment.
94853
94854 2000-11-04  Jim Meyering  <meyering@lucent.com>
94855
94856         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
94857
94858 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
94859
94860         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
94861         last one in a bucket, advance to the next bucket.
94862
94863 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
94864
94865         * lib/fnmatch.c: Do not comment out all the code if we are using
94866         the GNU C library, because in some cases we are replacing buggy
94867         code in the GNU C library itself.
94868
94869 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
94870
94871         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
94872         (regex_compile): Catch bogus \(\1\).
94873
94874 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94875
94876         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
94877         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
94878         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
94879
94880 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94881
94882         * lib/error.h, getline.h, modechange.h:
94883         Remove "2000" from Copyright line, as the file hasn't been
94884         changed this year other than in the copyright notice.
94885
94886         * lib/xalloc.h: Add "2000" to Copyright line, as this file
94887         was changed this year.
94888
94889 2000-10-29  Jim Meyering  <meyering@lucent.com>
94890
94891         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
94892         renaming.
94893         * m4/ls-mntd-fs.m4: Likewise
94894
94895 2000-10-29  Jim Meyering  <meyering@lucent.com>
94896
94897         * lib/xstat.in: Fix grammar in comment.
94898
94899 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
94900
94901         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
94902         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
94903         doesn't define __restrict_arr.
94904
94905 2000-10-28  Jim Meyering  <meyering@lucent.com>
94906
94907         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
94908         (jm_PREREQ_MEMCHR): New function.
94909
94910 2000-10-28  Jim Meyering  <meyering@lucent.com>
94911
94912         * lib/memchr.c: Update from libc.
94913         Adjust for portability:
94914         [HAVE_STDLIB_H]: Include stdlib.h.
94915         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
94916         Undef __memchr, too.
94917         [!weak_alias]: Define __memchr to memchr.
94918
94919         * lib/regex.c: Update from libc.
94920         * lib/regex.h: Likewise.
94921         * lib/getopt1.c: Likewise.
94922         * lib/memcmp.c: Likewise.
94923
94924         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
94925         Avoid using fseek, when possible -- it's broken by design.
94926         Patch by Ulrich Drepper.
94927
94928 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
94929
94930         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
94931         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
94932         Giving in to popular pressure to shut up the compiler with casts.
94933
94934 2000-10-26  Jim Meyering  <meyering@lucent.com>
94935
94936         * lib/strftime.c: Update from libc.
94937
94938 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
94939
94940         * regex.c: More `unsigned char' -> `re_char' changes.
94941         Also change several `int' into `re_wchar_t'.
94942         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
94943         (PUSH_FAILURE_POINTER): Don't cast any more.
94944         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
94945         We want GCC to complain, since this piece of code makes
94946         re_match non-reentrant, which *should* be fixed.
94947         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
94948         (EXTEND_BUFFER): Use RETALLOC.
94949         (SET_LIST_BIT): Don't cast.
94950         (re_wchar_t): New type.
94951         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
94952         that those two functions will always properly return.
94953         (IMMEDIATE_QUIT_CHECK): Cast to void.
94954         (analyse_first): Use recursion rather than an explicit stack.
94955         (re_compile_fastmap): Can't fail anymore.
94956         (re_search_2): Don't check re_compile_fastmap for failure.
94957         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
94958         Now also sets the new value (passed in a new argument).
94959         (re_match_2_internal): Use it.
94960         Also, use a new var `reg' of type size_t when looping through regs
94961         rather than reuse the inappropriate `mcnt'.
94962
94963 2000-10-25  Jim Meyering  <meyering@lucent.com>
94964
94965         * lib/obstack.c: Update from libc.
94966
94967 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
94968
94969         * regex.c (regex_compile): Change the way of handling a range from
94970         a char less than 256 to a char not less than 256.
94971
94972 2000-10-24  Andrew Innes  <andrewi@gnu.org>
94973
94974         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
94975         NT-Emacs only.
94976         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
94977         so that re_search functions only quit when callers expect them to.
94978
94979 2000-10-23  Jim Meyering  <meyering@lucent.com>
94980
94981         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
94982         wrong.  That set_locale call must not have any side effects.
94983         From Paul Eggert.
94984
94985 2000-10-22  Jim Meyering  <meyering@lucent.com>
94986
94987         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
94988         [CYCLIC]: Remove now-unused definition.
94989
94990         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
94991         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
94992         Suggestion from Ulrich Drepper.
94993
94994 2000-10-21  Jim Meyering  <meyering@lucent.com>
94995
94996         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
94997         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
94998         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
94999
95000 2000-10-21  Jim Meyering  <meyering@lucent.com>
95001
95002         * lib/dirname.c (memrchr): Declare if necessary.
95003         (dir_name): Remove the restriction that there be no
95004         trailing slashes.  Now, this code skips past them, effectively
95005         ignoring them.
95006         [TEST_DIRNAME] (main): New unit tests.
95007
95008         * lib/memrchr.c: New file from GNU libc.
95009         Undef __memrchr, too.
95010         [!weak_alias]: Define __memrchr to memrchr.
95011         Guard weak_alias use with `#ifdef weak_alias'.
95012
95013 2000-10-21  Jim Meyering  <meyering@lucent.com>
95014
95015         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
95016         (dir_name): Use dir_name_r.
95017         * lib/dirname.h (dir_name_r): Declare it.
95018
95019 2000-10-17  Jim Meyering  <meyering@lucent.com>
95020
95021         * lib/quote.h (PARAMS): Define and use.
95022         Reported by Akim Demaille.
95023
95024         * lib/getopt.c: Update from libc.
95025
95026 2000-10-16  Jim Meyering  <meyering@lucent.com>
95027
95028         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
95029         setlocale.
95030         From Jan Fedak.
95031
95032 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
95033
95034         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
95035
95036 2000-09-25  Jim Meyering  <meyering@lucent.com>
95037
95038         * lib/md5.h (rol): Define (from GnuPG).
95039
95040         * lib/sha.c: Give credit (GnuPG) where due.
95041         (M): Use rol rather than open-coding it.
95042         Add a FIXME comment.
95043
95044 2000-09-21  Jim Meyering  <meyering@lucent.com>
95045
95046         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
95047         Reported by Michael Stone.
95048
95049 2000-09-20  Jim Meyering  <meyering@lucent.com>
95050
95051         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
95052         (noinst_HEADERS): Add sha.h.
95053         Based on code from Scott G. Miller and from GnuPG.
95054
95055 2000-09-18  Jim Meyering  <meyering@lucent.com>
95056
95057         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
95058         LIBS. Otherwise, everyone ends up linking with -lelf for some
95059         configurations.
95060         Reported by Mike Stone.
95061
95062 2000-09-15  Jim Meyering  <meyering@lucent.com>
95063
95064         * lib/regex.c: Update from libc.
95065
95066 2000-09-10  Jim Meyering  <meyering@lucent.com>
95067
95068         * lib/getopt.c (_getopt_internal): Update from glibc.
95069
95070 2000-09-09  Jim Meyering  <meyering@lucent.com>
95071
95072         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
95073         think it should be used as a general replacement for isascii.
95074         * lib/fnmatch.c: Likewise.
95075         * lib/mbswidth.c: Likewise
95076         * lib/regex.c: Likewise.
95077
95078         Don't use atoi.
95079         * lib/userspec.c: Include sys/param.h and limits.h.
95080         Include xstrtol.h.
95081         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
95082         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
95083         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
95084         UID, GID.  Check range.
95085
95086 2000-09-06  Jim Meyering  <meyering@lucent.com>
95087
95088         * lib/getopt.c (_getopt_internal): Update from glibc.
95089
95090 2000-08-30  Jim Meyering  <meyering@lucent.com>
95091
95092         * lib/strftime.c: Merge in changes from GNU libc.
95093
95094 2000-08-26  Jim Meyering  <meyering@lucent.com>
95095
95096         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
95097         * m4/fpending.m4: New file.
95098
95099 2000-08-26  Jim Meyering  <meyering@lucent.com>
95100
95101         * lib/closeout.c: Include "__fpending.h".
95102         (close_stdout_status): Return right away if there's nothing to flush.
95103
95104         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
95105         * lib/__fpending.c: New file.
95106         * lib/__fpending.h: New file.
95107
95108 2000-08-20  Jim Meyering  <meyering@lucent.com>
95109
95110         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
95111         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
95112         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
95113
95114 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
95115
95116         Improve fileutils installation on systems where running
95117         programs (like install) can't be unlinked.
95118         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
95119         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
95120
95121 2000-08-07  Paul Eggert  <eggert@twinsun.com>
95122
95123         Standardize on "memory exhausted" instead of "Memory exhausted"
95124         or "virtual memory exhausted".
95125         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
95126         "virtual memory exhausted".
95127         * lib/same.c (same_name): Invoke xalloc_die instead of printing
95128         our own message.
95129         * lib/userspec.c (parse_user_spec): Likewise.
95130         * lib/bumpalloc.h: comment fix
95131         * lib/same.c, userspec.c: Include xalloc.h.
95132
95133         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
95134         not char *const and pointing to a constant array.
95135         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
95136         (xrealloc): Comment fix.
95137
95138         * lib/userspec.c (parse_user_spec):
95139         Don't translate a message until just before returning,
95140         to avoid unnecessary translation.
95141
95142 2000-08-07  Jim Meyering  <meyering@lucent.com>
95143
95144         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
95145         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
95146         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
95147         getgroups.c, gethostname.c, getopt.h, group-member.c,
95148         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
95149         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
95150         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
95151         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
95152         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
95153         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
95154         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
95155         yesno.c: Back out Copyright date changes for each file with no change
95156         this year.  This eases coordination with other programs using the same
95157         source code modules.  From Paul Eggert.
95158
95159 2000-08-06  Paul Eggert  <eggert@twinsun.com>
95160
95161         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
95162         not char, for compatibility with glibc 2.1.3 strftime.c.
95163
95164 2000-08-03  Greg McGary  <greg@mcgary.org>
95165
95166         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
95167         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
95168         (EXTEND_BUFFER): Use them.
95169
95170 2000-08-01  Jim Meyering  <meyering@lucent.com>
95171
95172         * lib/dirname.c (ISSLASH): Define.
95173         (BACKSLASH_IS_PATH_SEPARATOR): Define.
95174         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
95175         both `\' and `/' may be use as path separators.
95176         Based on a patch from Prashant TR.
95177
95178 2000-07-31  Paul Eggert  <eggert@twinsun.com>
95179
95180         * lib/quotearg.c (quotearg_n_options): Don't make the initial
95181         slot vector a constant, since it might get modified.
95182
95183 2000-07-31  Jim Meyering  <meyering@lucent.com>
95184
95185         * lib/xmalloc.c: Use `virtual memory exhausted', not
95186         `Memory exhausted'.
95187         * lib/obstack.c (print_and_abort): Likewise.
95188
95189 2000-07-30  Paul Eggert  <eggert@twinsun.com>
95190
95191         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
95192         buffer, so that the caller can always quote one small
95193         component of a "memory exhausted" message in slot 0.
95194         From a suggestion by Jim Meyering.
95195
95196 2000-07-30  Jim Meyering  <meyering@lucent.com>
95197
95198         * lib/makepath.c (make_path): Quote the other instance, too.
95199
95200         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
95201         (STATIC_BUF_SIZE): Define.
95202         (quotearg_n_options): Use only statically allocated storage when
95203         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
95204         than STATIC_BUF_SIZE.
95205
95206 2000-07-29  Jim Meyering  <meyering@lucent.com>
95207
95208         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
95209         * lib/dirname.c (dir_name): Likewise.
95210
95211         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
95212         `/'.
95213
95214         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
95215         (dir_name): Assert that there are no trailing slashes.
95216
95217 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
95218
95219         * lib/mbswidth.h (mbswidth): Add a flags argument.
95220         (mbswidth): New declaration.
95221         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
95222         * lib/mbswidth.c (mbswidth): Add a flags argument.
95223         (mbsnwidth): New function.
95224
95225 2000-07-24  Jim Meyering  <meyering@lucent.com>
95226
95227         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
95228
95229 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95230
95231         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
95232
95233 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95234
95235         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
95236         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
95237         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
95238         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
95239         invoke multibyte primitives.
95240
95241 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95242
95243         * lib/quotearg.c:
95244         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
95245         so that mbstate_t is always defined.
95246
95247         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
95248         be 1 in at least one GCC installation, and this configuration
95249         error is likely to be common.  Ignoring MB_LEN_MAX hurts
95250         performance on hosts that have mbrtowc but have only unibyte
95251         locales, but I assume these hosts are rare.
95252
95253 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95254
95255         * lib/mbswidth.c (_XOPEN_SOURCE):
95256         Don't define; this causes problems on Solaris 7.
95257         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
95258
95259 2000-07-23  Jim Meyering  <meyering@lucent.com>
95260
95261         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
95262         too: getgrgid, getpwuid, getuid.
95263
95264 2000-07-23  Jim Meyering  <meyering@lucent.com>
95265
95266         * lib/basename.c (base_name): Add an assertion.
95267
95268 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
95269
95270         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
95271         shadow its mbsinit function.
95272
95273 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
95274
95275         * lib/mbswidth.h: New file.
95276         * lib/mbswidth.c: New file.
95277         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
95278         (noinst_HEADERS): Add mbswidth.h.
95279
95280 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
95281
95282         * lib/config.charset: Add support for FreeBSD. Improve support for
95283         HP-UX and IRIX 6.
95284
95285 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
95286
95287         * m4/mbswidth.m4: New file.
95288         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
95289
95290 2000-07-15  Jim Meyering  <meyering@lucent.com>
95291
95292         * lib/makepath.c: Include quote.h.
95293         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
95294         corresponding argument in a `quote (...)' call.
95295         Give better diagnostics.
95296
95297         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
95298         (noinst_HEADERS): Add quote.h.
95299
95300         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
95301         from tar's src/misc.c.
95302         * lib/quote.h: New file.  Prototypes for same.
95303
95304 2000-07-14  Paul Eggert  <eggert@twinsun.com>
95305
95306         From a suggestion by Bruno Haible.
95307         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
95308         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
95309         to decide whether to define the BeOS workaround macro;
95310         this adjusts to the change to AC_MBSTATE_T.
95311
95312 2000-07-14  Jim Meyering  <meyering@lucent.com>
95313
95314         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
95315         jm_AC_TYPE_UINTMAX_T.
95316
95317 2000-07-13  Paul Eggert  <eggert@twinsun.com>
95318
95319         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
95320
95321         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
95322         quotearg_buffer_restyled): Add support for
95323         clocale_quoting_style.  Undo previous change to
95324         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
95325         and "{RIGHT QUOTATION MARK}" msgids.
95326
95327 2000-07-10  Paul Eggert  <eggert@twinsun.com>
95328
95329         From a suggestion by Bruno Haible.
95330         * m4/mbstate_t.m4 (AC_MBSTATE_T):
95331         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
95332         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
95333         and mbstate_t, to a single-part test that simply defines mbstate_t.
95334         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
95335         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
95336
95337 2000-07-10  Jim Meyering  <meyering@lucent.com>
95338
95339         * m4/strerror_r.m4: Mirror the correction made in autoconf.
95340
95341         * m4/gnu-source.m4: Output to confdefs.h directly.
95342         Suggestion from Akim Demaille.
95343
95344 2000-07-09  Paul Eggert  <eggert@twinsun.com>
95345
95346         The old behavior of quoting `like this' doesn't look good with
95347         newer, ISO-style fonts.  See:
95348         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
95349
95350         Instead, quote "like this" by default.  Let the translator
95351         tailor the locale-specific quoting behavior by providing
95352         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
95353
95354         * lib/quotearg.c (N_): New macro.
95355         (gettext_default): New function.
95356         (quotearg_buffer_restyled): Use
95357         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
95358         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
95359
95360 2000-07-09  Jim Meyering  <meyering@lucent.com>
95361
95362         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
95363         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
95364
95365         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
95366         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
95367
95368 2000-07-09  Jim Meyering  <meyering@lucent.com>
95369
95370         * lib/Most files: Update copyright dates to include 2000.
95371
95372 2000-07-08  Jim Meyering  <meyering@lucent.com>
95373
95374         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
95375         if not defined.
95376         (xgethostname): Remove now-unnecessary #ifdef.
95377         Move declaration of `err' into loop where it's used.
95378
95379 2000-07-05  Paul Eggert  <eggert@twinsun.com>
95380         and Bruno Haible  <haible@clisp.cons.org>
95381
95382         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
95383         only if the test for an object-type mbstate_t fails.  This
95384         prevents us from mistakenly reporting that mbstate_t is a
95385         system object type after we "#define mbstate_t int" to work
95386         around its lack.
95387
95388 2000-07-05  Paul Eggert  <eggert@twinsun.com>
95389         and Bruno Haible  <haible@clisp.cons.org>
95390
95391         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
95392
95393 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95394
95395         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
95396         to strerror_r.
95397         Include <ctype.h> for use of isalpha.
95398
95399 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95400
95401         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
95402         by allocating a larger buffer. Test the gethostname return value for
95403         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
95404         returns an error and ENAMETOOLONG isn't defined.
95405
95406 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95407
95408         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
95409         dimension.
95410
95411 2000-07-04  Jim Meyering  <meyering@lucent.com>
95412
95413         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
95414         of the deprecated AC_CHECKING.
95415
95416 2000-07-04  Jim Meyering  <meyering@lucent.com>
95417
95418         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
95419         Reported by Bruno Haible.
95420
95421 2000-07-04  Jim Meyering  <meyering@lucent.com>
95422
95423         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
95424         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
95425         lacks mbrtowc.
95426
95427 2000-07-03  Paul Eggert  <eggert@twinsun.com>
95428
95429         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
95430         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
95431
95432 2000-07-03  Paul Eggert  <eggert@twinsun.com>
95433         and Bruno Haible  <haible@clisp.cons.org>
95434
95435         * lib/quotearg.c (mbrtowc):
95436         Assign to *pwc, and return 1 only if result is nonzero.
95437         (iswprint): Use ISPRINT when substituting our own mbrtowc.
95438
95439 2000-07-03  Jim Meyering  <meyering@lucent.com>
95440
95441         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
95442
95443 2000-07-03  Jim Meyering  <meyering@lucent.com>
95444
95445         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
95446         This is necessary to get a definition of e.g., UTMP_FILE on
95447         HP-UX 10.20.
95448         From Bob Proulx.
95449
95450 2000-07-02  Jim Meyering  <meyering@lucent.com>
95451
95452         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
95453
95454         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
95455         AC_LIBOBJ(function_name).
95456         * m4/chown.m4: Likewise.
95457         * m4/fnmatch.m4: Likewise.
95458         * m4/ftruncate.m4: Likewise.
95459         * m4/getgroups.m4: Likewise.
95460         * m4/getline.m4: Likewise.
95461         * m4/group-member.m4: Likewise.
95462         * m4/jm-macros.m4: Likewise.
95463         * m4/lstat.m4: Likewise.
95464         * m4/malloc.m4: Likewise.
95465         * m4/memcmp.m4: Likewise.
95466         * m4/nanosleep.m4: Likewise.
95467         * m4/putenv.m4: Likewise.
95468         * m4/realloc.m4: Likewise.
95469         * m4/regex.m4: Likewise.
95470         * m4/stat.m4: Likewise.
95471         * m4/strftime.m4: Likewise.
95472
95473 2000-07-02  Jim Meyering  <meyering@lucent.com>
95474
95475         * lib/quotearg.c (mbstate_t): Don't define here.
95476
95477 2000-07-02  Jim Meyering  <meyering@lucent.com>
95478
95479         * lib/nanosleep.c (SIGCONT): Define if not already defined.
95480
95481 2000-07-01  Jim Meyering  <meyering@lucent.com>
95482
95483         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
95484
95485 2000-07-01  Jim Meyering  <meyering@lucent.com>
95486
95487         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
95488         problem.
95489
95490 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
95491
95492         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
95493         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
95494
95495 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
95496
95497         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
95498         per change in ../m4/ls-mntd-fs.m4.
95499         (read_filesystem_list): Ignore symbolic links.
95500
95501 2000-06-29  Jim Meyering  <meyering@lucent.com>
95502
95503         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
95504         for declaration of strcmp.
95505
95506         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
95507
95508         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
95509         Avoid warning by casting result to `char *' to remove `const'.
95510
95511 2000-06-28  Jim Meyering  <meyering@lucent.com>
95512
95513         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
95514         included by quotearg.c, for which we perform this test.  From
95515         Bruno Haible.
95516
95517 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
95518
95519         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
95520         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
95521         <utmpx.h> exists, put readutmp.o into LIBOBJS.
95522
95523 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
95524
95525         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
95526
95527 2000-06-26  Paul Eggert  <eggert@twinsun.com>
95528
95529         savedir now sets errno on failure and invokes xmalloc to get memory.
95530         Fix a couple of other minor bugs while we're at it.
95531
95532         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
95533         (NAMLEN): Remove macro.
95534         (malloc, realloc): Remove decls.
95535         (stpcpy): Likewise.
95536         ("xalloc.h"): Include.
95537         (NAME_SIZE_DEFAULT): New macro.
95538         (savedir): Use xmalloc / xrealloc to allocate memory.
95539         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
95540         Skip "" directory entries.
95541         Use strlen to calculate directory entry length, since the old method
95542         is rarely used these days and isn't worth supporting.
95543         Don't use a pointer after freeing it.
95544         Check for integer overflow when calculating allocation size.
95545         Use memcpy to copy entries, instead of stpcpy.
95546         Set errno properly when returning NULL.
95547         Check for readdir error.
95548
95549 2000-06-26  Jim Meyering  <meyering@lucent.com>
95550
95551         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
95552
95553 2000-06-25  Jim Meyering  <meyering@lucent.com>
95554
95555         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
95556         Linux header bug when _XOPEN_SOURCE is defined to 500.
95557
95558 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
95559
95560         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
95561         deficiency.
95562
95563 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
95564
95565         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
95566         Include xalloc.h.
95567         Don't include <stdlib.h>.  Don't declare malloc, realloc.
95568
95569 2000-06-24  Jim Meyering  <meyering@lucent.com>
95570
95571         * m4/strerror_r.m4: Revive this file -- to try out an experimental
95572         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
95573         for which strerror does return char*, but which lacks a conveniently
95574         accessible declaration of the function.  If the compile-test says
95575         strerror_r doesn't work, then resort to a `run'-test that works on
95576         BeOS and segfaults on DEC Unix.
95577
95578 2000-06-24  Jim Meyering  <meyering@lucent.com>
95579
95580         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
95581
95582 2000-06-23  Paul Eggert  <eggert@twinsun.com>
95583
95584         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
95585         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
95586
95587 2000-06-23  Paul Eggert  <eggert@twinsun.com>
95588
95589         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
95590         (mbrtowc, mbstate_t): Define substitutes if
95591         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
95592         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
95593         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
95594
95595 2000-06-23  Jim Meyering  <meyering@lucent.com>
95596
95597         * m4/afs.m4: Add missing AC_MSG_RESULT.
95598         Reported by Bruno Haible.
95599
95600         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
95601         Suggestion from Bruno Haible.
95602
95603 2000-06-23  Jim Meyering  <meyering@lucent.com>
95604
95605         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
95606
95607 2000-06-21  Jim Meyering  <meyering@lucent.com>
95608
95609         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
95610
95611 2000-06-21  Jim Meyering  <meyering@lucent.com>
95612
95613         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
95614         (noinst_HEADERS): Add getstr.h.
95615
95616         * lib/getline.c (getstr): Move into a separate file.
95617         * lib/getstr.c (getstr): New file, extracted from getline.c, with
95618         the following changes: new parameter, delim2; both delim[12]
95619         parameters have type `int', not `char'.  The latter would lose
95620         with 8-bit delimiters.
95621         * lib/getstr.h: New file.
95622
95623 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95624
95625         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
95626         than 1024, return a memory chunk of least possible size, instead
95627         of size PATH_MAX + 2. In the loop, increment the size proportionally.
95628         Use free/xmalloc instead of xrealloc to avoid copying for very long
95629         paths.
95630
95631 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95632
95633         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
95634         the empty string.
95635
95636 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95637
95638         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
95639         address, not strdup.  Include <stdlib.h> and don't declare free().
95640
95641 2000-06-19  Jim Meyering  <meyering@lucent.com>
95642
95643         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
95644
95645 2000-06-18  Jim Meyering  <meyering@lucent.com>
95646
95647         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
95648
95649         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
95650         `checking whether...' message to be consistent with that of the
95651         lstat test.
95652
95653 2000-06-18  Jim Meyering  <meyering@lucent.com>
95654
95655         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
95656         Besides, these days every porting target provides a mkdir function.
95657
95658         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
95659         needed. (this snippet comes from src/system.h).
95660
95661 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
95662
95663         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
95664
95665 2000-06-15  Paul Eggert  <eggert@twinsun.com>
95666
95667         * lib/human.c (adjust_value): New function.
95668         (human_readable_inexact): Apply rounding style even when
95669         printing approximate values.
95670
95671 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95672
95673         * lib/human.c (human_readable_inexact): Allow an input block
95674         size that is not a multiple of the output block size, and vice versa.
95675         Reported by Piergiorgio Sartor.
95676
95677 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95678
95679         * lib/getdate.y (get_date): Apply relative times after time
95680         zone indicator, not before.  Reported by Todd A. Jacobs.
95681
95682 2000-06-13  Jim Meyering  <meyering@lucent.com>
95683
95684         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
95685
95686         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
95687
95688 2000-06-12  Paul Eggert  <eggert@twinsun.com>
95689
95690         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
95691
95692 2000-06-12  Jim Meyering  <meyering@lucent.com>
95693
95694         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
95695         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
95696         optional argument.
95697         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
95698         the optional argument, `lib'.
95699
95700 2000-06-08  Jim Meyering  <meyering@lucent.com>
95701
95702         * m4/largefile.m4: Remove file (now that it's part of autoconf).
95703
95704 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95705
95706         Rewrite largefile configuration so that we don't need to run
95707         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
95708         AC_CANONICAL_HOST in configure.in -- jmm]
95709
95710         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
95711         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
95712         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
95713         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
95714         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
95715         All uses changed.
95716         Instead of inspecting the output of getconf, try to compile the
95717         test program without and with the macro definition.
95718         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
95719         for getconf.  Instead, check for the needed flags by compiling
95720         test programs.
95721
95722 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95723
95724         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
95725
95726 2000-06-04  Jim Meyering  <meyering@lucent.com>
95727
95728         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
95729         SunOS 4.1.4 for which gid_t is an unsigned type.
95730
95731 2000-06-03  Jim Meyering  <meyering@lucent.com>
95732
95733         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
95734         now that autoconf requires that.
95735
95736         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
95737         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
95738         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
95739
95740 2000-06-03  Jim Meyering  <meyering@lucent.com>
95741
95742         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
95743
95744 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95745
95746         * m4/glibc21.m4: New file.
95747         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
95748
95749 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95750
95751         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
95752         newer, don't install charset.alias.
95753         * lib/config.charset: Change the Linux/glibc rules so they become empty
95754         on glibc-2.1 or newer.
95755
95756 2000-06-02  Jim Meyering  <meyering@lucent.com>
95757
95758         * lib/mountlist.c: Back out last change.  Instead, do this...
95759         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
95760         me_dummy member using the same `ignore'-testing code.
95761         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
95762         fs_type strings.
95763         From Mark D. Roth.
95764
95765 2000-05-29  Jim Meyering  <meyering@lucent.com>
95766
95767         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
95768         mounts with the `ignore' attribute.  Based on a patch from
95769         Mark D. Roth.
95770
95771 2000-05-28  Jim Meyering  <meyering@lucent.com>
95772
95773         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
95774         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95775         * m4/stat.m4: Likewise.
95776         * m4/lstat.m4: Likewise.
95777         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
95778
95779         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
95780         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
95781
95782 2000-05-26  Jim Meyering  <meyering@lucent.com>
95783
95784         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
95785
95786 2000-05-24  Jim Meyering  <meyering@lucent.com>
95787
95788         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
95789         autoconf requires that.
95790         * m4/lib-check.m4: Likewise.
95791         * m4/jm-macros.m4: Likewise.
95792         * m4/strftime.m4: Likewise.
95793
95794         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
95795         AC_CHECK_DECLS, now that autoconf requires that.
95796
95797 2000-05-22  Jim Meyering  <meyering@lucent.com>
95798
95799         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95800         * m4/lstat.m4: Likewise.
95801
95802 2000-05-22  Jim Meyering  <meyering@lucent.com>
95803
95804         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
95805
95806 2000-05-20  Jim Meyering  <meyering@lucent.com>
95807
95808         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
95809         (jm_PREREQ): Use it.
95810
95811 2000-05-18  Jim Meyering  <meyering@lucent.com>
95812
95813         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
95814         back, too, since it may have been modified by allocate_entry.
95815         (hash_delete): Rewrite to use neither the assignment operator
95816         nor the comma operator in an if-expression.
95817
95818 2000-05-15  Paul Eggert  <eggert@twinsun.com>
95819
95820         * lib/closeout.c:
95821         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
95822         Remove; no longer needed.
95823         "quotearg.h": Add include.
95824         (file_name): Do not bother to explicitly initialize to NULL; it's less
95825         efficient on some hosts.
95826         (close_stdout_status): Remove test as to whether stdout was already
95827         closed; it breaks for the case "echo x | sort >&-".
95828         Quote file name colons.
95829         Do not assume that _("write error") lacks format strings.
95830
95831 2000-05-15  Jim Meyering  <meyering@lucent.com>
95832
95833         * lib/version-etc.c (version_etc_copyright): Update the copyright
95834         string used in all --version output.
95835
95836 2000-05-14  Jim Meyering  <meyering@lucent.com>
95837
95838         * lib/closeout.c (close_stdout_set_file_name): New function.
95839         (close_stdout_status): Use new file-scoped global.
95840         Return right away if fstat says the stdout file descriptor is invalid.
95841         * lib/closeout.h (close_stdout_set_file_name): Declare.
95842
95843 2000-05-10  Jim Meyering  <meyering@lucent.com>
95844
95845         * lib/closeout.c [default_exit_status]: New file-scoped variable.
95846         (close_stdout_set_status): New function.
95847         * lib/closeout.h (close_stdout_set_status): Declare.
95848
95849 2000-05-09  Jim Meyering  <meyering@lucent.com>
95850
95851         * m4/gettext.m4: Rename this...
95852         * m4/libintl.m4: ...to this.
95853
95854 2000-05-08  Jim Meyering  <meyering@lucent.com>
95855
95856         * lib/long-options.c: Don't include closeout.h.
95857         (parse_long_options): Don't call close_stdout for --version.
95858
95859 2000-05-06  Paul Eggert  <eggert@twinsun.com>
95860
95861         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
95862         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
95863         2.1.3 bug.  This avoids a clash when files like regex.c define
95864         _GNU_SOURCE.
95865
95866 2000-05-06  Jim Meyering  <meyering@lucent.com>
95867
95868         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
95869         (AC_REPLACE_FUNCS): Add strnlen.
95870
95871         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
95872         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
95873
95874         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
95875         AC_SEARCH_LIBS call for nanosleep.
95876         (LIB_NANOSLEEP): Set and AC_SUBST.
95877
95878 2000-05-06  Jim Meyering  <meyering@lucent.com>
95879
95880         * lib/strnlen.c: Undefine __strnlen and strnlen.
95881         [!weak_alias]: Define __strnlen to strnlen.
95882
95883         * lib/atexit.c: New file, from libiberty.
95884
95885 2000-05-06  Jim Meyering  <meyering@lucent.com>
95886
95887         * lib/closeout.c (close_stdout_status): Also check for errors on the
95888         stderr stream.
95889
95890 2000-05-05  Jim Meyering  <meyering@lucent.com>
95891
95892         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
95893         AC_SEARCH_LIBS call for clock_gettime.
95894         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
95895
95896         * m4/search-libs.m4: Update from autoconf.
95897
95898         su doesn't work on Solaris 2.6.
95899         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
95900         <shadow.h>.  Reported by Dragos Harabor.
95901
95902 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
95903
95904         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
95905         memcpy instead of xmalloc, xrealloc, path_concat.
95906         (locale_charset): Treat empty environment variables as absent.
95907         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
95908
95909 2000-05-04  Jim Meyering  <meyering@lucent.com>
95910
95911         * lib/getopt.c: Update from glibc.
95912         * lib/obstack.c: Likewise.
95913         * lib/obstack.h: Likewise.
95914         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
95915         file
95916
95917         * lib/regex.h: Likewise.
95918         * lib/strndup.c: Likewise.
95919         * lib/strnlen.c: New file, from glibc.
95920
95921 2000-05-03  Jim Meyering  <meyering@lucent.com>
95922
95923         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
95924
95925 2000-05-02  Paul Eggert  <eggert@twinsun.com>
95926
95927         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
95928         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
95929         compile-time test, rather than inspecting host and OS, to
95930         decide whether to define _LARGEFILE_SOURCE.
95931
95932 2000-05-01  Jim Meyering  <meyering@lucent.com>
95933
95934         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
95935
95936         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
95937         Based on a patch from Bruno Haible.
95938
95939 2000-05-01  Jim Meyering  <meyering@lucent.com>
95940
95941         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
95942
95943 2000-04-29  Jim Meyering  <meyering@lucent.com>
95944
95945         * lib/path-concat.c: Declare strdup only if it's not defined.
95946         * lib/canon-host.c: Likewise.
95947
95948 2000-04-28  Jim Meyering  <meyering@lucent.com>
95949
95950         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
95951         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
95952         is included first, then limits.h is included by locale.h by libintl.h.
95953         From John David Anglin.
95954
95955 2000-04-25  Jim Meyering  <meyering@lucent.com>
95956
95957         * lib/makepath.c (S_IRWXUGO): Define.
95958         (make_path): Always perform explicit chmod if MODE specifies any
95959         of the `special' permission bits.  Prompted by a bug report against
95960         install from Mate Wierdl and Joost van Baal.
95961
95962 2000-04-18  Jim Meyering  <meyering@lucent.com>
95963
95964         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
95965         (jm_PREREQ): Use it.
95966
95967 2000-04-18  Jim Meyering  <meyering@lucent.com>
95968
95969         * lib/README: New file.
95970
95971         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
95972         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
95973
95974 2000-04-17  Jim Meyering  <meyering@lucent.com>
95975
95976         Get it right :-)
95977         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
95978         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
95979         Suggestion from Akim Demaille.
95980
95981 2000-04-17  Jim Meyering  <meyering@lucent.com>
95982
95983         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
95984         the definition of it to rpl_strftime also defined-away the system's
95985         declaration.
95986
95987 2000-04-15  Jim Meyering  <meyering@lucent.com>
95988
95989         Use `C' to denote so-called `contiguous' files, the same way
95990         that tar does.
95991         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
95992         (ftypelet): Use S_ISCTG.
95993         From Michael Deutschmann.
95994
95995 2000-04-14  Jim Meyering  <meyering@lucent.com>
95996
95997         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
95998         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
95999         clobbered.
96000
96001 2000-04-14  Jim Meyering  <meyering@lucent.com>
96002
96003         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
96004
96005 2000-04-13  Jim Meyering  <meyering@lucent.com>
96006
96007         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
96008         AH_VERBATIM to insert required #ifndef into config.h.in.
96009         Suggestion from Akim Demaille.
96010
96011 2000-04-12  Jim Meyering  <meyering@lucent.com>
96012
96013         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
96014         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
96015         Christian Krackowizer.
96016
96017         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
96018         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
96019         (AC_SYS_LARGEFILE): Require.
96020         (AM_C_PROTOTYPES): Require.
96021
96022 2000-04-08  Jim Meyering  <meyering@lucent.com>
96023
96024         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
96025         names don't conflict.  Reported by Eli Zaretskii.
96026
96027 2000-04-07  Jim Meyering  <meyering@lucent.com>
96028
96029         * lib/putenv.c: Move inclusion of errno.h so it follows that of
96030         sys/types.h, to work around system header problems on AIX 3.2.5.
96031         From Bruno Haible.
96032
96033 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
96034
96035         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
96036         bug.  Deal with the different error behavior of Irix iconv.
96037
96038 2000-04-05  Paul Eggert  <eggert@twinsun.com>
96039
96040         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
96041         IRIX if the installer said otherwise.
96042
96043 2000-04-05  Jim Meyering  <meyering@lucent.com>
96044
96045         Portability tweaks required for ultrix4.3.
96046         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
96047         (jm_CHECK_DECLS): Add getutent to the list of functions.
96048         (_jm_DECL_HEADERS): Add utmpx.h.
96049         From John David Anglin.
96050
96051         * m4/strftime.m4: Back out the 2000-04-02 change.
96052         Instead of that change, simply undefine putenv in the test program.
96053
96054 2000-04-05  Jim Meyering  <meyering@lucent.com>
96055
96056         Portability tweaks required for ultrix4.3.
96057         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
96058         getutent.
96059         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
96060         * lib/canon-host.c: Declare strdup.
96061         * lib/path-concat.c: Likewise.
96062         From John David Anglin.
96063
96064 2000-04-04  Jim Meyering  <meyering@lucent.com>
96065
96066         Be more DOS 8.3-friendly.
96067         * lib/ref-add.sin: Renamed from ref-add.sed.in.
96068         * lib/ref-del.sin: Renamed from ref-del.sed.in.
96069         * lib/Makefile.am: Reflect renaming.
96070         Reported by Eli Zaretskii.
96071
96072         Use a temporary file name that won't clash with `charset.alias'
96073         in the DOS 8.3 name space.
96074         * lib/Makefile.am (charset_tmp): Define.
96075         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
96076         (uninstall-local): Likewise.
96077         Reported by Eli Zaretskii.
96078
96079 2000-04-03  Jim Meyering  <meyering@lucent.com>
96080
96081         * m4/gettext.m4: Fix typo in comment.
96082
96083         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
96084         textutils/configure.in).  Suggestion from Paul Eggert.
96085         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
96086
96087 2000-04-02  Paul Eggert  <eggert@twinsun.com>
96088
96089         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
96090         variable in the shell rather than using putenv, which isn't
96091         portable.  This avoids the configure-time inter-test dependency
96092         on the potentially-renamed putenv function.
96093
96094 2000-03-30  Paul Eggert  <eggert@twinsun.com>
96095
96096         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
96097         before checking struct stat.st_blksize, so that
96098         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
96099
96100 2000-03-29  Paul Eggert  <eggert@twinsun.com>
96101
96102         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
96103         since strftime.c uses HAVE_STRFTIME to decide whether to use
96104         the underlying strftime.
96105
96106 2000-03-29  Paul Eggert  <eggert@twinsun.com>
96107
96108         * lib/time/strftime.c (my_strftime): Make sure we call the system
96109         strftime, not ourselves, when invoking the underlying strftime.
96110
96111 2000-03-24  Jim Meyering  <meyering@lucent.com>
96112
96113         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
96114         (charset_alias): Define.
96115         (install-exec-local): Factor out common code.
96116         (uninstall-local): Split lines longer than 80.
96117         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
96118         (SUFFIXES): Define.
96119         (.sed.in.sed): New rule.  Don't redirect directly to $@.
96120         (CLEANFILES): Add ref-add.sed and ref-del.sed.
96121
96122 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
96123
96124         * lib/config.charset: Output a line containing "Packages using this
96125         file".
96126         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
96127         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
96128         ref-del.sed): New rules.
96129
96130 2000-03-17  Jim Meyering  <meyering@lucent.com>
96131
96132         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
96133         Otherwise, include <strings.h>
96134
96135 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
96136
96137         * lib/unicodeio.c (utf8_wctomb): New function.
96138         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
96139         format instead of in UCS-4 with platform dependent endianness.
96140
96141 2000-03-10  Jim Meyering  <meyering@lucent.com>
96142
96143         * m4/lib-check.m4: Look for getspnam in -lgen, too.
96144         From Marco Franzen.
96145
96146 2000-03-07  Paul Eggert  <eggert@twinsun.com>
96147
96148         * lib/savedir.c (savedir): Work even if directory size is
96149         negative; this can happen with some screwy NFS configurations.
96150
96151 2000-03-06  Jim Meyering  <meyering@lucent.com>
96152
96153         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
96154         if it's NULL (because we ran out of memory).  From Bruno Haible.
96155
96156 2000-03-05  Jim Meyering  <meyering@lucent.com>
96157
96158         * lib/localcharset.c ("path-concat.h"): Include.
96159         (get_charset_aliases): Use path_concat instead of ANSI string
96160         concatenation.
96161
96162         * lib/unicodeio.h (PARAMS): Define.
96163         Use it to guard prototype.
96164
96165 2000-03-04  Jim Meyering  <meyering@lucent.com>
96166
96167         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
96168         for lib/localcharset.c.
96169
96170 2000-03-04  Jim Meyering  <meyering@lucent.com>
96171
96172         * lib/Makefile.am (install-exec-local): Create $(libdir) before
96173         installing into it.
96174         (uninstall-local): Uncomment this rule so `make distcheck' works
96175         once again.
96176
96177         * lib/unicodeio.c (<errno.h>): Include it.
96178         (errno): Declare if not defined.
96179
96180         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
96181
96182         * lib/config.charset: New version, incorporating remarks from a linux
96183         i18n mailing list.  From Bruno Haible.
96184
96185 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
96186
96187         * m4/codeset.m4: New file.
96188         * m4/iconv.m4: New file.
96189         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
96190
96191 2000-03-03  Jim Meyering  <meyering@lucent.com>
96192
96193         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
96194
96195 2000-03-02  Jim Meyering  <meyering@lucent.com>
96196
96197         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
96198         the messages come out on separate lines.
96199
96200         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
96201         rather than jm_CHECK_DECLARATIONS.
96202         * m4/decl.m4: Remove now-unused file.
96203
96204         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
96205         geteuid.
96206
96207 2000-03-02  Jim Meyering  <meyering@lucent.com>
96208
96209         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
96210
96211 2000-03-01  Jim Meyering  <meyering@lucent.com>
96212
96213         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
96214         * lib/unicodeio.c: Likewise.
96215
96216 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
96217
96218         * lib/config.charset: New file.
96219         * lib/localcharset.c: New file.
96220         * lib/unicodeio.h, lib/unicodeio.c: New files.
96221         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
96222         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
96223         (noinst_HEADERS): Add unicodeio.h.
96224         (all-local, install-exec-local, charset.alias): New targets.
96225
96226 2000-02-28  Paul Eggert  <eggert@twinsun.com>
96227
96228         * lib/quotearg.c (ALERT_CHAR): New macro.
96229         (quotearg_buffer_restyled): Use it.
96230
96231 2000-02-27  Jim Meyering  <meyering@lucent.com>
96232
96233         * m4/check-decl.m4: Add getenv to the list.
96234
96235 2000-02-27  Jim Meyering  <meyering@lucent.com>
96236
96237         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
96238         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
96239
96240         * lib/backupfile.c: Guard inclusion of stdlib.h with
96241         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
96242         Declare malloc if needed.
96243
96244         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
96245         `#ifndef HAVE_DECL..'
96246         now that autoconf always defines the HAVE_DECL_ symbols.
96247         * lib/human.c: Likewise.
96248         * lib/same.c: Likewise.
96249         * lib/strtoumax.c: Likewise.
96250
96251         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
96252         declaration check was not run.
96253         * lib/hash.c: Likewise.
96254         * lib/human.c: Likewise.
96255         * lib/same.c: Likewise.
96256         * lib/strtoumax.c: Likewise.
96257
96258         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
96259         `.', then first look up the entire `.'-containing string as a login
96260         name.
96261
96262 2000-02-23  Jim Meyering  <meyering@lucent.com>
96263
96264         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
96265         in place of my hack.
96266
96267 2000-02-18  Paul Eggert  <eggert@twinsun.com>
96268
96269         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
96270         (textint): New typedef.
96271         (parser_control): Member year changed from int to textint.
96272         All uses changed.
96273         (YYSTYPE): Removed; replaced by %union with int and textint members.
96274         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
96275         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
96276         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
96277         (tSNUMBER, tUNUMBER): Now of type <textintval>.
96278         (date, number, to_year): Use width of number in digits, not its value,
96279         to determine whether it's a 2-digit year, or a 2-digit time.
96280         (yylex): Store number of digits of numeric tokens.
96281         Reported by John Kendall.
96282
96283         (parser_control): Changed from struct parser_control to typedef (for
96284         consistency).  All uses changed.
96285
96286         (tID): Removed; not used.
96287         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
96288
96289 2000-02-14  Paul Eggert  <eggert@twinsun.com>
96290
96291         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
96292         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
96293
96294 2000-02-12  Jim Meyering  <meyering@lucent.com>
96295
96296         * lib/userspec.c (ISDIGIT): Define it.
96297         (isdigit): Remove definition.
96298         (is_number): Use ISDIGIT, not isdigit.
96299         <libintl.h>: Include.
96300         (_ and N_): Define.
96301         (parse_user_spec): Mark translatable strings.
96302
96303 2000-02-10  Jim Meyering  <meyering@lucent.com>
96304
96305         With these changes, nanosleep.[ch] are finally enough like the other
96306         lib/* replacement files to compile on a few more losing systems.
96307
96308         * lib/nanosleep.h: Don't include config.h.
96309         Remove prototype from declaration of nanosleep.
96310         (PARAMS): Remove now-unneeded definition.
96311         * lib/nanosleep.c: #undef nanosleep.
96312         (rpl_nanosleep): Rename from nanosleep.
96313
96314 2000-02-10  Jim Meyering  <meyering@lucent.com>
96315
96316         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
96317         gnu_nanosleep to rpl_nanosleep.
96318
96319 2000-02-09  Jim Meyering  <meyering@lucent.com>
96320
96321         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
96322         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
96323
96324 2000-02-08  Akim Demaille  <akim@epita.fr>
96325
96326         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
96327         `[' and `]' and remove uses of `changequote'.
96328         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
96329         (AC_SYS_LARGEFILE): Likewise.
96330         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
96331         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
96332         of changequote.
96333         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
96334         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
96335         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
96336         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
96337
96338 2000-02-05  Jim Meyering  <meyering@lucent.com>
96339
96340         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
96341         Remove explicit use of AC_HEADER_TIME.  It is required by
96342         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
96343         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
96344         in autoconf whereby the expansion of the latter ended up preceding
96345         the expansion of its prerequisite, AC_HEADER_TIME.
96346         Reported by Volker Borchert.
96347
96348 2000-02-03  Jim Meyering  <meyering@lucent.com>
96349
96350         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
96351
96352 2000-02-03  Jim Meyering  <meyering@lucent.com>
96353
96354         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
96355         rather than with `#if HAVE_UTMPNAME'.
96356
96357 2000-02-02  Jim Meyering  <meyering@lucent.com>
96358
96359         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
96360         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
96361         Reported by Eli Zaretskii.
96362
96363 2000-02-01  Jim Meyering  <meyering@lucent.com>
96364
96365         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
96366
96367 2000-01-31  Jim Meyering  <meyering@lucent.com>
96368
96369         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
96370         functions.  Add the time.h and sys/time.h headers along with the
96371         AC_REQUIRE'ment of AC_HEADER_TIME.
96372
96373 2000-01-31  Jim Meyering  <meyering@lucent.com>
96374
96375         * lib/nanosleep.h (nanosleep): Guard declaration with
96376         `#if ! HAVE_DECL_NANOSLEEP'.
96377         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
96378         the declaration in that vendor's sys/timers.h.
96379         Reported by Christian Krackowizer.
96380
96381         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
96382         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
96383         (ISPRINT): Likewise.
96384         Reported by Tom Tromey.
96385
96386 2000-01-30  Jim Meyering  <meyering@lucent.com>
96387
96388         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
96389
96390         * m4/prereq.m4 (utmp_includes): Define.
96391         Check for ut_user and ut_name members in both struct utmpx
96392         and struct utmp.
96393
96394 2000-01-30  Jim Meyering  <meyering@lucent.com>
96395
96396         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
96397         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
96398         header files where only utmpx.ut_user is declared.
96399
96400         * lib/readutmp.h (UT_USER): Define.
96401
96402 2000-01-29  Jim Meyering  <meyering@lucent.com>
96403
96404         * m4/lib-check.m4: New file containing library-related checks from
96405         fileutils and sh-utils (textutils had none).
96406
96407 2000-01-28  Jim Meyering  <meyering@lucent.com>
96408
96409         * m4/perl.m4: Change format of warning message to look more like that
96410         from the missing script.  Suggestion from François Pinard.
96411
96412 2000-01-25  Jim Meyering  <meyering@lucent.com>
96413
96414         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
96415         well as time.h in the compile check.
96416         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
96417         Fix typo in cross-compiling case: s/yes/no/.
96418
96419 2000-01-23  Jim Meyering  <meyering@lucent.com>
96420
96421         * m4/jm-macros.m4: Move df-related tests here from
96422         fileutils/configure.in
96423
96424         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
96425         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
96426
96427         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
96428         s/space/ac_fsusage_space/.
96429         (jm_FILE_SYSTEM_USAGE): Take two parameters.
96430
96431         * m4/ftruncate.m4: New file (derived from part of
96432         fileutils/configure.in).
96433         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
96434         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
96435
96436         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
96437         AC_SUBST these here, rather than just in sh-util/configure.in, so
96438         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
96439         all the same.
96440         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
96441         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
96442         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
96443         (AC_SUBST(POW_LIBM)): Likewise.
96444         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
96445
96446 2000-01-23  Jim Meyering  <meyering@lucent.com>
96447
96448         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
96449         obstack.c.
96450
96451 2000-01-22  Jim Meyering  <meyering@lucent.com>
96452
96453         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
96454
96455         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
96456
96457         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
96458         configure.in
96459         (AC_CHECK_HEADERS): Likewise for sh-utils.
96460         (AC_CHECK_HEADERS): Likewise for textutils.
96461         Merge the three lists of headers.
96462
96463         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
96464         from fileutils' configure.in.
96465
96466         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
96467         code. Moved tests into their own function (_jm_DECL_HEADERS) in
96468         check-decl.m4.
96469
96470         * m4/check-decl.m4: Use #if rather than #ifdef.
96471         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
96472         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
96473         (_jm_DECL_HEADERS): Define new function.
96474         (jm_CHECK_DECLARATIONS): Require it.
96475
96476 2000-01-22  Jim Meyering  <meyering@lucent.com>
96477
96478         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
96479         [! HAVE_DECL_STRTOULL]: Declare strtoull.
96480         Required for some AIX systems.  Reported by Christian Krackowizer.
96481         [TESTING] (main): New function.
96482
96483         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
96484         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
96485         letters.
96486
96487         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
96488         iswprint.
96489
96490         * lib/strverscmp.c (ISDIGIT): Define.
96491         (strverscmp): Use ISDIGIT, not isdigit.
96492
96493 2000-01-19  Jim Meyering  <meyering@lucent.com>
96494
96495         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
96496         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
96497         defines `struct timespec' in <sys/time.h>
96498
96499         * m4/c-bs-a.m4: Remove uses of changequote altogether.
96500         Thanks to Akim for explaining.
96501
96502 2000-01-17  Paul Eggert  <eggert@twinsun.com>
96503
96504         * lib/nanosleep.c (nanosleep):
96505         Don't use SA_INTERRUPT to decide whether to call sigaction, as
96506         POSIX.1 doesn't require SA_INTERRUPT and some systems
96507         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
96508         it's been part of POSIX.1 since day 1 (in 1988).
96509
96510 2000-01-17  Jim Meyering  <meyering@lucent.com>
96511
96512         * lib/interlock: Remove unused file.  Reported by François Pinard.
96513
96514 2000-01-16  Paul Eggert  <eggert@twinsun.com>
96515
96516         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
96517         alert, backslash, formfeed, and vertical tab unnecessarily in
96518         shell quoting style.
96519
96520 2000-01-16  Jim Meyering  <meyering@lucent.com>
96521
96522         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
96523         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
96524         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
96525         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
96526
96527 2000-01-16  Jim Meyering  <meyering@lucent.com>
96528
96529         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
96530         because the latter didn't work.
96531
96532 2000-01-15  Jim Meyering  <meyering@lucent.com>
96533
96534         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
96535         (AC_REPLACE_FUNCS): Add memcpy and memset.
96536         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
96537         Add strpbrk.
96538         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
96539
96540 2000-01-12  Jim Meyering  <meyering@lucent.com>
96541
96542         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
96543         (jm_PREREQ): Use it.
96544         (jm_PREREQ_READUTMP): New macro.
96545         (jm_PREREQ): Use it.
96546
96547 2000-01-11  Paul Eggert  <eggert@twinsun.com>
96548
96549         Quote multibyte characters correctly.
96550         * m4/c-bs-a.m4: New file.
96551         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
96552         (jm_PREREQ): Use it.
96553
96554 2000-01-11  Paul Eggert  <eggert@twinsun.com>
96555
96556         * m4/uintmax_t.m4: Port to autoconf 2.13.
96557
96558 2000-01-08  Jim Meyering  <meyering@ascend.com>
96559
96560         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
96561         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
96562
96563 2000-01-04  Jim Meyering  <meyering@ascend.com>
96564
96565         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
96566         jm_STRUCT_DIRENT_D_TYPE.
96567         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
96568         jm_STRUCT_DIRENT_D_INO.
96569         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
96570         jm_STRUCT_UTIMBUF.
96571         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
96572         renamings.
96573         * m4/utime.m4: Likewise.
96574
96575         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
96576         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
96577
96578 2000-01-03  Paul Eggert  <eggert@twinsun.com>
96579
96580         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
96581         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
96582
96583 2000-01-02  Jim Meyering  <meyering@ascend.com>
96584
96585         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
96586         remember if this is necessary.
96587
96588 1999-12-26  Jim Meyering  <meyering@ascend.com>
96589
96590         * m4/jm-macros.m4: Use it here.
96591         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
96592
96593 1999-12-23  Jim Meyering  <meyering@ascend.com>
96594
96595         * m4/jm-macros.m4: Check for clock_gettime (moved from
96596         fileutils/configure.in)
96597         Check for gettimeofday.
96598
96599 1999-12-20  Jim Meyering  <meyering@ascend.com>
96600
96601         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
96602         autoconf-2.14a-1999-12-20.
96603
96604 1999-12-19  Jim Meyering  <meyering@ascend.com>
96605
96606         * m4/lstat-slash.m4: New file.
96607         * m4/jm-macros.m4: Use the new macro:
96608         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96609
96610 1999-12-07  Jim Meyering  <meyering@ascend.com>
96611
96612         * m4/perl.m4: Require that File::Compare be available, too.
96613         Too many systems seem to lack it.
96614
96615         * m4/strftime.m4: Add checks for most of the cpp macros tested in
96616         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
96617
96618 1999-11-18  Paul Eggert  <eggert@twinsun.com>
96619
96620         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
96621         problem with the QNX 4.25 shell, which doesn't propagate exit
96622         status of failed commands inside shell assignments.
96623
96624 1999-11-17  Jim Meyering  <meyering@ascend.com>
96625
96626         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
96627
96628 1999-11-07  Jim Meyering  <meyering@ascend.com>
96629
96630         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
96631
96632 1999-11-06  Jim Meyering  <meyering@ascend.com>
96633
96634         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
96635         * m4/jm-macros.m4 (jm_MACROS): Use it here.
96636
96637 1999-11-05  Jim Meyering  <meyering@ascend.com>
96638
96639         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
96640         configure.in of textutils, fileutils, and sh-utils into this one
96641         (shared between those packages) file.
96642         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
96643         AC_STRUCT_ST_BLKSIZE.
96644
96645 1999-11-03  Jim Meyering  <meyering@ascend.com>
96646
96647         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
96648         of AC_CHECK_TYPE checks includes unistd.h.
96649         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
96650         Suggestion from Akim Demaille.
96651
96652 1999-10-30  Jim Meyering  <meyering@ascend.com>
96653
96654         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
96655         m4-quoted string.
96656         * m4/ls-mntd-fs.m4: Likewise.
96657         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
96658         * m4/jm-winsz1.m4: Likewise.
96659
96660         * m4/const.m4: Remove file, since the fix made it into the experimental
96661         version of autoconf.
96662         * m4/mktime.m4: Likewise.
96663
96664         * m4/check-type.m4: Remove file, now that the latest version of
96665         AC_CHECK_TYPE takes a third arg to specify additional #includes.
96666
96667         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
96668         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
96669         AC_CHECK_TYPE.
96670
96671 1999-10-04  Jim Meyering  <meyering@ascend.com>
96672
96673         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
96674
96675 1999-09-22  Paul Eggert  <eggert@twinsun.com>
96676
96677         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
96678         2.95.1 bug with HP-UX 10.20.
96679
96680 1999-09-17  Jim Meyering  <meyering@ascend.com>
96681
96682         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
96683         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
96684         due to missing strdup (against sh-utils-2.0).
96685
96686 1999-08-29  Jim Meyering  <meyering@ascend.com>
96687
96688         * m4/jm-macros.m4: Require jm_BISON.
96689         * m4/bison.m4: New file.
96690
96691 1999-08-17  Paul Eggert  <eggert@twinsun.com>
96692
96693         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
96694         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
96695
96696 1999-08-05  Jim Meyering  <meyering@ascend.com>
96697
96698         * m4/getline.m4: Rename test file from conftestdata to conftest.data
96699         to avoid conflicts with `conftest' on 8+3 filesystems.
96700         Suggestion from Eli Zaretskii.
96701
96702 1999-08-04  Jim Meyering  <meyering@ascend.com>
96703
96704         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
96705         fileutils and sh-utils (textutils's getline test was inadequate).
96706         (AM_FUNC_GETLINE): Run this test.
96707         (AC_CHECK_FUNCS): Check for getdelim.
96708         Reported by Bob Proulx.
96709
96710 1999-08-02  Jim Meyering  <meyering@ascend.com>
96711
96712         * m4/jm-macros.m4: Add a comment.
96713
96714 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96715
96716         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
96717         <inttypes.h> defines strtoumax as a macro (and not as a
96718         function).
96719
96720 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96721
96722         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
96723         that we can shift, multiply and divide unsigned long long
96724         values; Ultrix cc can't do it.
96725
96726 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96727
96728         * m4/mktime.m4: New file, which is a preview of what should appear
96729         in the next public autoconf release.
96730
96731 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96732
96733         * m4/lfs.m4: Remove this file.
96734         * m4/largefile.m4: New file.  It contains the old contents of
96735         lfs.m4, except that all names with prefix AC_LFS have been
96736         changed to use the prefix AC_SYS_LARGEFILE instead, to be
96737         compatible with future autoconf versions.  Also, some minor m4
96738         quoting problems have been fixed.
96739
96740 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96741
96742         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
96743         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
96744         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
96745         and simplify the shell code.
96746
96747 1999-08-01  Jim Meyering  <meyering@ascend.com>
96748
96749         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
96750         m4.
96751
96752 1999-07-20  Jim Meyering  <meyering@ascend.com>
96753
96754         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
96755
96756 1999-07-15  Jim Meyering  <meyering@ascend.com>
96757
96758         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
96759
96760 1999-05-22  Jim Meyering  <meyering@ascend.com>
96761
96762         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
96763
96764 1999-05-20  Jim Meyering  <meyering@ascend.com>
96765
96766         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
96767         Add a colon after each `then' in case $4 is empty.
96768
96769 1999-05-16  Jim Meyering  <meyering@ascend.com>
96770
96771         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
96772
96773 1999-05-10  Jim Meyering  <meyering@ascend.com>
96774
96775         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
96776
96777         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
96778         AC_FUNC_MKTIME.
96779
96780 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
96781
96782         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
96783
96784 1999-05-04  Paul Eggert  <eggert@twinsun.com>
96785
96786         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
96787         not CPPFLAGS, so that linking works correctly in IRIX.
96788
96789 1999-04-30  Paul Eggert  <eggert@twinsun.com>
96790
96791         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
96792
96793 1999-04-20  Paul Eggert  <eggert@twinsun.com>
96794
96795         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
96796         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
96797         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
96798         jm_AC_TYPE_UNSIGNED_LONG_LONG.
96799         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
96800
96801         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
96802
96803 1999-04-20  Jim Meyering  <meyering@ascend.com>
96804
96805         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
96806         AC_REPLACE xstroull if necessary.  From Paul Eggert.
96807         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
96808
96809 1999-04-18  Jim Meyering  <meyering@ascend.com>
96810
96811         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
96812         * m4/jm-macros.m4: Use it.
96813
96814 1999-04-06  Jim Meyering  <meyering@ascend.com>
96815
96816         * m4/strftime.m4: Remove test for %f.
96817
96818 1999-03-29  Jim Meyering  <meyering@ascend.com>
96819
96820         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
96821         superset of the AC_TYPE_* checks in the textutils, fileutils,
96822         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
96823         AC_TYPE_PID_T.
96824
96825 1999-03-28  Jim Meyering  <meyering@ascend.com>
96826
96827         * m4/jm-macros.m4: Define GNU_PACKAGE here.
96828         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
96829         replaced e.g., in the *.sh files of the sh-utils.
96830
96831 1999-03-20  Jim Meyering  <meyering@ascend.com>
96832
96833         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
96834         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
96835         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
96836
96837 1999-03-19  Jim Meyering  <meyering@ascend.com>
96838
96839         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
96840
96841 1999-03-12  Jim Meyering  <meyering@ascend.com>
96842
96843         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
96844
96845 1999-03-07  Jim Meyering  <meyering@ascend.com>
96846
96847         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
96848         declared.
96849
96850 1999-02-17  Jim Meyering  <meyering@ascend.com>
96851
96852         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
96853         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
96854
96855 1999-02-07  Jim Meyering  <meyering@ascend.com>
96856
96857         * m4/group-member.m4: New file -- extracted from sh-utils'
96858         configure.in.
96859
96860         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
96861         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
96862
96863 1999-02-06  Jim Meyering  <meyering@ascend.com>
96864
96865         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
96866         * m4/fnmatch.m4: Likewise.
96867         * m4/getgroups.m4: Likewise.
96868         * m4/lstat.m4: Likewise.
96869         * m4/malloc.m4: Likewise.
96870         * m4/putenv.m4: Likewise.
96871         * m4/realloc.m4: Likewise.
96872         * m4/regex.m4: Likewise.
96873         * m4/stat.m4: Likewise.
96874         * m4/strftime.m4: Likewise.
96875         Suggestion from Alain Magloire.
96876
96877         * m4/chown.m4: Use `.$ac_objext', not `.o'.
96878         * m4/fnmatch.m4: Likewise.
96879         * m4/getgroups.m4: Likewise.
96880         * m4/getline.m4: Likewise.
96881         * m4/lstat.m4: Likewise.
96882         * m4/malloc.m4: Likewise.
96883         * m4/memcmp.m4: Likewise.
96884         * m4/putenv.m4: Likewise.
96885         * m4/realloc.m4: Likewise.
96886         * m4/regex.m4: Likewise.
96887         * m4/stat.m4: Likewise.
96888         * m4/strftime.m4: Likewise.
96889         Suggestion from Alain Magloire.
96890
96891         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
96892         an argument.
96893
96894         * m4/regex.m4: Add a run-time Test for proper operation of
96895         re_compile_pattern.
96896
96897 1999-01-31  Jim Meyering  <meyering@ascend.com>
96898
96899         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
96900
96901 1999-01-30  Jim Meyering  <meyering@ascend.com>
96902
96903         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
96904
96905         * m4/jm-mktime.m4: Make this a wrapper around the official
96906         AM_FUNC_MKTIME rather than my private copy, now that the official one
96907         is up to date.
96908         * m4/mktime.m4: Remove file.
96909
96910         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
96911         * m4/uptime.m4: Likewise.
96912         * m4/uintmax_t.m4: Likewise.
96913
96914 1999-01-28  Jim Meyering  <meyering@ascend.com>
96915
96916         * m4/jm-macros.m4: Use jm_AFS.
96917         * m4/afs.m4: New file (from fileutils' configure.in).
96918
96919         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
96920         * m4/chown.m4: Likewise.
96921         * m4/d-ino.m4: Likewise.
96922         * m4/d-type.m4: Likewise.
96923         * m4/fnmatch.m4: Likewise.
96924         * m4/getgroups.m4: Likewise.
96925         * m4/gettext.m4: Likewise.
96926         * m4/jm-mktime.m4: Likewise.
96927         * m4/jm-winsz2.m4: Likewise.
96928         * m4/lcmessage.m4: Likewise.
96929         * m4/ls-mntd-fs.m4: Likewise.
96930         * m4/malloc.m4: Likewise.
96931         * m4/memcmp.m4: Likewise.
96932         * m4/putenv.m4: Likewise.
96933         * m4/realloc.m4: Likewise.
96934         * m4/st_mtim.m4: Likewise.
96935         * m4/strftime.m4: Likewise.
96936
96937 1999-01-16  Jim Meyering  <meyering@ascend.com>
96938
96939         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
96940         (ARGMATCH_DIE_DECL): Define.
96941
96942 1999-01-12  Jim Meyering  <meyering@ascend.com>
96943
96944         * m4/Makefile.am.in: Rewrite to avoid using fmt.
96945         Reported by Lars Hecking.
96946
96947 1999-01-10  Jim Meyering  <meyering@ascend.com>
96948
96949         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
96950         gross kludge.
96951         * m4/inttypes_h.m4: Likewise.
96952         * m4/lstat.m4: Likewise.
96953         * m4/malloc.m4: Likewise.
96954         * m4/readdir.m4: Likewise.
96955         * m4/realloc.m4: Likewise.
96956         * m4/st_dm_mode.m4: Likewise.
96957         * m4/stat.m4: Likewise.
96958         * m4/utimbuf.m4: Likewise.
96959         * m4/utimes.m4: Likewise.
96960
96961         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
96962         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
96963         comments in config.h.in are meaningful.
96964
96965         * m4/jm-macros.m4: Require autoconf-2.13 here.
96966
96967         * m4/regex.m4: By default, don't use the included regex.c on systems
96968         with glibc 2.  Suggestion from Uli Drepper.
96969
96970 1999-01-02  Jim Meyering  <meyering@ascend.com>
96971
96972         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
96973
96974 1998-12-18  Jim Meyering  <meyering@ascend.com>
96975
96976         * m4/Makefile.am.in (Makefile.am): Simplify rule.
96977         Based on a suggestion from Lars Hecking.
96978
96979 1998-11-16  Paul Eggert  <eggert@twinsun.com>
96980
96981         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
96982
96983 1998-11-16  Jim Meyering  <meyering@ascend.com>
96984
96985         * m4/lfs.m4: Double-quote the `uname...` expression.
96986
96987 1998-11-14  Jim Meyering  <meyering@ascend.com>
96988
96989         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
96990         * m4/stat.m4: Likewise.
96991
96992 1998-11-03  Jim Meyering  <meyering@ascend.com>
96993
96994         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
96995         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
96996
96997 1998-10-18  Jim Meyering  <meyering@ascend.com>
96998
96999         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
97000
97001 1998-10-17  Jim Meyering  <meyering@ascend.com>
97002
97003         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
97004         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
97005         calls for those previously hard-coded headers.  Instead, take a new
97006         parameter.
97007         (jm_CHECK_DECLARATIONS): Reflect interface change.
97008         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
97009         (jm_CHECK_DECL_LOCALTIME_R): New macro.
97010
97011         * m4/mktime.m4: Test for spring-forward gap before long-running test.
97012
97013 1998-10-14  Jim Meyering  <meyering@ascend.com>
97014
97015         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
97016         instead of "TZ=America/Vancouver".  From Paul Eggert.
97017
97018 1998-10-11  Jim Meyering  <meyering@ascend.com>
97019
97020         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
97021         This adds a test for a recently added compatibility fix for mktime.c.
97022         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
97023
97024 1998-09-27  Jim Meyering  <meyering@ascend.com>
97025
97026         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
97027
97028         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
97029         ../configure.in, including a change from Gordon Matzigkeit to allow
97030         cross-compiling for the Hurd.
97031
97032         * m4/glibc.m4: New file/macro to test for the GNU C Library
97033         versions 1 and 2.  From Gordon Matzigkeit.
97034         Indent.
97035
97036 1998-09-21  Jim Meyering  <meyering@ascend.com>
97037
97038         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
97039
97040 1998-08-18  Paul Eggert  <eggert@twinsun.com>
97041
97042         Port nanosecond-resolution times to UnixWare 2.1.2 and
97043         pedantic Solaris 2.6.
97044
97045         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
97046         AC_STRUCT_ST_MTIM.
97047         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
97048         Generate name of ns member, instead of just 1 or undef.
97049         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
97050
97051 1998-08-15  Jim Meyering  <meyering@ascend.com>
97052
97053         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
97054         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
97055         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
97056         instead of jm_TYPE_SSIZE_T.
97057
97058 1998-08-12  Jim Meyering  <meyering@ascend.com>
97059
97060         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
97061
97062 1998-08-02  Jim Meyering  <meyering@ascend.com>
97063
97064         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
97065         in acconfig.h manually.
97066
97067 1998-07-31  Paul Eggert  <eggert@twinsun.com>
97068
97069         * m4/st_mtim.m4: New file.
97070
97071 1998-07-28  Jim Meyering  <meyering@ascend.com>
97072
97073         * m4/utimes.m4: Undef stat.
97074
97075 1998-07-25  Jim Meyering  <meyering@ascend.com>
97076
97077         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
97078         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
97079
97080 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
97081
97082         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
97083         uid and gid actually remain unchanged.
97084
97085 1998-07-07  Jim Meyering  <meyering@ascend.com>
97086
97087         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
97088
97089 1998-07-04  Jim Meyering  <meyering@ascend.com>
97090
97091         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
97092         to prove that this macro can be used in packages without regex.c.
97093
97094 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
97095
97096         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
97097         is to be used.
97098
97099 1998-07-03  Jim Meyering  <meyering@ascend.com>
97100
97101         * m4/gettext.m4: Add -lintl if it's found to be necessary.
97102
97103         * m4/gettext.m4: New file -- from gettext-0.10.35.
97104         * m4/lcmessage.m4: Likewise.
97105         * m4/progtest.m4: Likewise.
97106
97107         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
97108         * m4/jm-macros.m4: Require the new macro.
97109
97110 1998-06-29  Jim Meyering  <meyering@ascend.com>
97111
97112         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
97113         for the definition of NGROUPS (used in a system header included
97114         by sys/mount.h).
97115
97116 1998-06-28  Jim Meyering  <meyering@ascend.com>
97117
97118         * m4/ls-mntd-fs.m4: New file.
97119         * m4/fstypename.m4: New file.
97120
97121         * m4/jm-macros.m4: Require the new macro.
97122         * m4/jm-glibc-io.m4: New file.
97123
97124 1998-05-19  Jim Meyering  <meyering@ascend.com>
97125
97126         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
97127         * m4/lchown.m4: New file.
97128
97129         * m4/Makefile.am.in: New file.
97130         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
97131
97132 1998-05-14  Jim Meyering  <meyering@ascend.com>
97133
97134         * m4/Makefile.am (EXTRA_DIST): Add them.
97135         * m4/jm-macros.m4: New file.
97136         * m4/utimbuf.m4: New file.
97137
97138 1998-05-12  Jim Meyering  <meyering@ascend.com>
97139
97140         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
97141
97142 1998-05-11  Jim Meyering  <meyering@ascend.com>
97143
97144         * m4/isc-posix.m4: New file.
97145
97146 1998-05-10  Jim Meyering  <meyering@ascend.com>
97147
97148         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
97149
97150 1998-05-09  Jim Meyering  <meyering@ascend.com>
97151
97152         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
97153         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
97154         with automake.
97155
97156         * m4/ssize_t.m4: New file.
97157         * m4/mktime.m4: Remove file -- the new automake has this now.
97158
97159 1998-04-26  Jim Meyering  <meyering@ascend.com>
97160
97161         * m4/assert.m4: New file.
97162         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
97163
97164 1998-04-05  Jim Meyering  <meyering@ascend.com>
97165
97166         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
97167         (jm_PREREQ): Use it here.
97168
97169 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
97170
97171         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
97172         in acconfig.h.
97173
97174 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
97175
97176         * m4/prereq.m4: New file.
97177         * m4/error.m4: New file.
97178         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
97179
97180 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
97181
97182         * m4/getline.m4: Don't set am_cv_func_working_getline before the
97183         cache-check for the same variable -- that defeated the purpose of
97184         the test; the test program was never run.  This was a problem only
97185         on systems with losing getline functions -- HP-UX 10.20 is one.
97186         Reported by Bjorn Helgaas.
97187
97188 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
97189
97190         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
97191
97192 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
97193
97194         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
97195
97196         * m4/const.m4: New file.  Use an initializer in this declaration
97197         typedef int charset[2]; const charset x;
97198         Reported by Bob Glickstein.
97199
97200 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
97201
97202         * m4/chown.m4: Fix reversed types on -1 args to chown.
97203         From Kaveh Ghazi.
97204
97205 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
97206
97207         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
97208         Add lseek and memchr.
97209
97210         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
97211         T.E.Dickey <dickey@clark.net> said that some older preprocessors
97212         have a 20-character limit on names.
97213
97214 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
97215
97216         * m4/inttypes_h.m4: New file.
97217         * m4/uintmax_t.m4: New file.
97218         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
97219
97220
97221         -----
97222
97223         Local Variables:
97224         coding: utf-8
97225         End:
97226
97227         Copyright (C) 1997-2012 Free Software Foundation, Inc.
97228
97229         Copying and distribution of this file, with or without
97230         modification, are permitted provided the copyright notice
97231         and this notice are preserved.